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-openbsd-1.89-15.mga10.src.rpm Executing(%mkbuilddir): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.L8old5 sh: line 4: [: -j8: integer expression expected Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.9g4GPy + umask 022 + cd /home/pterjan/rpmbuild/BUILD/netcat-openbsd-1.89-build + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD/netcat-openbsd-1.89-build + rm -rf netcat-openbsd-1.89.orig + /usr/lib/rpm/rpmuncompress -x /home/pterjan/rpmbuild/SOURCES/netcat-openbsd-1.89.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd netcat-openbsd-1.89.orig + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #20 (netcat-openbsd-1.89-makefile.patch):' Patch #20 (netcat-openbsd-1.89-makefile.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file Makefile + echo 'Patch #21 (netcat-openbsd-1.89-openbsd-compat.patch):' Patch #21 (netcat-openbsd-1.89-openbsd-compat.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file openbsd-compat/base64.c patching file openbsd-compat/readpassphrase.c patching file openbsd-compat/readpassphrase.h + echo 'Patch #0 (openbsd-compat.patch):' Patch #0 (openbsd-compat.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file openbsd-compat/readpassphrase.c + echo 'Patch #1 (socks-b64-prototype.patch):' Patch #1 (socks-b64-prototype.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file socks.c + echo 'Patch #2 (silence-z.patch):' Patch #2 (silence-z.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file netcat.c + echo 'Patch #3 (glib-strlcpy.patch):' Patch #3 (glib-strlcpy.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file netcat.c + echo 'Patch #4 (no-strtonum.patch):' Patch #4 (no-strtonum.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file netcat.c + echo 'Patch #5 (pollhup.patch):' Patch #5 (pollhup.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file netcat.c + echo 'Patch #6 (reuseaddr.patch):' Patch #6 (reuseaddr.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file netcat.c + echo 'Patch #7 (connect-timeout.patch):' Patch #7 (connect-timeout.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file netcat.c + echo 'Patch #8 (udp-scan-timeout.patch):' Patch #8 (udp-scan-timeout.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file netcat.c + echo 'Patch #9 (verbose-numeric-port.patch):' Patch #9 (verbose-numeric-port.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file netcat.c + echo 'Patch #10 (send-crlf.patch):' Patch #10 (send-crlf.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file netcat.c patching file nc.1 + echo 'Patch #11 (help-version-exit.patch):' Patch #11 (help-version-exit.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file netcat.c + echo 'Patch #12 (quit-timer.patch):' Patch #12 (quit-timer.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file netcat.c Hunk #7 succeeded at 966 (offset -1 lines). Hunk #8 succeeded at 995 (offset -1 lines). + echo 'Patch #13 (getservbyname.patch):' Patch #13 (getservbyname.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file netcat.c + echo 'Patch #14 (gcc-warnings.patch):' Patch #14 (gcc-warnings.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file netcat.c patching file socks.c + 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.0x0GZH + umask 022 + cd /home/pterjan/rpmbuild/BUILD/netcat-openbsd-1.89-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-openbsd-1.89.orig + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + /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' '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' 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 `pkg-config --cflags glib-2.0` -Iopenbsd-compat -c atomicio.c -o atomicio.o atomicio.c: In function 'atomicio': atomicio.c:39:1: warning: old-style function definition [-Wold-style-definition] 39 | atomicio(f, fd, _s, n) | ^~~~~~~~ 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 `pkg-config --cflags glib-2.0` -Iopenbsd-compat -c openbsd-compat/readpassphrase.c -o openbsd-compat/readpassphrase.o openbsd-compat/readpassphrase.c: In function 'readpassphrase': openbsd-compat/readpassphrase.c:116:31: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 116 | (void)write(output, prompt, strlen(prompt)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ openbsd-compat/readpassphrase.c:135:31: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 135 | (void)write(output, "\n", 1); | ^~~~~~~~~~~~~~~~~~~~~~ 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 `pkg-config --cflags glib-2.0` -Iopenbsd-compat -c openbsd-compat/base64.c -o openbsd-compat/base64.o 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 `pkg-config --cflags glib-2.0` -Iopenbsd-compat -c netcat.c -o netcat.o netcat.c: In function 'readwrite': netcat.c:773:50: error: passing argument 2 of 'signal' from incompatible pointer type [-Wincompatible-pointer-types] 773 | signal(SIGALRM, quit); | ^~~~ | | | void (*)(void) In file included from netcat.c:50: /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:119:13: note: 'quit' declared here 119 | static void quit(); | ^~~~ /usr/include/signal.h:72:16: note: '__sighandler_t' declared here 72 | typedef void (*__sighandler_t) (int); | ^~~~~~~~~~~~~~ make: *** [Makefile:18: netcat.o] Error 1 make: *** Waiting for unfinished jobs.... 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 `pkg-config --cflags glib-2.0` -Iopenbsd-compat -c socks.c -o socks.o socks.c: In function 'socks_connect': socks.c:289:70: warning: 'Proxy-Authorization: Basic ' directive output truncated writing 27 bytes into a region of size 8 [-Wformat-truncation=] 289 | r = snprintf((char*)buf, sizeof((char*)buf), "Proxy-Authorization: " | ^~~~~~~~~~~~~~~~~~~~~~~ socks.c:289:79: note: format string is defined here 289 | r = snprintf((char*)buf, sizeof((char*)buf), "Proxy-Authorization: " | ~~~~~~~~^~~~~~~~~~~~~~ 290 | "Basic %s\r\n", resp); | ~~~~~~~ In file included from /usr/include/stdio.h:970, from socks.c:36: In function 'snprintf', inlined from 'socks_connect' at socks.c:289:8: /usr/include/bits/stdio2.h:68:10: note: '__builtin___snprintf_chk' output between 30 and 1053 bytes into a destination of size 8 68 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 69 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 70 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.0x0GZH (%build) RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.0x0GZH (%build) I: [iurt_root_command] ERROR: chroot