Powered by x-files. Your IP: 18.97.14.81 | telnet ecbb82cc-6867-4a6e-aaab-def47a81f619Toc:- error 1
utility.c:491:31: error: implicit declaration of function ‘time’ [-Wimplicit-function-declaration]
- error 2
utility.c:492:31: error: implicit declaration of function ‘strftime’ [-Wimplicit-function-declaration]
- error 3
utility.c:492:64: error: implicit declaration of function ‘localtime’ [-Wimplicit-function-declaration]
- error 4
utility.c:492:64: error: passing argument 4 of ‘strftime’ makes pointer from integer without a cast [-Wint-conversion]
- error 5
make[1]: *** [../MRULES:4: utility.o] Error 1
- error 6
error: Bad exit status from /tmp/B.vhpt4jnx/BUILD/tmp/rpm-tmp.CXCXK7 (%build)
- error 7
RPM build errors:
- error 8
error: No files produced.
Content:rpm:
rpm: RPM build warnings:
rpm: line 31: It's not recommended to have unversioned Obsoletes: Obsoletes: heimdal-telnet
rpm: line 32: It's not recommended to have unversioned Obsoletes: Obsoletes: inetutils-telnet
rpm: line 33: It's not recommended to have unversioned Obsoletes: Obsoletes: krb5-telnet
rpm: line 80: It's not recommended to have unversioned Obsoletes: Obsoletes: inetutils-telnetd
rpm: line 81: It's not recommended to have unversioned Obsoletes: Obsoletes: telnet-server
no BR needed
building RPM using: set -ex; : build-id: ecbb82cc-6867-4a6e-aaab-def47a81f619; TMPDIR=/tmp/B.vhpt4jnx/BUILD/tmp exec nice -n 0 rpmbuild -bb --define '__jobs 28' --define '_smp_mflags -j28' --define '_make_opts -Otarget' --define '_pld_builder 1' --define '_topdir /tmp/B.vhpt4jnx' --define '_specdir %{_topdir}' --define '_sourcedir %{_specdir}' --define '_rpmdir %{_topdir}/RPMS' --define '_builddir %{_topdir}/BUILD' --target x32-pld-linux /tmp/B.vhpt4jnx/telnet.spec
+ : build-id: ecbb82cc-6867-4a6e-aaab-def47a81f619
+ TMPDIR=/tmp/B.vhpt4jnx/BUILD/tmp
+ exec nice -n 0 rpmbuild -bb --define '__jobs 28' --define '_smp_mflags -j28' --define '_make_opts -Otarget' --define '_pld_builder 1' --define '_topdir /tmp/B.vhpt4jnx' --define '_specdir %{_topdir}' --define '_sourcedir %{_specdir}' --define '_rpmdir %{_topdir}/RPMS' --define '_builddir %{_topdir}/BUILD' --target x32-pld-linux /tmp/B.vhpt4jnx/telnet.spec
Building target platforms: x32-pld-linux
Building for target x32-pld-linux
warning: line 31: It's not recommended to have unversioned Obsoletes: Obsoletes: heimdal-telnet
warning: line 32: It's not recommended to have unversioned Obsoletes: Obsoletes: inetutils-telnet
warning: line 33: It's not recommended to have unversioned Obsoletes: Obsoletes: krb5-telnet
warning: line 80: It's not recommended to have unversioned Obsoletes: Obsoletes: inetutils-telnetd
warning: line 81: It's not recommended to have unversioned Obsoletes: Obsoletes: telnet-server
Executing(%mkbuilddir): /bin/sh -e /tmp/B.vhpt4jnx/BUILD/tmp/rpm-tmp.42mPRn
Executing(%prep): /bin/sh -e /tmp/B.vhpt4jnx/BUILD/tmp/rpm-tmp.EyD2y6
+ umask 022
+ cd /tmp/B.vhpt4jnx/BUILD/telnet-0.17-build
+ cd /tmp/B.vhpt4jnx/BUILD/telnet-0.17-build
+ rm -rf netkit-telnet-0.17
+ /usr/lib/rpm/rpmuncompress -x /tmp/B.vhpt4jnx/netkit-telnet-0.17.tar.gz
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd netkit-telnet-0.17
+ /bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ echo 'Patch #0 (netkit-telnet-ipv6.patch):'
Patch #0 (netkit-telnet-ipv6.patch):
+ </tmp/B.vhpt4jnx/netkit-telnet-ipv6.patch
+ /usr/bin/patch -s -f -p1 '--fuzz=0'
+ echo 'Patch #1 (netkit-telnet-fixes.patch):'
Patch #1 (netkit-telnet-fixes.patch):
+ </tmp/B.vhpt4jnx/netkit-telnet-fixes.patch
+ /usr/bin/patch -s -f -p1 '--fuzz=0'
+ echo 'Patch #2 (netkit-telnet-ayt.patch):'
Patch #2 (netkit-telnet-ayt.patch):
+ </tmp/B.vhpt4jnx/netkit-telnet-ayt.patch
+ /usr/bin/patch -s -f -p1 '--fuzz=0'
+ echo 'Patch #3 (netkit-telnet-issue.patch):'
Patch #3 (netkit-telnet-issue.patch):
+ </tmp/B.vhpt4jnx/netkit-telnet-issue.patch
+ /usr/bin/patch -s -f -p1 '--fuzz=0'
+ echo 'Patch #4 (netkit-telnet-cpp.patch):'
Patch #4 (netkit-telnet-cpp.patch):
+ </tmp/B.vhpt4jnx/netkit-telnet-cpp.patch
+ /usr/bin/patch -s -f -p1 '--fuzz=0'
+ echo 'Patch #5 (netkit-telnet-pld_man.patch):'
Patch #5 (netkit-telnet-pld_man.patch):
+ </tmp/B.vhpt4jnx/netkit-telnet-pld_man.patch
+ /usr/bin/patch -s -f -p1 '--fuzz=0'
+ echo 'Patch #6 (netkit-telnet-tinfo.patch):'
Patch #6 (netkit-telnet-tinfo.patch):
+ </tmp/B.vhpt4jnx/netkit-telnet-tinfo.patch
+ /usr/bin/patch -s -f -p1 '--fuzz=0'
+ echo 'Patch #7 (netkit-telnet-format-security.patch):'
Patch #7 (netkit-telnet-format-security.patch):
+ </tmp/B.vhpt4jnx/netkit-telnet-format-security.patch
+ /usr/bin/patch -s -f -p1 '--fuzz=0'
+ RPM_EC=0
+ jobs -p
+ exit 0
Executing(%build): /bin/sh -e /tmp/B.vhpt4jnx/BUILD/tmp/rpm-tmp.CXCXK7
HOME=/home/users/builder
PATH=/home/users/builder/GNUstep/Tools:/bin:/usr/bin:/usr/local/bin
TMPDIR=/tmp/B.vhpt4jnx/BUILD/tmp
+ umask 022
+ cd /tmp/B.vhpt4jnx/BUILD/telnet-0.17-build
+ cd netkit-telnet-0.17
+ CFLAGS='-O2 -fwrapv -pipe -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 -Werror=trampolines -fPIC -mtune=generic -march=x86-64 -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -Wformat -Werror=format-security -DINET6' CXXFLAGS='-O2 -fwrapv -pipe -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 -Werror=trampolines -fPIC -mtune=generic -march=x86-64 -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -Wformat -Werror=format-security -DINET6' LDFLAGS='-Wl,--as-needed -Wl,--no-copy-dt-needed-entries -Wl,-z,relro -Wl,-z,combreloc ' ./configure '--with-c-compiler=/usr/bin/x86_64-pld-linux-gnux32-gcc' '--with-c++-compiler=/usr/bin/x86_64-pld-linux-gnux32-g++' '--prefix=/usr'
Directories: /usr/bin /usr/sbin /usr/share/man
Checking if C compiler works... yes
Checking if /usr/bin/x86_64-pld-linux-gnux32-gcc accepts gcc warnings... yes
Checking if C++ compiler works... yes
Checking if /usr/bin/x86_64-pld-linux-gnux32-g++ accepts gcc warnings... yes
Checking if /usr/bin/x86_64-pld-linux-gnux32-gcc accepts -O2... yes
Checking if /usr/bin/x86_64-pld-linux-gnux32-g++ accepts -O2... yes
Checking if /usr/bin/x86_64-pld-linux-gnux32-g++ accepts -fno-rtti... yes
Checking if /usr/bin/x86_64-pld-linux-gnux32-g++ accepts -fno-exceptions... yes
Checking for BSD signal semantics... yes
Checking for ncurses... yes, -ltinfo
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...
+ /usr/bin/make -Otarget -j28
(cd telnet && /usr/bin/make)
(cd telnetd && /usr/bin/make)
make[1]: Entering directory '/tmp/B.vhpt4jnx/BUILD/telnet-0.17-build/netkit-telnet-0.17/telnetd'
/usr/bin/x86_64-pld-linux-gnux32-gcc -O2 -fwrapv -pipe -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 -Werror=trampolines -fPIC -mtune=generic -march=x86-64 -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -Wformat -Werror=format-security -DINET6 -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
make[1]: Leaving directory '/tmp/B.vhpt4jnx/BUILD/telnet-0.17-build/netkit-telnet-0.17/telnetd'
make[1]: Entering directory '/tmp/B.vhpt4jnx/BUILD/telnet-0.17-build/netkit-telnet-0.17/telnetd'
/usr/bin/x86_64-pld-linux-gnux32-gcc -O2 -fwrapv -pipe -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 -Werror=trampolines -fPIC -mtune=generic -march=x86-64 -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -Wformat -Werror=format-security -DINET6 -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 ‘putf’:
utility.c:491:31: error: implicit declaration of function ‘time’ [-Wimplicit-function-declaration]
491 | (void)time(&t);
| ^~~~
utility.c:50:1: note: ‘time’ is defined in header ‘<time.h>’; this is probably fixable by adding ‘#include <time.h>’
49 | #include "telnetd.h"
+++ |+#include <time.h>
50 |
utility.c:491:31: warning: nested extern declaration of ‘time’ [-Wnested-externs]
491 | (void)time(&t);
| ^~~~
utility.c:492:31: error: implicit declaration of function ‘strftime’ [-Wimplicit-function-declaration]
492 | (void)strftime(db, sizeof(db), fmtstr, localtime(&t));
| ^~~~~~~~
utility.c:492:31: note: include ‘<time.h>’ or provide a declaration of ‘strftime’
utility.c:492:31: warning: incompatible implicit declaration of built-in function ‘strftime’ [-Wbuiltin-declaration-mismatch]
utility.c:492:31: note: include ‘<time.h>’ or provide a declaration of ‘strftime’
utility.c:492:64: error: implicit declaration of function ‘localtime’ [-Wimplicit-function-declaration]
492 | (void)strftime(db, sizeof(db), fmtstr, localtime(&t));
| ^~~~~~~~~
utility.c:492:64: note: ‘localtime’ is defined in header ‘<time.h>’; this is probably fixable by adding ‘#include <time.h>’
utility.c:492:64: warning: nested extern declaration of ‘localtime’ [-Wnested-externs]
utility.c:492:64: error: passing argument 4 of ‘strftime’ makes pointer from integer without a cast [-Wint-conversion]
492 | (void)strftime(db, sizeof(db), fmtstr, localtime(&t));
| ^~~~~~~~~~~~~
| |
| int
utility.c:492:64: note: expected ‘const void *’ but argument is of type ‘int’
utility.c: In function ‘printsub’:
utility.c:632:42: warning: trigraph ‘??)’ ignored, use ‘-trigraphs’ to enable [-Wtrigraphs]
632 | netoprintf("(Empty suboption???)");
utility.c:653:47: warning: trigraph ‘??)’ ignored, use ‘-trigraphs’ to enable [-Wtrigraphs]
653 | netoprintf(" (empty suboption???)");
utility.c:675:47: warning: trigraph ‘??)’ ignored, use ‘-trigraphs’ to enable [-Wtrigraphs]
675 | netoprintf(" (empty suboption???)");
utility.c:694:47: warning: trigraph ‘??)’ ignored, use ‘-trigraphs’ to enable [-Wtrigraphs]
694 | netoprintf(" (empty suboption???)");
utility.c:719:47: warning: trigraph ‘??)’ ignored, use ‘-trigraphs’ to enable [-Wtrigraphs]
719 | netoprintf(" (empty suboption???)");
utility.c:736:44: warning: trigraph ‘??)’ ignored, use ‘-trigraphs’ to enable [-Wtrigraphs]
736 | netoprintf("(no option???)");
utility.c:793:42: warning: trigraph ‘??)’ ignored, use ‘-trigraphs’ to enable [-Wtrigraphs]
793 | netoprintf("(no mode???)");
utility.c:968:47: warning: trigraph ‘??)’ ignored, use ‘-trigraphs’ to enable [-Wtrigraphs]
968 | netoprintf(" (empty suboption???)");
utility.c:981:52: warning: trigraph ‘??)’ ignored, use ‘-trigraphs’ to enable [-Wtrigraphs]
981 | netoprintf("(partial suboption???)");
utility.c:1003:56: warning: trigraph ‘??)’ ignored, use ‘-trigraphs’ to enable [-Wtrigraphs]
1003 | netoprintf("(partial suboption???)");
utility.c:1044:47: warning: trigraph ‘??)’ ignored, use ‘-trigraphs’ to enable [-Wtrigraphs]
1044 | netoprintf(" (empty suboption???)");
utility.c:1069:53: warning: trigraph ‘??)’ ignored, use ‘-trigraphs’ to enable [-Wtrigraphs]
1069 | netoprintf(" (partial suboption???)");
utility.c: In function ‘fatal’:
utility.c:388:16: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
388 | (void) write(f, buf, (int)strlen(buf));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[1]: *** [../MRULES:4: utility.o] Error 1
make[1]: Leaving directory '/tmp/B.vhpt4jnx/BUILD/telnet-0.17-build/netkit-telnet-0.17/telnetd'
make[1]: *** Waiting for unfinished jobs....
make[1]: Entering directory '/tmp/B.vhpt4jnx/BUILD/telnet-0.17-build/netkit-telnet-0.17/telnetd'
/usr/bin/x86_64-pld-linux-gnux32-gcc -O2 -fwrapv -pipe -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 -Werror=trampolines -fPIC -mtune=generic -march=x86-64 -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -Wformat -Werror=format-security -DINET6 -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
make[1]: Leaving directory '/tmp/B.vhpt4jnx/BUILD/telnet-0.17-build/netkit-telnet-0.17/telnetd'
make[1]: Entering directory '/tmp/B.vhpt4jnx/BUILD/telnet-0.17-build/netkit-telnet-0.17/telnet'
/usr/bin/x86_64-pld-linux-gnux32-g++ -O2 -fwrapv -pipe -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 -Werror=trampolines -fPIC -mtune=generic -march=x86-64 -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -Wformat -Werror=format-security -DINET6 -fno-rtti -fno-exceptions -Wall -W -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -DUSE_TERMIO -DKLUDGELINEMODE genget.cc -c
cc1plus: warning: command-line option ‘-Wbad-function-cast’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wnested-externs’ is valid for C/ObjC but not for C++
make[1]: Leaving directory '/tmp/B.vhpt4jnx/BUILD/telnet-0.17-build/netkit-telnet-0.17/telnet'
make[1]: Entering directory '/tmp/B.vhpt4jnx/BUILD/telnet-0.17-build/netkit-telnet-0.17/telnet'
/usr/bin/x86_64-pld-linux-gnux32-g++ -O2 -fwrapv -pipe -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 -Werror=trampolines -fPIC -mtune=generic -march=x86-64 -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -Wformat -Werror=format-security -DINET6 -fno-rtti -fno-exceptions -Wall -W -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -DUSE_TERMIO -DKLUDGELINEMODE tn3270.cc -c
cc1plus: warning: command-line option ‘-Wbad-function-cast’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wnested-externs’ is valid for C/ObjC but not for C++
make[1]: Leaving directory '/tmp/B.vhpt4jnx/BUILD/telnet-0.17-build/netkit-telnet-0.17/telnet'
make[1]: Entering directory '/tmp/B.vhpt4jnx/BUILD/telnet-0.17-build/netkit-telnet-0.17/telnetd'
/usr/bin/x86_64-pld-linux-gnux32-gcc -O2 -fwrapv -pipe -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 -Werror=trampolines -fPIC -mtune=generic -march=x86-64 -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -Wformat -Werror=format-security -DINET6 -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
make[1]: Leaving directory '/tmp/B.vhpt4jnx/BUILD/telnet-0.17-build/netkit-telnet-0.17/telnetd'
make[1]: Entering directory '/tmp/B.vhpt4jnx/BUILD/telnet-0.17-build/netkit-telnet-0.17/telnetd'
/usr/bin/x86_64-pld-linux-gnux32-gcc -O2 -fwrapv -pipe -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 -Werror=trampolines -fPIC -mtune=generic -march=x86-64 -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -Wformat -Werror=format-security -DINET6 -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
make[1]: Leaving directory '/tmp/B.vhpt4jnx/BUILD/telnet-0.17-build/netkit-telnet-0.17/telnetd'
make[1]: Entering directory '/tmp/B.vhpt4jnx/BUILD/telnet-0.17-build/netkit-telnet-0.17/telnet'
/usr/bin/x86_64-pld-linux-gnux32-g++ -O2 -fwrapv -pipe -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 -Werror=trampolines -fPIC -mtune=generic -march=x86-64 -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -Wformat -Werror=format-security -DINET6 -fno-rtti -fno-exceptions -Wall -W -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -DUSE_TERMIO -DKLUDGELINEMODE network.cc -c
cc1plus: warning: command-line option ‘-Wbad-function-cast’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wnested-externs’ is valid for C/ObjC but not for C++
make[1]: Leaving directory '/tmp/B.vhpt4jnx/BUILD/telnet-0.17-build/netkit-telnet-0.17/telnet'
make[1]: Entering directory '/tmp/B.vhpt4jnx/BUILD/telnet-0.17-build/netkit-telnet-0.17/telnet'
/usr/bin/x86_64-pld-linux-gnux32-g++ -O2 -fwrapv -pipe -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 -Werror=trampolines -fPIC -mtune=generic -march=x86-64 -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -Wformat -Werror=format-security -DINET6 -fno-rtti -fno-exceptions -Wall -W -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -DUSE_TERMIO -DKLUDGELINEMODE ring.cc -c
cc1plus: warning: command-line option ‘-Wbad-function-cast’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wnested-externs’ is valid for C/ObjC but not for C++
make[1]: Leaving directory '/tmp/B.vhpt4jnx/BUILD/telnet-0.17-build/netkit-telnet-0.17/telnet'
make[1]: Entering directory '/tmp/B.vhpt4jnx/BUILD/telnet-0.17-build/netkit-telnet-0.17/telnet'
/usr/bin/x86_64-pld-linux-gnux32-g++ -O2 -fwrapv -pipe -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 -Werror=trampolines -fPIC -mtune=generic -march=x86-64 -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -Wformat -Werror=format-security -DINET6 -fno-rtti -fno-exceptions -Wall -W -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -DUSE_TERMIO -DKLUDGELINEMODE netlink.cc -c
cc1plus: warning: command-line option ‘-Wbad-function-cast’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wnested-externs’ is valid for C/ObjC but not for C++
netlink.cc: In member function ‘int netlink::connect(int, addrinfo*)’:
netlink.cc:90:11: warning: ignoring return value of ‘int setuid(__uid_t)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
90 | setuid(getuid());
| ~~~~~~^~~~~~~~~~
make[1]: Leaving directory '/tmp/B.vhpt4jnx/BUILD/telnet-0.17-build/netkit-telnet-0.17/telnet'
make[1]: Entering directory '/tmp/B.vhpt4jnx/BUILD/telnet-0.17-build/netkit-telnet-0.17/telnet'
/usr/bin/x86_64-pld-linux-gnux32-g++ -O2 -fwrapv -pipe -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 -Werror=trampolines -fPIC -mtune=generic -march=x86-64 -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -Wformat -Werror=format-security -DINET6 -fno-rtti -fno-exceptions -Wall -W -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -DUSE_TERMIO -DKLUDGELINEMODE main.cc -c
cc1plus: warning: command-line option ‘-Wbad-function-cast’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wnested-externs’ is valid for C/ObjC but not for C++
main.cc:81:6: warning: no previous declaration for ‘void usage()’ [-Wmissing-declarations]
81 | void usage(void) {
| ^~~~~
make[1]: Leaving directory '/tmp/B.vhpt4jnx/BUILD/telnet-0.17-build/netkit-telnet-0.17/telnet'
make[1]: Entering directory '/tmp/B.vhpt4jnx/BUILD/telnet-0.17-build/netkit-telnet-0.17/telnetd'
/usr/bin/x86_64-pld-linux-gnux32-gcc -O2 -fwrapv -pipe -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 -Werror=trampolines -fPIC -mtune=generic -march=x86-64 -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -Wformat -Werror=format-security -DINET6 -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:738:5: warning: ignoring return value of ‘chown’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
738 | chown(line, 0, 0);
| ^~~~~~~~~~~~~~~~~
sys_term.c:741:5: warning: ignoring return value of ‘chown’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
741 | chown(line, 0, 0);
| ^~~~~~~~~~~~~~~~~
make[1]: Leaving directory '/tmp/B.vhpt4jnx/BUILD/telnet-0.17-build/netkit-telnet-0.17/telnetd'
make[1]: Entering directory '/tmp/B.vhpt4jnx/BUILD/telnet-0.17-build/netkit-telnet-0.17/telnet'
/usr/bin/x86_64-pld-linux-gnux32-g++ -O2 -fwrapv -pipe -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 -Werror=trampolines -fPIC -mtune=generic -march=x86-64 -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -Wformat -Werror=format-security -DINET6 -fno-rtti -fno-exceptions -Wall -W -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -DUSE_TERMIO -DKLUDGELINEMODE sys_bsd.cc -c
cc1plus: warning: command-line option ‘-Wbad-function-cast’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wnested-externs’ is valid for C/ObjC but not for C++
sys_bsd.cc: In function ‘int process_rings(int, int, int, int, int, int)’:
sys_bsd.cc:277:18: warning: ISO C++17 does not allow ‘register’ storage class specifier [-Wregister]
277 | register int c, maxfd;
| ^
sys_bsd.cc:277:21: warning: ISO C++17 does not allow ‘register’ storage class specifier [-Wregister]
277 | register int c, maxfd;
| ^~~~~
make[1]: Leaving directory '/tmp/B.vhpt4jnx/BUILD/telnet-0.17-build/netkit-telnet-0.17/telnet'
make[1]: Entering directory '/tmp/B.vhpt4jnx/BUILD/telnet-0.17-build/netkit-telnet-0.17/telnet'
/usr/bin/x86_64-pld-linux-gnux32-g++ -O2 -fwrapv -pipe -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 -Werror=trampolines -fPIC -mtune=generic -march=x86-64 -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -Wformat -Werror=format-security -DINET6 -fno-rtti -fno-exceptions -Wall -W -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -DUSE_TERMIO -DKLUDGELINEMODE environ.cc -c
cc1plus: warning: command-line option ‘-Wbad-function-cast’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wnested-externs’ is valid for C/ObjC but not for C++
environ.cc:112:6: warning: no previous declaration for ‘void env_init()’ [-Wmissing-declarations]
112 | void env_init(void) {
| ^~~~~~~~
make[1]: Leaving directory '/tmp/B.vhpt4jnx/BUILD/telnet-0.17-build/netkit-telnet-0.17/telnet'
make[1]: Entering directory '/tmp/B.vhpt4jnx/BUILD/telnet-0.17-build/netkit-telnet-0.17/telnet'
/usr/bin/x86_64-pld-linux-gnux32-g++ -O2 -fwrapv -pipe -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 -Werror=trampolines -fPIC -mtune=generic -march=x86-64 -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -Wformat -Werror=format-security -DINET6 -fno-rtti -fno-exceptions -Wall -W -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -DUSE_TERMIO -DKLUDGELINEMODE terminal.cc -c
cc1plus: warning: command-line option ‘-Wbad-function-cast’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wnested-externs’ is valid for C/ObjC but not for C++
terminal.cc:473:9: warning: extra tokens at end of ‘#endif’ directive [-Wendif-labels]
473 | #endif SIGINFO
| ^~~~~~~
terminal.cc:509:9: warning: extra tokens at end of ‘#endif’ directive [-Wendif-labels]
509 | #endif SIGINFO
| ^~~~~~~
terminal.cc: In function ‘void TerminalSpeeds(long int*, long int*)’:
terminal.cc:567:33: warning: ISO C++17 does not allow ‘register’ storage class specifier [-Wregister]
567 | register struct termspeeds *tp;
| ^~
terminal.cc:568:19: warning: ISO C++17 does not allow ‘register’ storage class specifier [-Wregister]
568 | register long in, out;
| ^~
terminal.cc:568:23: warning: ISO C++17 does not allow ‘register’ storage class specifier [-Wregister]
568 | register long in, out;
| ^~~
make[1]: Leaving directory '/tmp/B.vhpt4jnx/BUILD/telnet-0.17-build/netkit-telnet-0.17/telnet'
make[1]: Entering directory '/tmp/B.vhpt4jnx/BUILD/telnet-0.17-build/netkit-telnet-0.17/telnetd'
/usr/bin/x86_64-pld-linux-gnux32-gcc -O2 -fwrapv -pipe -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 -Werror=trampolines -fPIC -mtune=generic -march=x86-64 -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -Wformat -Werror=format-security -DINET6 -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:1207:24: warning: comparison of distinct pointer types lacks a cast [-Wcompare-distinct-pointer-types]
1207 | if (cp < subbuffer+sizeof(subbuffer)-1) *cp++ = c;
| ^
state.c: In function ‘willoption’:
state.c:518:46: warning: this statement may fall through [-Wimplicit-fallthrough=]
518 | slctab[SLC_XOFF].defset.flag |= SLC_DEFAULT;
| ^
state.c:519:13: note: here
519 | case TELOPT_TTYPE:
| ^~~~
make[1]: Leaving directory '/tmp/B.vhpt4jnx/BUILD/telnet-0.17-build/netkit-telnet-0.17/telnetd'
make[1]: Entering directory '/tmp/B.vhpt4jnx/BUILD/telnet-0.17-build/netkit-telnet-0.17/telnetd'
/usr/bin/x86_64-pld-linux-gnux32-gcc -O2 -fwrapv -pipe -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 -Werror=trampolines -fPIC -mtune=generic -march=x86-64 -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -Wformat -Werror=format-security -DINET6 -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 ‘main’:
telnetd.c:299:19: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
299 | if (s = getaddrinfo(host, service, &req, &ai)) {
| ^
telnetd.c:283:40: warning: variable ‘ai2’ set but not used [-Wunused-but-set-variable]
283 | struct addrinfo req, *ai, *ai2;
| ^~~
telnetd.c:281:29: warning: unused variable ‘sp’ [-Wunused-variable]
281 | struct servent *sp;
| ^~
telnetd.c:280:23: warning: unused variable ‘foo’ [-Wunused-variable]
280 | socklen_t foo;
| ^~~
telnetd.c: In function ‘doit’:
telnetd.c:710:25: warning: unused variable ‘hp’ [-Wunused-variable]
710 | struct hostent *hp;
| ^~
make[1]: Leaving directory '/tmp/B.vhpt4jnx/BUILD/telnet-0.17-build/netkit-telnet-0.17/telnetd'
make: *** [Makefile:8: telnetd.build] Error 2
make: *** Waiting for unfinished jobs....
make[1]: Entering directory '/tmp/B.vhpt4jnx/BUILD/telnet-0.17-build/netkit-telnet-0.17/telnet'
/usr/bin/x86_64-pld-linux-gnux32-g++ -O2 -fwrapv -pipe -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 -Werror=trampolines -fPIC -mtune=generic -march=x86-64 -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -Wformat -Werror=format-security -DINET6 -fno-rtti -fno-exceptions -Wall -W -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -DUSE_TERMIO -DKLUDGELINEMODE utilities.cc -c
cc1plus: warning: command-line option ‘-Wbad-function-cast’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wnested-externs’ is valid for C/ObjC but not for C++
utilities.cc:290:49: warning: trigraph ‘??)’ ignored, use ‘-trigraphs’ to enable [-Wtrigraphs]
290 | fprintf(NetTrace, "(Empty suboption???)");
utilities.cc:312:54: warning: trigraph ‘??)’ ignored, use ‘-trigraphs’ to enable [-Wtrigraphs]
312 | fprintf(NetTrace, " (empty suboption???)");
utilities.cc:334:54: warning: trigraph ‘??)’ ignored, use ‘-trigraphs’ to enable [-Wtrigraphs]
334 | fprintf(NetTrace, " (empty suboption???)");
utilities.cc:352:54: warning: trigraph ‘??)’ ignored, use ‘-trigraphs’ to enable [-Wtrigraphs]
352 | fprintf(NetTrace, " (empty suboption???)");
utilities.cc:376:54: warning: trigraph ‘??)’ ignored, use ‘-trigraphs’ to enable [-Wtrigraphs]
376 | fprintf(NetTrace, " (empty suboption???)");
utilities.cc:393:51: warning: trigraph ‘??)’ ignored, use ‘-trigraphs’ to enable [-Wtrigraphs]
393 | fprintf(NetTrace, "(no option???)");
utilities.cc:446:49: warning: trigraph ‘??)’ ignored, use ‘-trigraphs’ to enable [-Wtrigraphs]
446 | fprintf(NetTrace, "(no mode???)");
utilities.cc: In function ‘void printsub(int, unsigned char*, int)’:
utilities.cc:255:18: warning: ISO C++17 does not allow ‘register’ storage class specifier [-Wregister]
255 | register int i = 0;
| ^
utilities.cc:265:30: warning: ISO C++17 does not allow ‘register’ storage class specifier [-Wregister]
265 | register int j;
| ^
utilities.cc:580:34: warning: ISO C++17 does not allow ‘register’ storage class specifier [-Wregister]
580 | register int noquote = 2;
| ^~~~~~~
utilities.cc: At global scope:
utilities.cc:641:6: warning: no previous declaration for ‘void SetForExit()’ [-Wmissing-declarations]
641 | void SetForExit(void) {
| ^~~~~~~~~~
make[1]: Leaving directory '/tmp/B.vhpt4jnx/BUILD/telnet-0.17-build/netkit-telnet-0.17/telnet'
make[1]: Entering directory '/tmp/B.vhpt4jnx/BUILD/telnet-0.17-build/netkit-telnet-0.17/telnet'
/usr/bin/x86_64-pld-linux-gnux32-g++ -O2 -fwrapv -pipe -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 -Werror=trampolines -fPIC -mtune=generic -march=x86-64 -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -Wformat -Werror=format-security -DINET6 -fno-rtti -fno-exceptions -Wall -W -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -DUSE_TERMIO -DKLUDGELINEMODE telnet.cc -c
cc1plus: warning: command-line option ‘-Wbad-function-cast’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wnested-externs’ is valid for C/ObjC but not for C++
telnet.cc:250:6: warning: no previous declaration for ‘void send_do(int, int)’ [-Wmissing-declarations]
250 | void send_do(int c, int init) {
| ^~~~~~~
telnet.cc:263:6: warning: no previous declaration for ‘void send_dont(int, int)’ [-Wmissing-declarations]
263 | void send_dont(int c, int init) {
| ^~~~~~~~~
telnet.cc:276:6: warning: no previous declaration for ‘void send_will(int, int)’ [-Wmissing-declarations]
276 | void send_will(int c, int init) {
| ^~~~~~~~~
telnet.cc:289:6: warning: no previous declaration for ‘void send_wont(int, int)’ [-Wmissing-declarations]
289 | void send_wont(int c, int init) {
| ^~~~~~~~~
telnet.cc: In function ‘void slc_init()’:
telnet.cc:868:24: warning: ISO C++17 does not allow ‘register’ storage class specifier [-Wregister]
868 | register struct spc *spcp;
| ^~~~
telnet.cc: In function ‘void slc_export()’:
telnet.cc:948:24: warning: ISO C++17 does not allow ‘register’ storage class specifier [-Wregister]
948 | register struct spc *spcp;
| ^~~~
telnet.cc: In function ‘void slc(unsigned char*, int)’:
telnet.cc:970:24: warning: ISO C++17 does not allow ‘register’ storage class specifier [-Wregister]
970 | register struct spc *spcp;
| ^~~~
telnet.cc:971:16: warning: ISO C++17 does not allow ‘register’ storage class specifier [-Wregister]
971 | register int func,level;
| ^~~~
telnet.cc:971:21: warning: ISO C++17 does not allow ‘register’ storage class specifier [-Wregister]
971 | register int func,level;
| ^~~~~
telnet.cc: In function ‘void slc_check()’:
telnet.cc:1036:24: warning: ISO C++17 does not allow ‘register’ storage class specifier [-Wregister]
1036 | register struct spc *spcp;
| ^~~~
telnet.cc: In function ‘void slc_end_reply()’:
telnet.cc:1075:16: warning: ISO C++17 does not allow ‘register’ storage class specifier [-Wregister]
1075 | register int len;
| ^~~
telnet.cc: In function ‘void env_opt_add(const char*)’:
telnet.cc:1192:20: warning: ISO C++17 does not allow ‘register’ storage class specifier [-Wregister]
1192 | register int len;
| ^~~
telnet.cc: In function ‘void env_opt_end(int)’:
telnet.cc:1228:16: warning: ISO C++17 does not allow ‘register’ storage class specifier [-Wregister]
1228 | register int len;
| ^~~
telnet.cc: At global scope:
telnet.cc:1648:5: warning: no previous declaration for ‘int Scheduler(int)’ [-Wmissing-declarations]
1648 | int Scheduler(int block) {
| ^~~~~~~~~
telnet.cc:1915:6: warning: no previous declaration for ‘void xmitAO()’ [-Wmissing-declarations]
1915 | void xmitAO(void) {
| ^~~~~~
telnet.cc:1924:6: warning: no previous declaration for ‘void xmitEL()’ [-Wmissing-declarations]
1924 | void xmitEL(void) {
| ^~~~~~
telnet.cc:1929:6: warning: no previous declaration for ‘void xmitEC()’ [-Wmissing-declarations]
1929 | void xmitEC(void) {
| ^~~~~~
telnet.cc:1968:6: warning: no previous declaration for ‘void intp()’ [-Wmissing-declarations]
1968 | void intp(void) {
| ^~~~
telnet.cc:1980:6: warning: no previous declaration for ‘void sendbrk()’ [-Wmissing-declarations]
1980 | void sendbrk(void) {
| ^~~~~~~
telnet.cc:1992:6: warning: no previous declaration for ‘void sendabort()’ [-Wmissing-declarations]
1992 | void sendabort(void) {
| ^~~~~~~~~
telnet.cc: In function ‘void wontoption(int)’:
telnet.cc:389:7: warning: this statement may fall through [-Wimplicit-fallthrough=]
389 | if (!kludgelinemode)
| ^~
telnet.cc:393:5: note: here
393 | case TELOPT_ECHO:
| ^~~~
make[1]: Leaving directory '/tmp/B.vhpt4jnx/BUILD/telnet-0.17-build/netkit-telnet-0.17/telnet'
make[1]: Entering directory '/tmp/B.vhpt4jnx/BUILD/telnet-0.17-build/netkit-telnet-0.17/telnet'
/usr/bin/x86_64-pld-linux-gnux32-g++ -O2 -fwrapv -pipe -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 -Werror=trampolines -fPIC -mtune=generic -march=x86-64 -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -Wformat -Werror=format-security -DINET6 -fno-rtti -fno-exceptions -Wall -W -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -DUSE_TERMIO -DKLUDGELINEMODE commands.cc -c
cc1plus: warning: command-line option ‘-Wbad-function-cast’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wnested-externs’ is valid for C/ObjC but not for C++
commands.cc:91:15: warning: extra tokens at end of ‘#endif’ directive [-Wendif-labels]
91 | #endif MAXHOSTNAMELEN
| ^~~~~~~~~~~~~~
commands.cc: In function ‘void makeargv()’:
commands.cc:203:20: warning: ISO C++17 does not allow ‘register’ storage class specifier [-Wregister]
203 | register char *cp, *cp2, c;
| ^~
commands.cc:203:25: warning: ISO C++17 does not allow ‘register’ storage class specifier [-Wregister]
203 | register char *cp, *cp2, c;
| ^~~
commands.cc:203:30: warning: ISO C++17 does not allow ‘register’ storage class specifier [-Wregister]
203 | register char *cp, *cp2, c;
| ^
commands.cc:204:27: warning: ISO C++17 does not allow ‘register’ storage class specifier [-Wregister]
204 | register const char **argp = margv;
| ^~~~
commands.cc:215:22: warning: ISO C++17 does not allow ‘register’ storage class specifier [-Wregister]
215 | register int inquote = 0;
| ^~~~~~~
commands.cc: In function ‘const char* control(cc_t)’:
commands.cc:292:31: warning: ISO C++17 does not allow ‘register’ storage class specifier [-Wregister]
292 | register unsigned int uic = (unsigned int)c;
| ^~~
commands.cc: In function ‘int send_tncmd(int (*)(int, int), const char*, const char*)’:
commands.cc:489:22: warning: ISO C++17 does not allow ‘register’ storage class specifier [-Wregister]
489 | register int col, len;
| ^~~
commands.cc:489:27: warning: ISO C++17 does not allow ‘register’ storage class specifier [-Wregister]
489 | register int col, len;
| ^~~
commands.cc: At global scope:
commands.cc:1106:5: warning: no previous declaration for ‘int setmode(int)’ [-Wmissing-declarations]
1106 | int setmode(int bit) {
| ^~~~~~~
commands.cc:1110:5: warning: no previous declaration for ‘int clearmode(int)’ [-Wmissing-declarations]
1110 | int clearmode(int bit) {
| ^~~~~~~~~
commands.cc:1304:5: warning: no previous declaration for ‘int suspend()’ [-Wmissing-declarations]
1304 | int suspend(void) {
| ^~~~~~~
commands.cc:1328:5: warning: no previous declaration for ‘int shell(int, const char**)’ [-Wmissing-declarations]
1328 | int shell(int argc, const char **) {
| ^~~~~
commands.cc: In function ‘int shell(int, const char**)’:
commands.cc:1350:22: warning: missing sentinel in function call [-Wformat=]
1350 | execl(shellp, shellname, "-c", &saveline[1], 0);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
commands.cc:1352:22: warning: missing sentinel in function call [-Wformat=]
1352 | execl(shellp, shellname, 0);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~
commands.cc: At global scope:
commands.cc:1398:5: warning: no previous declaration for ‘int logout()’ [-Wmissing-declarations]
1398 | int logout(void) {
| ^~~~~~
commands.cc:1427:49: warning: cast between incompatible function types from ‘void (*)(const char*)’ to ‘envfunc’ {aka ‘void (*)(const char*, const char*)’} [-Wcast-function-type]
1427 | (envfunc) env_undefine, 1 },
| ^~~~~~~~~~~~~~~~~~~~~~
commands.cc:1429:49: warning: cast between incompatible function types from ‘void (*)(const char*)’ to ‘envfunc’ {aka ‘void (*)(const char*, const char*)’} [-Wcast-function-type]
1429 | (envfunc) env_export, 1 },
| ^~~~~~~~~~~~~~~~~~~~
commands.cc:1431:49: warning: cast between incompatible function types from ‘void (*)(const char*)’ to ‘envfunc’ {aka ‘void (*)(const char*, const char*)’} [-Wcast-function-type]
1431 | (envfunc) env_unexport, 1 },
| ^~~~~~~~~~~~~~~~~~~~~~
commands.cc:1432:49: warning: cast between incompatible function types from ‘void (*)(const char*)’ to ‘envfunc’ {aka ‘void (*)(const char*, const char*)’} [-Wcast-function-type]
1432 | { "send", "Send an environment variable", (envfunc) env_send, 1 },
| ^~~~~~~~~~~~~~~~~~
commands.cc:1458:5: warning: no previous declaration for ‘int env_cmd(int, const char**)’ [-Wmissing-declarations]
1458 | int env_cmd(int argc, const char *argv[]) {
| ^~~~~~~
commands.cc: In function ‘int tn(int, const char**)’:
commands.cc:1622:30: warning: ISO C++17 does not allow ‘register’ storage class specifier [-Wregister]
1622 | register struct hostent *host = 0;
| ^~~~
commands.cc:1731:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
1731 | if (i = getaddrinfo(hostp, portp, &req, &ai)) {
| ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
commands.cc:1739:19: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
1739 | if (i = getnameinfo(ai->ai_addr, ai->ai_addrlen, hbuf, sizeof(hbuf), sbuf, sizeof(sbuf), NI_NUMERICHOST | NI_NUMERICSERV)) {
| ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
commands.cc:1756:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
1756 | if (i = getnameinfo(ai->ai_addr, ai->ai_addrlen, _hostname, sizeof(_hostname), NULL, 0, 0)) {
| ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
commands.cc:1622:30: warning: unused variable ‘host’ [-Wunused-variable]
1622 | register struct hostent *host = 0;
| ^~~~
commands.cc:1623:21: warning: unused variable ‘sp’ [-Wunused-variable]
1623 | struct servent *sp = 0;
| ^~
commands.cc:1624:11: warning: unused variable ‘srp’ [-Wunused-variable]
1624 | char *srp = NULL;
| ^~~
commands.cc:1625:9: warning: unused variable ‘srlen’ [-Wunused-variable]
1625 | int srlen;
| ^~~~~
commands.cc: In function ‘long unsigned int sourceroute(char*, char**, int*)’:
commands.cc:2181:34: warning: ISO C++17 does not allow ‘register’ storage class specifier [-Wregister]
2181 | register struct hostent *host = 0;
| ^~~~
commands.cc:2182:23: warning: ISO C++17 does not allow ‘register’ storage class specifier [-Wregister]
2182 | register char c;
| ^
commands.cc: In function ‘int tn(int, const char**)’:
commands.cc:1650:21: warning: ignoring return value of ‘char* fgets(char*, int, FILE*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
1650 | (void) fgets(&line[strlen(line)], sizeof(line) - strlen(line), stdin);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
commands.cc:1733:19: warning: ignoring return value of ‘int setuid(__uid_t)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
1733 | setuid(getuid());
| ~~~~~~^~~~~~~~~~
commands.cc:1753:19: warning: ignoring return value of ‘int setuid(__uid_t)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
1753 | setuid(getuid());
| ~~~~~~^~~~~~~~~~
commands.cc: In function ‘int setescape(int, const char**)’:
commands.cc:1284:29: warning: ignoring return value of ‘char* fgets(char*, int, FILE*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
1284 | (void) fgets(buf, sizeof(buf), stdin);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
commands.cc: At global scope:
commands.cc:2177:22: warning: ‘long unsigned int sourceroute(char*, char**, int*)’ defined but not used [-Wunused-function]
2177 | static unsigned long sourceroute(char *arg, char **cpp, int *lenp) {
| ^~~~~~~~~~~
In file included from /usr/include/string.h:580,
from commands.cc:40:
In function ‘char* strncpy(char*, const char*, size_t)’,
inlined from ‘void cmdrc(const char*, const char*)’ at commands.cc:2121:10:
/usr/include/bits/string_fortified.h:112:34: warning: ‘char* __builtin_strncpy(char*, const char*, unsigned int)’ accessing 249 bytes at offsets 0 and 7 overlaps between 1 and 242 bytes at offset 7 [-Wrestrict]
112 | return __builtin___strncpy_chk (__dest, __src, __len,
| ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
113 | __glibc_objsize (__dest));
| ~~~~~~~~~~~~~~~~~~~~~~~~~
In function ‘char* strncpy(char*, const char*, size_t)’,
inlined from ‘void cmdrc(const char*, const char*)’ at commands.cc:2119:10:
/usr/include/bits/string_fortified.h:112:34: warning: ‘char* __builtin___strncpy_chk(char*, const char*, unsigned int, unsigned int)’ accessing between 0 and 256 bytes at offsets 0 and [0, 256] may overlap up to 256 bytes at offset [0, 255] [-Wrestrict]
112 | return __builtin___strncpy_chk (__dest, __src, __len,
| ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
113 | __glibc_objsize (__dest));
| ~~~~~~~~~~~~~~~~~~~~~~~~~
In function ‘char* strncpy(char*, const char*, size_t)’,
inlined from ‘void cmdrc(const char*, const char*)’ at commands.cc:2117:10:
/usr/include/bits/string_fortified.h:112:34: warning: ‘char* __builtin___strncpy_chk(char*, const char*, unsigned int, unsigned int)’ accessing between 0 and 256 bytes at offsets 0 and [0, 256] may overlap up to 256 bytes at offset [0, 255] [-Wrestrict]
112 | return __builtin___strncpy_chk (__dest, __src, __len,
| ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
113 | __glibc_objsize (__dest));
| ~~~~~~~~~~~~~~~~~~~~~~~~~
make[1]: Leaving directory '/tmp/B.vhpt4jnx/BUILD/telnet-0.17-build/netkit-telnet-0.17/telnet'
make[1]: Entering directory '/tmp/B.vhpt4jnx/BUILD/telnet-0.17-build/netkit-telnet-0.17/telnet'
/usr/bin/x86_64-pld-linux-gnux32-g++ -Wl,--as-needed -Wl,--no-copy-dt-needed-entries -Wl,-z,relro -Wl,-z,combreloc commands.o main.o network.o ring.o sys_bsd.o telnet.o terminal.o tn3270.o utilities.o genget.o environ.o netlink.o -ltinfo -o telnet
make[1]: Leaving directory '/tmp/B.vhpt4jnx/BUILD/telnet-0.17-build/netkit-telnet-0.17/telnet'
error: Bad exit status from /tmp/B.vhpt4jnx/BUILD/tmp/rpm-tmp.CXCXK7 (%build)
RPM build warnings:
line 31: It's not recommended to have unversioned Obsoletes: Obsoletes: heimdal-telnet
line 32: It's not recommended to have unversioned Obsoletes: Obsoletes: inetutils-telnet
line 33: It's not recommended to have unversioned Obsoletes: Obsoletes: krb5-telnet
line 80: It's not recommended to have unversioned Obsoletes: Obsoletes: inetutils-telnetd
line 81: It's not recommended to have unversioned Obsoletes: Obsoletes: telnet-server
RPM build errors:
Bad exit status from /tmp/B.vhpt4jnx/BUILD/tmp/rpm-tmp.CXCXK7 (%build)
ended at: Tue Mar 3 00:10:24 2026, done in 0:00:02.543562
error: No files produced.
+ chmod -R u+rwX /tmp/B.vhpt4jnx/BUILD
+ rm -rf /tmp/B.vhpt4jnx/tmp /tmp/B.vhpt4jnx/BUILD
+ rm -rf /tmp/B.vhpt4jnx
Begin-PLD-Builder-Info
Build-Time: user:6.40s sys:1.81s real:4.49s (faults io:0 non-io:298002)
End-PLD-Builder-Info
|
|