D: [iurt_root_command] chroot warning: line 35: It's not recommended to have unversioned Obsoletes: Obsoletes: nc warning: %patchN is deprecated (23 usages found), use %patch N (or %patch -P N) Installing /home/pterjan/rpmbuild/SRPMS/netcat-traditional-1.10-43.mga10.src.rpm Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.4U5ADB + umask 022 + cd /home/pterjan/rpmbuild/BUILD + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/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 ']' + rm -rf /home/pterjan/rpmbuild/BUILD/netcat-traditional-1.10-SPECPARTS + /usr/bin/mkdir -p /home/pterjan/rpmbuild/BUILD/netcat-traditional-1.10-SPECPARTS + /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 + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.2Alw3n + umask 022 + cd /home/pterjan/rpmbuild/BUILD + cd netcat-traditional-1.10 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + /usr/bin/make 'CFLAGS=-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -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' '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' gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -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 -DLINUX -DTELNET -DGAPING_SECURITY_HOLE -DGENERIC -o nc netcat.c netcat.c:612:1: error: return type defaults to 'int' [-Wimplicit-int] 612 | doexec (fd) | ^~~~~~ netcat.c:1035:1: error: return type defaults to 'int' [-Wimplicit-int] 1035 | udptest (fd, where) | ^~~~~~~ netcat.c:1417:1: error: return type defaults to 'int' [-Wimplicit-int] 1417 | main (argc, argv) | ^~~~ netcat.c: In function 'main': netcat.c:1553:9: error: implicit declaration of function 'helpme' [-Wimplicit-function-declaration] 1553 | helpme(); /* exits by itself */ | ^~~~~~ netcat.c:1630:12: error: implicit declaration of function 'time' [-Wimplicit-function-declaration] 1630 | SRAND (time (0)); | ^~~~ netcat.c:87:1: note: 'time' is defined in header ''; this is probably fixable by adding '#include ' 86 | #include +++ |+#include 87 | #endif netcat.c: At top level: netcat.c:1794:1: error: return type defaults to 'int' [-Wimplicit-int] 1794 | helpme() | ^~~~~~ netcat.c: In function 'atelnet': netcat.c:1192:14: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 1192 | (void) write (netfd, obuf, 3); | ^~~~~~~~~~~~~~~~~~~~~~ make[1]: *** [Makefile:31: nc] Error 1 make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/netcat-traditional-1.10' make: *** [Makefile:114: generic] Error 2 error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.2Alw3n (%build) RPM build warnings: line 35: It's not recommended to have unversioned Obsoletes: Obsoletes: nc %patchN is deprecated (23 usages found), use %patch N (or %patch -P N) RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.2Alw3n (%build) I: [iurt_root_command] ERROR: chroot