D: [iurt_root_command] chroot Building target platforms: x86_64 Building for target x86_64 sh: line 4: [: -j8: integer expression expected Installing /home/pterjan/rpmbuild/SRPMS/whowatch-1.8.6-5.mga10.src.rpm Executing(%mkbuilddir): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.FRXxXD sh: line 4: [: -j8: integer expression expected Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.Mjz8gT + umask 022 + cd /home/pterjan/rpmbuild/BUILD/whowatch-1.8.6-build + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD/whowatch-1.8.6-build + rm -rf whowatch-1.8.6 + /usr/lib/rpm/rpmuncompress -x /home/pterjan/rpmbuild/SOURCES/whowatch-1.8.6.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd whowatch-1.8.6 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/whowatch-1.8.6-ncurses-tinfo.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + RPM_EC=0 ++ jobs -p + exit 0 sh: line 4: [: -j8: integer expression expected Executing(%build): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.TQb3ee + umask 022 + cd /home/pterjan/rpmbuild/BUILD/whowatch-1.8.6-build + CFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full' + export CFLAGS + CXXFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full' + export CXXFLAGS + FFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full ' + export FFLAGS + FCFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-z,now -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd whowatch-1.8.6 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + autoreconf -vfi autoreconf: export WARNINGS= autoreconf: Entering directory '.' autoreconf: configure.ac: not using Gettext autoreconf: running: aclocal --force autoreconf: configure.ac: tracing autoreconf: configure.ac: not using Libtool autoreconf: configure.ac: not using Intltool autoreconf: configure.ac: not using Gtkdoc autoreconf: running: /usr/bin/autoconf --force configure.ac:6: warning: The macro 'AC_CONFIG_HEADER' is obsolete. configure.ac:6: You should run autoupdate. ./lib/autoconf/status.m4:719: AC_CONFIG_HEADER is expanded from... configure.ac:6: the top level configure.ac:30: warning: The macro 'AC_HEADER_STDC' is obsolete. configure.ac:30: You should run autoupdate. ./lib/autoconf/headers.m4:663: AC_HEADER_STDC is expanded from... configure.ac:30: the top level configure.ac:48: warning: The macro 'AC_HEADER_TIME' is obsolete. configure.ac:48: You should run autoupdate. ./lib/autoconf/headers.m4:702: AC_HEADER_TIME is expanded from... configure.ac:48: the top level configure.ac:79: warning: The macro 'AC_PROG_GCC_TRADITIONAL' is obsolete. configure.ac:79: You should run autoupdate. ./lib/autoconf/c.m4:1676: AC_PROG_GCC_TRADITIONAL is expanded from... configure.ac:79: the top level autoreconf: running: /usr/bin/autoheader --force autoreconf: running: automake --add-missing --copy --force-missing configure.ac:80: installing './config.guess' configure.ac:80: installing './config.sub' autoreconf: Leaving directory '.' + CFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full' + export CFLAGS + CXXFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full' + export CXXFLAGS + FFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full ' + export FFLAGS + FCFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-z,now -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + 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/drop-ld-no-undefined-for-shared-lib-modules-in-libtool + /usr/lib/rpm/mageia/fix-libtool-ltmain-from-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 checking for a BSD-compatible install... /usr/bin/install -c checking whether sleep supports fractional seconds... yes checking filesystem timestamp resolution... 0.01 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 xargs -n works... yes checking for x86_64-mageia-linux-gnu-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 whether make supports the include directive... yes (GNU style) checking dependency style of gcc... none checking whether make sets $(MAKE)... (cached) yes checking for kvm_openfiles in -lkvm... no checking for scrollok in -lncurses... yes checking for dirent.h that defines DIR... yes checking for library containing opendir... none required 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 grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for sys/wait.h that is POSIX.1 compatible... yes checking for fcntl.h... yes checking for sys/ioctl.h... yes checking for sys/time.h... (cached) yes checking for unistd.h... (cached) yes checking for curses.h... yes checking for kvm.h... no checking for stdint.h... (cached) yes checking for asm/param.h... yes checking for arpa/inet.h... yes checking for netinet/in.h... yes checking for sys/param.h... yes checking for termios.h... yes checking for utmp.h... yes checking for an ANSI C-conforming const... yes checking for inline... inline checking for pid_t... yes checking for size_t... yes checking for struct stat.st_rdev... yes checking whether utmp has USER_PROCESS type... yes checking whether utmp has DEAD_PROCESS type... yes checking whether utmp struct has ut_pid member... yes checking whether utmp struct has ut_name member... yes checking build system type... x86_64-mageia-linux-gnu checking host system type... x86_64-mageia-linux-gnu checking for GNU libc compatible malloc... yes checking for select... yes checking for getloadavg... yes checking for bzero... yes checking for gettimeofday... yes checking for inet_ntoa... yes checking for isascii... yes checking for memset... yes checking for regcomp... yes checking for strchr... yes checking for strncasecmp... yes checking for strrchr... yes checking for sysconf... yes checking whether select() modifies the time value... no checking whether sysctl() can be used... no checking for struct kinfo_proc.kp_proc... no checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: creating src/Makefile config.status: creating src/config.h config.status: executing depfiles commands + /usr/bin/make -O -j48 V=1 VERBOSE=1 Making all in src /usr/bin/make all-am make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/whowatch-1.8.6-build/whowatch-1.8.6/src' gcc -DHAVE_CONFIG_H -I. -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c -o proctree.o proctree.c In file included from proctree.c:20: proctree.h:22:5: error: conflicting types for 'update_tree'; have 'int(void)' 22 | int update_tree(); | ^~~~~~~~~~~ proctree.h:21:5: note: previous declaration of 'update_tree' with type 'int(void (*)(void *))' 21 | int update_tree(void del(void*)); | ^~~~~~~~~~~ make[2]: *** [Makefile:429: proctree.o] Error 1 make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/whowatch-1.8.6-build/whowatch-1.8.6/src' make[2]: *** Waiting for unfinished jobs.... make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/whowatch-1.8.6-build/whowatch-1.8.6/src' gcc -DHAVE_CONFIG_H -I. -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c -o procinfo.o procinfo.c In file included from procinfo.c:9: proctree.h:21:5: error: conflicting types for 'update_tree'; have 'int(void (*)(void *))' 21 | int update_tree(void del(void*)); | ^~~~~~~~~~~ In file included from procinfo.c:8: whowatch.h:167:5: note: previous declaration of 'update_tree' with type 'int(void)' 167 | int update_tree(); | ^~~~~~~~~~~ make[2]: *** [Makefile:429: procinfo.o] Error 1 make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/whowatch-1.8.6-build/whowatch-1.8.6/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/whowatch-1.8.6-build/whowatch-1.8.6/src' gcc -DHAVE_CONFIG_H -I. -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c -o whowatch.o whowatch.c whowatch.c: In function 'set_sig': whowatch.c:239:26: error: passing argument 2 of 'signal' from incompatible pointer type [-Wincompatible-pointer-types] 239 | signal(SIGWINCH, winch_handler); | ^~~~~~~~~~~~~ | | | void (*)(void) In file included from /usr/include/sys/wait.h:36, from whowatch.c:2: /usr/include/signal.h:88:57: note: expected '__sighandler_t' {aka 'void (*)(int)'} but argument is of type 'void (*)(void)' 88 | extern __sighandler_t signal (int __sig, __sighandler_t __handler) | ~~~~~~~~~~~~~~~^~~~~~~~~ whowatch.c:225:13: note: 'winch_handler' declared here 225 | static void winch_handler() | ^~~~~~~~~~~~~ /usr/include/signal.h:72:16: note: '__sighandler_t' declared here 72 | typedef void (*__sighandler_t) (int); | ^~~~~~~~~~~~~~ make[2]: *** [Makefile:429: whowatch.o] Error 1 make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/whowatch-1.8.6-build/whowatch-1.8.6/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/whowatch-1.8.6-build/whowatch-1.8.6/src' gcc -DHAVE_CONFIG_H -I. -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c -o plist.o plist.c In file included from plist.c:2: proctree.h:21:5: error: conflicting types for 'update_tree'; have 'int(void (*)(void *))' 21 | int update_tree(void del(void*)); | ^~~~~~~~~~~ In file included from plist.c:1: whowatch.h:167:5: note: previous declaration of 'update_tree' with type 'int(void)' 167 | int update_tree(); | ^~~~~~~~~~~ plist.c: In function 'pmsgh': plist.c:289:67: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 289 | return (int *)(intptr_t)(getprocbyname(w, (int)d)); | ^ make[2]: *** [Makefile:429: plist.o] Error 1 make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/whowatch-1.8.6-build/whowatch-1.8.6/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/whowatch-1.8.6-build/whowatch-1.8.6/src' gcc -DHAVE_CONFIG_H -I. -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c -o user_plugin.o user_plugin.c make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/whowatch-1.8.6-build/whowatch-1.8.6/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/whowatch-1.8.6-build/whowatch-1.8.6/src' gcc -DHAVE_CONFIG_H -I. -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c -o owner.o owner.c make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/whowatch-1.8.6-build/whowatch-1.8.6/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/whowatch-1.8.6-build/whowatch-1.8.6/src' gcc -DHAVE_CONFIG_H -I. -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c -o pluglib.o pluglib.c make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/whowatch-1.8.6-build/whowatch-1.8.6/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/whowatch-1.8.6-build/whowatch-1.8.6/src' gcc -DHAVE_CONFIG_H -I. -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c -o block.o block.c make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/whowatch-1.8.6-build/whowatch-1.8.6/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/whowatch-1.8.6-build/whowatch-1.8.6/src' gcc -DHAVE_CONFIG_H -I. -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c -o exti.o exti.c make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/whowatch-1.8.6-build/whowatch-1.8.6/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/whowatch-1.8.6-build/whowatch-1.8.6/src' gcc -DHAVE_CONFIG_H -I. -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c -o wdgts.o wdgts.c wdgts.c: In function 'do_search': wdgts.c:28:41: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 28 | ret = wmsg_send(w, MSND_SEARCH, (void *)type); | ^ make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/whowatch-1.8.6-build/whowatch-1.8.6/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/whowatch-1.8.6-build/whowatch-1.8.6/src' gcc -DHAVE_CONFIG_H -I. -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c -o kbd.o kbd.c make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/whowatch-1.8.6-build/whowatch-1.8.6/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/whowatch-1.8.6-build/whowatch-1.8.6/src' gcc -DHAVE_CONFIG_H -I. -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c -o ulist.o ulist.c ulist.c: In function 'umsgh': ulist.c:290:73: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 290 | return (void *)(intptr_t)user_search(w, (u32)d); | ^ make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/whowatch-1.8.6-build/whowatch-1.8.6/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/whowatch-1.8.6-build/whowatch-1.8.6/src' gcc -DHAVE_CONFIG_H -I. -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c -o proc_plugin.o proc_plugin.c proc_plugin.c: In function 'open_fds': proc_plugin.c:291:56: warning: '%s' directive output may be truncated writing up to 255 bytes into a region of size between 11 and 21 [-Wformat-truncation=] 291 | snprintf(buf, sizeof buf, "/proc/%d/fd/%s", pid, dn->d_name); | ^~ In file included from /usr/include/stdio.h:970, from whowatch.h:1, from proc_plugin.c:11: In function 'snprintf', inlined from 'open_fds' at proc_plugin.c:291:3: /usr/include/bits/stdio2.h:68:10: note: '__builtin___snprintf_chk' output between 12 and 277 bytes into a destination of size 32 68 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 69 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 70 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/whowatch-1.8.6-build/whowatch-1.8.6/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/whowatch-1.8.6-build/whowatch-1.8.6/src' gcc -DHAVE_CONFIG_H -I. -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c -o screen.o screen.c make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/whowatch-1.8.6-build/whowatch-1.8.6/src' make[1]: *** [Makefile:302: all] Error 2 make: *** [Makefile:430: all-recursive] Error 1 error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.TQb3ee (%build) RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.TQb3ee (%build) I: [iurt_root_command] ERROR: chroot