Mock Version: 3.5 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/cacti-spine.spec'], chrootPath='/var/lib/mock/openeuler-24.03_LTS-x86_64-1732537348.111544/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=0uid=1000gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=True) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/cacti-spine.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 Wrote: /builddir/build/SRPMS/cacti-spine-1.2.28-1.src.rpm Child return code was: 0 Mock Version: 3.5 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/cacti-spine.spec'], chrootPath='/var/lib/mock/openeuler-24.03_LTS-x86_64-1732537348.111544/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=0uid=1000gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=True) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/cacti-spine.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 Wrote: /builddir/build/SRPMS/cacti-spine-1.2.28-1.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/cacti-spine.spec'], chrootPath='/var/lib/mock/openeuler-24.03_LTS-x86_64-1732537348.111544/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=0uid=1000gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=True) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/cacti-spine.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 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.8pZKzI + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf cacti-spine-1.2.28 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/cacti-spine-1.2.28.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd cacti-spine-1.2.28 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/cacti-spine-configure-c99.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.Pdqmup + umask 022 + cd /builddir/build/BUILD + cd cacti-spine-1.2.28 + autoreconf -fiv autoreconf: export WARNINGS= autoreconf: Entering directory '.' autoreconf: configure.ac: not using Gettext autoreconf: running: aclocal --force -I m4 aclocal: warning: couldn't open directory 'm4': No such file or directory autoreconf: configure.ac: tracing autoreconf: configure.ac: creating directory config autoreconf: running: libtoolize --copy --force libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, 'config'. libtoolize: copying file 'config/ltmain.sh' libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'. libtoolize: copying file 'm4/libtool.m4' libtoolize: copying file 'm4/ltoptions.m4' libtoolize: copying file 'm4/ltsugar.m4' libtoolize: copying file 'm4/ltversion.m4' libtoolize: copying file 'm4/lt~obsolete.m4' autoreconf: configure.ac: not using Intltool autoreconf: configure.ac: not using Gtkdoc autoreconf: running: aclocal --force -I m4 autoreconf: running: /usr/bin/autoconf --force configure.ac:154: warning: The macro `AC_HEADER_TIME' is obsolete. configure.ac:154: You should run autoupdate. ./lib/autoconf/headers.m4:743: AC_HEADER_TIME is expanded from... configure.ac:154: the top level configure.ac:158: warning: your code may safely assume C89 semantics that RETSIGTYPE is void. configure.ac:158: Remove this warning and the `AC_CACHE_CHECK' when you adjust the code. ./lib/autoconf/general.m4:2434: AC_DIAGNOSE is expanded from... configure.ac:158: the top level autoreconf: running: /usr/bin/autoheader --force autoreconf: running: automake --add-missing --copy --force-missing configure.ac:32: installing 'config/compile' configure.ac:28: installing 'config/config.guess' configure.ac:28: installing 'config/config.sub' configure.ac:34: installing 'config/install-sh' configure.ac:34: installing 'config/missing' Makefile.am: installing 'config/depcomp' autoreconf: Leaving directory '.' + CFLAGS='-O2 -g -grecord-gcc-switches -pipe -fstack-protector-strong -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/generic-hardened-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection ' + export CFLAGS + CXXFLAGS='-O2 -g -grecord-gcc-switches -pipe -fstack-protector-strong -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/generic-hardened-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fexceptions' + export CXXFLAGS + FFLAGS='-O2 -g -grecord-gcc-switches -pipe -fstack-protector-strong -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/generic-hardened-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fexceptions -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -g -grecord-gcc-switches -pipe -fstack-protector-strong -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/generic-hardened-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fexceptions -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/generic-hardened-ld' + export LDFLAGS + '[' 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/config.guess + '[' -f /usr/lib/rpm/openEuler/config.guess ']' + /usr/bin/rm -f ./config/config.guess ++ basename ./config/config.guess + /usr/bin/cp -fv /usr/lib/rpm/openEuler/config.guess ./config/config.guess '/usr/lib/rpm/openEuler/config.guess' -> './config/config.guess' + for i in $(find $(dirname ./configure) -name config.guess -o -name config.sub) ++ basename ./config/config.sub + '[' -f /usr/lib/rpm/openEuler/config.sub ']' + /usr/bin/rm -f ./config/config.sub ++ basename ./config/config.sub + /usr/bin/cp -fv /usr/lib/rpm/openEuler/config.sub ./config/config.sub '/usr/lib/rpm/openEuler/config.sub' -> './config/config.sub' + '[' 1 = 1 ']' + '[' x '!=' 'x-Wl,-z,now -specs=/usr/lib/rpm/generic-hardened-ld' ']' ++ find . -name ltmain.sh + for i in $(find . -name ltmain.sh) + /usr/bin/sed -i.backup -e 's~compiler_flags=$~compiler_flags="-Wl,-z,now -specs=/usr/lib/rpm/generic-hardened-ld"~' ./config/ltmain.sh + ./configure --build=x86_64-openEuler-linux-gnu --host=x86_64-openEuler-linux-gnu --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 checking build system type... x86_64-openEuler-linux-gnu checking host system type... x86_64-openEuler-linux-gnu checking for x86_64-openEuler-linux-gnu-gcc... no checking for gcc... gcc 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 gcc accepts -g... yes checking for gcc option to enable C11 features... none needed checking whether gcc understands -c and -o together... yes 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 the include directive... yes (GNU style) checking whether make supports nested variables... yes checking dependency style of gcc... none checking for gawk... (cached) gawk checking for x86_64-openEuler-linux-gnu-gcc... gcc checking whether the compiler supports GNU C... (cached) yes checking whether gcc accepts -g... (cached) yes checking for gcc option to enable C11 features... (cached) none needed checking whether gcc understands -c and -o together... (cached) yes checking how to run the C preprocessor... gcc -E checking whether ln -s works... yes checking how to print strings... printf checking for a sed that does not truncate output... /usr/bin/sed checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for fgrep... /usr/bin/grep -F checking for ld used by gcc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B checking the name lister (/usr/bin/nm -B) interface... BSD nm checking the maximum length of command line arguments... 1572864 checking how to convert x86_64-openEuler-linux-gnu file names to x86_64-openEuler-linux-gnu format... func_convert_file_noop checking how to convert x86_64-openEuler-linux-gnu file names to toolchain format... func_convert_file_noop checking for /usr/bin/ld option to reload object files... -r checking for x86_64-openEuler-linux-gnu-file... no checking for file... file checking for x86_64-openEuler-linux-gnu-objdump... no checking for objdump... objdump checking how to recognize dependent libraries... pass_all checking for x86_64-openEuler-linux-gnu-dlltool... no checking for dlltool... no checking how to associate runtime and link libraries... printf %s\n checking for x86_64-openEuler-linux-gnu-ar... no checking for ar... ar checking for archiver @FILE support... @ checking for x86_64-openEuler-linux-gnu-strip... no checking for strip... strip checking for x86_64-openEuler-linux-gnu-ranlib... no checking for ranlib... ranlib checking command to parse /usr/bin/nm -B output from gcc object... ok checking for sysroot... no checking for a working dd... /usr/bin/dd checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1 checking for x86_64-openEuler-linux-gnu-mt... no checking for mt... no checking if : is a manifest tool... 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 sys/time.h... yes checking for dlfcn.h... yes checking for objdir... .libs checking if gcc supports -fno-rtti -fno-exceptions... no checking for gcc option to produce PIC... -fPIC -DPIC checking if gcc PIC flag -fPIC -DPIC works... yes checking if gcc static flag -static works... yes checking if gcc supports -c -o file.o... yes checking if gcc supports -c -o file.o... (cached) yes checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... yes checking whether to enable -Wall... no checking for help2man... /usr/bin/help2man checking for help2man... /usr/bin/help2man checking for socket in -lsocket... no checking for floor in -lm... yes checking for dlclose in -ldl... yes checking for pthread_exit in -lpthread... yes checking for deflate in -lz... yes checking for kstat_close in -lkstat... no checking for CRYPTO_realloc in -lcrypto... yes checking for library containing clock_gettime... none required checking for sys/socket.h... yes checking for sys/select.h... yes checking for sys/wait.h... yes checking for sys/time.h... (cached) yes checking for assert.h... yes checking for ctype.h... yes checking for errno.h... yes checking for signal.h... yes checking for math.h... yes checking for malloc.h... yes checking for netdb.h... yes checking for signal.h... (cached) yes checking for stdarg.h... yes checking for stdio.h... (cached) yes checking for syslog.h... yes checking for netinet/in_systm.h... yes checking for netinet/in.h... yes checking for netinet/ip.h... yes checking for netinet/ip_icmp.h... yes checking for unsigned long long... yes checking for long long... yes checking for an ANSI C-conforming const... yes checking for size_t... yes checking whether struct tm is in sys/time.h or time.h... time.h checking return type of signal handlers... void checking for malloc... yes checking for calloc... yes checking for gettimeofday... yes checking for strerror... yes checking for strtoll... yes checking for priv.h... no checking whether we are using Solaris privileges... no checking for sys/capability.h... no checking whether we are using Linux Capabilities... no checking for mysql_init in -lmysqlclient... yes checking if Net-SNMP needs crypto support... yes checking for snmp_timeout in -lnetsnmp... yes checking for the spine results buffer size... 2048 bytes checking for the maximum simultaneous spine scripts... 20 checking for the maximum MySQL buffer size... 131072 checking whether we are using traditional popen... no checking whether to verify net-snmp library vs header versions... no checking if we can support backtracing... yes checking if we can support mysql/mariadb retry count... yes checking if we can support mysql/mariadb ssl keys... yes checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: creating config/config.h config.status: executing depfiles commands config.status: executing libtool commands + /usr/bin/make -O -j4 V=1 VERBOSE=1 gcc -DHAVE_CONFIG_H -I. -I./config -I/usr/include/net-snmp -I/usr/include/net-snmp/.. -I/usr/include/mysql -O2 -g -grecord-gcc-switches -pipe -fstack-protector-strong -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/generic-hardened-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -c -o snmp.o snmp.c In file included from snmp.c:35: snmp.c: In function 'snmp_host_init': snmp.c:359:43: warning: format '%d' expects argument of type 'int', but argument 3 has type 'size_t' {aka 'long unsigned int'} [-Wformat=] 359 | SPINE_LOG_MEDIUM(("SNMP: Using privacy protocol(len): %s(%d)", snmp_priv_protocol, session.securityPrivKeyLen)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | size_t {aka long unsigned int} spine.h:126:104: note: in definition of macro 'SPINE_LOG_MEDIUM' 126 | #define SPINE_LOG_MEDIUM(format_and_args) (void)(set.log_level >= POLLER_VERBOSITY_MEDIUM && spine_log format_and_args) | ^~~~~~~~~~~~~~~ snmp.c:359:83: note: format string is defined here 359 | SPINE_LOG_MEDIUM(("SNMP: Using privacy protocol(len): %s(%d)", snmp_priv_protocol, session.securityPrivKeyLen)); | ~^ | | | int | %ld gcc -DHAVE_CONFIG_H -I. -I./config -I/usr/include/net-snmp -I/usr/include/net-snmp/.. -I/usr/include/mysql -O2 -g -grecord-gcc-switches -pipe -fstack-protector-strong -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/generic-hardened-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -c -o sql.o sql.c sql.c: In function 'db_connect': sql.c:223:17: warning: variable 'reconnect' set but not used [-Wunused-but-set-variable] 223 | bool reconnect; | ^~~~~~~~~ gcc -DHAVE_CONFIG_H -I. -I./config -I/usr/include/net-snmp -I/usr/include/net-snmp/.. -I/usr/include/mysql -O2 -g -grecord-gcc-switches -pipe -fstack-protector-strong -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/generic-hardened-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -c -o spine.o spine.c spine.c: In function 'main': spine.c:837:21: warning: unused variable 'wait_retries' [-Wunused-variable] 837 | int wait_retries = 0; | ^~~~~~~~~~~~ spine.c:206:25: warning: variable 'until_spec' set but not used [-Wunused-but-set-variable] 206 | struct timespec until_spec; | ^~~~~~~~~~ gcc -DHAVE_CONFIG_H -I. -I./config -I/usr/include/net-snmp -I/usr/include/net-snmp/.. -I/usr/include/mysql -O2 -g -grecord-gcc-switches -pipe -fstack-protector-strong -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/generic-hardened-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -c -o locks.o locks.c gcc -DHAVE_CONFIG_H -I. -I./config -I/usr/include/net-snmp -I/usr/include/net-snmp/.. -I/usr/include/mysql -O2 -g -grecord-gcc-switches -pipe -fstack-protector-strong -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/generic-hardened-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -c -o nft_popen.o nft_popen.c gcc -DHAVE_CONFIG_H -I. -I./config -I/usr/include/net-snmp -I/usr/include/net-snmp/.. -I/usr/include/mysql -O2 -g -grecord-gcc-switches -pipe -fstack-protector-strong -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/generic-hardened-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -c -o util.o util.c util.c: In function 'read_spine_config': util.c:1043:15: warning: variable 'buffer' set but not used [-Wunused-but-set-variable] 1043 | char *buffer; | ^~~~~~ util.c: In function 'spine_log': util.c:1245:24: warning: unused variable 'now' [-Wunused-variable] 1245 | struct timeval now; | ^~~ util.c: In function 'is_numeric': util.c:1462:16: warning: variable 'local_dval' set but not used [-Wunused-but-set-variable] 1462 | double local_dval; | ^~~~~~~~~~ util.c:1461:14: warning: variable 'local_lval' set but not used [-Wunused-but-set-variable] 1461 | long local_lval; | ^~~~~~~~~~ util.c: In function 'get_cacti_version': util.c:2003:19: warning: unused variable 'i' [-Wunused-variable] 2003 | int i; | ^ util.c: In function 'config_defaults': util.c:1670:17: warning: '__builtin_strncpy' output truncated before terminating nul copying 9 bytes from a string of the same length [-Wstringop-truncation] 1670 | strncpy(dst, src, len); | ^ util.c:1670:17: warning: '__builtin_strncpy' output truncated before terminating nul copying 5 bytes from a string of the same length [-Wstringop-truncation] util.c:1670:17: warning: '__builtin_strncpy' output truncated before terminating nul copying 9 bytes from a string of the same length [-Wstringop-truncation] util.c:1670:17: warning: '__builtin_strncpy' output truncated before terminating nul copying 9 bytes from a string of the same length [-Wstringop-truncation] util.c:1670:17: warning: '__builtin_strncpy' output truncated before terminating nul copying 9 bytes from a string of the same length [-Wstringop-truncation] util.c:1670:17: warning: '__builtin_strncpy' output truncated before terminating nul copying 5 bytes from a string of the same length [-Wstringop-truncation] util.c:1670:17: warning: '__builtin_strncpy' output truncated before terminating nul copying 9 bytes from a string of the same length [-Wstringop-truncation] util.c:1670:17: warning: '__builtin_strncpy' output truncated before terminating nul copying 9 bytes from a string of the same length [-Wstringop-truncation] util.c:1670:17: warning: '__builtin_strncpy' output truncated before terminating nul copying 5 bytes from a string of the same length [-Wstringop-truncation] util.c:1670:17: warning: '__builtin_strncpy' output truncated before terminating nul copying 11 bytes from a string of the same length [-Wstringop-truncation] util.c:1670:17: warning: '__builtin_strncpy' output truncated before terminating nul copying 7 bytes from a string of the same length [-Wstringop-truncation] util.c: In function 'spine_log': util.c:1315:9: warning: '__builtin___strncat_chk' output may be truncated copying 65485 bytes from a string of length 65534 [-Wstringop-truncation] 1315 | strncat(flogmessage, ulogmessage, sizeof(flogmessage) - 50); | ^ util.c: In function 'strncopy': util.c:1670:17: warning: '__builtin_strncpy' specified bound depends on the length of the source argument [-Wstringop-truncation] 1670 | strncpy(dst, src, len); | ^ util.c:1668:16: note: length computed here 1668 | len = (strlen(src) < obuf) ? strlen(src) : obuf; | ^~~~~~~~~~~ util.c: In function 'read_spine_config': util.c:1670:17: warning: '__builtin_strncpy' specified bound depends on the length of the source argument [-Wstringop-truncation] 1670 | strncpy(dst, src, len); | ^ In function 'strncopy', inlined from 'read_spine_config' at util.c:1076:49: util.c:1668:16: note: length computed here 1668 | len = (strlen(src) < obuf) ? strlen(src) : obuf; | ^~~~~~~~~~~ util.c: In function 'read_spine_config': util.c:1670:17: warning: '__builtin_strncpy' specified bound depends on the length of the source argument [-Wstringop-truncation] 1670 | strncpy(dst, src, len); | ^ In function 'strncopy', inlined from 'read_spine_config' at util.c:1075:49: util.c:1668:16: note: length computed here 1668 | len = (strlen(src) < obuf) ? strlen(src) : obuf; | ^~~~~~~~~~~ util.c: In function 'read_spine_config': util.c:1670:17: warning: '__builtin_strncpy' specified bound depends on the length of the source argument [-Wstringop-truncation] 1670 | strncpy(dst, src, len); | ^ In function 'strncopy', inlined from 'read_spine_config' at util.c:1074:49: util.c:1668:16: note: length computed here 1668 | len = (strlen(src) < obuf) ? strlen(src) : obuf; | ^~~~~~~~~~~ util.c: In function 'read_spine_config': util.c:1670:17: warning: '__builtin_strncpy' specified bound depends on the length of the source argument [-Wstringop-truncation] 1670 | strncpy(dst, src, len); | ^ In function 'strncopy', inlined from 'read_spine_config' at util.c:1073:49: util.c:1668:16: note: length computed here 1668 | len = (strlen(src) < obuf) ? strlen(src) : obuf; | ^~~~~~~~~~~ util.c: In function 'read_spine_config': util.c:1670:17: warning: '__builtin_strncpy' output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation] 1670 | strncpy(dst, src, len); | ^ In function 'strncopy', inlined from 'read_spine_config' at util.c:1072:49: util.c:1668:16: note: length computed here 1668 | len = (strlen(src) < obuf) ? strlen(src) : obuf; | ^~~~~~~~~~~ util.c: In function 'read_spine_config': util.c:1670:17: warning: '__builtin_strncpy' output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation] 1670 | strncpy(dst, src, len); | ^ In function 'strncopy', inlined from 'read_spine_config' at util.c:1071:49: util.c:1668:16: note: length computed here 1668 | len = (strlen(src) < obuf) ? strlen(src) : obuf; | ^~~~~~~~~~~ util.c: In function 'read_spine_config': util.c:1670:17: warning: '__builtin_strncpy' output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation] 1670 | strncpy(dst, src, len); | ^ In function 'strncopy', inlined from 'read_spine_config' at util.c:1070:49: util.c:1668:16: note: length computed here 1668 | len = (strlen(src) < obuf) ? strlen(src) : obuf; | ^~~~~~~~~~~ util.c: In function 'read_spine_config': util.c:1670:17: warning: '__builtin_strncpy' specified bound depends on the length of the source argument [-Wstringop-truncation] 1670 | strncpy(dst, src, len); | ^ In function 'strncopy', inlined from 'read_spine_config' at util.c:1067:49: util.c:1668:16: note: length computed here 1668 | len = (strlen(src) < obuf) ? strlen(src) : obuf; | ^~~~~~~~~~~ util.c: In function 'read_spine_config': util.c:1670:17: warning: '__builtin_strncpy' specified bound depends on the length of the source argument [-Wstringop-truncation] 1670 | strncpy(dst, src, len); | ^ In function 'strncopy', inlined from 'read_spine_config' at util.c:1066:49: util.c:1668:16: note: length computed here 1668 | len = (strlen(src) < obuf) ? strlen(src) : obuf; | ^~~~~~~~~~~ util.c: In function 'read_spine_config': util.c:1670:17: warning: '__builtin_strncpy' specified bound depends on the length of the source argument [-Wstringop-truncation] 1670 | strncpy(dst, src, len); | ^ In function 'strncopy', inlined from 'read_spine_config' at util.c:1065:49: util.c:1668:16: note: length computed here 1668 | len = (strlen(src) < obuf) ? strlen(src) : obuf; | ^~~~~~~~~~~ util.c: In function 'read_spine_config': util.c:1670:17: warning: '__builtin_strncpy' specified bound depends on the length of the source argument [-Wstringop-truncation] 1670 | strncpy(dst, src, len); | ^ In function 'strncopy', inlined from 'read_spine_config' at util.c:1064:49: util.c:1668:16: note: length computed here 1668 | len = (strlen(src) < obuf) ? strlen(src) : obuf; | ^~~~~~~~~~~ util.c: In function 'read_config_options': util.c:712:25: warning: '%s' directive writing up to 65534 bytes into a region of size 182 [-Wformat-overflow=] 712 | sqlp += sprintf(sqlp, " AND host_id IN(%s)", set.host_id_list); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/stdio.h:964, from common.h:93, from util.c:34: In function 'sprintf', inlined from 'read_config_options' at util.c:712:11: /usr/include/bits/stdio2.h:30:10: note: '__builtin___sprintf_chk' output between 18 and 65552 bytes into a destination of size 198 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 31 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ gcc -DHAVE_CONFIG_H -I. -I./config -I/usr/include/net-snmp -I/usr/include/net-snmp/.. -I/usr/include/mysql -O2 -g -grecord-gcc-switches -pipe -fstack-protector-strong -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/generic-hardened-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -c -o php.o php.c php.c: In function 'php_close': php.c:511:17: warning: variable 'bytes' set but not used [-Wunused-but-set-variable] 511 | ssize_t bytes; | ^~~~~ php.c: In function 'php_init': php.c:369:69: warning: '%d' directive output may be truncated writing between 1 and 11 bytes into a region of size 7 [-Wformat-truncation=] 369 | snprintf(poller_id, TINY_BUFSIZE, "--poller=%d", set.poller_id); | ^~ php.c:369:59: note: directive argument in the range [-2147483648, 1] 369 | snprintf(poller_id, TINY_BUFSIZE, "--poller=%d", set.poller_id); | ^~~~~~~~~~~~~ In file included from /usr/include/stdio.h:964, from common.h:93, from php.c:34: In function 'snprintf', inlined from 'php_init' at php.c:369:4: /usr/include/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output between 11 and 21 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 ()); | ~~~~~~~~~~~~~~~~~ php.c: In function 'php_init': php.c:353:69: warning: '%d' directive output may be truncated writing between 1 and 10 bytes into a region of size 7 [-Wformat-truncation=] 353 | snprintf(poller_id, TINY_BUFSIZE, "--poller=%d", set.poller_id); | ^~ php.c:353:59: note: directive argument in the range [2, 2147483647] 353 | snprintf(poller_id, TINY_BUFSIZE, "--poller=%d", set.poller_id); | ^~~~~~~~~~~~~ In function 'snprintf', inlined from 'php_init' at php.c:353:4: /usr/include/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output between 11 and 20 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 ()); | ~~~~~~~~~~~~~~~~~ gcc -DHAVE_CONFIG_H -I. -I./config -I/usr/include/net-snmp -I/usr/include/net-snmp/.. -I/usr/include/mysql -O2 -g -grecord-gcc-switches -pipe -fstack-protector-strong -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/generic-hardened-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -c -o keywords.o keywords.c gcc -DHAVE_CONFIG_H -I. -I./config -I/usr/include/net-snmp -I/usr/include/net-snmp/.. -I/usr/include/mysql -O2 -g -grecord-gcc-switches -pipe -fstack-protector-strong -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/generic-hardened-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -c -o error.o error.c gcc -DHAVE_CONFIG_H -I. -I./config -I/usr/include/net-snmp -I/usr/include/net-snmp/.. -I/usr/include/mysql -O2 -g -grecord-gcc-switches -pipe -fstack-protector-strong -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/generic-hardened-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -c -o ping.o ping.c ping.c: In function 'get_namebyhost': ping.c:1010:33: warning: '__builtin_strncpy' specified bound 256 equals destination size [-Wstringop-truncation] 1010 | strncpy(name->hostname, hostname, sizeof(name->hostname)); | ^ ping.c:1047:25: warning: '__builtin_strncpy' specified bound 256 equals destination size [-Wstringop-truncation] 1047 | strncpy(name->hostname, token, sizeof(name->hostname)); | ^ gcc -DHAVE_CONFIG_H -I. -I./config -I/usr/include/net-snmp -I/usr/include/net-snmp/.. -I/usr/include/mysql -O2 -g -grecord-gcc-switches -pipe -fstack-protector-strong -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/generic-hardened-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -c -o poller.o poller.c poller.c: In function 'child': poller.c:83:34: warning: unused variable 'details' [-Wunused-variable] 83 | extern poller_thread_t** details; | ^~~~~~~ poller.c: In function 'poll_host': poller.c:949:99: warning: zero-length gnu_printf format string [-Wformat-zero-length] 949 | snprintf(sysUptime, BUFSIZE, ""); | ^~ poller.c:167:14: warning: unused variable 'error_len' [-Wunused-variable] 167 | int error_len = 0; | ^~~~~~~~~ poller.c: In function 'exec_poll': poller.c:2236:15: warning: variable 'token' set but not used [-Wunused-but-set-variable] 2236 | char *token; | ^~~~~ poller.c:2191:13: warning: variable 'close_fd' set but not used [-Wunused-but-set-variable] 2191 | int close_fd = TRUE; | ^~~~~~~~ poller.c: In function 'poll_host': poller.c:868:33: warning: 'remote_cnn' may be used uninitialized [-Wmaybe-uninitialized] 868 | db_release_connection(REMOTE, remote_cnn->id); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ poller.c:213:17: note: 'remote_cnn' was declared here 213 | pool_t *remote_cnn; | ^~~~~~~~~~ /bin/sh ./libtool --tag=CC --mode=link gcc -I/usr/include/net-snmp -I/usr/include/net-snmp/.. -I/usr/include/mysql -O2 -g -grecord-gcc-switches -pipe -fstack-protector-strong -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/generic-hardened-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -L/usr/lib64 -L/usr/lib64/mysql -Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/generic-hardened-ld -o spine sql.o spine.o util.o snmp.o locks.o poller.o nft_popen.o php.o ping.o keywords.o error.o -lnetsnmp -lmysqlclient -lm -ldl -lmysqlclient -lm -ldl -lcrypto -lz -lpthread -ldl -lm -lpthread -lssl libtool: link: gcc -I/usr/include/net-snmp -I/usr/include/net-snmp/.. -I/usr/include/mysql -O2 -g -grecord-gcc-switches -pipe -fstack-protector-strong -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/generic-hardened-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -Wl,-z -Wl,relro -Wl,-z -Wl,now -specs=/usr/lib/rpm/generic-hardened-ld -o spine sql.o spine.o util.o snmp.o locks.o poller.o nft_popen.o php.o ping.o keywords.o error.o -L/usr/lib64 -L/usr/lib64/mysql -lnetsnmp -lmysqlclient -lcrypto -lz -ldl -lm -lpthread -lssl /usr/bin/help2man --output=spine.1 --name='Data Collector for Cacti' --no-info --version-option='--version' ./spine + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.rmFcBK + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/cacti-spine-1.2.28-1.x86_64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/cacti-spine-1.2.28-1.x86_64 ++ dirname /builddir/build/BUILDROOT/cacti-spine-1.2.28-1.x86_64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/cacti-spine-1.2.28-1.x86_64 + cd cacti-spine-1.2.28 + /usr/bin/make install DESTDIR=/builddir/build/BUILDROOT/cacti-spine-1.2.28-1.x86_64 'INSTALL=/usr/bin/install -p' make[1]: Entering directory '/builddir/build/BUILD/cacti-spine-1.2.28' /usr/bin/mkdir -p '/builddir/build/BUILDROOT/cacti-spine-1.2.28-1.x86_64/usr/bin' /bin/sh ./libtool --mode=install /usr/bin/install -p spine '/builddir/build/BUILDROOT/cacti-spine-1.2.28-1.x86_64/usr/bin' libtool: install: /usr/bin/install -p spine /builddir/build/BUILDROOT/cacti-spine-1.2.28-1.x86_64/usr/bin/spine /usr/bin/mkdir -p '/builddir/build/BUILDROOT/cacti-spine-1.2.28-1.x86_64/etc' /usr/bin/install -p -m 644 spine.conf.dist '/builddir/build/BUILDROOT/cacti-spine-1.2.28-1.x86_64/etc' /usr/bin/mkdir -p '/builddir/build/BUILDROOT/cacti-spine-1.2.28-1.x86_64/usr/share/man/man1' /usr/bin/install -p -m 644 spine.1 '/builddir/build/BUILDROOT/cacti-spine-1.2.28-1.x86_64/usr/share/man/man1' make[1]: Leaving directory '/builddir/build/BUILD/cacti-spine-1.2.28' + /usr/bin/mv /builddir/build/BUILDROOT/cacti-spine-1.2.28-1.x86_64//etc/spine.conf.dist /builddir/build/BUILDROOT/cacti-spine-1.2.28-1.x86_64//etc/spine.conf + /usr/bin/find-debuginfo -j4 --strict-build-id -i --build-id-seed 1.2.28-1 --unique-debug-suffix -1.2.28-1.x86_64 --unique-debug-src-base cacti-spine-1.2.28-1.x86_64 -S debugsourcefiles.list /builddir/build/BUILD/cacti-spine-1.2.28 explicitly decompress any DWARF compressed ELF sections in /builddir/build/BUILDROOT/cacti-spine-1.2.28-1.x86_64/usr/bin/spine extracting debug info from /builddir/build/BUILDROOT/cacti-spine-1.2.28-1.x86_64/usr/bin/spine 779 blocks + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/brp-ldconfig + /usr/lib/rpm/brp-compress + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/brp-python-bytecompile /usr/bin/python 1 1 + /usr/lib/rpm/brp-python-hardlink Processing files: cacti-spine-1.2.28-1.x86_64 Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.7SbYLr + umask 022 + cd /builddir/build/BUILD + cd cacti-spine-1.2.28 + DOCDIR=/builddir/build/BUILDROOT/cacti-spine-1.2.28-1.x86_64/usr/share/doc/cacti-spine + export LC_ALL=C + LC_ALL=C + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/cacti-spine-1.2.28-1.x86_64/usr/share/doc/cacti-spine + cp -pr CHANGELOG /builddir/build/BUILDROOT/cacti-spine-1.2.28-1.x86_64/usr/share/doc/cacti-spine + cp -pr README.md /builddir/build/BUILDROOT/cacti-spine-1.2.28-1.x86_64/usr/share/doc/cacti-spine + RPM_EC=0 ++ jobs -p + exit 0 Executing(%license): /bin/sh -e /var/tmp/rpm-tmp.0VZHff + umask 022 + cd /builddir/build/BUILD + cd cacti-spine-1.2.28 + LICENSEDIR=/builddir/build/BUILDROOT/cacti-spine-1.2.28-1.x86_64/usr/share/licenses/cacti-spine + export LC_ALL=C + LC_ALL=C + export LICENSEDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/cacti-spine-1.2.28-1.x86_64/usr/share/licenses/cacti-spine + cp -pr LICENSE /builddir/build/BUILDROOT/cacti-spine-1.2.28-1.x86_64/usr/share/licenses/cacti-spine + RPM_EC=0 ++ jobs -p + exit 0 Provides: cacti-spine = 1.2.28-1 cacti-spine(x86-64) = 1.2.28-1 config(cacti-spine) = 1.2.28-1 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: libc.so.6()(64bit) libc.so.6(GLIBC_2.15)(64bit) libc.so.6(GLIBC_2.2.5)(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) libcrypto.so.3()(64bit) libm.so.6()(64bit) libm.so.6(GLIBC_2.29)(64bit) libmysqlclient.so.21()(64bit) libmysqlclient.so.21(libmysqlclient_21.0)(64bit) libnetsnmp.so.40()(64bit) libssl.so.3()(64bit) libz.so.1()(64bit) rtld(GNU_HASH) Processing files: cacti-spine-debuginfo-1.2.28-1.x86_64 Provides: cacti-spine-debuginfo = 1.2.28-1 cacti-spine-debuginfo(x86-64) = 1.2.28-1 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Recommends: cacti-spine-debugsource(x86-64) = 1.2.28-1 Processing files: cacti-spine-debugsource-1.2.28-1.x86_64 Provides: cacti-spine-debugsource = 1.2.28-1 cacti-spine-debugsource(x86-64) = 1.2.28-1 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/cacti-spine-1.2.28-1.x86_64 Wrote: /builddir/build/RPMS/cacti-spine-1.2.28-1.x86_64.rpm Wrote: /builddir/build/RPMS/cacti-spine-debugsource-1.2.28-1.x86_64.rpm Wrote: /builddir/build/RPMS/cacti-spine-debuginfo-1.2.28-1.x86_64.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.X3Rvly + umask 022 + cd /builddir/build/BUILD + cd cacti-spine-1.2.28 + /usr/bin/rm -rf /builddir/build/BUILDROOT/cacti-spine-1.2.28-1.x86_64 + RPM_EC=0 ++ jobs -p + exit 0 Executing(rmbuild): /bin/sh -e /var/tmp/rpm-tmp.ShnoDn + umask 022 + cd /builddir/build/BUILD + rm -rf cacti-spine-1.2.28 cacti-spine-1.2.28.gemspec + RPM_EC=0 ++ jobs -p + exit 0 Child return code was: 0