D: [iurt_root_command] chroot Building target platforms: x86_64 Building for target x86_64 Installing /home/pterjan/rpmbuild/SRPMS/netkit-telnet-0.17-23.mga10.src.rpm Executing(%mkbuilddir): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.DwpyLi Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.B7CGJk + umask 022 + cd /home/pterjan/rpmbuild/BUILD/netkit-telnet-0.17-build + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD/netkit-telnet-0.17-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 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + mv telnet telnet-NETKIT + cd /home/pterjan/rpmbuild/BUILD/netkit-telnet-0.17-build + cd netkit-telnet-0.17 + /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 + echo 'Patch #106 (netkit-telnet-fix-build-with-gcc14.patch):' Patch #106 (netkit-telnet-fix-build-with-gcc14.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .gcc14 --fuzz=0 patching file telnet/commands.c + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.tGIkzo + umask 022 + cd /home/pterjan/rpmbuild/BUILD/netkit-telnet-0.17-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 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 Checking if C++ compiler works... yes Checking if g++ accepts gcc warnings... yes Checking if gcc accepts -O2... yes Checking if g++ accepts -O2... yes Checking if g++ accepts -fno-rtti... yes Checking if g++ 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-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 -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 -O2 -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 -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 -O2 -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:524, 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:24: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 965 | (*ct->handler)((int) argv[2]); | ^ 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]; | ^~~~~~~~~ In file included from /usr/include/string.h:548, from telnet_locl.h:46: In function 'strncpy', inlined from 'cmdrc' at commands.c:2230:3, inlined from 'tn' at commands.c:2485:5: /usr/include/bits/string_fortified.h:100:10: warning: '__builtin_strncpy' accessing 249 bytes at offsets 0 and 7 overlaps between 1 and 242 bytes at offset 7 [-Wrestrict] 100 | return __builtin___strncpy_chk (__dest, __src, __len, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 101 | __glibc_objsize (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~ In function 'strncpy', inlined from 'cmdrc' at commands.c:2228:3, inlined from 'tn' at commands.c:2485:5: /usr/include/bits/string_fortified.h:100:10: warning: '__builtin___strncpy_chk' accessing between 0 and 2147483904 bytes at offsets 0 and [0, 256] may overlap up to 256 bytes at offset [0, 255] [-Wrestrict] 100 | return __builtin___strncpy_chk (__dest, __src, __len, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 101 | __glibc_objsize (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~ In function 'strncpy', inlined from 'cmdrc' at commands.c:2226:3, inlined from 'tn' at commands.c:2485:5: /usr/include/bits/string_fortified.h:100:10: warning: '__builtin___strncpy_chk' accessing between 0 and 2147483904 bytes at offsets 0 and [0, 256] may overlap up to 256 bytes at offset [0, 255] [-Wrestrict] 100 | return __builtin___strncpy_chk (__dest, __src, __len, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 101 | __glibc_objsize (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~ 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 -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 -O2 -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../ main.c -c main.c: In function 'main': main.c:155:44: warning: pointer targets in passing argument 1 of 'env_define' differ in signedness [-Wpointer-sign] 155 | env_define("DISPLAY", (unsigned char*)p); | ^~~~~~~~~ | | | char * In file included from telnet_locl.h:85, from main.c:43: externs.h:197:29: note: expected 'unsigned char *' but argument is of type 'char *' 197 | struct env_lst *env_define (unsigned char *, unsigned char *); | ^~~~~~~~~~~~~~~ main.c: At top level: main.c:38:13: warning: 'copyright' defined but not used [-Wunused-variable] 38 | static char copyright[] = | ^~~~~~~~~ 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 -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 -O2 -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../ network.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 -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 -O2 -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../ ring.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 -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 -O2 -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../ sys_bsd.c -c sys_bsd.c: In function 'TerminalNewMode': sys_bsd.c:651:9: warning: 'sigsetmask' is deprecated [-Wdeprecated-declarations] 651 | (void) sigsetmask(sigblock(0) & ~(1<<(SIGTSTP-1))); | ^ In file included from telnet_locl.h:48, from sys_bsd.c:37: /usr/include/signal.h:176:12: note: declared here 176 | extern int sigsetmask (int __mask) __THROW __attribute_deprecated__; | ^~~~~~~~~~ sys_bsd.c:651:9: warning: 'sigblock' is deprecated [-Wdeprecated-declarations] 651 | (void) sigsetmask(sigblock(0) & ~(1<<(SIGTSTP-1))); | ^ /usr/include/signal.h:173:12: note: declared here 173 | extern int sigblock (int __mask) __THROW __attribute_deprecated__; | ^~~~~~~~ sys_bsd.c:652:9: warning: extra tokens at end of '#else' directive [-Wendif-labels] 652 | # else SOLARIS | ^~~~~~~ sys_bsd.c:654:9: warning: extra tokens at end of '#endif' directive [-Wendif-labels] 654 | # endif SOLARIS | ^~~~~~~ sys_bsd.c: At top level: sys_bsd.c:834:1: warning: no previous prototype for 'deadpeer' [-Wmissing-prototypes] 834 | deadpeer(int sig) | ^~~~~~~~ sys_bsd.c:843:1: warning: no previous prototype for 'intr' [-Wmissing-prototypes] 843 | intr(int sig) | ^~~~ sys_bsd.c:856:1: warning: no previous prototype for 'intr2' [-Wmissing-prototypes] 856 | intr2(int sig) | ^~~~~ sys_bsd.c:886:1: warning: no previous prototype for 'sendwin' [-Wmissing-prototypes] 886 | sendwin(int sig) | ^~~~~~~ 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 -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 -O2 -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../ telnet.c -c telnet.c: In function 'lm_will': telnet.c:987:23: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare] 987 | if (NETROOM() > sizeof(str_lm)) { | ^ telnet.c: In function 'lm_do': telnet.c:1023:23: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare] 1023 | if (NETROOM() > sizeof(str_lm)) { | ^ telnet.c: In function 'lm_mode': telnet.c:1064:23: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare] 1064 | if (NETROOM() > sizeof(str_lm_mode)) { | ^ telnet.c: In function 'slc_import': telnet.c:1188:19: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare] 1188 | if (NETROOM() > sizeof(slc_import_val)) { | ^ telnet.c: In function 'wontoption': telnet.c:342:20: warning: this statement may fall through [-Wimplicit-fallthrough=] 342 | if (!kludgelinemode) | ^ telnet.c:346:13: note: here 346 | case TELOPT_ECHO: | ^~~~ 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 -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 -O2 -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../ terminal.c -c terminal.c: In function 'ttyflush': terminal.c:134:52: warning: pointer targets in passing argument 1 of 'TerminalWrite' differ in signedness [-Wpointer-sign] 134 | n1 = TerminalWrite(ttyoring.bottom, n1); | ~~~~~~~~^~~~~~~ | | | unsigned char * In file included from telnet_locl.h:85, from terminal.c:37: externs.h:251:25: note: expected 'char *' but argument is of type 'unsigned char *' 251 | int TerminalWrite(char *buf, int n); | ~~~~~~^~~ 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 -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 -O2 -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../ tn3270.c -c tn3270.c:72:1: warning: no previous prototype for 'init_3270' [-Wmissing-prototypes] 72 | init_3270(void) | ^~~~~~~~~ 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 -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 -O2 -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../ utilities.c -c utilities.c: In function 'printsub': utilities.c:275:10: warning: unused variable 'buf' [-Wunused-variable] 275 | char buf[512]; | ^~~ 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 -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 -O2 -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../ ../libtelnet/genget.c -c ../libtelnet/genget.c: In function 'isprefix': ../libtelnet/genget.c:54:1: warning: old-style function definition [-Wold-style-definition] 54 | isprefix(s1, s2) | ^~~~~~~~ ../libtelnet/genget.c: In function 'genget': ../libtelnet/genget.c:77:1: warning: old-style function definition [-Wold-style-definition] 77 | genget(name, table, stlen) | ^~~~~~ ../libtelnet/genget.c: In function 'Ambiguous': ../libtelnet/genget.c:105:1: warning: old-style function definition [-Wold-style-definition] 105 | Ambiguous(s) | ^~~~~~~~~ ../libtelnet/genget.c: At top level: ../libtelnet/genget.c:39:14: warning: 'rcsid' defined but not used [-Wunused-variable] 39 | static char *rcsid = "$OpenBSD: genget.c,v 1.4 1998/03/12 04:48:50 art Exp $"; | ^~~~~ cc authenc.o commands.o main.o network.o ring.o sys_bsd.o telnet.o terminal.o tn3270.o utilities.o genget.o -lncurses -o telnet make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/netkit-telnet-0.17-build/netkit-telnet-0.17/telnet' (cd telnetd && /usr/bin/make) make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/netkit-telnet-0.17-build/netkit-telnet-0.17/telnetd' 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 -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 -O2 -Wall -W -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline '-DISSUE_FILE="/etc/issue.net"' -DPARANOID_TTYS -DNO_REVOKE -DKLUDGELINEMODE -DDIAGNOSTICS telnetd.c -c telnetd.c: In function 'telnet': telnetd.c:772:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 772 | if (my_state_is_wont(TELOPT_SGA)) | ^~ In file included from telnetd.h:39, from telnetd.c:53: ext.h:45:23: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 45 | #define CHECK_CLEANUP if (do_cleanup) { cleanup(0); } | ^~ telnetd.c:774:9: note: in expansion of macro 'CHECK_CLEANUP' 774 | CHECK_CLEANUP; | ^~~~~~~~~~~~~ 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 -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 -O2 -Wall -W -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline '-DISSUE_FILE="/etc/issue.net"' -DPARANOID_TTYS -DNO_REVOKE -DKLUDGELINEMODE -DDIAGNOSTICS state.c -c state.c: In function 'suboption': state.c:1208:24: warning: comparison of distinct pointer types lacks a cast [-Wcompare-distinct-pointer-types] 1208 | if (cp < subbuffer+sizeof(subbuffer)-1) *cp++ = c; | ^ state.c: In function 'send_status': state.c:1369:20: warning: pointer targets in passing argument 1 of 'output_datalen' differ in signedness [-Wpointer-sign] 1369 | output_datalen(statusbuf, ncp - statusbuf); | ^~~~~~~~~ | | | unsigned char * In file included from telnetd.h:39, from state.c:41: ext.h:95:24: note: expected 'const char *' but argument is of type 'unsigned char *' 95 | void output_datalen(const char *, int); | ^~~~~~~~~~~~ state.c: In function 'willoption': state.c:519:46: warning: this statement may fall through [-Wimplicit-fallthrough=] 519 | slctab[SLC_XOFF].defset.flag |= SLC_DEFAULT; | ^ state.c:520:13: note: here 520 | case TELOPT_TTYPE: | ^~~~ 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 -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 -O2 -Wall -W -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline '-DISSUE_FILE="/etc/issue.net"' -DPARANOID_TTYS -DNO_REVOKE -DKLUDGELINEMODE -DDIAGNOSTICS termstat.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 -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 -O2 -Wall -W -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline '-DISSUE_FILE="/etc/issue.net"' -DPARANOID_TTYS -DNO_REVOKE -DKLUDGELINEMODE -DDIAGNOSTICS slc.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 -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 -O2 -Wall -W -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline '-DISSUE_FILE="/etc/issue.net"' -DPARANOID_TTYS -DNO_REVOKE -DKLUDGELINEMODE -DDIAGNOSTICS sys_term.c -c sys_term.c: In function 'start_login': sys_term.c:671:21: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 671 | write(1,"I don't hear you!\r\n",19); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sys_term.c: In function 'cleanup': sys_term.c:745:5: warning: ignoring return value of 'chown' declared with attribute 'warn_unused_result' [-Wunused-result] 745 | chown(line, 0, 0); | ^~~~~~~~~~~~~~~~~ sys_term.c:748:5: warning: ignoring return value of 'chown' declared with attribute 'warn_unused_result' [-Wunused-result] 748 | chown(line, 0, 0); | ^~~~~~~~~~~~~~~~~ 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 -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 -O2 -Wall -W -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline '-DISSUE_FILE="/etc/issue.net"' -DPARANOID_TTYS -DNO_REVOKE -DKLUDGELINEMODE -DDIAGNOSTICS utility.c -c utility.c: In function 'printsub': utility.c:693:42: warning: trigraph '??)' ignored, use '-trigraphs' to enable [-Wtrigraphs] 693 | netoprintf("(Empty suboption???)"); utility.c:714:47: warning: trigraph '??)' ignored, use '-trigraphs' to enable [-Wtrigraphs] 714 | netoprintf(" (empty suboption???)"); utility.c:736:47: warning: trigraph '??)' ignored, use '-trigraphs' to enable [-Wtrigraphs] 736 | netoprintf(" (empty suboption???)"); utility.c:755:47: warning: trigraph '??)' ignored, use '-trigraphs' to enable [-Wtrigraphs] 755 | netoprintf(" (empty suboption???)"); utility.c:780:47: warning: trigraph '??)' ignored, use '-trigraphs' to enable [-Wtrigraphs] 780 | netoprintf(" (empty suboption???)"); utility.c:797:44: warning: trigraph '??)' ignored, use '-trigraphs' to enable [-Wtrigraphs] 797 | netoprintf("(no option???)"); utility.c:854:42: warning: trigraph '??)' ignored, use '-trigraphs' to enable [-Wtrigraphs] 854 | netoprintf("(no mode???)"); utility.c:1029:47: warning: trigraph '??)' ignored, use '-trigraphs' to enable [-Wtrigraphs] 1029 | netoprintf(" (empty suboption???)"); utility.c:1042:52: warning: trigraph '??)' ignored, use '-trigraphs' to enable [-Wtrigraphs] 1042 | netoprintf("(partial suboption???)"); utility.c:1064:56: warning: trigraph '??)' ignored, use '-trigraphs' to enable [-Wtrigraphs] 1064 | netoprintf("(partial suboption???)"); utility.c:1105:47: warning: trigraph '??)' ignored, use '-trigraphs' to enable [-Wtrigraphs] 1105 | netoprintf(" (empty suboption???)"); utility.c:1130:53: warning: trigraph '??)' ignored, use '-trigraphs' to enable [-Wtrigraphs] 1130 | netoprintf(" (partial suboption???)"); utility.c: In function 'fatal': utility.c:449:16: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 449 | (void) write(f, buf, (int)strlen(buf)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ utility.c: In function 'printsub': utility.c:859:59: warning: '%s' directive output may be truncated writing up to 4 bytes into a region of size between 1 and 32 [-Wformat-truncation=] 859 | snprintf(tbuf, sizeof(tbuf), "%s%s%s%s%s", | ^~ In file included from /usr/include/stdio.h:970, from utility.c:44: In function 'snprintf', inlined from 'printsub' at utility.c:859:7: /usr/include/bits/stdio2.h:68:10: note: '__builtin___snprintf_chk' output between 1 and 36 bytes into a destination of size 32 68 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 69 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 70 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ 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 -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 -O2 -Wall -W -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline '-DISSUE_FILE="/etc/issue.net"' -DPARANOID_TTYS -DNO_REVOKE -DKLUDGELINEMODE -DDIAGNOSTICS global.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 -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 -O2 -Wall -W -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline '-DISSUE_FILE="/etc/issue.net"' -DPARANOID_TTYS -DNO_REVOKE -DKLUDGELINEMODE -DDIAGNOSTICS setproctitle.c -c cc telnetd.o state.o termstat.o slc.o sys_term.o utility.o global.o setproctitle.o -o telnetd make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/netkit-telnet-0.17-build/netkit-telnet-0.17/telnetd' + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.cj64cH + umask 022 + cd /home/pterjan/rpmbuild/BUILD/netkit-telnet-0.17-build + '[' 1 -eq 1 ']' + '[' /home/pterjan/rpmbuild/BUILD/netkit-telnet-0.17-build/BUILDROOT '!=' / ']' + rm -rf /home/pterjan/rpmbuild/BUILD/netkit-telnet-0.17-build/BUILDROOT ++ dirname /home/pterjan/rpmbuild/BUILD/netkit-telnet-0.17-build/BUILDROOT + mkdir -p /home/pterjan/rpmbuild/BUILD/netkit-telnet-0.17-build + mkdir /home/pterjan/rpmbuild/BUILD/netkit-telnet-0.17-build/BUILDROOT + 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 netkit-telnet-0.17 + '[' 1 -eq 1 ']' + install -d /home/pterjan/rpmbuild/BUILD/netkit-telnet-0.17-build/BUILDROOT/usr/bin + install -d /home/pterjan/rpmbuild/BUILD/netkit-telnet-0.17-build/BUILDROOT/usr/sbin + install -d /home/pterjan/rpmbuild/BUILD/netkit-telnet-0.17-build/BUILDROOT/usr/share/man/man1 + install -d /home/pterjan/rpmbuild/BUILD/netkit-telnet-0.17-build/BUILDROOT/usr/share/man/man8 + install -m0755 telnet/telnet /home/pterjan/rpmbuild/BUILD/netkit-telnet-0.17-build/BUILDROOT/usr/bin/telnet + install -m0644 telnet/telnet.1 /home/pterjan/rpmbuild/BUILD/netkit-telnet-0.17-build/BUILDROOT/usr/share/man/man1/telnet.1 + install -m0755 telnetd/telnetd /home/pterjan/rpmbuild/BUILD/netkit-telnet-0.17-build/BUILDROOT/usr/sbin/telnetd + install -m0644 telnetd/telnetd.8 /home/pterjan/rpmbuild/BUILD/netkit-telnet-0.17-build/BUILDROOT/usr/share/man/man8/telnetd.8 + /usr/bin/find-debuginfo -j16 --strict-build-id -m -i --build-id-seed 0.17-23.mga10 --unique-debug-suffix -0.17-23.mga10.x86_64 --unique-debug-src-base netkit-telnet-0.17-23.mga10.x86_64 --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 110000000 -S debugsourcefiles.list /home/pterjan/rpmbuild/BUILD/netkit-telnet-0.17-build/netkit-telnet-0.17 find-debuginfo: starting Extracting debug info from 2 files DWARF-compressing 2 files sepdebugcrcfix: Updated 2 CRC32s, 0 CRC32s did match. Creating .debug symlinks for symlinks to ELF files Copying sources found by 'debugedit -l' to /usr/src/debug/netkit-telnet-0.17-23.mga10.x86_64 find-debuginfo: done + /usr/lib/rpm/check-buildroot + '[' -n '' ']' + /usr/share/spec-helper/clean_files + '[' -n '' ']' + /usr/share/spec-helper/compress_files .xz + '[' -n '' ']' + /usr/share/spec-helper/relink_symlinks + '[' -n '' ']' + /usr/share/spec-helper/clean_perl + '[' -n '' ']' + /usr/share/spec-helper/lib_symlinks + '[' -n '' ']' + /usr/share/spec-helper/gprintify + '[' -n '' ']' + /usr/share/spec-helper/fix_mo + '[' -n '' ']' + /usr/share/spec-helper/fix_pamd + '[' -n '' ']' + /usr/share/spec-helper/remove_info_dir + '[' -n '' ']' + /usr/share/spec-helper/fix_eol + '[' -n '' ']' + /usr/share/spec-helper/check_desktop_files + '[' -n '' ']' + /usr/share/spec-helper/check_elf_files + /usr/lib/rpm/check-rpaths + /usr/lib/rpm/brp-remove-la-files + /usr/lib/rpm/redhat/brp-mangle-shebangs + env -u SOURCE_DATE_EPOCH /usr/lib/rpm/redhat/brp-python-bytecompile '' 1 0 -j16 + /usr/lib/rpm/redhat/brp-python-hardlink Reading /home/pterjan/rpmbuild/BUILD/netkit-telnet-0.17-build/SPECPARTS/rpm-debuginfo.specpart Processing files: netkit-telnet-0.17-23.mga10.x86_64 Executing(%doc): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.8ReZjF + umask 022 + cd /home/pterjan/rpmbuild/BUILD/netkit-telnet-0.17-build + cd netkit-telnet-0.17 + DOCDIR=/home/pterjan/rpmbuild/BUILD/netkit-telnet-0.17-build/BUILDROOT/usr/share/doc/netkit-telnet + export LC_ALL=C + LC_ALL=C + export DOCDIR + /usr/bin/mkdir -p /home/pterjan/rpmbuild/BUILD/netkit-telnet-0.17-build/BUILDROOT/usr/share/doc/netkit-telnet + cp -pr /home/pterjan/rpmbuild/BUILD/netkit-telnet-0.17-build/netkit-telnet-0.17/ChangeLog /home/pterjan/rpmbuild/BUILD/netkit-telnet-0.17-build/BUILDROOT/usr/share/doc/netkit-telnet + cp -pr /home/pterjan/rpmbuild/BUILD/netkit-telnet-0.17-build/netkit-telnet-0.17/README /home/pterjan/rpmbuild/BUILD/netkit-telnet-0.17-build/BUILDROOT/usr/share/doc/netkit-telnet + RPM_EC=0 ++ jobs -p + exit 0 Provides: netkit-telnet = 0.17-23.mga10 netkit-telnet(x86-64) = 0.17-23.mga10 telnet-client Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: libc.so.6()(64bit) libc.so.6(GLIBC_2.11)(64bit) libc.so.6(GLIBC_2.15)(64bit) libc.so.6(GLIBC_2.2.5)(64bit) libc.so.6(GLIBC_2.3)(64bit) libc.so.6(GLIBC_2.3.4)(64bit) libc.so.6(GLIBC_2.34)(64bit) libc.so.6(GLIBC_2.4)(64bit) libc.so.6(GLIBC_2.8)(64bit) libncurses.so.6()(64bit) libtinfo.so.6()(64bit) Conflicts: heimdal-telnet krb5-appl-clients Processing files: netkit-telnet-server-0.17-23.mga10.x86_64 Executing(%doc): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.gY8sbX + umask 022 + cd /home/pterjan/rpmbuild/BUILD/netkit-telnet-0.17-build + cd netkit-telnet-0.17 + DOCDIR=/home/pterjan/rpmbuild/BUILD/netkit-telnet-0.17-build/BUILDROOT/usr/share/doc/netkit-telnet-server + export LC_ALL=C + LC_ALL=C + export DOCDIR + /usr/bin/mkdir -p /home/pterjan/rpmbuild/BUILD/netkit-telnet-0.17-build/BUILDROOT/usr/share/doc/netkit-telnet-server + cp -pr /home/pterjan/rpmbuild/BUILD/netkit-telnet-0.17-build/netkit-telnet-0.17/ChangeLog /home/pterjan/rpmbuild/BUILD/netkit-telnet-0.17-build/BUILDROOT/usr/share/doc/netkit-telnet-server + cp -pr /home/pterjan/rpmbuild/BUILD/netkit-telnet-0.17-build/netkit-telnet-0.17/README /home/pterjan/rpmbuild/BUILD/netkit-telnet-0.17-build/BUILDROOT/usr/share/doc/netkit-telnet-server + RPM_EC=0 ++ jobs -p + exit 0 Provides: netkit-telnet-server = 0.17-23.mga10 netkit-telnet-server(x86-64) = 0.17-23.mga10 telnet-server telnetd = 0.17-23.mga10 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: libc.so.6()(64bit) libc.so.6(GLIBC_2.15)(64bit) libc.so.6(GLIBC_2.2.5)(64bit) libc.so.6(GLIBC_2.3)(64bit) libc.so.6(GLIBC_2.3.4)(64bit) libc.so.6(GLIBC_2.34)(64bit) libc.so.6(GLIBC_2.38)(64bit) libc.so.6(GLIBC_2.4)(64bit) libc.so.6(GLIBC_2.8)(64bit) Conflicts: heimdal-telnetd krb5-appl-servers Obsoletes: telnetd < 0.17-23.mga10 Processing files: netkit-telnet-debugsource-0.17-23.mga10.x86_64 Provides: netkit-telnet-debugsource = 0.17-23.mga10 netkit-telnet-debugsource(x86-64) = 0.17-23.mga10 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Processing files: netkit-telnet-debuginfo-0.17-23.mga10.x86_64 Provides: debuginfo(build-id) = a716cfc6407d4637eab92a21e82753f242d72ac2 netkit-telnet-debuginfo = 0.17-23.mga10 netkit-telnet-debuginfo(x86-64) = 0.17-23.mga10 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Recommends: netkit-telnet-debugsource(x86-64) = 0.17-23.mga10 Processing files: netkit-telnet-server-debuginfo-0.17-23.mga10.x86_64 Provides: debuginfo(build-id) = bc13c7fb536ee5674361b610dfb60c975da4ca4b netkit-telnet-server-debuginfo = 0.17-23.mga10 netkit-telnet-server-debuginfo(x86-64) = 0.17-23.mga10 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Recommends: netkit-telnet-debugsource(x86-64) = 0.17-23.mga10 Checking for unpackaged file(s): /usr/lib/rpm/check-files /home/pterjan/rpmbuild/BUILD/netkit-telnet-0.17-build/BUILDROOT Wrote: /home/pterjan/rpmbuild/RPMS/x86_64/netkit-telnet-server-0.17-23.mga10.x86_64.rpm Wrote: /home/pterjan/rpmbuild/RPMS/x86_64/netkit-telnet-server-debuginfo-0.17-23.mga10.x86_64.rpm Wrote: /home/pterjan/rpmbuild/RPMS/x86_64/netkit-telnet-0.17-23.mga10.x86_64.rpm Wrote: /home/pterjan/rpmbuild/RPMS/x86_64/netkit-telnet-debuginfo-0.17-23.mga10.x86_64.rpm Wrote: /home/pterjan/rpmbuild/RPMS/x86_64/netkit-telnet-debugsource-0.17-23.mga10.x86_64.rpm Executing(rmbuild): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.YUI1xm + umask 022 + cd /home/pterjan/rpmbuild/BUILD/netkit-telnet-0.17-build + test -d /home/pterjan/rpmbuild/BUILD/netkit-telnet-0.17-build + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w /home/pterjan/rpmbuild/BUILD/netkit-telnet-0.17-build + rm -rf /home/pterjan/rpmbuild/BUILD/netkit-telnet-0.17-build + RPM_EC=0 ++ jobs -p + exit 0 D: [iurt_root_command] Success!