Mock Version: 1.4.21 Mock Version: 1.4.21 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/tftp.spec'], chrootPath='/var/lib/mock/f33-build-150925-43271/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': 'en_US.UTF-8'}shell=Falselogger=timeout=432000uid=987gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/tftp.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': 'en_US.UTF-8'} and shell False Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1564185600 Wrote: /builddir/build/SRPMS/tftp-5.2-28.fc33.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/tftp.spec'], chrootPath='/var/lib/mock/f33-build-150925-43271/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': 'en_US.UTF-8'}shell=Falselogger=timeout=432000uid=987gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/tftp.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': 'en_US.UTF-8'} and shell False Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1564185600 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.8a7aRL + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf tftp-hpa-5.2 + /usr/bin/bzip2 -dc /builddir/build/SOURCES/tftp-hpa-5.2.tar.bz2 + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd tftp-hpa-5.2 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #0 (tftp-0.40-remap.patch):' Patch #0 (tftp-0.40-remap.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .zero --fuzz=0 patching file tftpd/remap.c Hunk #1 succeeded at 283 (offset -3 lines). Hunk #2 succeeded at 292 (offset -3 lines). Patch #2 (tftp-hpa-0.39-tzfix.patch): + echo 'Patch #2 (tftp-hpa-0.39-tzfix.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .tzfix --fuzz=0 patching file tftpd/tftpd.c Hunk #1 succeeded at 384 (offset 34 lines). Patch #3 (tftp-0.42-tftpboot.patch): + echo 'Patch #3 (tftp-0.42-tftpboot.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .tftpboot --fuzz=0 patching file tftp-xinetd patching file README.security Hunk #1 succeeded at 13 (offset -4 lines). Hunk #2 succeeded at 36 (offset -4 lines). patching file tftpd/sample.rules Hunk #1 succeeded at 29 (offset -1 lines). Patch #4 (tftp-0.49-chk_retcodes.patch): + echo 'Patch #4 (tftp-0.49-chk_retcodes.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .chk_retcodes --fuzz=0 patching file tftpd/tftpd.c Hunk #1 succeeded at 1008 (offset 76 lines). Patch #5 (tftp-hpa-0.49-fortify-strcpy-crash.patch): + echo 'Patch #5 (tftp-hpa-0.49-fortify-strcpy-crash.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .fortify-strcpy-crash --fuzz=0 patching file tftp/tftp.c + echo 'Patch #6 (tftp-0.49-cmd_arg.patch):' Patch #6 (tftp-0.49-cmd_arg.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .cmd_arg --fuzz=0 patching file config.h patching file configure.in Hunk #1 succeeded at 158 (offset 6 lines). patching file lib/xrealloc.c patching file tftp/main.c + echo 'Patch #7 (tftp-hpa-0.49-stats.patch):' Patch #7 (tftp-hpa-0.49-stats.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .stats --fuzz=0 patching file tftp/tftp.c + echo 'Patch #8 (tftp-hpa-5.2-pktinfo.patch):' Patch #8 (tftp-hpa-5.2-pktinfo.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .pktinfo --fuzz=0 patching file tftpd/recvfrom.c + echo 'Patch #9 (tftp-doc.patch):' Patch #9 (tftp-doc.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .doc --fuzz=0 patching file tftp/main.c patching file tftpd/tftpd.8.in Patch #10 (tftp-enhanced-logging.patch): + echo 'Patch #10 (tftp-enhanced-logging.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .logging --fuzz=0 patching file tftpd/tftpd.c + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.aOdyNM + umask 022 + cd /builddir/build/BUILD + cd tftp-hpa-5.2 + autoreconf + CFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection' + export CFLAGS + CXXFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection' + export CXXFLAGS + FFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + '[' 1 = 1 ']' +++ dirname ./configure ++ find . -name config.guess -o -name config.sub + '[' 1 = 1 ']' + '[' x '!=' 'x-Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' ']' ++ find . -name ltmain.sh + ./configure --build=riscv64-redhat-linux-gnu --host=riscv64-redhat-linux-gnu --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info configure: WARNING: unrecognized options: --disable-dependency-tracking checking for riscv64-redhat-linux-gnu-gcc... no checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking minix/config.h usability... no checking minix/config.h presence... no checking for minix/config.h... no checking whether it is safe to define __EXTENSIONS__... yes checking for library containing strerror... none required checking for riscv64-redhat-linux-gnu-gcc... gcc checking whether we are using the GNU C compiler... (cached) yes checking whether gcc accepts -g... (cached) yes checking for gcc option to accept ISO C89... (cached) none needed checking for an ANSI C-conforming const... yes checking for inline... inline checking if gcc accepts -W... yes checking if gcc accepts -Wall... yes checking if gcc accepts -Wpointer-arith... yes checking if gcc accepts -Wbad-function-cast... yes checking if gcc accepts -Wcast-equal... no checking if gcc accepts -Wstrict-prototypes... yes checking if gcc accepts -Wmissing-prototypes... yes checking if gcc accepts -Wmissing-declarations... yes checking if gcc accepts -Wnested-externs... yes checking if gcc accepts -Winline... yes checking if gcc accepts -Wwrite-strings... yes checking if gcc accepts -Wundef... yes checking if gcc accepts -Wshadow... yes checking if gcc accepts -Wsign-compare... yes checking if gcc accepts -pipe... yes checking if gcc accepts -fno-strict-aliasing... yes checking for ANSI C header files... (cached) yes checking for inttypes.h... (cached) yes checking for stdint.h... (cached) yes checking for inttypes.h... (cached) yes checking if inttypes.h is sane... yes checking fcntl.h usability... yes checking fcntl.h presence... yes checking for fcntl.h... yes checking grp.h usability... yes checking grp.h presence... yes checking for grp.h... yes checking libgen.h usability... yes checking libgen.h presence... yes checking for libgen.h... yes checking for memory.h... (cached) yes checking setjmp.h usability... yes checking setjmp.h presence... yes checking for setjmp.h... yes checking stddef.h usability... yes checking stddef.h presence... yes checking for stddef.h... yes checking for stdlib.h... (cached) yes checking for string.h... (cached) yes checking for strings.h... (cached) yes checking sysexits.h usability... yes checking sysexits.h presence... yes checking for sysexits.h... yes checking time.h usability... yes checking time.h presence... yes checking for time.h... yes checking for unistd.h... (cached) yes checking sys/file.h usability... yes checking sys/file.h presence... yes checking for sys/file.h... yes checking sys/filio.h usability... no checking sys/filio.h presence... no checking for sys/filio.h... no checking for sys/stat.h... (cached) yes checking sys/time.h usability... yes checking sys/time.h presence... yes checking for sys/time.h... yes checking for sys/types.h... (cached) yes checking arpa/inet.h usability... yes checking arpa/inet.h presence... yes checking for arpa/inet.h... yes checking netdb.h usability... yes checking netdb.h presence... yes checking for netdb.h... yes checking whether time.h and sys/time.h may both be included... yes checking machine/param.h usability... no checking machine/param.h presence... no checking for machine/param.h... no checking sys/socket.h usability... yes checking sys/socket.h presence... yes checking for sys/socket.h... yes checking winsock2.h usability... no checking winsock2.h presence... no checking for winsock2.h... no checking winsock.h usability... no checking winsock.h presence... no checking for winsock.h... no checking for special C compiler options needed for large files... no checking for _FILE_OFFSET_BITS value needed for large files... no checking for off_t... yes checking for pid_t... yes checking for mode_t... yes checking for size_t... yes checking for intmax_t... yes checking for long long... yes checking for uint16_t... yes checking for uint32_t... yes checking for u_short... yes checking for u_long... yes checking for socklen_t... yes checking for library containing socket... none required checking for fcntl... yes checking for setsid... yes checking for recvmsg... yes checking for ftruncate... yes checking for setreuid... yes checking for setregid... yes checking for initgroups... yes checking for setgroups... yes checking for strtoumax... yes checking for strtoull... yes checking for struct msghdr.msg_control... yes checking for struct in_pktinfo.ipi_addr... yes checking for struct addrinfo.ai_addr... yes checking if fcntl.h defines O_NONBLOCK... yes checking if fcntl.h defines O_BINARY... no checking if fcntl.h defines O_TEXT... no checking if fcntl.h defines F_SETLK... yes checking if sys/file.h defines LOCK_SH... yes checking if sys/file.h defines LOCK_EX... yes checking for sigsetjmp... yes checking for library containing xmalloc... no checking for library containing xrealloc... no checking for library containing xstrdup... no checking for library containing bsd_signal... none required checking for library containing getopt_long... none required checking for library containing getaddrinfo... none required checking for library containing freeaddrinfo... none required checking for library containing gai_strerror... none required checking for library containing inet_ntop... none required checking for library containing inet_aton... none required checking for daemon... yes checking for dup2... yes checking if netinet/in.h defines IPPORT_TFTP... yes checking for library containing yp_get_default_domain... no checking for main in -lwrap... no checking for tcpwrappers... no checking regex.h usability... yes checking regex.h presence... yes checking for regex.h... yes checking for library containing regcomp... none required checking readline/readline.h usability... yes checking readline/readline.h presence... yes checking for readline/readline.h... yes checking for library containing tputs... -ltermcap checking for library containing readline... -lreadline checking readline/history.h usability... yes checking readline/history.h presence... yes checking for readline/history.h... yes checking for struct sockaddr_in6.sin6_addr... yes checking for IPv6 support... yes checking for struct in6_pktinfo.ipi6_addr... yes checking whether ln -s works... yes checking for riscv64-redhat-linux-gnu-ranlib... no checking for ranlib... ranlib checking for a BSD-compatible install... /usr/bin/install -c configure: creating ./config.status config.status: creating MCONFIG config.status: creating aconfig.h configure: WARNING: unrecognized options: --disable-dependency-tracking + make -j4 echo \#define VERSION \"tftp-hpa `cat version`\" > version.h make -C lib make -C common make[1]: Entering directory '/builddir/build/BUILD/tftp-hpa-5.2/lib' gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -W -Wall -Wpointer-arith -Wbad-function-cast -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wwrite-strings -Wundef -Wshadow -Wsign-compare -pipe -fno-strict-aliasing -I/builddir/build/BUILD/tftp-hpa-5.2 -c xmalloc.c gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -W -Wall -Wpointer-arith -Wbad-function-cast -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wwrite-strings -Wundef -Wshadow -Wsign-compare -pipe -fno-strict-aliasing -I/builddir/build/BUILD/tftp-hpa-5.2 -c xrealloc.c gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -W -Wall -Wpointer-arith -Wbad-function-cast -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wwrite-strings -Wundef -Wshadow -Wsign-compare -pipe -fno-strict-aliasing -I/builddir/build/BUILD/tftp-hpa-5.2 -c xstrdup.c make[1]: Entering directory '/builddir/build/BUILD/tftp-hpa-5.2/common' gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -W -Wall -Wpointer-arith -Wbad-function-cast -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wwrite-strings -Wundef -Wshadow -Wsign-compare -pipe -fno-strict-aliasing -I/builddir/build/BUILD/tftp-hpa-5.2 -c tftpsubs.c rm -f libxtra.a ar cq libxtra.a xmalloc.o xrealloc.o xstrdup.o ranlib libxtra.a make[1]: Leaving directory '/builddir/build/BUILD/tftp-hpa-5.2/lib' rm -f libcommon.a ar cq libcommon.a tftpsubs.o ranlib libcommon.a make[1]: Leaving directory '/builddir/build/BUILD/tftp-hpa-5.2/common' make -C tftp make -C tftpd make[1]: Entering directory '/builddir/build/BUILD/tftp-hpa-5.2/tftp' gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -W -Wall -Wpointer-arith -Wbad-function-cast -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wwrite-strings -Wundef -Wshadow -Wsign-compare -pipe -fno-strict-aliasing -I/builddir/build/BUILD/tftp-hpa-5.2 -c tftp.c make[1]: Entering directory '/builddir/build/BUILD/tftp-hpa-5.2/tftpd' gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -W -Wall -Wpointer-arith -Wbad-function-cast -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wwrite-strings -Wundef -Wshadow -Wsign-compare -pipe -fno-strict-aliasing -I/builddir/build/BUILD/tftp-hpa-5.2 -c tftpd.c gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -W -Wall -Wpointer-arith -Wbad-function-cast -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wwrite-strings -Wundef -Wshadow -Wsign-compare -pipe -fno-strict-aliasing -I/builddir/build/BUILD/tftp-hpa-5.2 -c main.c gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -W -Wall -Wpointer-arith -Wbad-function-cast -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wwrite-strings -Wundef -Wshadow -Wsign-compare -pipe -fno-strict-aliasing -I/builddir/build/BUILD/tftp-hpa-5.2 -c recvfrom.c tftp.c: In function 'tftp_sendfile': tftp.c:88:5: warning: implicit declaration of function 'bsd_signal'; did you mean 'ssignal'? [-Wimplicit-function-declaration] 88 | bsd_signal(SIGALRM, timer); | ^~~~~~~~~~ | ssignal tftp.c:88:5: warning: nested extern declaration of 'bsd_signal' [-Wnested-externs] main.c: In function 'main': main.c:313:5: warning: implicit declaration of function 'bsd_signal'; did you mean 'ssignal'? [-Wimplicit-function-declaration] 313 | bsd_signal(SIGINT, intr); | ^~~~~~~~~~ | ssignal main.c:313:5: warning: nested extern declaration of 'bsd_signal' [-Wnested-externs] tftpd.c: In function 'main': tftpd.c:392:46: warning: format '%d' expects argument of type 'int', but argument 4 has type 'long int' [-Wformat=] 392 | snprintf(envtz, sizeof(envtz) - 1, "UTC%+d", (p_tm->tm_gmtoff * -1)/3600); | ~~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | | int long int | %+ld gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -W -Wall -Wpointer-arith -Wbad-function-cast -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wwrite-strings -Wundef -Wshadow -Wsign-compare -pipe -fno-strict-aliasing -I/builddir/build/BUILD/tftp-hpa-5.2 -c misc.c sed -e 's/@@VERSION@@/5.2/g' < tftp.1.in > tftp.1 gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -W -Wall -Wpointer-arith -Wbad-function-cast -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wwrite-strings -Wundef -Wshadow -Wsign-compare -pipe -fno-strict-aliasing -I/builddir/build/BUILD/tftp-hpa-5.2 -c remap.c sed -e 's/@@VERSION@@/5.2/g' < tftpd.8.in > tftpd.8 tftpd.c: In function 'tftp_recvfile': tftpd.c:1673:69: warning: argument 'oap' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered] 1673 | static void tftp_recvfile(const struct formats *pf, struct tftphdr *oap, int oacklen) | ~~~~~~~~~~~~~~~~^~~ main.c:194:20: warning: inlining failed in call to 'usage': call is unlikely and code size would grow [-Winline] 194 | static inline void usage(int errcode) | ^~~~~ main.c:249:25: note: called from here 249 | usage(EX_USAGE); | ^~~~~~~~~~~~~~~ main.c:194:20: warning: inlining failed in call to 'usage': call is unlikely and code size would grow [-Winline] 194 | static inline void usage(int errcode) | ^~~~~ main.c:271:25: note: called from here 271 | usage(EX_USAGE); | ^~~~~~~~~~~~~~~ main.c:194:20: warning: inlining failed in call to 'usage': call is unlikely and code size would grow [-Winline] 194 | static inline void usage(int errcode) | ^~~~~ main.c:284:21: note: called from here 284 | usage(*optx == 'h' ? 0 : EX_USAGE); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:194:20: warning: inlining failed in call to 'usage': call is unlikely and code size would grow [-Winline] 194 | static inline void usage(int errcode) | ^~~~~ main.c:289:17: note: called from here 289 | usage(EX_USAGE); | ^~~~~~~~~~~~~~~ gcc -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld tftp.o main.o ../common/libcommon.a -lreadline -ltermcap /builddir/build/BUILD/tftp-hpa-5.2/lib/libxtra.a -o tftp /usr/bin/ld: main.o: in function `.LANCHOR0': /builddir/build/BUILD/tftp-hpa-5.2/tftp/main.c:101: multiple definition of `toplevel'; tftp.o:/builddir/build/BUILD/tftp-hpa-5.2/tftp/tftp.c:51: first defined here collect2: error: ld returned 1 exit status make[1]: *** [Makefile:12: tftp] Error 1 make[1]: Leaving directory '/builddir/build/BUILD/tftp-hpa-5.2/tftp' make: *** [Makefile:7: tftp.build] Error 2 make: *** Waiting for unfinished jobs.... gcc -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld tftpd.o recvfrom.o misc.o remap.o ../common/libcommon.a /builddir/build/BUILD/tftp-hpa-5.2/lib/libxtra.a -o tftpd make[1]: Leaving directory '/builddir/build/BUILD/tftp-hpa-5.2/tftpd' error: Bad exit status from /var/tmp/rpm-tmp.aOdyNM (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.aOdyNM (%build) Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.8/site-packages/mockbuild/trace_decorator.py", line 95, in trace result = func(*args, **kw) File "/usr/lib/python3.8/site-packages/mockbuild/util.py", line 746, in do_with_status raise exception.Error("Command failed: \n # %s\n%s" % (command, output), child.returncode) mockbuild.exception.Error: Command failed: # bash --login -c /usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/tftp.spec