Mock Version: 1.3.4 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/telnet.spec'], nspawn_args=[]shell=Falseuid=1004env={'LANG': 'en_US.utf8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOSTNAME': 'mock', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'HOME': '/builddir', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PS1': ' \\s-\\v\\$ '}chrootPath='/var/lib/mock/centos-7-x86_64/root'gid=135user='mockbuild'timeout=0logger=printOutput=True) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/telnet.spec'] with env {'LANG': 'en_US.utf8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOSTNAME': 'mock', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'HOME': '/builddir', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PS1': ' \\s-\\v\\$ '} and shell False Building target platforms: x86_64 Building for target x86_64 Wrote: /builddir/build/SRPMS/telnet-0.17-64.el7.src.rpm Child return code was: 0 ENTER ['do'](['bash', '--login', '-c', u'/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/telnet.spec'], nspawn_args=[]shell=Falseuid=1004env={'LANG': 'en_US.utf8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOSTNAME': 'mock', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'HOME': '/builddir', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PS1': ' \\s-\\v\\$ '}chrootPath='/var/lib/mock/centos-7-x86_64/root'gid=135user='mockbuild'timeout=0logger=printOutput=True) Executing command: ['bash', '--login', '-c', u'/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/telnet.spec'] with env {'LANG': 'en_US.utf8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOSTNAME': 'mock', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'HOME': '/builddir', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PS1': ' \\s-\\v\\$ '} and shell False Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.OdQSp3 + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf netkit-telnet-0.17 + /usr/bin/gzip -dc /builddir/build/SOURCES/netkit-telnet-0.17.tar.gz + /usr/bin/tar -xf - + 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 /builddir/build/BUILD + cd netkit-telnet-0.17 + /usr/bin/gzip -dc /builddir/build/SOURCES/telnet-client.tar.gz + /usr/bin/tar -xf - + STATUS=0 + '[' 0 -ne 0 ']' + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . Patch #1 (telnet-client-cvs.patch): + echo 'Patch #1 (telnet-client-cvs.patch):' + /usr/bin/cat /builddir/build/SOURCES/telnet-client-cvs.patch + /usr/bin/patch -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 Patch #5 (telnetd-0.17.diff): + echo 'Patch #5 (telnetd-0.17.diff):' + /usr/bin/cat /builddir/build/SOURCES/telnetd-0.17.diff + /usr/bin/patch -p0 -b --suffix .fix --fuzz=0 patching file telnetd/telnetd.c patching file telnetd/defs.h Patch #6 (telnet-0.17-env.patch): + echo 'Patch #6 (telnet-0.17-env.patch):' + /usr/bin/cat /builddir/build/SOURCES/telnet-0.17-env.patch + /usr/bin/patch -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 Patch #10 (telnet-0.17-pek.patch): + echo 'Patch #10 (telnet-0.17-pek.patch):' + /usr/bin/cat /builddir/build/SOURCES/telnet-0.17-pek.patch + /usr/bin/patch -p0 -b --suffix .pek --fuzz=0 patching file telnet/commands.c Patch #7 (telnet-0.17-issue.patch): + echo 'Patch #7 (telnet-0.17-issue.patch):' + /usr/bin/cat /builddir/build/SOURCES/telnet-0.17-issue.patch + /usr/bin/patch -p1 -b --suffix .issue --fuzz=0 patching file telnetd/utility.c patching file telnetd/issue.net.5 Patch #8 (telnet-0.17-sa-01-49.patch): + echo 'Patch #8 (telnet-0.17-sa-01-49.patch):' + /usr/bin/cat /builddir/build/SOURCES/telnet-0.17-sa-01-49.patch + /usr/bin/patch -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 Patch #11 (telnet-0.17-8bit.patch): + echo 'Patch #11 (telnet-0.17-8bit.patch):' + /usr/bin/cat /builddir/build/SOURCES/telnet-0.17-8bit.patch + /usr/bin/patch -p1 -b --suffix .8bit --fuzz=0 patching file telnet/main.c patching file telnet/telnet.1 Patch #12 (telnet-0.17-argv.patch): + echo 'Patch #12 (telnet-0.17-argv.patch):' + /usr/bin/cat /builddir/build/SOURCES/telnet-0.17-argv.patch + /usr/bin/patch -p1 -b --suffix .argv --fuzz=0 patching file telnetd/setproctitle.c Patch #13 (telnet-0.17-conf.patch): + echo 'Patch #13 (telnet-0.17-conf.patch):' + /usr/bin/cat /builddir/build/SOURCES/telnet-0.17-conf.patch + /usr/bin/patch -p1 -b --suffix .confverb --fuzz=0 patching file configure Patch #14 (telnet-0.17-cleanup_race.patch): + echo 'Patch #14 (telnet-0.17-cleanup_race.patch):' + /usr/bin/cat /builddir/build/SOURCES/telnet-0.17-cleanup_race.patch + /usr/bin/patch -p1 -b --suffix .cleanup_race --fuzz=0 patching file telnetd/telnetd.c Patch #15 (telnetd-0.17-pty_read.patch): + echo 'Patch #15 (telnetd-0.17-pty_read.patch):' + /usr/bin/cat /builddir/build/SOURCES/telnetd-0.17-pty_read.patch + /usr/bin/patch -p0 -b --suffix .pty_read --fuzz=0 patching file telnetd/telnetd.c Patch #16 (telnet-0.17-CAN-2005-468_469.patch): + echo 'Patch #16 (telnet-0.17-CAN-2005-468_469.patch):' + /usr/bin/cat /builddir/build/SOURCES/telnet-0.17-CAN-2005-468_469.patch + /usr/bin/patch -p1 -b --suffix .CAN-2005-468_469 --fuzz=0 patching file telnet/telnet.c Patch #18 (telnet-gethostbyname.patch): + echo 'Patch #18 (telnet-gethostbyname.patch):' + /usr/bin/cat /builddir/build/SOURCES/telnet-gethostbyname.patch + /usr/bin/patch -p1 -b --suffix .gethost --fuzz=0 patching file telnet/commands.c Patch #19 (netkit-telnet-0.17-ipv6.diff): + echo 'Patch #19 (netkit-telnet-0.17-ipv6.diff):' + /usr/bin/cat /builddir/build/SOURCES/netkit-telnet-0.17-ipv6.diff + /usr/bin/patch -p1 -b --suffix .gethost2 --fuzz=0 (Stripping trailing CRs from patch; use --binary to disable.) patching file telnetd/telnetd.c Patch #20 (netkit-telnet-0.17-nodns.patch): + echo 'Patch #20 (netkit-telnet-0.17-nodns.patch):' + /usr/bin/cat /builddir/build/SOURCES/netkit-telnet-0.17-nodns.patch + /usr/bin/patch -p1 -b --suffix .nodns --fuzz=0 patching file telnetd/telnetd.c Patch #21 (telnet-0.17-errno_test_sys_bsd.patch): + echo 'Patch #21 (telnet-0.17-errno_test_sys_bsd.patch):' + /usr/bin/cat /builddir/build/SOURCES/telnet-0.17-errno_test_sys_bsd.patch + /usr/bin/patch -p1 -b --suffix .errnosysbsd --fuzz=0 patching file telnet/sys_bsd.c Patch #22 (netkit-telnet-0.17-reallynodns.patch): + echo 'Patch #22 (netkit-telnet-0.17-reallynodns.patch):' + /usr/bin/cat /builddir/build/SOURCES/netkit-telnet-0.17-reallynodns.patch + /usr/bin/patch -p1 -b --suffix .reallynodns --fuzz=0 patching file telnetd/telnetd.c patching file telnetd/telnetd.8 Patch #23 (telnet-rh678324.patch): + echo 'Patch #23 (telnet-rh678324.patch):' + /usr/bin/cat /builddir/build/SOURCES/telnet-rh678324.patch + /usr/bin/patch -p1 -b --suffix .rh678324 --fuzz=0 patching file telnetd/telnetd.c Patch #24 (telnet-rh674942.patch): + echo 'Patch #24 (telnet-rh674942.patch):' + /usr/bin/cat /builddir/build/SOURCES/telnet-rh674942.patch + /usr/bin/patch -p1 -b --suffix .rh674942 --fuzz=0 patching file telnetd/telnetd.c Patch #25 (telnet-rh704604.patch): + echo 'Patch #25 (telnet-rh704604.patch):' + /usr/bin/cat /builddir/build/SOURCES/telnet-rh704604.patch + /usr/bin/patch -p1 -b --suffix .rh704604 --fuzz=0 patching file telnet/commands.c Patch #26 (telnet-rh825946.patch): + echo 'Patch #26 (telnet-rh825946.patch):' + /usr/bin/cat /builddir/build/SOURCES/telnet-rh825946.patch + /usr/bin/patch -p1 -b --suffix .rh825946 --fuzz=0 patching file telnetd/sys_term.c patching file telnetd/telnetd.c Patch #27 (telnet-log-address.patch): + echo 'Patch #27 (telnet-log-address.patch):' + /usr/bin/cat /builddir/build/SOURCES/telnet-log-address.patch + /usr/bin/patch -p1 -b --suffix .rh1323094 --fuzz=0 patching file telnetd/telnetd.8 patching file telnetd/telnetd.c Patch #28 (telnet-0.17-force-ipv6-ipv4.patch): + echo 'Patch #28 (telnet-0.17-force-ipv6-ipv4.patch):' + /usr/bin/cat /builddir/build/SOURCES/telnet-0.17-force-ipv6-ipv4.patch + /usr/bin/patch -p1 -b --suffix .ipv6-support --fuzz=0 patching file telnet/commands.c patching file telnet/main.c Hunk #5 succeeded at 337 (offset -10 lines). patching file telnet/telnet.1 Patch #29 (netkit-telnet-0.17-manpage.patch): + echo 'Patch #29 (netkit-telnet-0.17-manpage.patch):' + /usr/bin/cat /builddir/build/SOURCES/netkit-telnet-0.17-manpage.patch + /usr/bin/patch -p1 -b --suffix .manpage --fuzz=0 patching file telnet/telnet.1 + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.J8G23U + umask 022 + cd /builddir/build/BUILD + cd netkit-telnet-0.17 + export 'CC_FLAGS=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -fpie' + CC_FLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -fpie' + export 'LD_FLAGS= -z now -pie' + LD_FLAGS=' -z now -pie' + 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... -lutil Checking for logwtmp... -lutil Checking for snprintf declaration... ok Checking for snprintf implementation... ok Generating MCONFIG... + perl -pi -e ' s,-O2,\$(CC_FLAGS),; s,LDFLAGS=.*,LDFLAGS=\$(LD_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 + make -j16 (cd telnet && make) (cd telnetd && make) make[1]: Entering directory `/builddir/build/BUILD/netkit-telnet-0.17/telnet' gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -fpie -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 gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -fpie -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 make[1]: Entering directory `/builddir/build/BUILD/netkit-telnet-0.17/telnetd' gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -fpie -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 gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -fpie -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 gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -fpie -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 gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -fpie -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 gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -fpie -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 gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -fpie -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 gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -fpie -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 gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -fpie -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 gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -fpie -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 gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -fpie -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 gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -fpie -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 gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -fpie -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 gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -fpie -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 gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -fpie -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 state.c: In function 'suboption': state.c:1208:10: warning: comparison of distinct pointer types lacks a cast [enabled by default] if (cp < subbuffer+sizeof(subbuffer)-1) *cp++ = c; ^ state.c: In function 'send_status': state.c:1369:5: warning: pointer targets in passing argument 1 of 'output_datalen' differ in signedness [-Wpointer-sign] output_datalen(statusbuf, ncp - statusbuf); ^ In file included from telnetd.h:39:0, from state.c:41: ext.h:92:6: note: expected 'const char *' but argument is of type 'unsigned char *' void output_datalen(const char *, int); ^ terminal.c: In function 'ttyflush': terminal.c:134:4: warning: pointer targets in passing argument 1 of 'TerminalWrite' differ in signedness [-Wpointer-sign] n1 = TerminalWrite(ttyoring.bottom, n1); ^ In file included from telnet_locl.h:85:0, from terminal.c:37: externs.h:251:5: note: expected 'char *' but argument is of type 'unsigned char *' int TerminalWrite(char *buf, int n); ^ sys_bsd.c: In function 'TerminalNewMode': sys_bsd.c:651:2: warning: 'sigsetmask' is deprecated (declared at /usr/include/signal.h:200) [-Wdeprecated-declarations] (void) sigsetmask(sigblock(0) & ~(1<<(SIGTSTP-1))); ^ gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -fpie -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 sys_bsd.c:651:2: warning: 'sigblock' is deprecated (declared at /usr/include/signal.h:197) [-Wdeprecated-declarations] sys_bsd.c:652:8: warning: extra tokens at end of #else directive [enabled by default] # else SOLARIS ^ sys_bsd.c:654:9: warning: extra tokens at end of #endif directive [enabled by default] # endif SOLARIS ^ utility.c: In function 'printsub': utility.c:683:35: warning: trigraph ??) ignored, use -trigraphs to enable [-Wtrigraphs] netoprintf("(Empty suboption???)"); ^ sys_bsd.c: At top level: utility.c:704:33: warning: trigraph ??) ignored, use -trigraphs to enable [-Wtrigraphs] netoprintf(" (empty suboption???)"); ^ sys_bsd.c:834:1: warning: no previous prototype for 'deadpeer' [-Wmissing-prototypes] deadpeer(int sig) ^ sys_bsd.c:843:1: warning: no previous prototype for 'intr' [-Wmissing-prototypes] intr(int sig) ^ utility.c:726:33: warning: trigraph ??) ignored, use -trigraphs to enable [-Wtrigraphs] netoprintf(" (empty suboption???)"); ^ sys_bsd.c:856:1: warning: no previous prototype for 'intr2' [-Wmissing-prototypes] intr2(int sig) ^ gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -fpie -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 utility.c:745:33: warning: trigraph ??) ignored, use -trigraphs to enable [-Wtrigraphs] netoprintf(" (empty suboption???)"); ^ sys_bsd.c:886:1: warning: no previous prototype for 'sendwin' [-Wmissing-prototypes] sendwin(int sig) ^ utility.c:770:33: warning: trigraph ??) ignored, use -trigraphs to enable [-Wtrigraphs] netoprintf(" (empty suboption???)"); ^ utility.c:787:30: warning: trigraph ??) ignored, use -trigraphs to enable [-Wtrigraphs] netoprintf("(no option???)"); ^ utility.c:844:28: warning: trigraph ??) ignored, use -trigraphs to enable [-Wtrigraphs] netoprintf("(no mode???)"); ^ utility.c:1019:33: warning: trigraph ??) ignored, use -trigraphs to enable [-Wtrigraphs] netoprintf(" (empty suboption???)"); ^ utility.c:1032:38: warning: trigraph ??) ignored, use -trigraphs to enable [-Wtrigraphs] netoprintf("(partial suboption???)"); ^ utility.c:1054:35: warning: trigraph ??) ignored, use -trigraphs to enable [-Wtrigraphs] netoprintf("(partial suboption???)"); ^ utility.c:1095:33: warning: trigraph ??) ignored, use -trigraphs to enable [-Wtrigraphs] netoprintf(" (empty suboption???)"); ^ utility.c:1120:39: warning: trigraph ??) ignored, use -trigraphs to enable [-Wtrigraphs] netoprintf(" (partial suboption???)"); ^ utility.c: In function 'fatal': utility.c:439:2: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] (void) write(f, buf, (int)strlen(buf)); ^ telnet.c:120:1: warning: missing braces around initializer [-Wmissing-braces] sigjmp_buf toplevel = { 0 }; ^ telnet.c:120:1: warning: (near initialization for 'toplevel[0]') [-Wmissing-braces] telnet.c:120:1: warning: missing initializer for field '__mask_was_saved' of 'struct __jmp_buf_tag' [-Wmissing-field-initializers] In file included from telnet_locl.h:50:0, from telnet.c:37: /usr/include/setjmp.h:41:9: note: '__mask_was_saved' declared here int __mask_was_saved; /* Saved the signal mask? */ ^ telnet.c: In function 'lm_will': telnet.c:987:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (NETROOM() > sizeof(str_lm)) { ^ telnet.c: In function 'lm_do': telnet.c:1023:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (NETROOM() > sizeof(str_lm)) { ^ telnet.c: In function 'lm_mode': telnet.c:1064:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (NETROOM() > sizeof(str_lm_mode)) { ^ gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -fpie -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 telnet.c: In function 'slc_import': telnet.c:1188:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (NETROOM() > sizeof(slc_import_val)) { ^ main.c: In function 'main': main.c:165:5: warning: pointer targets in passing argument 1 of 'env_define' differ in signedness [-Wpointer-sign] env_define("DISPLAY", (unsigned char*)p); ^ In file included from telnet_locl.h:85:0, from main.c:43: externs.h:197:17: note: expected 'unsigned char *' but argument is of type 'char *' 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] static char copyright[] = ^ sys_term.c: In function 'start_login': sys_term.c:671:12: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] write(1,"I don't hear you!\r\n",19); ^ telnetd.c: In function 'main': telnetd.c:388:2: warning: passing argument 1 of 'doit' from incompatible pointer type [enabled by default] doit(&from, fromlen); ^ telnetd.c:72:13: note: expected 'struct sockaddr *' but argument is of type 'struct sockaddr_storage *' static void doit(struct sockaddr *who, socklen_t wholen); ^ sys_term.c: In function 'cleanup': sys_term.c:741:10: warning: ignoring return value of 'chown', declared with attribute warn_unused_result [-Wunused-result] chown(line, 0, 0); ^ sys_term.c:744:10: warning: ignoring return value of 'chown', declared with attribute warn_unused_result [-Wunused-result] chown(line, 0, 0); ^ ../libtelnet/genget.c:39:14: warning: 'rcsid' defined but not used [-Wunused-variable] static char *rcsid = "$OpenBSD: genget.c,v 1.4 1998/03/12 04:48:50 art Exp $"; ^ commands.c: In function 'send_tncmd': commands.c:400:5: warning: passing argument 1 of 'isprefix' discards 'const' qualifier from pointer target type [enabled by default] if (isprefix(name, "help") || isprefix(name, "?")) { ^ In file included from ../libtelnet/misc.h:44:0, from telnet_locl.h:79, from commands.c:37: ../libtelnet/misc-proto.h:80:5: note: expected 'char *' but argument is of type 'const char *' int isprefix __P((char *, char *)); ^ commands.c:400:5: warning: passing argument 1 of 'isprefix' discards 'const' qualifier from pointer target type [enabled by default] if (isprefix(name, "help") || isprefix(name, "?")) { ^ In file included from ../libtelnet/misc.h:44:0, from telnet_locl.h:79, from commands.c:37: ../libtelnet/misc-proto.h:80:5: note: expected 'char *' but argument is of type 'const char *' int isprefix __P((char *, char *)); ^ commands.c:420:5: warning: passing argument 1 of 'genget' discards 'const' qualifier from pointer target type [enabled by default] cpp = (char **)genget(name, telopts, sizeof(char *)); ^ In file included from ../libtelnet/misc.h:44:0, from telnet_locl.h:79, from commands.c:37: ../libtelnet/misc-proto.h:79:8: note: expected 'char *' but argument is of type 'const char *' char **genget __P((char *, char **, int)); ^ commands.c: In function 'setcmd': commands.c:964:2: warning: passing argument 1 of 'ct->handler' makes integer from pointer without a cast [enabled by default] (*ct->handler)(argv[2]); ^ commands.c:964:2: note: expected 'int' but argument is of type 'char *' commands.c: In function 'shell': commands.c:1382:3: warning: missing sentinel in function call [-Wformat=] execl(shellp, shellname, "-c", &saveline[1], 0); ^ commands.c:1384:3: warning: missing sentinel in function call [-Wformat=] execl(shellp, shellname, 0); ^ commands.c: In function 'env_cmd': commands.c:1612:5: warning: pointer targets in passing argument 1 of 'c->handler' differ in signedness [-Wpointer-sign] (*c->handler)(argv[2], argv[3]); ^ commands.c:1612:5: note: expected 'unsigned char *' but argument is of type 'char *' commands.c:1612:5: warning: pointer targets in passing argument 2 of 'c->handler' differ in signedness [-Wpointer-sign] commands.c:1612:5: note: expected 'unsigned char *' but argument is of type 'char *' commands.c: In function 'env_init': commands.c:1662:2: warning: pointer targets in passing argument 1 of 'env_find' differ in signedness [-Wpointer-sign] if ((ep = env_find("DISPLAY")) ^ commands.c:1628:1: note: expected 'unsigned char *' but argument is of type 'char *' env_find(unsigned char *var) ^ commands.c:1696:2: warning: pointer targets in passing argument 1 of 'env_find' differ in signedness [-Wpointer-sign] if ((env_find("USER") == NULL) && (ep = env_find("LOGNAME"))) { ^ commands.c:1628:1: note: expected 'unsigned char *' but argument is of type 'char *' env_find(unsigned char *var) ^ commands.c:1696:2: warning: pointer targets in passing argument 1 of 'env_find' differ in signedness [-Wpointer-sign] if ((env_find("USER") == NULL) && (ep = env_find("LOGNAME"))) { ^ commands.c:1628:1: note: expected 'unsigned char *' but argument is of type 'char *' env_find(unsigned char *var) ^ commands.c: In function 'env_define': commands.c:1726:15: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] if ((ep->var = strdup((char *)var)) == NULL) ^ commands.c:1728:17: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] if ((ep->value = strdup((char *)value)) == NULL) ^ tn3270.c:72:1: warning: no previous prototype for 'init_3270' [-Wmissing-prototypes] init_3270(void) ^ commands.c: In function 'tn': commands.c:2363:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] } else if (temp == -1) { ^ utilities.c: In function 'printsub': commands.c: In function 'help': utilities.c:275:10: warning: unused variable 'buf' [-Wunused-variable] char buf[512]; ^ commands.c:2717:13: warning: field width specifier '*' expects argument of type 'int', but argument 2 has type 'long unsigned int' [-Wformat=] c->help); ^ commands.c: In function 'sourceroute': commands.c:2786:18: warning: unused variable 'host' [-Wunused-variable] struct hostent *host = 0; ^ commands.c:2784:6: warning: unused variable 'tmp' [-Wunused-variable] int tmp; ^ commands.c: At top level: commands.c:45:13: warning: '_hostname' defined but not used [-Wunused-variable] static char _hostname[MAXHOSTNAMELEN]; ^ commands.c: In function 'env_init': commands.c:1684:12: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf (&cp, "%s%s", hbuf, cp2); ^ commands.c: In function 'tn': commands.c:2289:2: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result [-Wunused-result] (void) fgets(&line[strlen(line)], sizeof(line) - strlen(line), stdin); ^ commands.c: In function 'setescape': commands.c:1294:3: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result [-Wunused-result] (void) fgets(buf, sizeof(buf), stdin); ^ gcc -z now -pie telnetd.o state.o termstat.o slc.o sys_term.o utility.o global.o setproctitle.o -lutil -lutil -o telnetd make[1]: Leaving directory `/builddir/build/BUILD/netkit-telnet-0.17/telnetd' gcc -z now -pie authenc.o commands.o main.o network.o ring.o sys_bsd.o telnet.o terminal.o tn3270.o utilities.o genget.o -lutil -lutil -lncurses -o telnet make[1]: Leaving directory `/builddir/build/BUILD/netkit-telnet-0.17/telnet' + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.aSi7RR + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/telnet-0.17-64.el7.x86_64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/telnet-0.17-64.el7.x86_64 ++ dirname /builddir/build/BUILDROOT/telnet-0.17-64.el7.x86_64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/telnet-0.17-64.el7.x86_64 + cd netkit-telnet-0.17 + mkdir -p /builddir/build/BUILDROOT/telnet-0.17-64.el7.x86_64/usr/bin + mkdir -p /builddir/build/BUILDROOT/telnet-0.17-64.el7.x86_64/usr/sbin + mkdir -p /builddir/build/BUILDROOT/telnet-0.17-64.el7.x86_64/usr/lib/systemd/system + mkdir -p /builddir/build/BUILDROOT/telnet-0.17-64.el7.x86_64/usr/share/man/man1 + mkdir -p /builddir/build/BUILDROOT/telnet-0.17-64.el7.x86_64/usr/share/man/man5 + mkdir -p /builddir/build/BUILDROOT/telnet-0.17-64.el7.x86_64/usr/share/man/man8 + make INSTALLROOT=/builddir/build/BUILDROOT/telnet-0.17-64.el7.x86_64 install (cd telnet && make install) make[1]: Entering directory `/builddir/build/BUILD/netkit-telnet-0.17/telnet' install -m755 telnet /builddir/build/BUILDROOT/telnet-0.17-64.el7.x86_64/usr/bin install -m644 telnet.1 /builddir/build/BUILDROOT/telnet-0.17-64.el7.x86_64/usr/share/man/man1 make[1]: Leaving directory `/builddir/build/BUILD/netkit-telnet-0.17/telnet' (cd telnetd && make install) make[1]: Entering directory `/builddir/build/BUILD/netkit-telnet-0.17/telnetd' install -m755 telnetd /builddir/build/BUILDROOT/telnet-0.17-64.el7.x86_64/usr/sbin/in.telnetd install -m644 issue.net.5 /builddir/build/BUILDROOT/telnet-0.17-64.el7.x86_64/usr/share/man/man5/ install -m644 telnetd.8 /builddir/build/BUILDROOT/telnet-0.17-64.el7.x86_64/usr/share/man/man8/in.telnetd.8 ln -sf in.telnetd.8 /builddir/build/BUILDROOT/telnet-0.17-64.el7.x86_64/usr/share/man/man8/telnetd.8 make[1]: Leaving directory `/builddir/build/BUILD/netkit-telnet-0.17/telnetd' + install -p -m644 /builddir/build/SOURCES/telnet@.service /builddir/build/BUILDROOT/telnet-0.17-64.el7.x86_64/usr/lib/systemd/system/telnet@.service + install -p -m644 /builddir/build/SOURCES/telnet.socket /builddir/build/BUILDROOT/telnet-0.17-64.el7.x86_64/usr/lib/systemd/system/telnet.socket + /usr/lib/rpm/find-debuginfo.sh --strict-build-id -m --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 110000000 /builddir/build/BUILD/netkit-telnet-0.17 extracting debug info from /builddir/build/BUILDROOT/telnet-0.17-64.el7.x86_64/usr/bin/telnet extracting debug info from /builddir/build/BUILDROOT/telnet-0.17-64.el7.x86_64/usr/sbin/in.telnetd /usr/lib/rpm/sepdebugcrcfix: Updated 2 CRC32s, 0 CRC32s did match. 854 blocks + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-compress + /usr/lib/rpm/redhat/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/brp-python-bytecompile /usr/bin/python 1 + /usr/lib/rpm/redhat/brp-python-hardlink + /usr/lib/rpm/redhat/brp-java-repack-jars Processing files: telnet-0.17-64.el7.x86_64 Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.yegIEP + umask 022 + cd /builddir/build/BUILD + cd netkit-telnet-0.17 + DOCDIR=/builddir/build/BUILDROOT/telnet-0.17-64.el7.x86_64/usr/share/doc/telnet-0.17 + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/telnet-0.17-64.el7.x86_64/usr/share/doc/telnet-0.17 + cp -pr README /builddir/build/BUILDROOT/telnet-0.17-64.el7.x86_64/usr/share/doc/telnet-0.17 + exit 0 Provides: telnet = 1:0.17-64.el7 telnet(x86-64) = 1:0.17-64.el7 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.4)(64bit) libc.so.6(GLIBC_2.8)(64bit) libncurses.so.5()(64bit) libtinfo.so.5()(64bit) libutil.so.1()(64bit) rtld(GNU_HASH) Processing files: telnet-server-0.17-64.el7.x86_64 Provides: telnet-server = 1:0.17-64.el7 telnet-server(x86-64) = 1:0.17-64.el7 Requires(interp): /bin/sh /bin/sh /bin/sh Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires(post): /bin/sh systemd Requires(preun): /bin/sh systemd Requires(postun): /bin/sh systemd Requires: libc.so.6()(64bit) libc.so.6(GLIBC_2.14)(64bit) libc.so.6(GLIBC_2.15)(64bit) libc.so.6(GLIBC_2.16)(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.4)(64bit) libc.so.6(GLIBC_2.8)(64bit) libutil.so.1()(64bit) libutil.so.1(GLIBC_2.2.5)(64bit) rtld(GNU_HASH) Processing files: telnet-debuginfo-0.17-64.el7.x86_64 Provides: telnet-debuginfo = 1:0.17-64.el7 telnet-debuginfo(x86-64) = 1:0.17-64.el7 Requires(rpmlib): rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rpmlib(CompressedFileNames) <= 3.0.4-1 Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/telnet-0.17-64.el7.x86_64 Wrote: /builddir/build/RPMS/telnet-0.17-64.el7.x86_64.rpm Wrote: /builddir/build/RPMS/telnet-server-0.17-64.el7.x86_64.rpm Wrote: /builddir/build/RPMS/telnet-debuginfo-0.17-64.el7.x86_64.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.1pj9IH + umask 022 + cd /builddir/build/BUILD + cd netkit-telnet-0.17 + /usr/bin/rm -rf /builddir/build/BUILDROOT/telnet-0.17-64.el7.x86_64 + exit 0 Child return code was: 0