D: [iurt_root_command] chroot Installing /home/iurt/rpmbuild/SRPMS/uptimed-0.4.3-1.mga8.src.rpm Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /home/iurt/rpmbuild/tmp/rpm-tmp.NWIgPj + umask 022 + cd /home/iurt/rpmbuild/BUILD + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/iurt/rpmbuild/BUILD + rm -rf uptimed-0.4.3 + /usr/bin/gzip -dc /home/iurt/rpmbuild/SOURCES/uptimed-0.4.3.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd uptimed-0.4.3 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /home/iurt/rpmbuild/tmp/rpm-tmp.jsAWKm + umask 022 + cd /home/iurt/rpmbuild/BUILD + cd uptimed-0.4.3 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + ./autogen.sh aclocal... configure.ac:4: warning: 'AM_CONFIG_HEADER': this macro is obsolete. configure.ac:4: You should use the 'AC_CONFIG_HEADERS' macro instead. ./lib/autoconf/general.m4:2435: AC_DIAGNOSE is expanded from... /usr/share/aclocal-1.16/obsolete.m4:11: AM_CONFIG_HEADER is expanded from... configure.ac:4: the top level configure.ac:6: warning: The macro `AM_PROG_LIBTOOL' is obsolete. configure.ac:6: You should run autoupdate. /usr/share/aclocal/libtool.m4:100: AM_PROG_LIBTOOL is expanded from... configure.ac:6: the top level configure.ac:18: warning: AC_OUTPUT should be used without arguments. configure.ac:18: You should run autoupdate. configure.ac:65: warning: AC_OUTPUT should be used without arguments. configure.ac:65: You should run autoupdate. autoheader... libtoolize... using libtoolize automake... configure.ac:4: warning: 'AM_CONFIG_HEADER': this macro is obsolete. configure.ac:4: You should use the 'AC_CONFIG_HEADERS' macro instead. ./lib/autoconf/general.m4:2435: AC_DIAGNOSE is expanded from... aclocal.m4:10111: AM_CONFIG_HEADER is expanded from... configure.ac:4: the top level configure.ac:6: warning: The macro `AM_PROG_LIBTOOL' is obsolete. configure.ac:6: You should run autoupdate. aclocal.m4:122: AM_PROG_LIBTOOL is expanded from... configure.ac:6: the top level configure.ac:18: warning: AC_OUTPUT should be used without arguments. configure.ac:18: You should run autoupdate. configure.ac:65: warning: AC_OUTPUT should be used without arguments. configure.ac:65: You should run autoupdate. configure.ac:5: installing './compile' configure.ac:6: installing './config.guess' configure.ac:6: installing './config.sub' configure.ac:7: installing './install-sh' configure.ac:7: installing './missing' libuptimed/Makefile.am: installing './depcomp' autoconf... configure.ac:4: warning: 'AM_CONFIG_HEADER': this macro is obsolete. configure.ac:4: You should use the 'AC_CONFIG_HEADERS' macro instead. ./lib/autoconf/general.m4:2435: AC_DIAGNOSE is expanded from... aclocal.m4:10111: AM_CONFIG_HEADER is expanded from... configure.ac:4: the top level configure.ac:6: warning: The macro `AM_PROG_LIBTOOL' is obsolete. configure.ac:6: You should run autoupdate. aclocal.m4:122: AM_PROG_LIBTOOL is expanded from... configure.ac:6: the top level configure.ac:18: warning: AC_OUTPUT should be used without arguments. configure.ac:18: You should run autoupdate. configure.ac:65: warning: AC_OUTPUT should be used without arguments. configure.ac:65: You should run autoupdate. ready to configure + CFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables' + export CFLAGS + CXXFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables' + export CXXFLAGS + FFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables ' + export FFLAGS + FCFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables ' + export FCFLAGS + LDFLAGS=' -Wl,--as-needed -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags' + export LDFLAGS + CONFIGURE_TOP=. + '[' 1 = 1 ']' ++ find . -name config.guess -o -name config.sub + for i in $(find ${CONFIGURE_TOP} -name config.guess -o -name config.sub) ++ basename ./config.guess + '[' -f /usr/lib/rpm/mageia/config.guess ']' ++ basename ./config.guess + cp -af /usr/lib/rpm/mageia/config.guess ./config.guess + for i in $(find ${CONFIGURE_TOP} -name config.guess -o -name config.sub) ++ basename ./config.sub + '[' -f /usr/lib/rpm/mageia/config.sub ']' ++ basename ./config.sub + cp -af /usr/lib/rpm/mageia/config.sub ./config.sub + /usr/lib/rpm/mageia/force-as-needed-for-shared-lib-in-libtool Forcing -Wl,--as-needed in configure/libtool to workaround libtool bug (cf http://lists.gnu.org/archive/html/libtool-patches/2004-06/msg00002.html) + /usr/lib/rpm/mageia/fix-libtool-ltmain-from-overlinking Fixing libtool's ltmain.sh to prevent overlinking (cf http://wiki.mandriva.com/en/Overlinking) + /usr/lib/rpm/mageia/fix-libtool-from-moving-options-after-libs . + /usr/lib/rpm/mageia/fix-dlsearch-path-in-libtool-for-multilib . lib64 + ./configure --host=x86_64-mageia-linux-gnu --build=x86_64-mageia-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 --disable-static checking for x86_64-mageia-linux-gnu-gcc... x86_64-mageia-linux-gnu-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 x86_64-mageia-linux-gnu-gcc accepts -g... yes checking for x86_64-mageia-linux-gnu-gcc option to enable C11 features... none needed checking whether x86_64-mageia-linux-gnu-gcc understands -c and -o together... yes checking build system type... x86_64-mageia-linux-gnu checking host system type... x86_64-mageia-linux-gnu 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 x86_64-mageia-linux-gnu-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/x86_64-mageia-linux-gnu-nm -p checking the name lister (/usr/bin/x86_64-mageia-linux-gnu-nm -p) interface... BSD nm checking whether ln -s works... yes checking the maximum length of command line arguments... 1572864 checking how to convert x86_64-mageia-linux-gnu file names to x86_64-mageia-linux-gnu format... func_convert_file_noop checking how to convert x86_64-mageia-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-mageia-linux-gnu-objdump... no checking for objdump... objdump checking how to recognize dependent libraries... pass_all checking for x86_64-mageia-linux-gnu-dlltool... no checking for dlltool... no checking how to associate runtime and link libraries... printf %s\n checking for x86_64-mageia-linux-gnu-ar... x86_64-mageia-linux-gnu-ar checking for archiver @FILE support... @ checking for x86_64-mageia-linux-gnu-strip... no checking for strip... strip checking for x86_64-mageia-linux-gnu-ranlib... x86_64-mageia-linux-gnu-ranlib checking for gawk... gawk checking command to parse /usr/bin/x86_64-mageia-linux-gnu-nm -p output from x86_64-mageia-linux-gnu-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-mageia-linux-gnu-mt... no checking for mt... no checking if : is a manifest tool... no checking for sys/types.h... yes checking for sys/stat.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for dlfcn.h... yes checking for objdir... .libs checking if x86_64-mageia-linux-gnu-gcc supports -fno-rtti -fno-exceptions... no checking for x86_64-mageia-linux-gnu-gcc option to produce PIC... -fPIC -DPIC checking if x86_64-mageia-linux-gnu-gcc PIC flag -fPIC -DPIC works... yes checking if x86_64-mageia-linux-gnu-gcc static flag -static works... no checking if x86_64-mageia-linux-gnu-gcc supports -c -o file.o... yes checking if x86_64-mageia-linux-gnu-gcc supports -c -o file.o... (cached) yes checking whether the x86_64-mageia-linux-gnu-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... no 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 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 x86_64-mageia-linux-gnu-gcc... none checking for x86_64-mageia-linux-gnu-pkg-config... /usr/bin/x86_64-mageia-linux-gnu-pkg-config checking pkg-config is at least version 0.9.0... yes checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating etc/uptimed.service config.status: creating config.h config.status: executing libtool commands config.status: executing depfiles commands checking for getopt... yes checking for getopt.h... yes checking for getdtablesize... yes checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating etc/uptimed.service config.status: creating Makefile config.status: creating libuptimed/Makefile config.status: creating src/Makefile config.status: creating man/Makefile config.status: creating etc/Makefile config.status: creating uptimed.spec config.status: creating config.h config.status: executing libtool commands config.status: executing depfiles commands --- Now type "gmake" to build Uptimed --- --- If gmake is not working, try "make" --- + /usr/bin/make -O -j8 V=1 VERBOSE=1 /usr/bin/make all-recursive Making all in libuptimed make[2]: Entering directory '/home/iurt/rpmbuild/BUILD/uptimed-0.4.3/libuptimed' /bin/sh ../libtool --tag=CC --mode=compile x86_64-mageia-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c -o milestone.lo milestone.c libtool: compile: x86_64-mageia-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c milestone.c -fPIC -DPIC -o .libs/milestone.o make[2]: Leaving directory '/home/iurt/rpmbuild/BUILD/uptimed-0.4.3/libuptimed' make[2]: Entering directory '/home/iurt/rpmbuild/BUILD/uptimed-0.4.3/libuptimed' /bin/sh ../libtool --tag=CC --mode=compile x86_64-mageia-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c -o misc.lo misc.c libtool: compile: x86_64-mageia-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c misc.c -fPIC -DPIC -o .libs/misc.o misc.c: In function 'cat': misc.c:61:2: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 61 | fgets(str, sizeof(str), f); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ misc.c:65:3: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 65 | fgets(str, sizeof(str), f); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/home/iurt/rpmbuild/BUILD/uptimed-0.4.3/libuptimed' make[2]: Entering directory '/home/iurt/rpmbuild/BUILD/uptimed-0.4.3/libuptimed' /bin/sh ../libtool --tag=CC --mode=compile x86_64-mageia-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c -o urec.lo urec.c libtool: compile: x86_64-mageia-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c urec.c -fPIC -DPIC -o .libs/urec.o urec.c: In function 'read_records': urec.c:277:2: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 277 | fgets(str, sizeof(str), f); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ urec.c:293:3: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 293 | fgets(str, sizeof(str), f); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ urec.c: In function 'readbootid': urec.c:427:3: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 427 | fgets(str, sizeof(str), f); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ urec.c:433:4: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 433 | fgets(str, sizeof(str), f); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/home/iurt/rpmbuild/BUILD/uptimed-0.4.3/libuptimed' make[2]: Entering directory '/home/iurt/rpmbuild/BUILD/uptimed-0.4.3/libuptimed' /bin/sh ../libtool --tag=CC --mode=link x86_64-mageia-linux-gnu-gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -version-info 0:0:0 -Wl,--as-needed -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags -o libuptimed.la -rpath /usr/lib64 misc.lo milestone.lo urec.lo libtool: link: x86_64-mageia-linux-gnu-gcc -shared -Wl,--as-needed -fPIC -DPIC .libs/misc.o .libs/milestone.o .libs/urec.o -O2 -g -fstack-protector -Wl,--as-needed -Wl,-z -Wl,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags -Wl,-soname -Wl,libuptimed.so.0 -o .libs/libuptimed.so.0.0.0 libtool: link: (cd ".libs" && rm -f "libuptimed.so.0" && ln -s "libuptimed.so.0.0.0" "libuptimed.so.0") libtool: link: (cd ".libs" && rm -f "libuptimed.so" && ln -s "libuptimed.so.0.0.0" "libuptimed.so") libtool: link: ( cd ".libs" && rm -f "libuptimed.la" && ln -s "../libuptimed.la" "libuptimed.la" ) make[2]: Leaving directory '/home/iurt/rpmbuild/BUILD/uptimed-0.4.3/libuptimed' Making all in src make[2]: Entering directory '/home/iurt/rpmbuild/BUILD/uptimed-0.4.3/src' x86_64-mageia-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I../libuptimed -DSD_DAEMON_DISABLE_MQ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -DFILE_CONFIG=\"/etc/uptimed.conf\" -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c -o uprecords.o uprecords.c uprecords.c: In function 'read_config': uprecords.c:275:2: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 275 | fgets(str, sizeof(str), f); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ uprecords.c:285:3: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 285 | fgets(str, sizeof(str), f); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ uprecords.c: In function 'read_config_cgi': uprecords.c:298:2: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 298 | fgets(str, sizeof(str), f); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ uprecords.c:319:3: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 319 | fgets(str, sizeof(str), f); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/home/iurt/rpmbuild/BUILD/uptimed-0.4.3/src' make[2]: Entering directory '/home/iurt/rpmbuild/BUILD/uptimed-0.4.3/src' x86_64-mageia-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I../libuptimed -DSD_DAEMON_DISABLE_MQ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -DFILE_CONFIG=\"/etc/uptimed.conf\" -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c -o sd-daemon.o sd-daemon.c make[2]: Leaving directory '/home/iurt/rpmbuild/BUILD/uptimed-0.4.3/src' make[2]: Entering directory '/home/iurt/rpmbuild/BUILD/uptimed-0.4.3/src' x86_64-mageia-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I../libuptimed -DSD_DAEMON_DISABLE_MQ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -DFILE_CONFIG=\"/etc/uptimed.conf\" -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c -o uptimed.o uptimed.c uptimed.c: In function 'main': uptimed.c:25:23: warning: format '%d' expects argument of type 'int', but argument 3 has type 'time_t' {aka 'long int'} [-Wformat=] 25 | #define SYSLOG_PREFIX "" | ^~ uptimed.c:87:20: note: in expansion of macro 'SYSLOG_PREFIX' 87 | syslog(LOG_INFO, SYSLOG_PREFIX "created bootid: %d", readbootid()); | ^~~~~~~~~~~~~ uptimed.c:87:52: note: format string is defined here 87 | syslog(LOG_INFO, SYSLOG_PREFIX "created bootid: %d", readbootid()); | ~^ | | | int | %ld uptimed.c: In function 'bg': uptimed.c:221:2: warning: ignoring return value of 'chdir' declared with attribute 'warn_unused_result' [-Wunused-result] 221 | chdir("/"); | ^~~~~~~~~~ uptimed.c: In function 'read_config': uptimed.c:273:2: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 273 | fgets(str, sizeof(str), f); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ uptimed.c:313:3: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 313 | fgets(str, sizeof(str), f); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ uptimed.c: In function 'mail': uptimed.c:471:2: warning: ignoring return value of 'system' declared with attribute 'warn_unused_result' [-Wunused-result] 471 | system(cmd); | ^~~~~~~~~~~ uptimed.c:449:47: warning: '%s' directive output may be truncated writing up to 255 bytes into a region of size 241 [-Wformat-truncation=] 449 | snprintf(buf, sizeof(buf)-1, "The uptime of %s has reached a milestone:\n\t%s (%s)\n", hostname, time2uptime(milestone->time), milestone->desc); | ^~ ~~~~~~~~ In file included from /usr/include/stdio.h:867, from uptimed.h:19, from uptimed.c:19: /usr/include/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 46 or more bytes (assuming 557) into a destination of size 255 67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 68 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ uptimed.c:460:48: warning: '%s' directive output may be truncated writing up to 255 bytes into a region of size 241 [-Wformat-truncation=] 460 | snprintf(buf, sizeof(buf)-1, "The uptime of %s moved up to position %d:\n\t%s\n", hostname, position, time2uptime(u_current->utime)); | ^~ ~~~~~~~~ uptimed.c:460:33: note: directive argument in the range [2, 2147483647] 460 | snprintf(buf, sizeof(buf)-1, "The uptime of %s moved up to position %d:\n\t%s\n", hostname, position, time2uptime(u_current->utime)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/stdio.h:867, from uptimed.h:19, from uptimed.c:19: /usr/include/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 42 or more bytes (assuming 306) into a destination of size 255 67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 68 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ uptimed.c:458:65: warning: '%s' directive output may be truncated writing up to 255 bytes into a region of size 224 [-Wformat-truncation=] 458 | snprintf(buf, sizeof(buf)-1, "The uptime is a new record for %s:\n\t%s\n", hostname, time2uptime(u_current->utime)); | ^~ ~~~~~~~~ In file included from /usr/include/stdio.h:867, from uptimed.h:19, from uptimed.c:19: /usr/include/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 36 or more bytes (assuming 291) into a destination of size 255 67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 68 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/home/iurt/rpmbuild/BUILD/uptimed-0.4.3/src' make[2]: Entering directory '/home/iurt/rpmbuild/BUILD/uptimed-0.4.3/src' /bin/sh ../libtool --tag=CC --mode=link x86_64-mageia-linux-gnu-gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -DFILE_CONFIG=\"/etc/uptimed.conf\" -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -Wl,--as-needed -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags -o uprecords uprecords.o ../libuptimed/libuptimed.la libtool: link: x86_64-mageia-linux-gnu-gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -DFILE_CONFIG=\"/etc/uptimed.conf\" -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -Wl,--as-needed -Wl,-z -Wl,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags -o .libs/uprecords uprecords.o ../libuptimed/.libs/libuptimed.so make[2]: Leaving directory '/home/iurt/rpmbuild/BUILD/uptimed-0.4.3/src' make[2]: Entering directory '/home/iurt/rpmbuild/BUILD/uptimed-0.4.3/src' /bin/sh ../libtool --tag=CC --mode=link x86_64-mageia-linux-gnu-gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -DFILE_CONFIG=\"/etc/uptimed.conf\" -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -Wl,--as-needed -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags -o uptimed uptimed.o sd-daemon.o ../libuptimed/libuptimed.la libtool: link: x86_64-mageia-linux-gnu-gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -DFILE_CONFIG=\"/etc/uptimed.conf\" -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -Wl,--as-needed -Wl,-z -Wl,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags -o .libs/uptimed uptimed.o sd-daemon.o ../libuptimed/.libs/libuptimed.so make[2]: Leaving directory '/home/iurt/rpmbuild/BUILD/uptimed-0.4.3/src' Making all in man make[2]: Nothing to be done for 'all'. Making all in etc make[2]: Nothing to be done for 'all'. + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /home/iurt/rpmbuild/tmp/rpm-tmp.lDyJ9i + umask 022 + cd /home/iurt/rpmbuild/BUILD + '[' 1 -eq 1 ']' + '[' /home/iurt/rpmbuild/BUILDROOT/uptimed-0.4.3-1.mga8.x86_64 '!=' / ']' + rm -rf /home/iurt/rpmbuild/BUILDROOT/uptimed-0.4.3-1.mga8.x86_64 ++ dirname /home/iurt/rpmbuild/BUILDROOT/uptimed-0.4.3-1.mga8.x86_64 + mkdir -p /home/iurt/rpmbuild/BUILDROOT + mkdir /home/iurt/rpmbuild/BUILDROOT/uptimed-0.4.3-1.mga8.x86_64 + cd uptimed-0.4.3 + '[' 1 -eq 1 ']' + /usr/bin/make install DESTDIR=/home/iurt/rpmbuild/BUILDROOT/uptimed-0.4.3-1.mga8.x86_64 'INSTALL=/usr/bin/install -p' Making install in libuptimed make[1]: Entering directory '/home/iurt/rpmbuild/BUILD/uptimed-0.4.3/libuptimed' make[2]: Entering directory '/home/iurt/rpmbuild/BUILD/uptimed-0.4.3/libuptimed' /usr/bin/mkdir -p '/home/iurt/rpmbuild/BUILDROOT/uptimed-0.4.3-1.mga8.x86_64/usr/lib64' /bin/sh ../libtool --mode=install /usr/bin/install -p libuptimed.la '/home/iurt/rpmbuild/BUILDROOT/uptimed-0.4.3-1.mga8.x86_64/usr/lib64' libtool: install: /usr/bin/install -p .libs/libuptimed.so.0.0.0 /home/iurt/rpmbuild/BUILDROOT/uptimed-0.4.3-1.mga8.x86_64/usr/lib64/libuptimed.so.0.0.0 libtool: install: (cd /home/iurt/rpmbuild/BUILDROOT/uptimed-0.4.3-1.mga8.x86_64/usr/lib64 && { ln -s -f libuptimed.so.0.0.0 libuptimed.so.0 || { rm -f libuptimed.so.0 && ln -s libuptimed.so.0.0.0 libuptimed.so.0; }; }) libtool: install: (cd /home/iurt/rpmbuild/BUILDROOT/uptimed-0.4.3-1.mga8.x86_64/usr/lib64 && { ln -s -f libuptimed.so.0.0.0 libuptimed.so || { rm -f libuptimed.so && ln -s libuptimed.so.0.0.0 libuptimed.so; }; }) libtool: install: /usr/bin/install -p .libs/libuptimed.lai /home/iurt/rpmbuild/BUILDROOT/uptimed-0.4.3-1.mga8.x86_64/usr/lib64/libuptimed.la libtool: warning: remember to run 'libtool --finish /usr/lib64' make[2]: Nothing to be done for 'install-data-am'. make[2]: Leaving directory '/home/iurt/rpmbuild/BUILD/uptimed-0.4.3/libuptimed' make[1]: Leaving directory '/home/iurt/rpmbuild/BUILD/uptimed-0.4.3/libuptimed' Making install in src make[1]: Entering directory '/home/iurt/rpmbuild/BUILD/uptimed-0.4.3/src' make[2]: Entering directory '/home/iurt/rpmbuild/BUILD/uptimed-0.4.3/src' /usr/bin/mkdir -p '/home/iurt/rpmbuild/BUILDROOT/uptimed-0.4.3-1.mga8.x86_64/usr/bin' /bin/sh ../libtool --mode=install /usr/bin/install -p uprecords '/home/iurt/rpmbuild/BUILDROOT/uptimed-0.4.3-1.mga8.x86_64/usr/bin' libtool: warning: '../libuptimed/libuptimed.la' has not been installed in '/usr/lib64' libtool: install: /usr/bin/install -p .libs/uprecords /home/iurt/rpmbuild/BUILDROOT/uptimed-0.4.3-1.mga8.x86_64/usr/bin/uprecords /usr/bin/mkdir -p '/home/iurt/rpmbuild/BUILDROOT/uptimed-0.4.3-1.mga8.x86_64/usr/sbin' /bin/sh ../libtool --mode=install /usr/bin/install -p uptimed '/home/iurt/rpmbuild/BUILDROOT/uptimed-0.4.3-1.mga8.x86_64/usr/sbin' libtool: warning: '../libuptimed/libuptimed.la' has not been installed in '/usr/lib64' libtool: install: /usr/bin/install -p .libs/uptimed /home/iurt/rpmbuild/BUILDROOT/uptimed-0.4.3-1.mga8.x86_64/usr/sbin/uptimed make[2]: Nothing to be done for 'install-data-am'. make[2]: Leaving directory '/home/iurt/rpmbuild/BUILD/uptimed-0.4.3/src' make[1]: Leaving directory '/home/iurt/rpmbuild/BUILD/uptimed-0.4.3/src' Making install in man make[1]: Entering directory '/home/iurt/rpmbuild/BUILD/uptimed-0.4.3/man' make[2]: Entering directory '/home/iurt/rpmbuild/BUILD/uptimed-0.4.3/man' make[2]: Nothing to be done for 'install-exec-am'. /usr/bin/mkdir -p '/home/iurt/rpmbuild/BUILDROOT/uptimed-0.4.3-1.mga8.x86_64/usr/share/man/man1' /usr/bin/install -p -m 644 uprecords.1 '/home/iurt/rpmbuild/BUILDROOT/uptimed-0.4.3-1.mga8.x86_64/usr/share/man/man1' /usr/bin/mkdir -p '/home/iurt/rpmbuild/BUILDROOT/uptimed-0.4.3-1.mga8.x86_64/usr/share/man/man8' /usr/bin/install -p -m 644 uptimed.8 '/home/iurt/rpmbuild/BUILDROOT/uptimed-0.4.3-1.mga8.x86_64/usr/share/man/man8' make[2]: Leaving directory '/home/iurt/rpmbuild/BUILD/uptimed-0.4.3/man' make[1]: Leaving directory '/home/iurt/rpmbuild/BUILD/uptimed-0.4.3/man' Making install in etc make[1]: Entering directory '/home/iurt/rpmbuild/BUILD/uptimed-0.4.3/etc' make[2]: Entering directory '/home/iurt/rpmbuild/BUILD/uptimed-0.4.3/etc' /usr/bin/mkdir -p '/home/iurt/rpmbuild/BUILDROOT/uptimed-0.4.3-1.mga8.x86_64/etc' /usr/bin/install -p -m 644 uptimed.conf-dist '/home/iurt/rpmbuild/BUILDROOT/uptimed-0.4.3-1.mga8.x86_64/etc' /usr/bin/mkdir -p '/home/iurt/rpmbuild/BUILDROOT/uptimed-0.4.3-1.mga8.x86_64/usr/lib/systemd/system' /usr/bin/install -p -m 644 uptimed.service '/home/iurt/rpmbuild/BUILDROOT/uptimed-0.4.3-1.mga8.x86_64/usr/lib/systemd/system' make[2]: Leaving directory '/home/iurt/rpmbuild/BUILD/uptimed-0.4.3/etc' make[1]: Leaving directory '/home/iurt/rpmbuild/BUILD/uptimed-0.4.3/etc' make[1]: Entering directory '/home/iurt/rpmbuild/BUILD/uptimed-0.4.3' make[2]: Entering directory '/home/iurt/rpmbuild/BUILD/uptimed-0.4.3' make[2]: Nothing to be done for 'install-exec-am'. /usr/bin/install -p -d /home/iurt/rpmbuild/BUILDROOT/uptimed-0.4.3-1.mga8.x86_64/var/spool/uptimed make[2]: Leaving directory '/home/iurt/rpmbuild/BUILD/uptimed-0.4.3' make[1]: Leaving directory '/home/iurt/rpmbuild/BUILD/uptimed-0.4.3' + find /home/iurt/rpmbuild/BUILDROOT/uptimed-0.4.3-1.mga8.x86_64 -name '*.la' -delete + mkdir -p /home/iurt/rpmbuild/BUILDROOT/uptimed-0.4.3-1.mga8.x86_64/var/spool/uptimed + install -m755 etc/uptimed.service -D /home/iurt/rpmbuild/BUILDROOT/uptimed-0.4.3-1.mga8.x86_64/usr/lib/systemd/system/uptimed.service + mv /home/iurt/rpmbuild/BUILDROOT/uptimed-0.4.3-1.mga8.x86_64/etc/uptimed.conf-dist /home/iurt/rpmbuild/BUILDROOT/uptimed-0.4.3-1.mga8.x86_64/etc/uptimed.conf + /usr/lib/rpm/find-debuginfo.sh -j96 --strict-build-id -m -i --build-id-seed 0.4.3-1.mga8 --unique-debug-suffix -0.4.3-1.mga8.x86_64 --unique-debug-src-base uptimed-0.4.3-1.mga8.x86_64 --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 110000000 -S debugsourcefiles.list /home/iurt/rpmbuild/BUILD/uptimed-0.4.3 explicitly decompress any DWARF compressed ELF sections in /home/iurt/rpmbuild/BUILDROOT/uptimed-0.4.3-1.mga8.x86_64/usr/bin/uprecords explicitly decompress any DWARF compressed ELF sections in /home/iurt/rpmbuild/BUILDROOT/uptimed-0.4.3-1.mga8.x86_64/usr/lib64/libuptimed.so.0.0.0 extracting debug info from /home/iurt/rpmbuild/BUILDROOT/uptimed-0.4.3-1.mga8.x86_64/usr/bin/uprecords extracting debug info from /home/iurt/rpmbuild/BUILDROOT/uptimed-0.4.3-1.mga8.x86_64/usr/lib64/libuptimed.so.0.0.0 explicitly decompress any DWARF compressed ELF sections in /home/iurt/rpmbuild/BUILDROOT/uptimed-0.4.3-1.mga8.x86_64/usr/sbin/uptimed extracting debug info from /home/iurt/rpmbuild/BUILDROOT/uptimed-0.4.3-1.mga8.x86_64/usr/sbin/uptimed original debug info size: 184kB, size after compression: 188kB /usr/lib/rpm/sepdebugcrcfix: Updated 3 CRC32s, 0 CRC32s did match. 142 blocks + /usr/lib/rpm/check-buildroot + '[' -n '' ']' + /usr/share/spec-helper/clean_files + '[' -n '' ']' + /usr/share/spec-helper/compress_files .xz + '[' -n '' ']' + /usr/share/spec-helper/relink_symlinks + '[' -n '' ']' + /usr/share/spec-helper/clean_perl + '[' -n '' ']' + /usr/share/spec-helper/lib_symlinks + '[' -n '' ']' + /usr/share/spec-helper/gprintify + '[' -n '' ']' + /usr/share/spec-helper/fix_mo + '[' -n '' ']' + /usr/share/spec-helper/fix_pamd + '[' -n '' ']' + /usr/share/spec-helper/remove_info_dir + '[' -n '' ']' + /usr/share/spec-helper/fix_eol + '[' -n '' ']' + /usr/share/spec-helper/check_desktop_files + '[' -n '' ']' + /usr/share/spec-helper/check_elf_files + /usr/lib/rpm/brp-python-bytecompile /usr/bin/python3 1 1 + /usr/lib/rpm/brp-python-hardlink + /usr/lib/rpm/redhat/brp-mangle-shebangs *** WARNING: ./usr/lib/systemd/system/uptimed.service is executable but has no shebang, removing executable bit Processing files: uptimed-0.4.3-1.mga8.x86_64 Executing(%doc): /bin/sh -e /home/iurt/rpmbuild/tmp/rpm-tmp.Ro6Krl + umask 022 + cd /home/iurt/rpmbuild/BUILD + cd uptimed-0.4.3 + DOCDIR=/home/iurt/rpmbuild/BUILDROOT/uptimed-0.4.3-1.mga8.x86_64/usr/share/doc/uptimed + export LC_ALL=C + LC_ALL=C + export DOCDIR + /usr/bin/mkdir -p /home/iurt/rpmbuild/BUILDROOT/uptimed-0.4.3-1.mga8.x86_64/usr/share/doc/uptimed + cp -pr AUTHORS /home/iurt/rpmbuild/BUILDROOT/uptimed-0.4.3-1.mga8.x86_64/usr/share/doc/uptimed + cp -pr CREDITS /home/iurt/rpmbuild/BUILDROOT/uptimed-0.4.3-1.mga8.x86_64/usr/share/doc/uptimed + cp -pr ChangeLog /home/iurt/rpmbuild/BUILDROOT/uptimed-0.4.3-1.mga8.x86_64/usr/share/doc/uptimed + cp -pr README.md /home/iurt/rpmbuild/BUILDROOT/uptimed-0.4.3-1.mga8.x86_64/usr/share/doc/uptimed + cp -pr TODO /home/iurt/rpmbuild/BUILDROOT/uptimed-0.4.3-1.mga8.x86_64/usr/share/doc/uptimed + cp -pr sample-cgi/ /home/iurt/rpmbuild/BUILDROOT/uptimed-0.4.3-1.mga8.x86_64/usr/share/doc/uptimed + RPM_EC=0 ++ jobs -p + exit 0 Provides: config(uptimed) = 0.4.3-1.mga8 uptimed = 0.4.3-1.mga8 uptimed(x86-64) = 0.4.3-1.mga8 Requires(interp): /bin/sh Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires(post): /bin/sh Requires: libc.so.6()(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.4)(64bit) libc.so.6(GLIBC_2.7)(64bit) libc.so.6(GLIBC_2.8)(64bit) libuptimed.so.0()(64bit) Processing files: lib64uptimed0-0.4.3-1.mga8.x86_64 Provides: lib64uptimed0 = 0.4.3-1.mga8 lib64uptimed0(x86-64) = 0.4.3-1.mga8 libuptimed.so.0()(64bit) 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.17)(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.4)(64bit) libc.so.6(GLIBC_2.7)(64bit) Processing files: lib64uptimed-devel-0.4.3-1.mga8.x86_64 Provides: devel(libuptimed(64bit)) lib64uptimed-devel = 0.4.3-1.mga8 lib64uptimed-devel(x86-64) = 0.4.3-1.mga8 libuptimed-devel = 0.4.3-1.mga8 uptimed-devel = 0.4.3-1.mga8 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Processing files: uptimed-debugsource-0.4.3-1.mga8.x86_64 Provides: uptimed-debugsource = 0.4.3-1.mga8 uptimed-debugsource(x86-64) = 0.4.3-1.mga8 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Processing files: uptimed-debuginfo-0.4.3-1.mga8.x86_64 Provides: debuginfo(build-id) = 793b3cbb602b7a358be6d178b5beb67bea611c71 debuginfo(build-id) = 8566f59175c85f2dd6fa667ddd10359c849903dd uptimed-debuginfo = 0.4.3-1.mga8 uptimed-debuginfo(x86-64) = 0.4.3-1.mga8 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Recommends: uptimed-debugsource(x86-64) = 0.4.3-1.mga8 Processing files: lib64uptimed0-debuginfo-0.4.3-1.mga8.x86_64 Provides: debuginfo(build-id) = 65349e621f3cfbefc732547346f159c27fc284ef lib64uptimed0-debuginfo = 0.4.3-1.mga8 lib64uptimed0-debuginfo(x86-64) = 0.4.3-1.mga8 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Recommends: uptimed-debugsource(x86-64) = 0.4.3-1.mga8 Checking for unpackaged file(s): /usr/lib/rpm/check-files /home/iurt/rpmbuild/BUILDROOT/uptimed-0.4.3-1.mga8.x86_64 Wrote: /home/iurt/rpmbuild/RPMS/x86_64/lib64uptimed-devel-0.4.3-1.mga8.x86_64.rpm Wrote: /home/iurt/rpmbuild/RPMS/x86_64/lib64uptimed0-0.4.3-1.mga8.x86_64.rpm Wrote: /home/iurt/rpmbuild/RPMS/x86_64/lib64uptimed0-debuginfo-0.4.3-1.mga8.x86_64.rpm Wrote: /home/iurt/rpmbuild/RPMS/x86_64/uptimed-0.4.3-1.mga8.x86_64.rpm Wrote: /home/iurt/rpmbuild/RPMS/x86_64/uptimed-debugsource-0.4.3-1.mga8.x86_64.rpm Wrote: /home/iurt/rpmbuild/RPMS/x86_64/uptimed-debuginfo-0.4.3-1.mga8.x86_64.rpm Executing(%clean): /bin/sh -e /home/iurt/rpmbuild/tmp/rpm-tmp.VtqvXl + umask 022 + cd /home/iurt/rpmbuild/BUILD + cd uptimed-0.4.3 + /usr/bin/rm -rf /home/iurt/rpmbuild/BUILDROOT/uptimed-0.4.3-1.mga8.x86_64 + RPM_EC=0 ++ jobs -p + exit 0 Executing(--clean): /bin/sh -e /home/iurt/rpmbuild/tmp/rpm-tmp.fW2DTl + umask 022 + cd /home/iurt/rpmbuild/BUILD + rm -rf uptimed-0.4.3 + RPM_EC=0 ++ jobs -p + exit 0 D: [iurt_root_command] Success!