Mock Version: 6.2 Mock Version: 6.2 Mock Version: 6.2 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target x86_64 --nodeps /builddir/build/SPECS/telnet.spec'], chrootPath='/var/lib/mock/dist-an27-pre-build-572100-90672/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=86400uid=989gid=135user='mockbuild'unshare_net=TrueprintOutput=Falsenspawn_args=['--capability=cap_ipc_lock']) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target x86_64 --nodeps /builddir/build/SPECS/telnet.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1787702400 warning: %clamp_mtime_to_source_date_epoch is deprecated, please use %build_mtime_policy Wrote: /builddir/build/SRPMS/telnet-2.8-1.an27.src.rpm RPM build warnings: %clamp_mtime_to_source_date_epoch is deprecated, please use %build_mtime_policy Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/telnet.spec'], chrootPath='/var/lib/mock/dist-an27-pre-build-572100-90672/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=86400uid=989gid=135user='mockbuild'unshare_net=TrueprintOutput=Falsenspawn_args=['--capability=cap_ipc_lock']) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/telnet.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1787702400 Executing(%mkbuilddir): /bin/sh -e /var/tmp/rpm-tmp.6S2xvo Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.rBgTIJ + umask 022 + cd /builddir/build/BUILD/telnet-2.8-build + cd /builddir/build/BUILD/telnet-2.8-build + rm -rf netkit-telnet-0.17 + /usr/lib/rpm/rpmuncompress -x /builddir/build/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 /builddir/build/BUILD/telnet-2.8-build + cd netkit-telnet-0.17 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/telnet-client.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.FtoUp4 + umask 022 + cd /builddir/build/BUILD/telnet-2.8-build + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/anolis/anolis-hardened-ld -specs=/usr/lib/rpm/anolis/anolis-hardened-ld-errors -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -Wl,--build-id=sha1 ' + 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 + export 'CC_FLAGS=-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fpie' + CC_FLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fpie' + export 'LD_FLAGS=-Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/anolis/anolis-hardened-ld -specs=/usr/lib/rpm/anolis/anolis-hardened-ld-errors -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -Wl,--build-id=sha1 -z now -pie' + LD_FLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/anolis/anolis-hardened-ld -specs=/usr/lib/rpm/anolis/anolis-hardened-ld-errors -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -Wl,--build-id=sha1 -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 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,-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 + /usr/bin/make -O -j80 V=1 VERBOSE=1 (cd telnet && /usr/bin/make) (cd telnetd && /usr/bin/make) make[1]: Entering directory '/builddir/build/BUILD/telnet-2.8-build/netkit-telnet-0.17/telnet' gcc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fpie -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -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 make[1]: Leaving directory '/builddir/build/BUILD/telnet-2.8-build/netkit-telnet-0.17/telnet' ../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 $"; | ^~~~~ make[1]: Entering directory '/builddir/build/BUILD/telnet-2.8-build/netkit-telnet-0.17/telnetd' gcc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fpie -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -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 make[1]: Leaving directory '/builddir/build/BUILD/telnet-2.8-build/netkit-telnet-0.17/telnetd' make[1]: Entering directory '/builddir/build/BUILD/telnet-2.8-build/netkit-telnet-0.17/telnetd' gcc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fpie -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -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 make[1]: Leaving directory '/builddir/build/BUILD/telnet-2.8-build/netkit-telnet-0.17/telnetd' make[1]: Entering directory '/builddir/build/BUILD/telnet-2.8-build/netkit-telnet-0.17/telnetd' gcc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fpie -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -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 make[1]: Leaving directory '/builddir/build/BUILD/telnet-2.8-build/netkit-telnet-0.17/telnetd' utility.c: In function ‘putf’: utility.c:482:31: error: implicit declaration of function ‘time’ [-Wimplicit-function-declaration] 482 | (void)time(&t); | ^~~~ utility.c:50:1: note: ‘time’ is defined in header ‘’; this is probably fixable by adding ‘#include ’ 49 | #include "telnetd.h" +++ |+#include 50 | utility.c:482:31: warning: nested extern declaration of ‘time’ [-Wnested-externs] 482 | (void)time(&t); | ^~~~ utility.c:483:31: error: implicit declaration of function ‘strftime’ [-Wimplicit-function-declaration] 483 | (void)strftime(db, sizeof(db), fmtstr, localtime(&t)); | ^~~~~~~~ utility.c:483:31: note: include ‘’ or provide a declaration of ‘strftime’ utility.c:483:31: warning: incompatible implicit declaration of built-in function ‘strftime’ [-Wbuiltin-declaration-mismatch] utility.c:483:31: note: include ‘’ or provide a declaration of ‘strftime’ utility.c:483:64: error: implicit declaration of function ‘localtime’ [-Wimplicit-function-declaration] 483 | (void)strftime(db, sizeof(db), fmtstr, localtime(&t)); | ^~~~~~~~~ utility.c:483:64: note: ‘localtime’ is defined in header ‘’; this is probably fixable by adding ‘#include ’ utility.c:483:64: warning: nested extern declaration of ‘localtime’ [-Wnested-externs] utility.c:483:64: error: passing argument 4 of ‘strftime’ makes pointer from integer without a cast [-Wint-conversion] 483 | (void)strftime(db, sizeof(db), fmtstr, localtime(&t)); | ^~~~~~~~~~~~~ | | | int utility.c:483:64: note: expected ‘const void *’ but argument is of type ‘int’ utility.c: In function ‘printsub’: utility.c:618:42: warning: trigraph ‘??)’ ignored, use ‘-trigraphs’ to enable [-Wtrigraphs] 618 | netoprintf("(Empty suboption???)"); utility.c:639:47: warning: trigraph ‘??)’ ignored, use ‘-trigraphs’ to enable [-Wtrigraphs] 639 | netoprintf(" (empty suboption???)"); utility.c:661:47: warning: trigraph ‘??)’ ignored, use ‘-trigraphs’ to enable [-Wtrigraphs] 661 | netoprintf(" (empty suboption???)"); utility.c:680:47: warning: trigraph ‘??)’ ignored, use ‘-trigraphs’ to enable [-Wtrigraphs] 680 | netoprintf(" (empty suboption???)"); utility.c:705:47: warning: trigraph ‘??)’ ignored, use ‘-trigraphs’ to enable [-Wtrigraphs] 705 | netoprintf(" (empty suboption???)"); utility.c:722:44: warning: trigraph ‘??)’ ignored, use ‘-trigraphs’ to enable [-Wtrigraphs] 722 | netoprintf("(no option???)"); utility.c:779:42: warning: trigraph ‘??)’ ignored, use ‘-trigraphs’ to enable [-Wtrigraphs] 779 | netoprintf("(no mode???)"); utility.c:912:29: error: format not a string literal and no format arguments [-Werror=format-security] 912 | netoprintf("\" VAR " + noquote); | ^~~~~~~~~~ utility.c:917:29: error: format not a string literal and no format arguments [-Werror=format-security] 917 | netoprintf("\" VALUE " + noquote); | ^~~~~~~~~~ utility.c:922:29: error: format not a string literal and no format arguments [-Werror=format-security] 922 | netoprintf("\" ESC " + noquote); | ^~~~~~~~~~ utility.c:954:47: warning: trigraph ‘??)’ ignored, use ‘-trigraphs’ to enable [-Wtrigraphs] 954 | netoprintf(" (empty suboption???)"); utility.c:967:52: warning: trigraph ‘??)’ ignored, use ‘-trigraphs’ to enable [-Wtrigraphs] 967 | netoprintf("(partial suboption???)"); utility.c:989:56: warning: trigraph ‘??)’ ignored, use ‘-trigraphs’ to enable [-Wtrigraphs] 989 | netoprintf("(partial suboption???)"); utility.c:1030:47: warning: trigraph ‘??)’ ignored, use ‘-trigraphs’ to enable [-Wtrigraphs] 1030 | netoprintf(" (empty suboption???)"); utility.c:1055:53: warning: trigraph ‘??)’ ignored, use ‘-trigraphs’ to enable [-Wtrigraphs] 1055 | netoprintf(" (partial suboption???)"); utility.c: In function ‘fatal’: utility.c:381:16: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 381 | (void) write(f, buf, (int)strlen(buf)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc1: some warnings being treated as errors make[1]: *** [../MRULES:4: utility.o] Error 1 make[1]: *** Waiting for unfinished jobs.... make[1]: Entering directory '/builddir/build/BUILD/telnet-2.8-build/netkit-telnet-0.17/telnetd' gcc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fpie -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -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 make[1]: Leaving directory '/builddir/build/BUILD/telnet-2.8-build/netkit-telnet-0.17/telnetd' make[1]: Entering directory '/builddir/build/BUILD/telnet-2.8-build/netkit-telnet-0.17/telnet' gcc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fpie -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -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 make[1]: Leaving directory '/builddir/build/BUILD/telnet-2.8-build/netkit-telnet-0.17/telnet' sys_bsd.c: In function ‘TerminalNewMode’: sys_bsd.c:642:9: warning: ‘sigsetmask’ is deprecated [-Wdeprecated-declarations] 642 | (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:642:9: warning: ‘sigblock’ is deprecated [-Wdeprecated-declarations] 642 | (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:643:9: warning: extra tokens at end of ‘#else’ directive [-Wendif-labels] 643 | # else SOLARIS | ^~~~~~~ sys_bsd.c:645:9: warning: extra tokens at end of ‘#endif’ directive [-Wendif-labels] 645 | # endif SOLARIS | ^~~~~~~ sys_bsd.c: At top level: sys_bsd.c:825:1: warning: no previous prototype for ‘deadpeer’ [-Wmissing-prototypes] 825 | deadpeer(int sig) | ^~~~~~~~ sys_bsd.c:834:1: warning: no previous prototype for ‘intr’ [-Wmissing-prototypes] 834 | intr(int sig) | ^~~~ sys_bsd.c:847:1: warning: no previous prototype for ‘intr2’ [-Wmissing-prototypes] 847 | intr2(int sig) | ^~~~~ sys_bsd.c:877:1: warning: no previous prototype for ‘sendwin’ [-Wmissing-prototypes] 877 | sendwin(int sig) | ^~~~~~~ sys_bsd.c: In function ‘process_rings’: sys_bsd.c:976:13: error: implicit declaration of function ‘err’ [-Wimplicit-function-declaration] 976 | err(1, "malloc"); | ^~~ sys_bsd.c:976:13: warning: nested extern declaration of ‘err’ [-Wnested-externs] make[1]: *** [../MRULES:4: sys_bsd.o] Error 1 make[1]: *** Waiting for unfinished jobs.... make[1]: Entering directory '/builddir/build/BUILD/telnet-2.8-build/netkit-telnet-0.17/telnet' gcc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fpie -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -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 make[1]: Leaving directory '/builddir/build/BUILD/telnet-2.8-build/netkit-telnet-0.17/telnet' tn3270.c:72:1: warning: no previous prototype for ‘init_3270’ [-Wmissing-prototypes] 72 | init_3270(void) | ^~~~~~~~~ make[1]: Entering directory '/builddir/build/BUILD/telnet-2.8-build/netkit-telnet-0.17/telnet' gcc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fpie -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -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 make[1]: Leaving directory '/builddir/build/BUILD/telnet-2.8-build/netkit-telnet-0.17/telnet' make[1]: Entering directory '/builddir/build/BUILD/telnet-2.8-build/netkit-telnet-0.17/telnetd' gcc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fpie -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -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 make[1]: Leaving directory '/builddir/build/BUILD/telnet-2.8-build/netkit-telnet-0.17/telnetd' make[1]: Entering directory '/builddir/build/BUILD/telnet-2.8-build/netkit-telnet-0.17/telnet' gcc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fpie -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -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 make[1]: Leaving directory '/builddir/build/BUILD/telnet-2.8-build/netkit-telnet-0.17/telnet' telnet.c: In function ‘telnet_setupterm’: telnet.c:670:13: error: implicit declaration of function ‘tgetent’; did you mean ‘getenv’? [-Wimplicit-function-declaration] 670 | if (tgetent(termbuf, tname) == 1) { | ^~~~~~~ | getenv telnet.c:670:13: warning: nested extern declaration of ‘tgetent’ [-Wnested-externs] telnet.c: In function ‘lm_will’: telnet.c:1005:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘long unsigned int’ [-Wsign-compare] 1005 | if (NETROOM() > sizeof(str_lm)) { | ^ telnet.c: In function ‘lm_do’: telnet.c:1041:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘long unsigned int’ [-Wsign-compare] 1041 | if (NETROOM() > sizeof(str_lm)) { | ^ telnet.c: In function ‘lm_mode’: telnet.c:1082:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘long unsigned int’ [-Wsign-compare] 1082 | if (NETROOM() > sizeof(str_lm_mode)) { | ^ telnet.c: In function ‘slc_import’: telnet.c:1206:19: warning: comparison of integer expressions of different signedness: ‘int’ and ‘long unsigned int’ [-Wsign-compare] 1206 | if (NETROOM() > sizeof(slc_import_val)) { | ^ telnet.c: In function ‘wontoption’: telnet.c:340:20: warning: this statement may fall through [-Wimplicit-fallthrough=] 340 | if (!kludgelinemode) | ^ telnet.c:344:13: note: here 344 | case TELOPT_ECHO: | ^~~~ make[1]: *** [../MRULES:4: telnet.o] Error 1 make[1]: Entering directory '/builddir/build/BUILD/telnet-2.8-build/netkit-telnet-0.17/telnet' gcc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fpie -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -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 make[1]: Leaving directory '/builddir/build/BUILD/telnet-2.8-build/netkit-telnet-0.17/telnet' make[1]: Entering directory '/builddir/build/BUILD/telnet-2.8-build/netkit-telnet-0.17/telnet' gcc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fpie -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -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 make[1]: Leaving directory '/builddir/build/BUILD/telnet-2.8-build/netkit-telnet-0.17/telnet' main.c: In function ‘main’: main.c:157:44: warning: pointer targets in passing argument 1 of ‘env_define’ differ in signedness [-Wpointer-sign] 157 | 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[] = | ^~~~~~~~~ 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); | ~~~~~~^~~ make[1]: Entering directory '/builddir/build/BUILD/telnet-2.8-build/netkit-telnet-0.17/telnet' gcc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fpie -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -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 make[1]: Leaving directory '/builddir/build/BUILD/telnet-2.8-build/netkit-telnet-0.17/telnet' commands.c:258:63: warning: cast between incompatible function types from ‘int (*)(void)’ to ‘int (*)(const char *)’ [-Wcast-function-type] 258 | { "synch", "Perform Telnet 'Synch operation'", 1, 0, (send_handler_t)dosynch, 2, 0 }, | ^ commands.c:259:63: warning: cast between incompatible function types from ‘int (*)(void)’ to ‘int (*)(const char *)’ [-Wcast-function-type] 259 | { "getstatus", "Send request for STATUS", 1, 0, (send_handler_t)get_status, 6, 0 }, | ^ commands.c: In function ‘send_tncmd’: commands.c:400:18: warning: passing argument 1 of ‘isprefix’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 400 | 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:400:44: warning: passing argument 1 of ‘isprefix’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 400 | 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:420:27: warning: passing argument 1 of ‘genget’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 420 | 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:860:58: warning: cast between incompatible function types from ‘void (*)(char *)’ to ‘void (*)(int)’ [-Wcast-function-type] 860 | { "tracefile", "file to write trace information to", (set_handler_t)SetNetTrace, (cc_t *)NetTraceFile}, | ^ commands.c: In function ‘setcmd’: commands.c:964:28: error: passing argument 1 of ‘ct->handler’ makes integer from pointer without a cast [-Wint-conversion] 964 | (*ct->handler)(argv[2]); | ~~~~^~~ | | | char * commands.c:964:28: note: expected ‘int’ but argument is of type ‘char *’ commands.c: In function ‘shell’: commands.c:1382:17: warning: missing sentinel in function call [-Wformat=] 1382 | execl(shellp, shellname, "-c", &saveline[1], 0); | ^~~~~ commands.c:1384:17: warning: missing sentinel in function call [-Wformat=] 1384 | execl(shellp, shellname, 0); | ^~~~~ commands.c: At top level: commands.c:1542:49: warning: cast between incompatible function types from ‘struct env_lst * (*)(unsigned char *, unsigned char *)’ to ‘void (*)(unsigned char *, unsigned char *)’ [-Wcast-function-type] 1542 | (env_handler_t)env_define, 2 }, | ^ commands.c:1544:49: warning: cast between incompatible function types from ‘void (*)(unsigned char *)’ to ‘void (*)(unsigned char *, unsigned char *)’ [-Wcast-function-type] 1544 | (env_handler_t)env_undefine, 1 }, | ^ commands.c:1546:49: warning: cast between incompatible function types from ‘void (*)(unsigned char *)’ to ‘void (*)(unsigned char *, unsigned char *)’ [-Wcast-function-type] 1546 | (env_handler_t)env_export, 1 }, | ^ commands.c:1548:49: warning: cast between incompatible function types from ‘void (*)(unsigned char *)’ to ‘void (*)(unsigned char *, unsigned char *)’ [-Wcast-function-type] 1548 | (env_handler_t)env_unexport, 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 | { "send", "Send an environment variable", (env_handler_t)env_send, 1 }, | ^ commands.c: In function ‘env_cmd’: commands.c:1612:23: warning: pointer targets in passing argument 1 of ‘c->handler’ differ in signedness [-Wpointer-sign] 1612 | (*c->handler)(argv[2], argv[3]); | ~~~~^~~ | | | char * commands.c:1612:23: note: expected ‘unsigned char *’ but argument is of type ‘char *’ commands.c:1612:32: warning: pointer targets in passing argument 2 of ‘c->handler’ differ in signedness [-Wpointer-sign] 1612 | (*c->handler)(argv[2], argv[3]); | ~~~~^~~ | | | char * commands.c:1612:32: note: expected ‘unsigned char *’ but argument is of type ‘char *’ commands.c: In function ‘env_init’: commands.c:1662:28: warning: pointer targets in passing argument 1 of ‘env_find’ differ in signedness [-Wpointer-sign] 1662 | if ((ep = env_find("DISPLAY")) | ^~~~~~~~~ | | | char * commands.c:1628:25: note: expected ‘unsigned char *’ but argument is of type ‘char *’ 1628 | env_find(unsigned char *var) | ~~~~~~~~~~~~~~~^~~ commands.c:1690:23: warning: pointer targets in passing argument 1 of ‘env_find’ differ in signedness [-Wpointer-sign] 1690 | if ((env_find("USER") == NULL) && (ep = env_find("LOGNAME"))) { | ^~~~~~ | | | char * commands.c:1628:25: note: expected ‘unsigned char *’ but argument is of type ‘char *’ 1628 | env_find(unsigned char *var) | ~~~~~~~~~~~~~~~^~~ commands.c:1690:58: warning: pointer targets in passing argument 1 of ‘env_find’ differ in signedness [-Wpointer-sign] 1690 | if ((env_find("USER") == NULL) && (ep = env_find("LOGNAME"))) { | ^~~~~~~~~ | | | char * commands.c:1628:25: note: expected ‘unsigned char *’ but argument is of type ‘char *’ 1628 | env_find(unsigned char *var) | ~~~~~~~~~~~~~~~^~~ commands.c: In function ‘env_define’: commands.c:1720:22: warning: pointer targets in assignment from ‘char *’ to ‘unsigned char *’ differ in signedness [-Wpointer-sign] 1720 | if ((ep->var = strdup((char *)var)) == NULL) | ^ commands.c:1722:24: warning: pointer targets in assignment from ‘char *’ to ‘unsigned char *’ differ in signedness [-Wpointer-sign] 1722 | if ((ep->value = strdup((char *)value)) == NULL) | ^ commands.c: In function ‘tn’: commands.c:2346:25: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 2346 | } else if (temp == -1) { | ^~ commands.c:2546:17: warning: variable ‘retry’ set but not used [-Wunused-but-set-variable] 2546 | int retry = 0; | ^~~~~ commands.c: At top level: commands.c:2667:41: warning: cast between incompatible function types from ‘int (*)(void)’ to ‘int (*)(int, char **)’ [-Wcast-function-type] 2667 | { "quit", quithelp, (cmd_handler_t)quit, 0 }, | ^ commands.c: In function ‘help’: commands.c:2828:43: warning: field width specifier ‘*’ expects argument of type ‘int’, but argument 2 has type ‘long unsigned int’ [-Wformat=] 2828 | printf("%-*s\t%s\r\n", HELPINDENT, c->name, | ~~^~ | | | int commands.c: In function ‘env_init’: commands.c:1678:17: warning: ignoring return value of ‘asprintf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 1678 | asprintf (&cp, "%s%s", hbuf, cp2); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ commands.c: In function ‘tn’: commands.c:2276:9: warning: ignoring return value of ‘seteuid’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 2276 | seteuid(getuid()); | ^~~~~~~~~~~~~~~~~ commands.c:2277:9: warning: ignoring return value of ‘setuid’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 2277 | setuid(getuid()); | ^~~~~~~~~~~~~~~~ commands.c:2283:16: warning: ignoring return value of ‘fgets’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 2283 | (void) fgets(&line[strlen(line)], sizeof(line) - strlen(line), stdin); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ commands.c:2327:9: warning: ignoring return value of ‘seteuid’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 2327 | seteuid(getuid()); | ^~~~~~~~~~~~~~~~~ commands.c:2328:9: warning: ignoring return value of ‘setuid’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 2328 | setuid(getuid()); | ^~~~~~~~~~~~~~~~ commands.c:2343:13: warning: ignoring return value of ‘seteuid’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 2343 | seteuid(getuid()); | ^~~~~~~~~~~~~~~~~ commands.c:2344:13: warning: ignoring return value of ‘setuid’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 2344 | setuid(getuid()); | ^~~~~~~~~~~~~~~~ commands.c:2348:13: warning: ignoring return value of ‘seteuid’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 2348 | seteuid(getuid()); | ^~~~~~~~~~~~~~~~~ commands.c:2349:13: warning: ignoring return value of ‘setuid’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 2349 | setuid(getuid()); | ^~~~~~~~~~~~~~~~ commands.c:2413:21: warning: ignoring return value of ‘seteuid’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 2413 | seteuid(getuid()); | ^~~~~~~~~~~~~~~~~ commands.c:2414:21: warning: ignoring return value of ‘setuid’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 2414 | setuid(getuid()); | ^~~~~~~~~~~~~~~~ commands.c:2434:17: warning: ignoring return value of ‘seteuid’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 2434 | seteuid(getuid()); | ^~~~~~~~~~~~~~~~~ commands.c:2435:17: warning: ignoring return value of ‘setuid’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 2435 | setuid(getuid()); | ^~~~~~~~~~~~~~~~ commands.c:2446:17: warning: ignoring return value of ‘seteuid’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 2446 | seteuid(getuid()); | ^~~~~~~~~~~~~~~~~ commands.c:2447:17: warning: ignoring return value of ‘setuid’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 2447 | setuid(getuid()); | ^~~~~~~~~~~~~~~~ commands.c:2483:9: warning: ignoring return value of ‘seteuid’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 2483 | seteuid(getuid()); | ^~~~~~~~~~~~~~~~~ commands.c:2484:9: warning: ignoring return value of ‘setuid’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 2484 | setuid(getuid()); | ^~~~~~~~~~~~~~~~ commands.c: In function ‘setescape’: commands.c:1294:24: warning: ignoring return value of ‘fgets’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 1294 | (void) fgets(buf, sizeof(buf), stdin); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[1]: *** [../MRULES:4: commands.o] Error 1 make[1]: Entering directory '/builddir/build/BUILD/telnet-2.8-build/netkit-telnet-0.17/telnet' gcc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fpie -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -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 make[1]: Leaving directory '/builddir/build/BUILD/telnet-2.8-build/netkit-telnet-0.17/telnet' make[1]: Entering directory '/builddir/build/BUILD/telnet-2.8-build/netkit-telnet-0.17/telnet' gcc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fpie -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -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 make[1]: Leaving directory '/builddir/build/BUILD/telnet-2.8-build/netkit-telnet-0.17/telnet' make[1]: Entering directory '/builddir/build/BUILD/telnet-2.8-build/netkit-telnet-0.17/telnetd' gcc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fpie -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -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 make[1]: Leaving directory '/builddir/build/BUILD/telnet-2.8-build/netkit-telnet-0.17/telnetd' 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]: Entering directory '/builddir/build/BUILD/telnet-2.8-build/netkit-telnet-0.17/telnetd' gcc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fpie -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -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 make[1]: Leaving directory '/builddir/build/BUILD/telnet-2.8-build/netkit-telnet-0.17/telnetd' make[1]: Entering directory '/builddir/build/BUILD/telnet-2.8-build/netkit-telnet-0.17/telnetd' gcc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fpie -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -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 make[1]: Leaving directory '/builddir/build/BUILD/telnet-2.8-build/netkit-telnet-0.17/telnetd' 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: *** [Makefile:8: telnetd.build] Error 2 make: *** Waiting for unfinished jobs.... make[1]: Entering directory '/builddir/build/BUILD/telnet-2.8-build/netkit-telnet-0.17/telnet' gcc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fpie -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -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 make[1]: Leaving directory '/builddir/build/BUILD/telnet-2.8-build/netkit-telnet-0.17/telnet' utilities.c: In function ‘printsub’: utilities.c:768:33: error: format not a string literal and no format arguments [-Werror=format-security] 768 | fprintf(NetTrace, "\" VALUE " + noquote); | ^~~~~~~ utilities.c:784:33: error: format not a string literal and no format arguments [-Werror=format-security] 784 | fprintf(NetTrace, "\" VAR " + noquote); | ^~~~~~~ utilities.c:789:29: error: format not a string literal and no format arguments [-Werror=format-security] 789 | fprintf(NetTrace, "\" ESC " + noquote); | ^~~~~~~ utilities.c:794:29: error: format not a string literal and no format arguments [-Werror=format-security] 794 | fprintf(NetTrace, "\" USERVAR " + noquote); | ^~~~~~~ utilities.c:275:10: warning: unused variable ‘buf’ [-Wunused-variable] 275 | char buf[512]; | ^~~ cc1: some warnings being treated as errors make[1]: *** [../MRULES:4: utilities.o] Error 1 make: *** [Makefile:8: telnet.build] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.FtoUp4 (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.FtoUp4 (%build) Child return code was: 1 EXCEPTION: [Error("Command failed: \n # bash --login -c '/usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/telnet.spec'\n", 1)] Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.6/site-packages/mockbuild/util.py", line 610, in do_with_status raise exception.Error("Command failed: \n # %s\n%s" % (cmd_pretty(command, env), output), child.returncode) mockbuild.exception.Error: Command failed: # bash --login -c '/usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/telnet.spec'