Mock Version: 2.8 Mock Version: 2.8 Mock Version: 2.8 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/smartmontools.spec'], chrootPath='/var/lib/mock/dist-an23-build-198706-60958/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=86400uid=989gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/smartmontools.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1667779200 Wrote: /builddir/build/SRPMS/smartmontools-7.1-1.0.2.an23.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/smartmontools.spec'], chrootPath='/var/lib/mock/dist-an23-build-198706-60958/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=86400uid=989gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/smartmontools.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1667779200 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.joSryx + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf smartmontools-7.1 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/smartmontools-7.1.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd smartmontools-7.1 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #1 (smartmontools-5.38-defaultconf.patch):' Patch #1 (smartmontools-5.38-defaultconf.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .defaultconf --fuzz=0 patching file smartd.conf + curl 'https://sourceforge.net/p/smartmontools/code/HEAD/tree/trunk/smartmontools/drivedb.h?format=raw' -o /builddir/build/SOURCES/drivedb.h % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (6) Could not resolve host: sourceforge.net + : + cp /builddir/build/SOURCES/drivedb.h . + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.vVMzv4 + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/anolis/anolis-hardened-ld -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -Wl,--build-id=sha1 ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd smartmontools-7.1 + autoreconf -i configure.ac:23: warning: The macro `AC_CONFIG_HEADER' is obsolete. configure.ac:23: You should run autoupdate. ./lib/autoconf/status.m4:719: AC_CONFIG_HEADER is expanded from... configure.ac:23: the top level Makefile.am:127: warning: source file 'os_win32/popen_win32.cpp' is in a subdirectory, Makefile.am:127: but option 'subdir-objects' is disabled automake: warning: possible forward-incompatibility. automake: At least one source file is in a subdirectory, but the 'subdir-objects' automake: automake option hasn't been enabled. For now, the corresponding output automake: object file(s) will be placed in the top-level directory. However, this automake: behavior may change in a future Automake major version, with object automake: files being placed in the same subdirectory as the corresponding sources. automake: You are advised to start using 'subdir-objects' option throughout your automake: project, to avoid future incompatibilities. Makefile.am:221: warning: source file 'getopt/getopt.c' is in a subdirectory, Makefile.am:221: but option 'subdir-objects' is disabled Makefile.am:221: warning: source file 'getopt/getopt1.c' is in a subdirectory, Makefile.am:221: but option 'subdir-objects' is disabled Makefile.am:241: warning: source file 'regex/regex.c' is in a subdirectory, Makefile.am:241: but option 'subdir-objects' is disabled Makefile.am:266: warning: source file 'os_win32/wmiquery.cpp' is in a subdirectory, Makefile.am:266: but option 'subdir-objects' is disabled Makefile.am:252: warning: source file 'regex/regcomp.c' is in a subdirectory, Makefile.am:252: but option 'subdir-objects' is disabled Makefile.am:252: warning: source file 'regex/regexec.c' is in a subdirectory, Makefile.am:252: but option 'subdir-objects' is disabled Makefile.am:252: warning: source file 'regex/regex_internal.c' is in a subdirectory, Makefile.am:252: but option 'subdir-objects' is disabled Makefile.am:202: warning: source file 'os_win32/daemon_win32.cpp' is in a subdirectory, Makefile.am:202: but option 'subdir-objects' is disabled Makefile.am:202: warning: source file 'os_win32/popen_win32.cpp' is in a subdirectory, Makefile.am:202: but option 'subdir-objects' is disabled Makefile.am:202: warning: source file 'os_win32/syslog_win32.cpp' is in a subdirectory, Makefile.am:202: but option 'subdir-objects' is disabled Makefile.am:229: warning: source file 'getopt/getopt.c' is in a subdirectory, Makefile.am:229: but option 'subdir-objects' is disabled Makefile.am:229: warning: source file 'getopt/getopt1.c' is in a subdirectory, Makefile.am:229: but option 'subdir-objects' is disabled Makefile.am:246: warning: source file 'regex/regex.c' is in a subdirectory, Makefile.am:246: but option 'subdir-objects' is disabled Makefile.am:271: warning: source file 'os_win32/wmiquery.cpp' is in a subdirectory, Makefile.am:271: but option 'subdir-objects' is disabled Makefile.am:257: warning: source file 'regex/regcomp.c' is in a subdirectory, Makefile.am:257: but option 'subdir-objects' is disabled Makefile.am:257: warning: source file 'regex/regexec.c' is in a subdirectory, Makefile.am:257: but option 'subdir-objects' is disabled Makefile.am:257: warning: source file 'regex/regex_internal.c' is in a subdirectory, Makefile.am:257: but option 'subdir-objects' is disabled + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/anolis/anolis-hardened-ld -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -Wl,--build-id=sha1 ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + '[' '-flto=auto -ffat-lto-objectsx' '!=' x ']' ++ find . -type f -name configure -print + for file in $(find . -type f -name configure -print) + /usr/bin/sed -r --in-place=.backup 's/^char \(\*f\) \(\) = /__attribute__ ((used)) char (*f) () = /g' ./configure + diff -u ./configure.backup ./configure + mv ./configure.backup ./configure + /usr/bin/sed -r --in-place=.backup 's/^char \(\*f\) \(\);/__attribute__ ((used)) char (*f) ();/g' ./configure + diff -u ./configure.backup ./configure + mv ./configure.backup ./configure + /usr/bin/sed -r --in-place=.backup 's/^char \$2 \(\);/__attribute__ ((used)) char \$2 ();/g' ./configure + diff -u ./configure.backup ./configure --- ./configure.backup 2023-01-17 07:27:08.062467047 +0800 +++ ./configure 2023-01-17 07:27:08.590488171 +0800 @@ -1935,7 +1935,7 @@ #ifdef __cplusplus extern "C" #endif -char $2 (); +__attribute__ ((used)) char $2 (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ + /usr/bin/sed --in-place=.backup '1{$!N;$!N};$!N;s/int x = 1;\nint y = 0;\nint z;\nint nan;/volatile int x = 1; volatile int y = 0; volatile int z, nan;/;P;D' ./configure + diff -u ./configure.backup ./configure + mv ./configure.backup ./configure + /usr/bin/sed --in-place=.backup 's#^lt_cv_sys_global_symbol_to_cdecl=.*#lt_cv_sys_global_symbol_to_cdecl="sed -n -e '\''s/^T .* \\(.*\\)$/extern int \\1();/p'\'' -e '\''s/^$symcode* .* \\(.*\\)$/extern char \\1;/p'\''"#' ./configure + diff -u ./configure.backup ./configure + mv ./configure.backup ./configure + '[' 1 = 1 ']' +++ dirname ./configure ++ find . -name config.guess -o -name config.sub + for i in $(find $(dirname ./configure) -name config.guess -o -name config.sub) ++ basename ./config.guess + '[' -f /usr/lib/rpm/anolis/config.guess ']' + /usr/bin/rm -f ./config.guess ++ basename ./config.guess + /usr/bin/cp -fv /usr/lib/rpm/anolis/config.guess ./config.guess '/usr/lib/rpm/anolis/config.guess' -> './config.guess' + for i in $(find $(dirname ./configure) -name config.guess -o -name config.sub) ++ basename ./config.sub + '[' -f /usr/lib/rpm/anolis/config.sub ']' + /usr/bin/rm -f ./config.sub ++ basename ./config.sub + /usr/bin/cp -fv /usr/lib/rpm/anolis/config.sub ./config.sub '/usr/lib/rpm/anolis/config.sub' -> './config.sub' + '[' 1 = 1 ']' + '[' x '!=' 'x-Wl,-z,now -specs=/usr/lib/rpm/anolis/anolis-hardened-ld' ']' ++ find . -name ltmain.sh + /usr/lib/rpm/anolis/fix-dlsearch-path-in-libtool . lib64 + ./configure --build=x86_64-Anolis-linux --host=x86_64-Anolis-linux --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-selinux --with-libcap-ng=yes --with-libsystemd --with-systemdsystemunitdir=/usr/lib/systemd/system --sysconfdir=/etc/smartmontools/ --with-systemdenvfile=/etc/sysconfig/smartmontools checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a race-free mkdir -p... /usr/bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking whether to enable maintainer-specific portions of Makefiles... no checking whether the C++ compiler works... yes checking for C++ compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether the compiler supports GNU C++... yes checking whether g++ accepts -g... yes checking for g++ option to enable C++11 features... none needed checking whether make supports the include directive... yes (GNU style) checking dependency style of g++... none checking for x86_64-Anolis-linux-gcc... gcc checking whether the compiler supports GNU C... yes checking whether gcc accepts -g... yes checking for gcc option to enable C11 features... none needed checking whether gcc understands -c and -o together... yes checking dependency style of gcc... none checking dependency style of gcc... none checking for x86_64-Anolis-linux-pkg-config... no checking for pkg-config... /usr/bin/pkg-config checking pkg-config is at least version 0.9.0... yes checking build system type... x86_64-Anolis-linux-gnu checking host system type... x86_64-Anolis-linux-gnu checking for x86_64-Anolis-linux-nm... no checking for nm... nm checking whether this is a build from SVN... no checking for stdio.h... yes checking for stdlib.h... yes checking for string.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for strings.h... yes checking for sys/stat.h... yes checking for sys/types.h... yes checking for unistd.h... yes checking for locale.h... yes checking for byteswap.h... yes checking for sys/sysmacros.h... yes checking for linux/compiler.h... no checking for linux/cciss_ioctl.h... yes checking for __int128... yes checking for long double with more range or precision than double... yes checking for getopt_long... yes checking for clock_gettime... yes checking for ftime... yes checking for gettimeofday... yes checking whether byte ordering is bigendian... no checking whether g++ supports __attribute__((packed))... yes checking for selinux/selinux.h... yes checking for matchpathcon in -lselinux... yes checking for cap-ng.h... yes checking for capng_clear in -lcap-ng... yes checking for systemd/sd-daemon.h... yes checking for sd_notify in -lsystemd... yes checking for sigaction... yes checking for g++ option to accept C++11... none needed checking for regcomp... yes checking whether os_linux.cpp uses new interface... yes checking whether NVMe device scanning could be safely enabled... yes checking whether _FORTIFY_SOURCE is predefined... yes checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: creating config.h config.status: executing depfiles commands checking whether make sets $(MAKE)... (cached) yes configure: ----------------------------------------------------------------------------- smartmontools-7.1 configuration: host operating system: x86_64-Anolis-linux-gnu C++ compiler: g++ C compiler: gcc preprocessor flags: C++ compiler flags: -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -W C compiler flags: -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection linker flags: -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/anolis/anolis-hardened-ld -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -Wl,--build-id=sha1 OS specific modules: os_linux.o cciss.o dev_areca.o -lselinux binary install path: /usr/sbin man page install path: /usr/share/man doc file install path: /usr/share/doc/smartmontools examples install path: /usr/share/doc/smartmontools/examplescripts drive database file: /usr/share/smartmontools/drivedb.h database update script: /usr/sbin/update-smart-drivedb database update branch: branches/RELEASE_7_0_DRIVEDB download tools: curl wget lynx svn GnuPG for verification: gpg local drive database: /etc/smartmontools/smart_drivedb.h smartd config file: /etc/smartmontools/smartd.conf smartd warning script: /etc/smartmontools/smartd_warning.sh smartd plugin path: /etc/smartmontools/smartd_warning.d PATH within scripts: /usr/local/bin:/usr/bin:/bin smartd service file: /usr/lib/systemd/system/smartd.service smartd environ file: /etc/sysconfig/smartmontools smartd save files: [disabled] smartd attribute logs: [disabled] SELinux support: yes libcap-ng support: yes systemd notify support: yes NVMe DEVICESCAN: yes ----------------------------------------------------------------------------- configure: WARNING: The default for the inclusion of NVME devices in smartd.conf 'DEVICESCAN' and 'smartctl --scan' has been changed to 'yes' on this platform. If '--without-nvme-devicescan' is still needed, please inform smartmontools-support@listi.jpberlin.de. Use option '--with-nvme-devicescan' to suppress this warning. + make 'CXXFLAGS=-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fpie' 'LDFLAGS=-pie -Wl,-z,relro,-z,now' make all-am make[1]: Entering directory '/builddir/build/BUILD/smartmontools-7.1' cat ChangeLog NEWS $(SOURCES) | $(VERSION_FROM_SVN_IDS) > svnversion.h g++ -DHAVE_CONFIG_H -I. -DBUILD_INFO='"(local build)"' -DSMARTMONTOOLS_SYSCONFDIR='"/etc/smartmontools"' -DSMARTMONTOOLS_SMARTDSCRIPTDIR='"/etc/smartmontools"' -DSMARTMONTOOLS_DRIVEDBDIR='"/usr/share/smartmontools"' -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fpie -c -o smartctl.o smartctl.cpp g++ -DHAVE_CONFIG_H -I. -DBUILD_INFO='"(local build)"' -DSMARTMONTOOLS_SYSCONFDIR='"/etc/smartmontools"' -DSMARTMONTOOLS_SMARTDSCRIPTDIR='"/etc/smartmontools"' -DSMARTMONTOOLS_DRIVEDBDIR='"/usr/share/smartmontools"' -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fpie -c -o atacmdnames.o atacmdnames.cpp g++ -DHAVE_CONFIG_H -I. -DBUILD_INFO='"(local build)"' -DSMARTMONTOOLS_SYSCONFDIR='"/etc/smartmontools"' -DSMARTMONTOOLS_SMARTDSCRIPTDIR='"/etc/smartmontools"' -DSMARTMONTOOLS_DRIVEDBDIR='"/usr/share/smartmontools"' -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fpie -c -o atacmds.o atacmds.cpp atacmds.cpp: In function 'int ata_read_identity(ata_device*, ata_identify_device*, bool, unsigned char*)': atacmds.cpp:822:46: warning: converting a packed 'ata_identify_device' pointer (alignment 1) to a 'short unsigned int' pointer (alignment 2) may result in an unaligned pointer value [-Waddress-of-packed-member] 822 | unsigned short *rawshort=(unsigned short *)buf; | ^~~ In file included from atacmds.cpp:24: atacmds.h:115:8: note: defined here 115 | struct ata_identify_device { | ^~~~~~~~~~~~~~~~~~~ g++ -DHAVE_CONFIG_H -I. -DBUILD_INFO='"(local build)"' -DSMARTMONTOOLS_SYSCONFDIR='"/etc/smartmontools"' -DSMARTMONTOOLS_SMARTDSCRIPTDIR='"/etc/smartmontools"' -DSMARTMONTOOLS_DRIVEDBDIR='"/usr/share/smartmontools"' -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fpie -c -o ataidentify.o ataidentify.cpp g++ -DHAVE_CONFIG_H -I. -DBUILD_INFO='"(local build)"' -DSMARTMONTOOLS_SYSCONFDIR='"/etc/smartmontools"' -DSMARTMONTOOLS_SMARTDSCRIPTDIR='"/etc/smartmontools"' -DSMARTMONTOOLS_DRIVEDBDIR='"/usr/share/smartmontools"' -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fpie -c -o ataprint.o ataprint.cpp g++ -DHAVE_CONFIG_H -I. -DBUILD_INFO='"(local build)"' -DSMARTMONTOOLS_SYSCONFDIR='"/etc/smartmontools"' -DSMARTMONTOOLS_SMARTDSCRIPTDIR='"/etc/smartmontools"' -DSMARTMONTOOLS_DRIVEDBDIR='"/usr/share/smartmontools"' -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fpie -c -o dev_ata_cmd_set.o dev_ata_cmd_set.cpp g++ -DHAVE_CONFIG_H -I. -DBUILD_INFO='"(local build)"' -DSMARTMONTOOLS_SYSCONFDIR='"/etc/smartmontools"' -DSMARTMONTOOLS_SMARTDSCRIPTDIR='"/etc/smartmontools"' -DSMARTMONTOOLS_DRIVEDBDIR='"/usr/share/smartmontools"' -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fpie -c -o dev_intelliprop.o dev_intelliprop.cpp g++ -DHAVE_CONFIG_H -I. -DBUILD_INFO='"(local build)"' -DSMARTMONTOOLS_SYSCONFDIR='"/etc/smartmontools"' -DSMARTMONTOOLS_SMARTDSCRIPTDIR='"/etc/smartmontools"' -DSMARTMONTOOLS_DRIVEDBDIR='"/usr/share/smartmontools"' -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fpie -c -o dev_interface.o dev_interface.cpp g++ -DHAVE_CONFIG_H -I. -DBUILD_INFO='"(local build)"' -DSMARTMONTOOLS_SYSCONFDIR='"/etc/smartmontools"' -DSMARTMONTOOLS_SMARTDSCRIPTDIR='"/etc/smartmontools"' -DSMARTMONTOOLS_DRIVEDBDIR='"/usr/share/smartmontools"' -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fpie -c -o dev_jmb39x_raid.o dev_jmb39x_raid.cpp g++ -DHAVE_CONFIG_H -I. -DBUILD_INFO='"(local build)"' -DSMARTMONTOOLS_SYSCONFDIR='"/etc/smartmontools"' -DSMARTMONTOOLS_SMARTDSCRIPTDIR='"/etc/smartmontools"' -DSMARTMONTOOLS_DRIVEDBDIR='"/usr/share/smartmontools"' -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fpie -c -o json.o json.cpp g++ -DHAVE_CONFIG_H -I. -DBUILD_INFO='"(local build)"' -DSMARTMONTOOLS_SYSCONFDIR='"/etc/smartmontools"' -DSMARTMONTOOLS_SMARTDSCRIPTDIR='"/etc/smartmontools"' -DSMARTMONTOOLS_DRIVEDBDIR='"/usr/share/smartmontools"' -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fpie -c -o knowndrives.o knowndrives.cpp g++ -DHAVE_CONFIG_H -I. -DBUILD_INFO='"(local build)"' -DSMARTMONTOOLS_SYSCONFDIR='"/etc/smartmontools"' -DSMARTMONTOOLS_SMARTDSCRIPTDIR='"/etc/smartmontools"' -DSMARTMONTOOLS_DRIVEDBDIR='"/usr/share/smartmontools"' -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fpie -c -o nvmecmds.o nvmecmds.cpp g++ -DHAVE_CONFIG_H -I. -DBUILD_INFO='"(local build)"' -DSMARTMONTOOLS_SYSCONFDIR='"/etc/smartmontools"' -DSMARTMONTOOLS_SMARTDSCRIPTDIR='"/etc/smartmontools"' -DSMARTMONTOOLS_DRIVEDBDIR='"/usr/share/smartmontools"' -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fpie -c -o nvmeprint.o nvmeprint.cpp g++ -DHAVE_CONFIG_H -I. -DBUILD_INFO='"(local build)"' -DSMARTMONTOOLS_SYSCONFDIR='"/etc/smartmontools"' -DSMARTMONTOOLS_SMARTDSCRIPTDIR='"/etc/smartmontools"' -DSMARTMONTOOLS_DRIVEDBDIR='"/usr/share/smartmontools"' -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fpie -c -o scsicmds.o scsicmds.cpp g++ -DHAVE_CONFIG_H -I. -DBUILD_INFO='"(local build)"' -DSMARTMONTOOLS_SYSCONFDIR='"/etc/smartmontools"' -DSMARTMONTOOLS_SMARTDSCRIPTDIR='"/etc/smartmontools"' -DSMARTMONTOOLS_DRIVEDBDIR='"/usr/share/smartmontools"' -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fpie -c -o scsiata.o scsiata.cpp g++ -DHAVE_CONFIG_H -I. -DBUILD_INFO='"(local build)"' -DSMARTMONTOOLS_SYSCONFDIR='"/etc/smartmontools"' -DSMARTMONTOOLS_SMARTDSCRIPTDIR='"/etc/smartmontools"' -DSMARTMONTOOLS_DRIVEDBDIR='"/usr/share/smartmontools"' -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fpie -c -o scsinvme.o scsinvme.cpp g++ -DHAVE_CONFIG_H -I. -DBUILD_INFO='"(local build)"' -DSMARTMONTOOLS_SYSCONFDIR='"/etc/smartmontools"' -DSMARTMONTOOLS_SMARTDSCRIPTDIR='"/etc/smartmontools"' -DSMARTMONTOOLS_DRIVEDBDIR='"/usr/share/smartmontools"' -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fpie -c -o scsiprint.o scsiprint.cpp g++ -DHAVE_CONFIG_H -I. -DBUILD_INFO='"(local build)"' -DSMARTMONTOOLS_SYSCONFDIR='"/etc/smartmontools"' -DSMARTMONTOOLS_SMARTDSCRIPTDIR='"/etc/smartmontools"' -DSMARTMONTOOLS_DRIVEDBDIR='"/usr/share/smartmontools"' -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fpie -c -o utility.o utility.cpp g++ -DHAVE_CONFIG_H -I. -DBUILD_INFO='"(local build)"' -DSMARTMONTOOLS_SYSCONFDIR='"/etc/smartmontools"' -DSMARTMONTOOLS_SMARTDSCRIPTDIR='"/etc/smartmontools"' -DSMARTMONTOOLS_DRIVEDBDIR='"/usr/share/smartmontools"' -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fpie -c -o os_linux.o os_linux.cpp os_linux.cpp: In function 'int os_linux::setup_3ware_nodes(const char*, const char*)': os_linux.cpp:1595:22: warning: 'security_context_t' is deprecated [-Wdeprecated-declarations] 1595 | security_context_t orig_context = NULL; | ^~~~~~~~~~~~ In file included from os_linux.cpp:72: /usr/include/selinux/selinux.h:17:15: note: declared here 17 | typedef char *security_context_t | ^~~~~~~~~~~~~~~~~~ os_linux.cpp:1596:22: warning: 'security_context_t' is deprecated [-Wdeprecated-declarations] 1596 | security_context_t node_context = NULL; | ^~~~~~~~~~~~ /usr/include/selinux/selinux.h:17:15: note: declared here 17 | typedef char *security_context_t | ^~~~~~~~~~~~~~~~~~ os_linux.cpp:1633:26: warning: 'void matchpathcon_fini()' is deprecated: Use selabel_close [-Wdeprecated-declarations] 1633 | matchpathcon_fini(); | ~~~~~~~~~~~~~~~~~^~ /usr/include/selinux/selinux.h:485:13: note: declared here 485 | extern void matchpathcon_fini(void) | ^~~~~~~~~~~~~~~~~ os_linux.cpp:1645:23: warning: 'int matchpathcon(const char*, mode_t, char**)' is deprecated: Use selabel_lookup instead [-Wdeprecated-declarations] 1645 | if (matchpathcon(nodestring, S_IRUSR | S_IWUSR, &node_context) < 0) { | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/selinux/selinux.h:502:12: note: declared here 502 | extern int matchpathcon(const char *path, | ^~~~~~~~~~~~ os_linux.cpp:1722:22: warning: 'void matchpathcon_fini()' is deprecated: Use selabel_close [-Wdeprecated-declarations] 1722 | matchpathcon_fini(); | ~~~~~~~~~~~~~~~~~^~ /usr/include/selinux/selinux.h:485:13: note: declared here 485 | extern void matchpathcon_fini(void) | ^~~~~~~~~~~~~~~~~ g++ -DHAVE_CONFIG_H -I. -DBUILD_INFO='"(local build)"' -DSMARTMONTOOLS_SYSCONFDIR='"/etc/smartmontools"' -DSMARTMONTOOLS_SMARTDSCRIPTDIR='"/etc/smartmontools"' -DSMARTMONTOOLS_DRIVEDBDIR='"/usr/share/smartmontools"' -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fpie -c -o cciss.o cciss.cpp g++ -DHAVE_CONFIG_H -I. -DBUILD_INFO='"(local build)"' -DSMARTMONTOOLS_SYSCONFDIR='"/etc/smartmontools"' -DSMARTMONTOOLS_SMARTDSCRIPTDIR='"/etc/smartmontools"' -DSMARTMONTOOLS_DRIVEDBDIR='"/usr/share/smartmontools"' -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fpie -c -o dev_areca.o dev_areca.cpp g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fpie -pie -Wl,-z,relro,-z,now -o smartctl smartctl.o atacmdnames.o atacmds.o ataidentify.o ataprint.o dev_ata_cmd_set.o dev_intelliprop.o dev_interface.o dev_jmb39x_raid.o json.o knowndrives.o nvmecmds.o nvmeprint.o scsicmds.o scsiata.o scsinvme.o scsiprint.o utility.o os_linux.o cciss.o dev_areca.o -lselinux In function 'copy', inlined from '__ct ' at /usr/include/c++/12/bits/basic_string.h:675:23, inlined from 'operator+' at /usr/include/c++/12/bits/basic_string.h:3555:43, inlined from 'getvalidarglist' at smartctl.cpp:255:56: /usr/include/c++/12/bits/char_traits.h:431:56: warning: '__builtin_memcpy' reading 63 bytes from a region of size 16 [-Wstringop-overread] 431 | return static_cast(__builtin_memcpy(__s1, __s2, __n)); | ^ smartctl.cpp: In function 'getvalidarglist': smartctl.cpp:255:52: note: at offset 16 into source object '' of size 32 255 | return std::string(get_valid_firmwarebug_args()) + ", swapid"; | ^ g++ -DHAVE_CONFIG_H -I. -DBUILD_INFO='"(local build)"' -DSMARTMONTOOLS_SYSCONFDIR='"/etc/smartmontools"' -DSMARTMONTOOLS_SMARTDSCRIPTDIR='"/etc/smartmontools"' -DSMARTMONTOOLS_DRIVEDBDIR='"/usr/share/smartmontools"' -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fpie -c -o smartd.o smartd.cpp smartd.cpp: In function 'next_scheduled_test(dev_config const&, dev_state&, bool, long)': smartd.cpp:2906:55: warning: '/' directive output may be truncated writing 1 byte into a region of size between 0 and 9 [-Wformat-truncation=] 2906 | snprintf(pattern, sizeof(pattern), "%c/%02d/%02d/%1d/%02d", | ^ smartd.cpp:2906:42: note: using the range [-2147483648, 2147483647] for directive argument 2906 | snprintf(pattern, sizeof(pattern), "%c/%02d/%02d/%1d/%02d", | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/stdio.h:906, from smartd.cpp:17: In function 'snprintf', inlined from 'next_scheduled_test(dev_config const&, dev_state&, bool, long)' at smartd.cpp:2906:15: /usr/include/bits/stdio2.h:54:35: note: '__snprintf_chk' output between 13 and 50 bytes into a destination of size 16 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ smartd.cpp: In function 'ATADeviceScan(dev_config&, dev_state&, ata_device*, std::vector > const*)': smartd.cpp:1948:32: warning: ', ' directive output may be truncated writing 2 bytes into a region of size between 0 and 8 [-Wformat-truncation=] 1948 | snprintf(wwn, sizeof(wwn), "WWN:%x-%06x-%09" PRIx64 ", ", naa, oui, unique_id); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In function 'snprintf', inlined from 'ATADeviceScan(dev_config&, dev_state&, ata_device*, std::vector > const*)' at smartd.cpp:1948:13: /usr/include/bits/stdio2.h:54:35: note: '__snprintf_chk' output between 25 and 41 bytes into a destination of size 30 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fpie -pie -Wl,-z,relro,-z,now -o smartd smartd.o atacmdnames.o atacmds.o dev_ata_cmd_set.o dev_intelliprop.o dev_interface.o dev_jmb39x_raid.o knowndrives.o nvmecmds.o scsicmds.o scsiata.o scsinvme.o utility.o os_linux.o cciss.o dev_areca.o -lcap-ng -lsystemd -lselinux /bin/sh ./config.status --file=update-smart-drivedb config.status: creating update-smart-drivedb chmod +x update-smart-drivedb /bin/sh ./config.status --file=smartd_warning.sh config.status: creating smartd_warning.sh chmod +x smartd_warning.sh $(MAN_FILTER) < ./smartd.conf.5.in > smartd.conf.5 $(MAN_FILTER) < ./smartctl.8.in > smartctl.8 $(MAN_FILTER) < ./smartd.8.in > smartd.8 $(MAN_FILTER) < ./update-smart-drivedb.8.in > update-smart-drivedb.8 $(SMARTD_SERVICE_FILTER) < ./smartd.service.in > smartd.service make[1]: Leaving directory '/builddir/build/BUILD/smartmontools-7.1' + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.nvJISE + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/smartmontools-7.1-1.0.2.an23.x86_64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/smartmontools-7.1-1.0.2.an23.x86_64 ++ dirname /builddir/build/BUILDROOT/smartmontools-7.1-1.0.2.an23.x86_64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/smartmontools-7.1-1.0.2.an23.x86_64 + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/anolis/anolis-hardened-ld -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -Wl,--build-id=sha1 ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd smartmontools-7.1 + rm -rf /builddir/build/BUILDROOT/smartmontools-7.1-1.0.2.an23.x86_64 + make DESTDIR=/builddir/build/BUILDROOT/smartmontools-7.1-1.0.2.an23.x86_64 install make[1]: Entering directory '/builddir/build/BUILD/smartmontools-7.1' /usr/bin/mkdir -p '/builddir/build/BUILDROOT/smartmontools-7.1-1.0.2.an23.x86_64/usr/sbin' /usr/bin/install -c smartctl smartd '/builddir/build/BUILDROOT/smartmontools-7.1-1.0.2.an23.x86_64/usr/sbin' /usr/bin/mkdir -p '/builddir/build/BUILDROOT/smartmontools-7.1-1.0.2.an23.x86_64/usr/sbin' /usr/bin/install -c update-smart-drivedb '/builddir/build/BUILDROOT/smartmontools-7.1-1.0.2.an23.x86_64/usr/sbin' /usr/bin/mkdir -p '/builddir/build/BUILDROOT/smartmontools-7.1-1.0.2.an23.x86_64/etc/smartmontools' /usr/bin/install -c -m 644 './smartd.conf' '/builddir/build/BUILDROOT/smartmontools-7.1-1.0.2.an23.x86_64/etc/smartmontools/smartd.conf' /usr/bin/mkdir -p '/builddir/build/BUILDROOT/smartmontools-7.1-1.0.2.an23.x86_64/etc/smartmontools/smartd_warning.d' /usr/bin/mkdir -p '/builddir/build/BUILDROOT/smartmontools-7.1-1.0.2.an23.x86_64/usr/share/doc/smartmontools' /usr/bin/install -c -m 644 AUTHORS ChangeLog ChangeLog-6.0-7.0 COPYING INSTALL NEWS README TODO smartd.conf '/builddir/build/BUILDROOT/smartmontools-7.1-1.0.2.an23.x86_64/usr/share/doc/smartmontools' /usr/bin/mkdir -p '/builddir/build/BUILDROOT/smartmontools-7.1-1.0.2.an23.x86_64/usr/share/smartmontools' /usr/bin/install -c -m 644 drivedb.h '/builddir/build/BUILDROOT/smartmontools-7.1-1.0.2.an23.x86_64/usr/share/smartmontools' /usr/bin/mkdir -p '/builddir/build/BUILDROOT/smartmontools-7.1-1.0.2.an23.x86_64/usr/share/doc/smartmontools/examplescripts' /usr/bin/install -c -m 644 examplescripts/README '/builddir/build/BUILDROOT/smartmontools-7.1-1.0.2.an23.x86_64/usr/share/doc/smartmontools/examplescripts' /usr/bin/mkdir -p '/builddir/build/BUILDROOT/smartmontools-7.1-1.0.2.an23.x86_64/usr/share/doc/smartmontools/examplescripts' /usr/bin/install -c examplescripts/Example1 examplescripts/Example2 examplescripts/Example3 examplescripts/Example4 examplescripts/Example5 examplescripts/Example6 examplescripts/Example7 examplescripts/Example8 '/builddir/build/BUILDROOT/smartmontools-7.1-1.0.2.an23.x86_64/usr/share/doc/smartmontools/examplescripts' /usr/bin/mkdir -p '/builddir/build/BUILDROOT/smartmontools-7.1-1.0.2.an23.x86_64/usr/share/man/man5' /usr/bin/install -c -m 644 smartd.conf.5 '/builddir/build/BUILDROOT/smartmontools-7.1-1.0.2.an23.x86_64/usr/share/man/man5' /usr/bin/mkdir -p '/builddir/build/BUILDROOT/smartmontools-7.1-1.0.2.an23.x86_64/usr/share/man/man8' /usr/bin/install -c -m 644 smartctl.8 smartd.8 update-smart-drivedb.8 '/builddir/build/BUILDROOT/smartmontools-7.1-1.0.2.an23.x86_64/usr/share/man/man8' /usr/bin/mkdir -p '/builddir/build/BUILDROOT/smartmontools-7.1-1.0.2.an23.x86_64/etc/smartmontools' /usr/bin/install -c smartd_warning.sh '/builddir/build/BUILDROOT/smartmontools-7.1-1.0.2.an23.x86_64/etc/smartmontools' /usr/bin/mkdir -p '/builddir/build/BUILDROOT/smartmontools-7.1-1.0.2.an23.x86_64/usr/lib/systemd/system' /usr/bin/install -c -m 644 smartd.service '/builddir/build/BUILDROOT/smartmontools-7.1-1.0.2.an23.x86_64/usr/lib/systemd/system' make[1]: Leaving directory '/builddir/build/BUILD/smartmontools-7.1' + rm -f 'examplescripts/Makefile*' + chmod a-x -R examplescripts/Example1 examplescripts/Example2 examplescripts/Example3 examplescripts/Example4 examplescripts/Example5 examplescripts/Example6 examplescripts/Example7 examplescripts/Example8 examplescripts/README + install -D -p -m 644 /builddir/build/SOURCES/smartmontools.sysconf /builddir/build/BUILDROOT/smartmontools-7.1-1.0.2.an23.x86_64/etc/sysconfig/smartmontools + install -D -p -m 755 /builddir/build/SOURCES/smartdnotify /builddir/build/BUILDROOT/smartmontools-7.1-1.0.2.an23.x86_64//usr/libexec/smartmontools/smartdnotify + mkdir -p /builddir/build/BUILDROOT/smartmontools-7.1-1.0.2.an23.x86_64//etc/smartmontools/smartd_warning.d + rm -rf /builddir/build/BUILDROOT/smartmontools-7.1-1.0.2.an23.x86_64/etc/rc.d /builddir/build/BUILDROOT/smartmontools-7.1-1.0.2.an23.x86_64/etc/init.d + rm -rf /builddir/build/BUILDROOT/smartmontools-7.1-1.0.2.an23.x86_64//usr/share/doc/smartmontools + mkdir -p /builddir/build/BUILDROOT/smartmontools-7.1-1.0.2.an23.x86_64//var/lib/smartmontools + /usr/bin/find-debuginfo -j64 --strict-build-id -m -i --build-id-seed 7.1-1.0.2.an23 --unique-debug-suffix -7.1-1.0.2.an23.x86_64 --unique-debug-src-base smartmontools-7.1-1.0.2.an23.x86_64 --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 110000000 -S debugsourcefiles.list /builddir/build/BUILD/smartmontools-7.1 extracting debug info from /builddir/build/BUILDROOT/smartmontools-7.1-1.0.2.an23.x86_64/usr/sbin/smartctl extracting debug info from /builddir/build/BUILDROOT/smartmontools-7.1-1.0.2.an23.x86_64/usr/sbin/smartd Support for debuginfod is not compiled into GDB. Support for debuginfod is not compiled into GDB. original debug info size: 6520kB, size after compression: 5268kB /usr/bin/sepdebugcrcfix: Updated 2 CRC32s, 0 CRC32s did match. 2452 blocks + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/anolis/brp-ldconfig + COMPRESS='zstd -f --rm -19 -T0' + COMPRESS_EXT=.zst + /usr/lib/rpm/brp-compress + /usr/lib/rpm/anolis/brp-strip-lto /usr/bin/strip + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/check-rpaths + /usr/lib/rpm/brp-remove-la-files + /usr/lib/rpm/anolis/brp-mangle-shebangs mangling shebang in /usr/sbin/update-smart-drivedb from /bin/sh to #!/usr/bin/sh mangling shebang in /usr/libexec/smartmontools/smartdnotify from /bin/sh to #!/usr/bin/sh mangling shebang in /etc/smartmontools/smartd_warning.sh from /bin/sh to #!/usr/bin/sh + /usr/lib/rpm/anolis/remove-info-dir + /usr/lib/rpm/anolis/relink_symlinks + /usr/lib/rpm/anolis/check-desktop-files + /usr/lib/rpm/anolis/brp-python-bytecompile '' 1 0 + /usr/lib/rpm/anolis/brp-python-hardlink Processing files: smartmontools-7.1-1.0.2.an23.x86_64 Provides: /usr/sbin/smartctl config(smartmontools) = 1:7.1-1.0.2.an23 smartmontools = 1:7.1-1.0.2.an23 smartmontools(x86-64) = 1:7.1-1.0.2.an23 Requires(interp): /bin/sh /bin/sh /bin/sh /bin/sh Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires(pre): /bin/sh Requires(post): /bin/sh systemd-units Requires(preun): /bin/sh systemd-units Requires(postun): /bin/sh systemd-units Requires: /usr/bin/sh libc.so.6()(64bit) libc.so.6(GLIBC_2.14)(64bit) libc.so.6(GLIBC_2.17)(64bit) libc.so.6(GLIBC_2.2.5)(64bit) libc.so.6(GLIBC_2.27)(64bit) libc.so.6(GLIBC_2.3)(64bit) libc.so.6(GLIBC_2.3.4)(64bit) libc.so.6(GLIBC_2.33)(64bit) libc.so.6(GLIBC_2.34)(64bit) libc.so.6(GLIBC_2.4)(64bit) libc.so.6(GLIBC_2.7)(64bit) libcap-ng.so.0()(64bit) libgcc_s.so.1()(64bit) libgcc_s.so.1(GCC_3.0)(64bit) libgcc_s.so.1(GCC_3.3.1)(64bit) libm.so.6()(64bit) libselinux.so.1()(64bit) libselinux.so.1(LIBSELINUX_1.0)(64bit) libstdc++.so.6()(64bit) libstdc++.so.6(CXXABI_1.3)(64bit) libstdc++.so.6(CXXABI_1.3.9)(64bit) libstdc++.so.6(GLIBCXX_3.4)(64bit) libstdc++.so.6(GLIBCXX_3.4.20)(64bit) libstdc++.so.6(GLIBCXX_3.4.21)(64bit) libstdc++.so.6(GLIBCXX_3.4.29)(64bit) libstdc++.so.6(GLIBCXX_3.4.30)(64bit) libsystemd.so.0()(64bit) libsystemd.so.0(LIBSYSTEMD_209)(64bit) rtld(GNU_HASH) Processing files: smartmontools-doc-7.1-1.0.2.an23.noarch Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.F5PE4R + umask 022 + cd /builddir/build/BUILD + cd smartmontools-7.1 + DOCDIR=/builddir/build/BUILDROOT/smartmontools-7.1-1.0.2.an23.x86_64/usr/share/doc/smartmontools-doc + export LC_ALL=C + LC_ALL=C + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/smartmontools-7.1-1.0.2.an23.x86_64/usr/share/doc/smartmontools-doc + cp -pr AUTHORS /builddir/build/BUILDROOT/smartmontools-7.1-1.0.2.an23.x86_64/usr/share/doc/smartmontools-doc + cp -pr ChangeLog /builddir/build/BUILDROOT/smartmontools-7.1-1.0.2.an23.x86_64/usr/share/doc/smartmontools-doc + cp -pr COPYING /builddir/build/BUILDROOT/smartmontools-7.1-1.0.2.an23.x86_64/usr/share/doc/smartmontools-doc + cp -pr INSTALL /builddir/build/BUILDROOT/smartmontools-7.1-1.0.2.an23.x86_64/usr/share/doc/smartmontools-doc + cp -pr NEWS /builddir/build/BUILDROOT/smartmontools-7.1-1.0.2.an23.x86_64/usr/share/doc/smartmontools-doc + cp -pr README /builddir/build/BUILDROOT/smartmontools-7.1-1.0.2.an23.x86_64/usr/share/doc/smartmontools-doc + cp -pr TODO /builddir/build/BUILDROOT/smartmontools-7.1-1.0.2.an23.x86_64/usr/share/doc/smartmontools-doc + cp -pr examplescripts /builddir/build/BUILDROOT/smartmontools-7.1-1.0.2.an23.x86_64/usr/share/doc/smartmontools-doc + cp -pr smartd.conf /builddir/build/BUILDROOT/smartmontools-7.1-1.0.2.an23.x86_64/usr/share/doc/smartmontools-doc + RPM_EC=0 ++ jobs -p + exit 0 Provides: smartmontools-doc = 1:7.1-1.0.2.an23 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Processing files: smartmontools-debugsource-7.1-1.0.2.an23.x86_64 Provides: smartmontools-debugsource = 1:7.1-1.0.2.an23 smartmontools-debugsource(x86-64) = 1:7.1-1.0.2.an23 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Processing files: smartmontools-debuginfo-7.1-1.0.2.an23.x86_64 Provides: debuginfo(build-id) = 6f8377d8058c6b0c9eb723fb9af17631b0175fa3 debuginfo(build-id) = d9a5ebdf14933bb1abd9c268e1143637cee8d57c smartmontools-debuginfo = 1:7.1-1.0.2.an23 smartmontools-debuginfo(x86-64) = 1:7.1-1.0.2.an23 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Recommends: smartmontools-debugsource(x86-64) = 1:7.1-1.0.2.an23 Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/smartmontools-7.1-1.0.2.an23.x86_64 Wrote: /builddir/build/RPMS/smartmontools-doc-7.1-1.0.2.an23.noarch.rpm Wrote: /builddir/build/RPMS/smartmontools-debugsource-7.1-1.0.2.an23.x86_64.rpm Wrote: /builddir/build/RPMS/smartmontools-7.1-1.0.2.an23.x86_64.rpm Wrote: /builddir/build/RPMS/smartmontools-debuginfo-7.1-1.0.2.an23.x86_64.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.vwjSAl + umask 022 + cd /builddir/build/BUILD + cd smartmontools-7.1 + rm -rf /builddir/build/BUILDROOT/smartmontools-7.1-1.0.2.an23.x86_64 + RPM_EC=0 ++ jobs -p + exit 0 Executing(rmbuild): /bin/sh -e /var/tmp/rpm-tmp.tSiYpd + umask 022 + cd /builddir/build/BUILD + rm -rf smartmontools-7.1 smartmontools-7.1.gemspec + RPM_EC=0 ++ jobs -p + exit 0 Child return code was: 0