D: [iurt_root_command] chroot warning: %patchN is deprecated (24 usages found), use %patch N (or %patch -P N) Installing /home/pterjan/rpmbuild/SRPMS/netkit-telnet-0.17-22.mga10.src.rpm Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.ZT5TLi + umask 022 + cd /home/pterjan/rpmbuild/BUILD + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD + rm -rf netkit-telnet-0.17 + /usr/lib/rpm/rpmuncompress -x /home/pterjan/rpmbuild/SOURCES/netkit-telnet-0.17.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd netkit-telnet-0.17 + rm -rf /home/pterjan/rpmbuild/BUILD/netkit-telnet-0.17-SPECPARTS + /usr/bin/mkdir -p /home/pterjan/rpmbuild/BUILD/netkit-telnet-0.17-SPECPARTS + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + mv telnet telnet-NETKIT + cd /home/pterjan/rpmbuild/BUILD + cd netkit-telnet-0.17 + rm -rf /home/pterjan/rpmbuild/BUILD/netkit-telnet-0.17-SPECPARTS + /usr/bin/mkdir -p /home/pterjan/rpmbuild/BUILD/netkit-telnet-0.17-SPECPARTS + /usr/lib/rpm/rpmuncompress -x /home/pterjan/rpmbuild/SOURCES/telnet-client.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #1 (telnet-client-cvs.patch):' Patch #1 (telnet-client-cvs.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p0 -b --suffix .cvs --fuzz=0 patching file telnet/Makefile patching file telnet/commands.c patching file telnet/externs.h patching file telnet/main.c patching file telnet/sys_bsd.c patching file telnet/telnet.c patching file telnet/telnet_locl.h patching file libtelnet/kerberos.c patching file telnet/telnet.1 + echo 'Patch #5 (telnetd-0.17.diff):' Patch #5 (telnetd-0.17.diff): + /usr/bin/patch --no-backup-if-mismatch -f -p0 -b --suffix .fix --fuzz=0 patching file telnetd/telnetd.c patching file telnetd/defs.h + echo 'Patch #6 (telnet-0.17-env.patch):' Patch #6 (telnet-0.17-env.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .env --fuzz=0 patching file telnet/commands.c patching file telnet/telnet.c Hunk #1 succeeded at 440 (offset 2 lines). Hunk #2 succeeded at 675 (offset -18 lines). Hunk #3 succeeded at 852 (offset -18 lines). Hunk #4 succeeded at 1514 (offset -13 lines). Hunk #5 succeeded at 2161 (offset -9 lines). patching file telnet/externs.h + echo 'Patch #10 (telnet-0.17-pek.patch):' Patch #10 (telnet-0.17-pek.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p0 -b --suffix .pek --fuzz=0 patching file telnet/commands.c + echo 'Patch #7 (telnet-0.17-issue.patch):' Patch #7 (telnet-0.17-issue.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .issue --fuzz=0 patching file telnetd/utility.c patching file telnetd/issue.net.5 + echo 'Patch #8 (telnet-0.17-sa-01-49.patch):' Patch #8 (telnet-0.17-sa-01-49.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .sa-01-49 --fuzz=0 patching file telnetd/ext.h patching file telnetd/slc.c patching file telnetd/state.c patching file telnetd/termstat.c patching file telnetd/utility.c + echo 'Patch #11 (telnet-0.17-8bit.patch):' Patch #11 (telnet-0.17-8bit.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .8bit --fuzz=0 patching file telnet/main.c patching file telnet/telnet.1 + echo 'Patch #12 (telnet-0.17-argv.patch):' Patch #12 (telnet-0.17-argv.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .argv --fuzz=0 patching file telnetd/setproctitle.c + echo 'Patch #13 (telnet-0.17-conf.patch):' Patch #13 (telnet-0.17-conf.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .confverb --fuzz=0 patching file configure + echo 'Patch #14 (telnet-0.17-cleanup_race.patch):' Patch #14 (telnet-0.17-cleanup_race.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .cleanup_race --fuzz=0 patching file telnetd/telnetd.c + echo 'Patch #15 (telnetd-0.17-pty_read.patch):' Patch #15 (telnetd-0.17-pty_read.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p0 -b --suffix .pty_read --fuzz=0 patching file telnetd/telnetd.c + echo 'Patch #16 (telnet-0.17-CAN-2005-468_469.patch):' Patch #16 (telnet-0.17-CAN-2005-468_469.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .CAN-2005-468_469 --fuzz=0 patching file telnet/telnet.c + echo 'Patch #18 (telnet-gethostbyname.patch):' Patch #18 (telnet-gethostbyname.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .gethost --fuzz=0 patching file telnet/commands.c + echo 'Patch #19 (netkit-telnet-0.17-ipv6.diff):' Patch #19 (netkit-telnet-0.17-ipv6.diff): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .gethost2 --fuzz=0 patching file telnetd/telnetd.c + echo 'Patch #20 (netkit-telnet-0.17-nodns.patch):' Patch #20 (netkit-telnet-0.17-nodns.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .nodns --fuzz=0 patching file telnetd/telnetd.c + echo 'Patch #21 (telnet-0.17-errno_test_sys_bsd.patch):' Patch #21 (telnet-0.17-errno_test_sys_bsd.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .errnosysbsd --fuzz=0 patching file telnet/sys_bsd.c + echo 'Patch #22 (netkit-telnet-0.17-reallynodns.patch):' Patch #22 (netkit-telnet-0.17-reallynodns.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .reallynodns --fuzz=0 patching file telnetd/telnetd.c patching file telnetd/telnetd.8 + echo 'Patch #33 (telnet-0.17-overflow-exploit.patch):' Patch #33 (telnet-0.17-overflow-exploit.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .overflow --fuzz=0 patching file telnetd/utility.c Hunk #1 succeeded at 219 (offset -2 lines). Hunk #2 succeeded at 276 (offset -2 lines). Hunk #3 succeeded at 284 (offset -2 lines). Hunk #4 succeeded at 296 (offset -2 lines). + echo 'Patch #100 (telnet-0.17-sock.patch):' Patch #100 (telnet-0.17-sock.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .socket --fuzz=0 patching file telnet/commands.c Hunk #2 succeeded at 2180 (offset 6 lines). Hunk #3 succeeded at 2335 (offset 6 lines). Hunk #4 succeeded at 2355 (offset 6 lines). Hunk #5 succeeded at 2388 (offset 6 lines). + echo 'Patch #101 (telnet-0.17-cleanup_cleanup.patch):' Patch #101 (telnet-0.17-cleanup_cleanup.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .cleanup_cleanup --fuzz=0 patching file telnetd/ext.h patching file telnetd/telnetd.c Hunk #1 succeeded at 740 (offset 58 lines). Hunk #2 succeeded at 761 (offset 58 lines). Hunk #3 succeeded at 770 (offset 58 lines). Hunk #4 succeeded at 782 (offset 58 lines). Hunk #5 succeeded at 794 (offset 58 lines). Hunk #6 succeeded at 819 (offset 58 lines). Hunk #7 succeeded at 835 (offset 58 lines). Hunk #8 succeeded at 853 (offset 58 lines). Hunk #9 succeeded at 861 (offset 58 lines). Hunk #10 succeeded at 880 (offset 58 lines). Hunk #11 succeeded at 889 (offset 58 lines). Hunk #12 succeeded at 910 (offset 58 lines). Hunk #13 succeeded at 937 (offset 58 lines). Hunk #14 succeeded at 954 (offset 58 lines). Hunk #15 succeeded at 962 (offset 58 lines). Hunk #16 succeeded at 992 (offset 58 lines). Hunk #17 succeeded at 1158 (offset 58 lines). patching file telnetd/sys_term.c + echo 'Patch #102 (telnet-0.17-CAN-2005-0488.patch):' Patch #102 (telnet-0.17-CAN-2005-0488.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .CAN-2005-0488 --fuzz=0 patching file telnet/commands.c Hunk #1 succeeded at 1619 (offset 1 line). Hunk #2 succeeded at 1701 (offset 7 lines). Hunk #3 succeeded at 1803 (offset 7 lines). Hunk #4 succeeded at 1812 (offset 7 lines). patching file telnet/telnet.1 + echo 'Patch #103 (netkit-telnet-0.17-format_not_a_string_literal_and_no_format_arguments.diff):' Patch #103 (netkit-telnet-0.17-format_not_a_string_literal_and_no_format_arguments.diff): + /usr/bin/patch --no-backup-if-mismatch -f -p0 -b --suffix .format_not_a_string_literal_and_no_format_arguments --fuzz=0 patching file telnet/utilities.c patching file telnetd/utility.c Hunk #1 succeeded at 984 (offset 11 lines). + echo 'Patch #104 (netkit-telnet-0.17-CVE-2011-4862.diff):' Patch #104 (netkit-telnet-0.17-CVE-2011-4862.diff): + /usr/bin/patch --no-backup-if-mismatch -f -p0 -b --suffix .CVE-2011-4862 --fuzz=0 patching file libtelnet/encrypt.c + echo 'Patch #105 (netkit-telnet-0.17-CVE-2022-39028.patch):' Patch #105 (netkit-telnet-0.17-CVE-2022-39028.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p3 -b --suffix .CVE-2022-39028 --fuzz=0 patching file telnetd/telnetd.c + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.iD5rlc + umask 022 + cd /home/pterjan/rpmbuild/BUILD + cd netkit-telnet-0.17 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + sh configure --with-c-compiler=gcc Directories: /usr/bin /usr/sbin /usr/man Checking if C compiler works... yes Checking if gcc accepts gcc warnings... yes Looking for a C++ compiler... gcc Checking if gcc accepts gcc warnings... yes Checking if gcc accepts -O2... yes Checking if gcc accepts -fno-rtti... yes Checking if gcc accepts -fno-exceptions... yes Checking for BSD signal semantics... yes Checking for ncurses... yes Checking for GNU libc... yes Checking for forkpty... yes Checking for logwtmp... yes Checking for snprintf declaration... ok Checking for snprintf implementation... ok Generating MCONFIG... + perl -pi -e ' s,^CC=.*$,CC=cc,; s,-O2,\$(RPM_OPT_FLAGS),; s,^BINDIR=.*$,BINDIR=/usr/bin,; s,^MANDIR=.*$,MANDIR=/usr/share/man,; s,^SBINDIR=.*$,SBINDIR=/usr/sbin,; ' MCONFIG + perl -pi -e 's|install[ ]+-s|install|g' ./telnet/GNUmakefile ./telnetd/Makefile ./telnetlogin/Makefile ./telnet-NETKIT/Makefile + /usr/bin/make (cd telnet && /usr/bin/make) make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/netkit-telnet-0.17/telnet' cc -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 -Wall -W -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -D_GNU_SOURCE -DUSE_TERMIO -DKLUDGELINEMODE -I../ authenc.c -c cc -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 -Wall -W -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -D_GNU_SOURCE -DUSE_TERMIO -DKLUDGELINEMODE -I../ commands.c -c commands.c:259:63: warning: cast between incompatible function types from 'int (*)(void)' to 'int (*)(const char *)' [-Wcast-function-type] 259 | { "synch", "Perform Telnet 'Synch operation'", 1, 0, (send_handler_t)dosynch, 2, 0 }, | ^ commands.c:260:63: warning: cast between incompatible function types from 'int (*)(void)' to 'int (*)(const char *)' [-Wcast-function-type] 260 | { "getstatus", "Send request for STATUS", 1, 0, (send_handler_t)get_status, 6, 0 }, | ^ commands.c: In function 'send_tncmd': commands.c:401:18: warning: passing argument 1 of 'isprefix' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 401 | if (isprefix(name, "help") || isprefix(name, "?")) { | ^~~~ In file included from /usr/include/features.h:503, from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:28, from telnet_locl.h:43, from commands.c:37: ../libtelnet/misc-proto.h:80:19: note: expected 'char *' but argument is of type 'const char *' 80 | int isprefix __P((char *, char *)); | ^~~~~~ commands.c:401:44: warning: passing argument 1 of 'isprefix' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 401 | if (isprefix(name, "help") || isprefix(name, "?")) { | ^~~~ ../libtelnet/misc-proto.h:80:19: note: expected 'char *' but argument is of type 'const char *' 80 | int isprefix __P((char *, char *)); | ^~~~~~ commands.c:421:27: warning: passing argument 1 of 'genget' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 421 | cpp = (char **)genget(name, telopts, sizeof(char *)); | ^~~~ ../libtelnet/misc-proto.h:79:20: note: expected 'char *' but argument is of type 'const char *' 79 | char **genget __P((char *, char **, int)); | ^~~~~~ commands.c: At top level: commands.c:861:58: warning: cast between incompatible function types from 'void (*)(char *)' to 'void (*)(int)' [-Wcast-function-type] 861 | { "tracefile", "file to write trace information to", (set_handler_t)SetNetTrace, (cc_t *)NetTraceFile}, | ^ commands.c: In function 'setcmd': commands.c:965:28: error: passing argument 1 of 'ct->handler' makes integer from pointer without a cast [-Wint-conversion] 965 | (*ct->handler)(argv[2]); | ~~~~^~~ | | | char * commands.c:965:28: note: expected 'int' but argument is of type 'char *' commands.c: In function 'shell': commands.c:1383:17: warning: missing sentinel in function call [-Wformat=] 1383 | execl(shellp, shellname, "-c", &saveline[1], 0); | ^~~~~ commands.c:1385:17: warning: missing sentinel in function call [-Wformat=] 1385 | execl(shellp, shellname, 0); | ^~~~~ commands.c: At top level: commands.c:1543:49: warning: cast between incompatible function types from 'struct env_lst * (*)(unsigned char *, unsigned char *)' to 'void (*)(unsigned char *, unsigned char *)' [-Wcast-function-type] 1543 | (env_handler_t)env_define, 2 }, | ^ commands.c:1545:49: warning: cast between incompatible function types from 'void (*)(unsigned char *)' to 'void (*)(unsigned char *, unsigned char *)' [-Wcast-function-type] 1545 | (env_handler_t)env_undefine, 1 }, | ^ commands.c:1547:49: warning: cast between incompatible function types from 'void (*)(unsigned char *)' to 'void (*)(unsigned char *, unsigned char *)' [-Wcast-function-type] 1547 | (env_handler_t)env_export, 1 }, | ^ commands.c:1549:49: warning: cast between incompatible function types from 'void (*)(unsigned char *)' to 'void (*)(unsigned char *, unsigned char *)' [-Wcast-function-type] 1549 | (env_handler_t)env_unexport, 1 }, | ^ commands.c:1550:49: warning: cast between incompatible function types from 'void (*)(unsigned char *)' to 'void (*)(unsigned char *, unsigned char *)' [-Wcast-function-type] 1550 | { "send", "Send an environment variable", (env_handler_t)env_send, 1 }, | ^ commands.c: In function 'env_cmd': commands.c:1613:23: warning: pointer targets in passing argument 1 of 'c->handler' differ in signedness [-Wpointer-sign] 1613 | (*c->handler)(argv[2], argv[3]); | ~~~~^~~ | | | char * commands.c:1613:23: note: expected 'unsigned char *' but argument is of type 'char *' commands.c:1613:32: warning: pointer targets in passing argument 2 of 'c->handler' differ in signedness [-Wpointer-sign] 1613 | (*c->handler)(argv[2], argv[3]); | ~~~~^~~ | | | char * commands.c:1613:32: note: expected 'unsigned char *' but argument is of type 'char *' commands.c: In function 'env_init': commands.c:1666:28: warning: pointer targets in passing argument 1 of 'env_find' differ in signedness [-Wpointer-sign] 1666 | if ((ep = env_find("DISPLAY")) | ^~~~~~~~~ | | | char * commands.c:1632:25: note: expected 'unsigned char *' but argument is of type 'char *' 1632 | env_find(unsigned char *var) | ~~~~~~~~~~~~~~~^~~ commands.c:1700:23: warning: pointer targets in passing argument 1 of 'env_find' differ in signedness [-Wpointer-sign] 1700 | if ((env_find("USER") == NULL) && (ep = env_find("LOGNAME"))) { | ^~~~~~ | | | char * commands.c:1632:25: note: expected 'unsigned char *' but argument is of type 'char *' 1632 | env_find(unsigned char *var) | ~~~~~~~~~~~~~~~^~~ commands.c:1700:58: warning: pointer targets in passing argument 1 of 'env_find' differ in signedness [-Wpointer-sign] 1700 | if ((env_find("USER") == NULL) && (ep = env_find("LOGNAME"))) { | ^~~~~~~~~ | | | char * commands.c:1632:25: note: expected 'unsigned char *' but argument is of type 'char *' 1632 | env_find(unsigned char *var) | ~~~~~~~~~~~~~~~^~~ commands.c:1704:28: warning: pointer targets in passing argument 1 of 'env_find' differ in signedness [-Wpointer-sign] 1704 | if ((ep = env_find("TERM"))) | ^~~~~~ | | | char * commands.c:1632:25: note: expected 'unsigned char *' but argument is of type 'char *' 1632 | env_find(unsigned char *var) | ~~~~~~~~~~~~~~~^~~ commands.c: In function 'env_define': commands.c:1732:22: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] 1732 | if ((ep->var = strdup((char *)var)) == NULL) | ^ commands.c:1734:24: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] 1734 | if ((ep->value = strdup((char *)value)) == NULL) | ^ commands.c: In function 'tn': commands.c:2355:25: warning: comparison of integer expressions of different signedness: 'long unsigned int' and 'int' [-Wsign-compare] 2355 | } else if (temp == -1) { | ^~ commands.c: At top level: commands.c:2551:41: warning: cast between incompatible function types from 'int (*)(void)' to 'int (*)(int, char **)' [-Wcast-function-type] 2551 | { "quit", quithelp, (cmd_handler_t)quit, 0 }, | ^ commands.c: In function 'help': commands.c:2712:43: warning: field width specifier '*' expects argument of type 'int', but argument 2 has type 'long unsigned int' [-Wformat=] 2712 | printf("%-*s\t%s\r\n", HELPINDENT, c->name, | ~~^~ | | | int commands.c: In function 'sourceroute': commands.c:2782:25: warning: unused variable 'host' [-Wunused-variable] 2782 | struct hostent *host = 0; | ^~~~ commands.c:2780:13: warning: unused variable 'tmp' [-Wunused-variable] 2780 | int tmp; | ^~~ commands.c: In function 'env_init': commands.c:1688:17: warning: ignoring return value of 'asprintf' declared with attribute 'warn_unused_result' [-Wunused-result] 1688 | asprintf (&cp, "%s%s", hbuf, cp2); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ commands.c: In function 'tn': commands.c:2294:16: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 2294 | (void) fgets(&line[strlen(line)], sizeof(line) - strlen(line), stdin); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ commands.c: In function 'setescape': commands.c:1295:24: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 1295 | (void) fgets(buf, sizeof(buf), stdin); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ commands.c: At top level: commands.c:46:13: warning: '_hostname' defined but not used [-Wunused-variable] 46 | static char _hostname[MAXHOSTNAMELEN]; | ^~~~~~~~~ make[1]: *** [../MRULES:4: commands.o] Error 1 make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/netkit-telnet-0.17/telnet' make: *** [Makefile:8: telnet.build] Error 2 error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.iD5rlc (%build) RPM build warnings: %patchN is deprecated (24 usages found), use %patch N (or %patch -P N) RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.iD5rlc (%build) I: [iurt_root_command] ERROR: chroot