+ exec + rm -rf /rpmbuild + mkdir -p /rpmbuild + su -c 'rpmbuild -ba /builddir/build/SPECS/hunt.spec --define "debug_package %{nil}" --undefine _annotated_build --define "_missing_doc_files_terminate_build %{nil}" --define "_emacs_sitestartdir /usr/share/emacs/site-lisp/site-start.d" --define "_emacs_sitelispdir /usr/share/emacs/site-lisp" --nocheck ' mockbuild Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.NVzYop + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf hunt-1.5 + /usr/bin/gzip -dc /builddir/build/SOURCES/hunt-1.5.tgz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd hunt-1.5 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #0 (hunt-1.5-arridx.patch):' Patch #0 (hunt-1.5-arridx.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .arridx --fuzz=0 patching file c/hash.c + echo 'Patch #1 (hunt-1.5-cleanup.patch):' Patch #1 (hunt-1.5-cleanup.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .cleanup --fuzz=0 patching file util.c patching file hunt.h patching file timer.c + echo 'Patch #2 (hunt-1.5-signness.patch):' Patch #2 (hunt-1.5-signness.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .signness --fuzz=0 patching file addpolicy.c patching file arphijack.c patching file arpspoof.c patching file hostup.c patching file hunt.c patching file hunt.h patching file menu.c patching file net.c patching file pktrelay.c patching file rstd.c patching file sniff.c patching file tap.c patching file util.c + echo 'Patch #3 (hunt-1.5-listlen.patch):' Patch #3 (hunt-1.5-listlen.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .listlen --fuzz=0 patching file hostup.c + echo 'Patch #4 (hunt-1.5-badcmp.patch):' Patch #4 (hunt-1.5-badcmp.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .badcmp --fuzz=0 patching file arphijack.c patching file arpspoof.c patching file hostup.c patching file hunt.h patching file macdisc.c patching file main.c patching file menu.c patching file resolv.c patching file synchijack.c + echo 'Patch #5 (hunt-1.5-datatypes.patch):' Patch #5 (hunt-1.5-datatypes.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .datatypes --fuzz=0 patching file c/list.c patching file c/list.h patching file hunt.h patching file menu.c patching file resolv.c patching file rstd.c + echo 'Patch #6 (hunt-1.5-format-security.patch):' Patch #6 (hunt-1.5-format-security.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .format-security --fuzz=0 patching file synchijack.c + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.f8Zwfm + umask 022 + cd /builddir/build/BUILD + cd hunt-1.5 + make clean rm -f *.o core c/*.o c/core c/list_test c/hash_test c/array_test make -C tpserv clean make[1]: Entering directory '/builddir/build/BUILD/hunt-1.5/tpserv' rm -f *.o make[1]: Leaving directory '/builddir/build/BUILD/hunt-1.5/tpserv' + make -j4 hunt 'CC=gcc -std=gnu89' '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 -D_REENTRANT' 'LDFLAGS=-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 -D_REENTRANT' gcc -std=gnu89 -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 -D_REENTRANT -c -o hunt.o hunt.c gcc -std=gnu89 -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 -D_REENTRANT -c -o main.o main.c gcc -std=gnu89 -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 -D_REENTRANT -c -o c/list.o c/list.c gcc -std=gnu89 -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 -D_REENTRANT -c -o c/hash.o c/hash.c hunt.c: In function 'conn_add_update': hunt.c:393:30: warning: variable 'h_dst' set but not used [-Wunused-but-set-variable] struct host_info *h_src, *h_dst; ^~~~~ main.c: In function 'simple_hijack': main.c:245:4: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result [-Wunused-result] fgets(cmdbuf, sizeof(cmdbuf), stdin); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gcc -std=gnu89 -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 -D_REENTRANT -c -o c/array.o c/array.c gcc -std=gnu89 -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 -D_REENTRANT -c -o util.o util.c gcc -std=gnu89 -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 -D_REENTRANT -c -o net.o net.c In file included from c/array.c:10:0: c/array.c: In function 'array_init': c/array.c:27:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] assert(a->a_arr = malloc(size * sizeof(struct array_item))); ^ gcc -std=gnu89 -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 -D_REENTRANT -c -o rst.o rst.c net.c: In function 'is_icmp_reply': net.c:189:17: warning: variable 'seq' set but not used [-Wunused-but-set-variable] unsigned short seq, id; ^~~ gcc -std=gnu89 -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 -D_REENTRANT -c -o menu.o menu.c gcc -std=gnu89 -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 -D_REENTRANT -c -o hijack.o hijack.c gcc -std=gnu89 -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 -D_REENTRANT -c -o rstd.o rstd.c gcc -std=gnu89 -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 -D_REENTRANT -c -o sniff.o sniff.c menu.c: In function 'menu_prompt': menu.c:33:2: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result [-Wunused-result] fgets(buf, buf_size, stdin); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ menu.c: In function 'menu_choose_char_nconn': menu.c:426:3: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result [-Wunused-result] fgets(buf, sizeof(buf), stdin); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ menu.c: In function 'menu_choose_string': menu.c:487:2: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result [-Wunused-result] fgets(buf, sizeof(buf), stdin); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gcc -std=gnu89 -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 -D_REENTRANT -c -o macdisc.o macdisc.c gcc -std=gnu89 -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 -D_REENTRANT -c -o tap.o tap.c gcc -std=gnu89 -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 -D_REENTRANT -c -o arphijack.o arphijack.c gcc -std=gnu89 -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 -D_REENTRANT -c -o tty.o tty.c gcc -std=gnu89 -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 -D_REENTRANT -c -o synchijack.o synchijack.c gcc -std=gnu89 -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 -D_REENTRANT -c -o arpspoof.o arpspoof.c gcc -std=gnu89 -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 -D_REENTRANT -c -o hostup.o hostup.c synchijack.c: In function 'hijack_sync': synchijack.c:464:18: warning: variable 'absts' set but not used [-Wunused-but-set-variable] struct timespec absts; ^~~~~ gcc -std=gnu89 -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 -D_REENTRANT -c -o addpolicy.o addpolicy.c gcc -std=gnu89 -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 -D_REENTRANT -c -o options.o options.c gcc -std=gnu89 -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 -D_REENTRANT -c -o resolv.o resolv.c gcc -std=gnu89 -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 -D_REENTRANT -c -o timer.o timer.c gcc -std=gnu89 -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 -D_REENTRANT -c -o pktrelay.o pktrelay.c resolv.c: In function 'resolv_request': resolv.c:105:2: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] write(fd_req, &req, sizeof(struct req)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ resolv.c: In function 'handle_response': resolv.c:337:4: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] read(sl->s_fd, res + 1, res->name_len); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ resolv.c:339:4: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] write(fd, buf, sizeof(struct res) + res->name_len); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ resolv.c: In function 'send_req_to_slave': resolv.c:257:4: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] write(sl->s_fd, &req, sizeof(struct req)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ resolv.c:285:4: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] write(sl->s_fd, &req, sizeof(struct req)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ resolv.c: In function 'resolv_slave': resolv.c:226:4: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] write(fd, res, sizeof(struct res) + res->name_len); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gcc -std=gnu89 -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 -D_REENTRANT -o hunt hunt.o main.o c/list.o c/hash.o c/array.o util.o net.o rst.o menu.o hijack.o rstd.o sniff.o macdisc.o tap.o arphijack.o tty.o synchijack.o arpspoof.o hostup.o addpolicy.o options.o resolv.o timer.o pktrelay.o -lpthread + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.HAcZlI + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/hunt-1.5-26.fc28.riscv64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/hunt-1.5-26.fc28.riscv64 ++ dirname /builddir/build/BUILDROOT/hunt-1.5-26.fc28.riscv64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/hunt-1.5-26.fc28.riscv64 + cd hunt-1.5 + install -d /builddir/build/BUILDROOT/hunt-1.5-26.fc28.riscv64/usr/sbin /builddir/build/BUILDROOT/hunt-1.5-26.fc28.riscv64/usr/share/man/man1 /builddir/build/BUILDROOT/hunt-1.5-26.fc28.riscv64/usr/lib64/hunt + install -p hunt /builddir/build/BUILDROOT/hunt-1.5-26.fc28.riscv64/usr/sbin/ + install -p tpsetup/transproxy /builddir/build/BUILDROOT/hunt-1.5-26.fc28.riscv64/usr/lib64/hunt/ + install -p -m644 man/hunt.1 /builddir/build/BUILDROOT/hunt-1.5-26.fc28.riscv64/usr/share/man/man1/ + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-ldconfig /sbin/ldconfig: Warning: ignoring configuration file that cannot be opened: /etc/ld.so.conf: No such file or directory + /usr/lib/rpm/brp-compress + /usr/lib/rpm/brp-strip /usr/bin/strip + /usr/lib/rpm/brp-strip-comment-note /usr/bin/strip /usr/bin/objdump + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/brp-python-bytecompile /usr/bin/python 1 + /usr/lib/rpm/brp-python-hardlink + /usr/lib/rpm/redhat/brp-mangle-shebangs Processing files: hunt-1.5-26.fc28.riscv64 Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.iP96JJ + umask 022 + cd /builddir/build/BUILD + cd hunt-1.5 + DOCDIR=/builddir/build/BUILDROOT/hunt-1.5-26.fc28.riscv64/usr/share/doc/hunt + export LC_ALL=C + LC_ALL=C + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/hunt-1.5-26.fc28.riscv64/usr/share/doc/hunt + cp -pr CHANGES /builddir/build/BUILDROOT/hunt-1.5-26.fc28.riscv64/usr/share/doc/hunt + cp -pr README README.tp /builddir/build/BUILDROOT/hunt-1.5-26.fc28.riscv64/usr/share/doc/hunt + cp -pr TODO /builddir/build/BUILDROOT/hunt-1.5-26.fc28.riscv64/usr/share/doc/hunt + exit 0 Executing(%license): /bin/sh -e /var/tmp/rpm-tmp.UYNS6f + umask 022 + cd /builddir/build/BUILD + cd hunt-1.5 + LICENSEDIR=/builddir/build/BUILDROOT/hunt-1.5-26.fc28.riscv64/usr/share/licenses/hunt + export LC_ALL=C + LC_ALL=C + export LICENSEDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/hunt-1.5-26.fc28.riscv64/usr/share/licenses/hunt + cp -pr COPYING /builddir/build/BUILDROOT/hunt-1.5-26.fc28.riscv64/usr/share/licenses/hunt + exit 0 Provides: hunt = 1.5-26.fc28 hunt(riscv-64) = 1.5-26.fc28 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: /bin/sh ld-linux-riscv64-lp64d.so.1()(64bit) ld-linux-riscv64-lp64d.so.1(GLIBC_2.27)(64bit) libc.so.6()(64bit) libc.so.6(GLIBC_2.27)(64bit) libpthread.so.0()(64bit) libpthread.so.0(GLIBC_2.27)(64bit) rtld(GNU_HASH) Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/hunt-1.5-26.fc28.riscv64 Wrote: /builddir/build/SRPMS/hunt-1.5-26.fc28.src.rpm Wrote: /builddir/build/RPMS/riscv64/hunt-1.5-26.fc28.riscv64.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.9458vU + umask 022 + cd /builddir/build/BUILD + cd hunt-1.5 + /usr/bin/rm -rf /builddir/build/BUILDROOT/hunt-1.5-26.fc28.riscv64 + exit 0 + touch /buildok + cleanup + set +e + sync + sleep 5 + sync + poweroff Terminated ++ cleanup ++ set +e ++ sync ++ sleep 5 Terminated +++ cleanup +++ set +e +++ sync +++ sleep 5 +++ sync +++ poweroff