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/slsnif-0.4.4-17.mga10.src.rpm Executing(%mkbuilddir): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.IedUJ8 sh: line 4: [: -j8: integer expression expected Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.Gme9lc + umask 022 + cd /home/pterjan/rpmbuild/BUILD/slsnif-0.4.4-build + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD/slsnif-0.4.4-build + rm -rf slsnif-0.4.4 + /usr/lib/rpm/rpmuncompress -x /home/pterjan/rpmbuild/SOURCES/slsnif-0.4.4.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd slsnif-0.4.4 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + 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.HjYs38 + umask 022 + cd /home/pterjan/rpmbuild/BUILD/slsnif-0.4.4-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 slsnif-0.4.4 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + 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 Modifying ltmain.sh underlinking for plugins (cf http://wiki.mandriva.com/en/Underlinking) + /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 checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for gawk... gawk checking whether make sets $(MAKE)... yes checking for style of include used by make... fgrep: warning: fgrep is obsolescent; using grep -F GNU checking for x86_64-mageia-linux-gnu-gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking dependency style of gcc... none checking for strerror in -lcposix... no checking for x86_64-mageia-linux-gnu-gcc... (cached) gcc checking whether we are using the GNU C compiler... (cached) yes checking whether gcc accepts -g... (cached) yes checking for gcc option to accept ANSI C... (cached) none needed checking dependency style of gcc... (cached) none checking for a BSD-compatible install... /usr/bin/install -c checking whether make sets $(MAKE)... (cached) yes checking how to run the C preprocessor... gcc -E checking for egrep... grep -E checking for ANSI C header files... no checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking fcntl.h usability... yes checking fcntl.h presence... yes checking for fcntl.h... yes checking for unistd.h... (cached) yes checking getopt.h usability... yes checking getopt.h presence... yes checking for getopt.h... yes checking time.h usability... yes checking time.h presence... yes checking for time.h... yes checking linux/kdev_t.h usability... yes checking linux/kdev_t.h presence... yes checking for linux/kdev_t.h... yes checking linux/major.h usability... yes checking linux/major.h presence... yes checking for linux/major.h... yes checking sys/timeb.h usability... yes checking sys/timeb.h presence... yes checking for sys/timeb.h... yes checking for pid_t... yes checking return type of signal handlers... int checking for select... yes checking for strdup... yes checking for getopt_long... yes checking for time... yes checking for ctime... yes checking for ftime... yes checking for getpt... yes checking for grantpt... yes checking for unlockpt... yes checking for ptsname... yes checking sys/select.h usability... yes checking sys/select.h presence... yes checking for sys/select.h... yes checking sys/socket.h usability... yes checking sys/socket.h presence... yes checking for sys/socket.h... yes checking types of arguments for select... int,fd_set *,struct timeval * configure: creating ./config.status config.status: creating Makefile config.status: creating src/Makefile config.status: creating config.h config.status: executing depfiles commands + /usr/bin/make -O -j48 V=1 VERBOSE=1 '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' /usr/bin/make all-recursive Making all in src make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/slsnif-0.4.4-build/slsnif-0.4.4/src' gcc -DHAVE_CONFIG_H -I. -I. -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 `test -f 'rcfile.c' || echo './'`rcfile.c In file included from rcfile.c:23: rcfile.h:45:21: error: initialization of 'void (*)(void)' from incompatible pointer type 'void (*)(tty_struct *, char *)' {aka 'void (*)(struct _tty_struct *, char *)'} [-Wincompatible-pointer-types] 45 | {"TOTALBYTES", rc_get_bytes}, | ^~~~~~~~~~~~ rcfile.h:45:21: note: (near initialization for 'rc_data[0].fn') rcfile.h:34:6: note: 'rc_get_bytes' declared here 34 | void rc_get_bytes(tty_struct *ptr, char *value); | ^~~~~~~~~~~~ rcfile.h:46:21: error: initialization of 'void (*)(void)' from incompatible pointer type 'void (*)(tty_struct *, char *)' {aka 'void (*)(struct _tty_struct *, char *)'} [-Wincompatible-pointer-types] 46 | {"TIMESTAMP", rc_get_tstamp}, | ^~~~~~~~~~~~~ rcfile.h:46:21: note: (near initialization for 'rc_data[1].fn') rcfile.h:35:6: note: 'rc_get_tstamp' declared here 35 | void rc_get_tstamp(tty_struct *ptr, char *value); | ^~~~~~~~~~~~~ rcfile.h:47:21: error: initialization of 'void (*)(void)' from incompatible pointer type 'void (*)(tty_struct *, char *)' {aka 'void (*)(struct _tty_struct *, char *)'} [-Wincompatible-pointer-types] 47 | {"DISPLAYHEX", rc_get_hex}, | ^~~~~~~~~~ rcfile.h:47:21: note: (near initialization for 'rc_data[2].fn') rcfile.h:36:6: note: 'rc_get_hex' declared here 36 | void rc_get_hex(tty_struct *ptr, char *value); | ^~~~~~~~~~ rcfile.h:48:21: error: initialization of 'void (*)(void)' from incompatible pointer type 'void (*)(tty_struct *, char *)' {aka 'void (*)(struct _tty_struct *, char *)'} [-Wincompatible-pointer-types] 48 | {"NOLOCK", rc_get_nolock}, | ^~~~~~~~~~~~~ rcfile.h:48:21: note: (near initialization for 'rc_data[3].fn') rcfile.h:37:6: note: 'rc_get_nolock' declared here 37 | void rc_get_nolock(tty_struct *ptr, char *value); | ^~~~~~~~~~~~~ rcfile.h:49:21: error: initialization of 'void (*)(void)' from incompatible pointer type 'void (*)(tty_struct *, char *)' {aka 'void (*)(struct _tty_struct *, char *)'} [-Wincompatible-pointer-types] 49 | {"COLOR", rc_get_color}, | ^~~~~~~~~~~~ rcfile.h:49:21: note: (near initialization for 'rc_data[4].fn') rcfile.h:38:6: note: 'rc_get_color' declared here 38 | void rc_get_color(tty_struct *ptr, char *value); | ^~~~~~~~~~~~ rcfile.h:50:21: error: initialization of 'void (*)(void)' from incompatible pointer type 'void (*)(tty_struct *, char *)' {aka 'void (*)(struct _tty_struct *, char *)'} [-Wincompatible-pointer-types] 50 | {"TIMECOLOR", rc_get_timecolor}, | ^~~~~~~~~~~~~~~~ rcfile.h:50:21: note: (near initialization for 'rc_data[5].fn') rcfile.h:39:6: note: 'rc_get_timecolor' declared here 39 | void rc_get_timecolor(tty_struct *ptr, char *value); | ^~~~~~~~~~~~~~~~ rcfile.h:51:21: error: initialization of 'void (*)(void)' from incompatible pointer type 'void (*)(tty_struct *, char *)' {aka 'void (*)(struct _tty_struct *, char *)'} [-Wincompatible-pointer-types] 51 | {"BYTESCOLOR", rc_get_bytescolor}, | ^~~~~~~~~~~~~~~~~ rcfile.h:51:21: note: (near initialization for 'rc_data[6].fn') rcfile.h:40:6: note: 'rc_get_bytescolor' declared here 40 | void rc_get_bytescolor(tty_struct *ptr, char *value); | ^~~~~~~~~~~~~~~~~ rcfile.h:52:21: error: initialization of 'void (*)(void)' from incompatible pointer type 'void (*)(tty_struct *, char *)' {aka 'void (*)(struct _tty_struct *, char *)'} [-Wincompatible-pointer-types] 52 | {"SYSVPTY", rc_get_pty}, | ^~~~~~~~~~ rcfile.h:52:21: note: (near initialization for 'rc_data[7].fn') rcfile.h:41:6: note: 'rc_get_pty' declared here 41 | void rc_get_pty(tty_struct *ptr, char *value); | ^~~~~~~~~~ rcfile.c: In function 'readRC': rcfile.c:124:38: error: too many arguments to function 'rc_data[i].fn'; expected 0, have 2 124 | if (rc_data[i].name) rc_data[i].fn(ptr, value); | ^~~~~~~ ~~~ rcfile.h:27:12: note: declared here 27 | void (*fn)(); | ^~ make[2]: *** [Makefile:166: rcfile.o] Error 1 make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/slsnif-0.4.4-build/slsnif-0.4.4/src' make[2]: *** Waiting for unfinished jobs.... make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/slsnif-0.4.4-build/slsnif-0.4.4/src' gcc -DHAVE_CONFIG_H -I. -I. -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 `test -f 'slsnif.c' || echo './'`slsnif.c slsnif.c: In function 'writeData': slsnif.c:185:21: warning: 'ftime' is deprecated: Use gettimeofday or clock_gettime instead [-Wdeprecated-declarations] 185 | ftime(&tstamp); | ^~~~~ In file included from slsnif.h:34, from slsnif.c:26: /usr/include/sys/timeb.h:29:12: note: declared here 29 | extern int ftime (struct timeb *__timebuf) | ^~~~~ slsnif.c: In function 'sighupP': slsnif.c:319:5: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 319 | return; | ^~~~~~ slsnif.c:316:12: note: declared here 316 | RETSIGTYPE sighupP(int sig) { | ^~~~~~~ slsnif.c: In function 'sighupC': slsnif.c:325:5: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 325 | return; | ^~~~~~ slsnif.c:322:12: note: declared here 322 | RETSIGTYPE sighupC(int sig) { | ^~~~~~~ slsnif.c: In function 'sigusr1P': slsnif.c:352:5: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 352 | return; | ^~~~~~ slsnif.c:349:12: note: declared here 349 | RETSIGTYPE sigusr1P(int sig) { | ^~~~~~~~ slsnif.c: In function 'main': slsnif.c:410:20: error: passing argument 2 of 'signal' from incompatible pointer type [-Wincompatible-pointer-types] 410 | signal(SIGINT, sigintP); | ^~~~~~~ | | | int (*)(int) In file included from slsnif.h:26: /usr/include/signal.h:88:57: note: expected '__sighandler_t' {aka 'void (*)(int)'} but argument is of type 'int (*)(int)' 88 | extern __sighandler_t signal (int __sig, __sighandler_t __handler) | ~~~~~~~~~~~~~~~^~~~~~~~~ slsnif.c:328:12: note: 'sigintP' declared here 328 | RETSIGTYPE sigintP(int sig) { | ^~~~~~~ /usr/include/signal.h:72:16: note: '__sighandler_t' declared here 72 | typedef void (*__sighandler_t) (int); | ^~~~~~~~~~~~~~ slsnif.c:411:21: error: passing argument 2 of 'signal' from incompatible pointer type [-Wincompatible-pointer-types] 411 | signal(SIGCHLD, sigchldP); | ^~~~~~~~ | | | int (*)(int) /usr/include/signal.h:88:57: note: expected '__sighandler_t' {aka 'void (*)(int)'} but argument is of type 'int (*)(int)' 88 | extern __sighandler_t signal (int __sig, __sighandler_t __handler) | ~~~~~~~~~~~~~~~^~~~~~~~~ slsnif.c:342:12: note: 'sigchldP' declared here 342 | RETSIGTYPE sigchldP(int sig) { | ^~~~~~~~ /usr/include/signal.h:72:16: note: '__sighandler_t' declared here 72 | typedef void (*__sighandler_t) (int); | ^~~~~~~~~~~~~~ slsnif.c:412:20: error: passing argument 2 of 'signal' from incompatible pointer type [-Wincompatible-pointer-types] 412 | signal(SIGHUP, sighupP); | ^~~~~~~ | | | int (*)(int) /usr/include/signal.h:88:57: note: expected '__sighandler_t' {aka 'void (*)(int)'} but argument is of type 'int (*)(int)' 88 | extern __sighandler_t signal (int __sig, __sighandler_t __handler) | ~~~~~~~~~~~~~~~^~~~~~~~~ slsnif.c:316:12: note: 'sighupP' declared here 316 | RETSIGTYPE sighupP(int sig) { | ^~~~~~~ /usr/include/signal.h:72:16: note: '__sighandler_t' declared here 72 | typedef void (*__sighandler_t) (int); | ^~~~~~~~~~~~~~ slsnif.c:413:21: error: passing argument 2 of 'signal' from incompatible pointer type [-Wincompatible-pointer-types] 413 | signal(SIGUSR1, sigusr1P); | ^~~~~~~~ | | | int (*)(int) /usr/include/signal.h:88:57: note: expected '__sighandler_t' {aka 'void (*)(int)'} but argument is of type 'int (*)(int)' 88 | extern __sighandler_t signal (int __sig, __sighandler_t __handler) | ~~~~~~~~~~~~~~~^~~~~~~~~ slsnif.c:349:12: note: 'sigusr1P' declared here 349 | RETSIGTYPE sigusr1P(int sig) { | ^~~~~~~~ /usr/include/signal.h:72:16: note: '__sighandler_t' declared here 72 | typedef void (*__sighandler_t) (int); | ^~~~~~~~~~~~~~ slsnif.c:550:24: error: passing argument 2 of 'signal' from incompatible pointer type [-Wincompatible-pointer-types] 550 | signal(SIGINT, sigintC); | ^~~~~~~ | | | int (*)(int) /usr/include/signal.h:88:57: note: expected '__sighandler_t' {aka 'void (*)(int)'} but argument is of type 'int (*)(int)' 88 | extern __sighandler_t signal (int __sig, __sighandler_t __handler) | ~~~~~~~~~~~~~~~^~~~~~~~~ slsnif.c:334:12: note: 'sigintC' declared here 334 | RETSIGTYPE sigintC(int sig) { | ^~~~~~~ /usr/include/signal.h:72:16: note: '__sighandler_t' declared here 72 | typedef void (*__sighandler_t) (int); | ^~~~~~~~~~~~~~ slsnif.c:551:24: error: passing argument 2 of 'signal' from incompatible pointer type [-Wincompatible-pointer-types] 551 | signal(SIGHUP, sighupC); | ^~~~~~~ | | | int (*)(int) /usr/include/signal.h:88:57: note: expected '__sighandler_t' {aka 'void (*)(int)'} but argument is of type 'int (*)(int)' 88 | extern __sighandler_t signal (int __sig, __sighandler_t __handler) | ~~~~~~~~~~~~~~~^~~~~~~~~ slsnif.c:322:12: note: 'sighupC' declared here 322 | RETSIGTYPE sighupC(int sig) { | ^~~~~~~ /usr/include/signal.h:72:16: note: '__sighandler_t' declared here 72 | typedef void (*__sighandler_t) (int); | ^~~~~~~~~~~~~~ slsnif.c:552:9: error: too many arguments to function 'pipeReader'; expected 0, have 1 552 | pipeReader(&tty_data); | ^~~~~~~~~~ ~~~~~~~~~ slsnif.c:235:6: note: declared here 235 | void pipeReader() { | ^~~~~~~~~~ slsnif.c:580:29: error: passing argument 2 of 'signal' from incompatible pointer type [-Wincompatible-pointer-types] 580 | signal(SIGCHLD, sigchldP); | ^~~~~~~~ | | | int (*)(int) /usr/include/signal.h:88:57: note: expected '__sighandler_t' {aka 'void (*)(int)'} but argument is of type 'int (*)(int)' 88 | extern __sighandler_t signal (int __sig, __sighandler_t __handler) | ~~~~~~~~~~~~~~~^~~~~~~~~ slsnif.c:342:12: note: 'sigchldP' declared here 342 | RETSIGTYPE sigchldP(int sig) { | ^~~~~~~~ /usr/include/signal.h:72:16: note: '__sighandler_t' declared here 72 | typedef void (*__sighandler_t) (int); | ^~~~~~~~~~~~~~ slsnif.c: In function 'setColor': slsnif.c:140:9: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 140 | write(out, color, 7); | ^~~~~~~~~~~~~~~~~~~~ slsnif.c:142:9: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 142 | write(out, colors[WHITE].color, 7); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ slsnif.c: In function 'writeData': slsnif.c:177:17: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 177 | write(out, buffer, n); | ^~~~~~~~~~~~~~~~~~~~~ slsnif.c:178:17: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 178 | write(aux, buffer, n); | ^~~~~~~~~~~~~~~~~~~~~ slsnif.c:183:21: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 183 | write(out, "\n\n", 2); | ^~~~~~~~~~~~~~~~~~~~~ slsnif.c:192:21: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 192 | write(out, tbuf, 28); | ^~~~~~~~~~~~~~~~~~~~ slsnif.c:200:21: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 200 | write(out, "\n", 1); | ^~~~~~~~~~~~~~~~~~~ slsnif.c:204:17: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 204 | write(out, aux ? PORT_IN : PORT_OUT, PRFXSIZE); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ slsnif.c:219:17: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 219 | write(out, outbuf, strlen(outbuf)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ slsnif.c:225:21: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 225 | write (out, buffer, strlen(buffer)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ slsnif.c: In function 'closeAll': slsnif.c:289:5: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 289 | write(tty_data.logfd, "\n", 1); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ slsnif.c: In function 'main': slsnif.c:614:13: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 614 | write(tmpfd, tty_data.ptyName, strlen(tty_data.ptyName)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ slsnif.c:615:13: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 615 | write(tmpfd, "\n", 1); | ^~~~~~~~~~~~~~~~~~~~~ make[2]: *** [Makefile:166: slsnif.o] Error 1 make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/slsnif-0.4.4-build/slsnif-0.4.4/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/slsnif-0.4.4-build/slsnif-0.4.4/src' gcc -DHAVE_CONFIG_H -I. -I. -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 `test -f 'devlck.c' || echo './'`devlck.c devlck.c: In function 'dev_checklock': devlck.c:109:62: warning: '%s' directive writing up to 255 bytes into a region of size 228 [-Wformat-overflow=] 109 | sprintf(buffer, "Failed to remove stale lock %s", lckname); | ^~ In file included from /usr/include/stdio.h:970, from devlck.h:25, from devlck.c:19: In function 'sprintf', inlined from 'dev_checklock' at devlck.c:109:17: /usr/include/bits/stdio2.h:30:10: note: '__builtin___sprintf_chk' output between 29 and 284 bytes into a destination of size 256 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 31 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ devlck.c: In function 'dev_checklock': devlck.c:98:59: warning: '%s' directive writing up to 255 bytes into a region of size 231 [-Wformat-overflow=] 98 | sprintf(buffer, "Failed to open lock file %s", lckname); | ^~ In function 'sprintf', inlined from 'dev_checklock' at devlck.c:98:17: /usr/include/bits/stdio2.h:30:10: note: '__builtin___sprintf_chk' output between 26 and 281 bytes into a destination of size 256 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 31 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ devlck.c: In function 'dev_setlock': devlck.c:211:57: warning: '%s' directive writing up to 255 bytes into a region of size 229 [-Wformat-overflow=] 211 | sprintf(buffer, "Failed to create lock file %s", drec->fsstnd); | ^~ In function 'sprintf', inlined from 'dev_setlock' at devlck.c:211:13: /usr/include/bits/stdio2.h:30:10: note: '__builtin___sprintf_chk' output between 28 and 283 bytes into a destination of size 256 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 31 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ devlck.c: In function 'dev_setlock': devlck.c:203:57: warning: '%s' directive writing up to 255 bytes into a region of size 229 [-Wformat-overflow=] 203 | sprintf(buffer, "Failed to create lock file %s", drec->svr4); | ^~ In function 'sprintf', inlined from 'dev_setlock' at devlck.c:203:13: /usr/include/bits/stdio2.h:30:10: note: '__builtin___sprintf_chk' output between 28 and 283 bytes into a destination of size 256 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 31 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ devlck.c: In function 'dev_setlock': devlck.c:193:57: warning: '%s' directive writing up to 255 bytes into a region of size 229 [-Wformat-overflow=] 193 | sprintf(buffer, "Failed to create lock file %s", lckname); | ^~ ~~~~~~~ In function 'sprintf', inlined from 'dev_setlock' at devlck.c:193:13: /usr/include/bits/stdio2.h:30:10: note: '__builtin___sprintf_chk' output between 28 and 283 bytes into a destination of size 256 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 31 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ devlck.c: In function 'dev_unlock': devlck.c:282:37: warning: '%s' directive writing up to 255 bytes into a region of size 228 [-Wformat-overflow=] 282 | sprintf(buffer, "%s %s", REMFAIL, drec->fsstnd); | ^~ In function 'sprintf', inlined from 'dev_unlock' at devlck.c:282:17: /usr/include/bits/stdio2.h:30:10: note: '__builtin___sprintf_chk' output between 29 and 284 bytes into a destination of size 256 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 31 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ devlck.c: In function 'dev_unlock': devlck.c:286:37: warning: '%s' directive writing up to 255 bytes into a region of size 228 [-Wformat-overflow=] 286 | sprintf(buffer, "%s %s", REMFAIL, drec->svr4); | ^~ In function 'sprintf', inlined from 'dev_unlock' at devlck.c:286:17: /usr/include/bits/stdio2.h:30:10: note: '__builtin___sprintf_chk' output between 29 and 284 bytes into a destination of size 256 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 31 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/slsnif-0.4.4-build/slsnif-0.4.4/src' make[1]: *** [Makefile:191: all-recursive] Error 1 make: *** [Makefile:103: all] Error 2 error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.HjYs38 (%build) RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.HjYs38 (%build) I: [iurt_root_command] ERROR: chroot