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/netcat-traditional-1.10-45.mga10.src.rpm Executing(%mkbuilddir): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.acBUxO sh: line 4: [: -j8: integer expression expected Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.mliobl + umask 022 + cd /home/pterjan/rpmbuild/BUILD/netcat-traditional-1.10-build + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD/netcat-traditional-1.10-build + rm -rf netcat-traditional-1.10 + /usr/bin/mkdir -p netcat-traditional-1.10 + cd netcat-traditional-1.10 + /usr/lib/rpm/rpmuncompress -x /home/pterjan/rpmbuild/SOURCES/nc110.tgz + STATUS=0 + '[' 0 -ne 0 ']' + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #0 (unstripped.patch):' Patch #0 (unstripped.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file Makefile + echo 'Patch #1 (glibc-resolv-h.patch):' Patch #1 (glibc-resolv-h.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file netcat.c + echo 'Patch #2 (arm-timer.patch):' Patch #2 (arm-timer.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file netcat.c + echo 'Patch #3 (posix-setjmp.patch):' Patch #3 (posix-setjmp.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file netcat.c + echo 'Patch #4 (no-sleep-punt.patch):' Patch #4 (no-sleep-punt.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file netcat.c + echo 'Patch #5 (single-verbose.patch):' Patch #5 (single-verbose.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file netcat.c + echo 'Patch #6 (use-getservbyport.patch):' Patch #6 (use-getservbyport.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file netcat.c + echo 'Patch #7 (read-overflow.patch):' Patch #7 (read-overflow.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file netcat.c + echo 'Patch #8 (inet-aton.patch):' Patch #8 (inet-aton.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file netcat.c + echo 'Patch #9 (udp-broadcast.patch):' Patch #9 (udp-broadcast.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file netcat.c + echo 'Patch #10 (quit.patch):' Patch #10 (quit.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file netcat.c + echo 'Patch #11 (dash-port.patch):' Patch #11 (dash-port.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file netcat.c + echo 'Patch #12 (sh-c.patch):' Patch #12 (sh-c.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file netcat.c + echo 'Patch #13 (tos.patch):' Patch #13 (tos.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file netcat.c + echo 'Patch #14 (rservice-buf.patch):' Patch #14 (rservice-buf.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file data/rservice.c + echo 'Patch #15 (so-keepalive.patch):' Patch #15 (so-keepalive.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file netcat.c + echo 'Patch #16 (nodup-stderr.patch):' Patch #16 (nodup-stderr.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file netcat.c + echo 'Patch #17 (help-exit-failure.patch):' Patch #17 (help-exit-failure.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file netcat.c + echo 'Patch #18 (darwin-ipproto.patch):' Patch #18 (darwin-ipproto.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file netcat.c + echo 'Patch #19 (select-nfds.patch):' Patch #19 (select-nfds.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file netcat.c + echo 'Patch #20 (proxy-doc.patch):' Patch #20 (proxy-doc.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file scripts/webproxy + echo 'Patch #30 (nc-1.10-format_not_a_string_literal_and_no_format_arguments.diff):' Patch #30 (nc-1.10-format_not_a_string_literal_and_no_format_arguments.diff): + /usr/bin/patch --no-backup-if-mismatch -f -p0 --fuzz=0 patching file netcat.c Hunk #1 succeeded at 216 (offset 11 lines). + echo 'Patch #31 (nc-1.10-LDFLAGS.patch):' Patch #31 (nc-1.10-LDFLAGS.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p0 --fuzz=0 patching file Makefile + echo 'Patch #32 (missing-prototypes.patch):' Patch #32 (missing-prototypes.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file netcat.c Hunk #3 succeeded at 1794 (offset -7 lines). + echo 'Patch #33 (implicit-int.patch):' Patch #33 (implicit-int.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file netcat.c Hunk #1 succeeded at 612 (offset 3 lines). Hunk #2 succeeded at 1036 (offset 3 lines). Hunk #3 succeeded at 1419 (offset -4 lines). + 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.DkFKLz + umask 022 + cd /home/pterjan/rpmbuild/BUILD/netcat-traditional-1.10-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 netcat-traditional-1.10 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + make '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' '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' 'DFLAGS=-DLINUX -DTELNET -DGAPING_SECURITY_HOLE' generic make -e nc XFLAGS='-DGENERIC' STATIC= make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/netcat-traditional-1.10-build/netcat-traditional-1.10' gcc -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 -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 -DLINUX -DTELNET -DGAPING_SECURITY_HOLE -DGENERIC -o nc netcat.c netcat.c: In function 'holler': netcat.c:211:6: warning: old-style function definition [-Wold-style-definition] 211 | void holler (str, p1, p2, p3, p4, p5, p6) | ^~~~~~ netcat.c: In function 'bail': netcat.c:236:6: warning: old-style function definition [-Wold-style-definition] 236 | void bail (str, p1, p2, p3, p4, p5, p6) | ^~~~ netcat.c: In function 'arm_timer': netcat.c:280:6: warning: old-style function definition [-Wold-style-definition] 280 | void arm_timer (num, secs) | ^~~~~~~~~ netcat.c:289:22: error: passing argument 2 of 'signal' from incompatible pointer type [-Wincompatible-pointer-types] 289 | signal (SIGALRM, tmtravel); | ^~~~~~~~ | | | void (*)(void) In file included from netcat.c:83: /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) | ~~~~~~~~~~~~~~~^~~~~~~~~ netcat.c:265:6: note: 'tmtravel' declared here 265 | void tmtravel () | ^~~~~~~~ /usr/include/signal.h:72:16: note: '__sighandler_t' declared here 72 | typedef void (*__sighandler_t) (int); | ^~~~~~~~~~~~~~ netcat.c: In function 'Hmalloc': netcat.c:298:8: warning: old-style function definition [-Wold-style-definition] 298 | char * Hmalloc (size) | ^~~~~~~ netcat.c: In function 'findline': netcat.c:314:14: warning: old-style function definition [-Wold-style-definition] 314 | unsigned int findline (buf, siz) | ^~~~~~~~ netcat.c: In function 'comparehosts': netcat.c:343:5: warning: old-style function definition [-Wold-style-definition] 343 | int comparehosts (poop, hp) | ^~~~~~~~~~~~ netcat.c: In function 'gethostpoop': netcat.c:368:8: warning: old-style function definition [-Wold-style-definition] 368 | HINF * gethostpoop (name, numeric) | ^~~~~~~~~~~ netcat.c: In function 'getportpoop': netcat.c:469:8: warning: old-style function definition [-Wold-style-definition] 469 | USHORT getportpoop (pstring, pnum) | ^~~~~~~~~~~ netcat.c: In function 'nextport': netcat.c:551:8: warning: old-style function definition [-Wold-style-definition] 551 | USHORT nextport (block) | ^~~~~~~~ netcat.c: In function 'loadports': netcat.c:587:6: warning: old-style function definition [-Wold-style-definition] 587 | void loadports (block, lo, hi) | ^~~~~~~~~ netcat.c: In function 'doexec': netcat.c:616:1: warning: old-style function definition [-Wold-style-definition] 616 | doexec (fd) | ^~~~~~ netcat.c: In function 'doconnect': netcat.c:649:5: warning: old-style function definition [-Wold-style-definition] 649 | int doconnect (rad, rp, lad, lp) | ^~~~~~~~~ netcat.c: In function 'dolisten': netcat.c:846:5: warning: old-style function definition [-Wold-style-definition] 846 | int dolisten (rad, rp, lad, lp) | ^~~~~~~~ netcat.c: In function 'udptest': netcat.c:1040:1: warning: old-style function definition [-Wold-style-definition] 1040 | udptest (fd, where) | ^~~~~~~ netcat.c: In function 'oprint': netcat.c:1083:6: warning: old-style function definition [-Wold-style-definition] 1083 | void oprint (which, buf, n) | ^~~~~~ netcat.c: In function 'atelnet': netcat.c:1172:6: warning: old-style function definition [-Wold-style-definition] 1172 | void atelnet (buf, size) | ^~~~~~~ netcat.c: In function 'readwrite': netcat.c:1210:5: warning: old-style function definition [-Wold-style-definition] 1210 | int readwrite (fd) | ^~~~~~~~~ netcat.c:1321:30: error: passing argument 2 of 'signal' from incompatible pointer type [-Wincompatible-pointer-types] 1321 | signal (SIGALRM, quit); | ^~~~ | | | void (*)(void) /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) | ~~~~~~~~~~~~~~~^~~~~~~~~ netcat.c:258:6: note: 'quit' declared here 258 | void quit() | ^~~~ /usr/include/signal.h:72:16: note: '__sighandler_t' declared here 72 | typedef void (*__sighandler_t) (int); | ^~~~~~~~~~~~~~ netcat.c: In function 'unescape': netcat.c:1400:8: warning: old-style function definition [-Wold-style-definition] 1400 | char * unescape(start) | ^~~~~~~~ netcat.c: In function 'main': netcat.c:1423:1: warning: old-style function definition [-Wold-style-definition] 1423 | main (argc, argv) | ^~~~ netcat.c:1464:19: error: passing argument 2 of 'signal' from incompatible pointer type [-Wincompatible-pointer-types] 1464 | signal (SIGINT, catch); | ^~~~~ | | | void (*)(void) /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) | ~~~~~~~~~~~~~~~^~~~~~~~~ netcat.c:248:6: note: 'catch' declared here 248 | void catch () | ^~~~~ /usr/include/signal.h:72:16: note: '__sighandler_t' declared here 72 | typedef void (*__sighandler_t) (int); | ^~~~~~~~~~~~~~ netcat.c:1465:20: error: passing argument 2 of 'signal' from incompatible pointer type [-Wincompatible-pointer-types] 1465 | signal (SIGQUIT, catch); | ^~~~~ | | | void (*)(void) /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) | ~~~~~~~~~~~~~~~^~~~~~~~~ netcat.c:248:6: note: 'catch' declared here 248 | void catch () | ^~~~~ /usr/include/signal.h:72:16: note: '__sighandler_t' declared here 72 | typedef void (*__sighandler_t) (int); | ^~~~~~~~~~~~~~ netcat.c:1466:20: error: passing argument 2 of 'signal' from incompatible pointer type [-Wincompatible-pointer-types] 1466 | signal (SIGTERM, catch); | ^~~~~ | | | void (*)(void) /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) | ~~~~~~~~~~~~~~~^~~~~~~~~ netcat.c:248:6: note: 'catch' declared here 248 | void catch () | ^~~~~ /usr/include/signal.h:72:16: note: '__sighandler_t' declared here 72 | typedef void (*__sighandler_t) (int); | ^~~~~~~~~~~~~~ netcat.c: In function 'atelnet': netcat.c:1197:14: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 1197 | (void) write (netfd, obuf, 3); | ^~~~~~~~~~~~~~~~~~~~~~ make[1]: *** [Makefile:31: nc] Error 1 make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/netcat-traditional-1.10-build/netcat-traditional-1.10' make: *** [Makefile:114: generic] Error 2 error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.DkFKLz (%build) RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.DkFKLz (%build) I: [iurt_root_command] ERROR: chroot