Mock Version: 1.4.14 Mock Version: 1.4.14 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/hunt.spec'], chrootPath='/var/lib/mock/f31-build-99300-33130/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=986gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/hunt.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=1564012800 Wrote: /builddir/build/SRPMS/hunt-1.5-31.fc31.src.rpm Child return code was: 0 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/hunt.spec'], chrootPath='/var/lib/mock/f31-build-99300-33130/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=986gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/hunt.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=1564012800 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.pLdIhg + 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):' + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .arridx --fuzz=0 + echo 'Patch #1 (hunt-1.5-cleanup.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .cleanup --fuzz=0 + echo 'Patch #2 (hunt-1.5-signness.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .signness --fuzz=0 + echo 'Patch #3 (hunt-1.5-listlen.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .listlen --fuzz=0 + echo 'Patch #4 (hunt-1.5-badcmp.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .badcmp --fuzz=0 + echo 'Patch #5 (hunt-1.5-datatypes.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .datatypes --fuzz=0 + echo 'Patch #6 (hunt-1.5-format-security.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .format-security --fuzz=0 + RPM_EC=0 BUILDSTDERR: ++ jobs -p + exit 0 Patch #0 (hunt-1.5-arridx.patch): patching file c/hash.c Patch #1 (hunt-1.5-cleanup.patch): patching file util.c patching file hunt.h patching file timer.c Patch #2 (hunt-1.5-signness.patch): 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 Patch #3 (hunt-1.5-listlen.patch): patching file hostup.c Patch #4 (hunt-1.5-badcmp.patch): 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 Patch #5 (hunt-1.5-datatypes.patch): 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 Patch #6 (hunt-1.5-format-security.patch): patching file synchijack.c Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.OHqdif + umask 022 + cd /builddir/build/BUILD + cd hunt-1.5 + make clean + 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 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -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 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -D_REENTRANT' BUILDSTDERR: main.c: In function 'simple_hijack': BUILDSTDERR: main.c:245:4: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: 245 | fgets(cmdbuf, sizeof(cmdbuf), stdin); BUILDSTDERR: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: hunt.c: In function 'conn_add_update': BUILDSTDERR: hunt.c:393:30: warning: variable 'h_dst' set but not used [-Wunused-but-set-variable] BUILDSTDERR: 393 | struct host_info *h_src, *h_dst; BUILDSTDERR: | ^~~~~ BUILDSTDERR: In file included from c/array.c:10: BUILDSTDERR: c/array.c: In function 'array_init': BUILDSTDERR: c/array.c:27:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] BUILDSTDERR: 27 | assert(a->a_arr = malloc(size * sizeof(struct array_item))); BUILDSTDERR: | ^ BUILDSTDERR: net.c: In function 'is_icmp_reply': BUILDSTDERR: net.c:189:17: warning: variable 'seq' set but not used [-Wunused-but-set-variable] BUILDSTDERR: 189 | unsigned short seq, id; BUILDSTDERR: | ^~~ BUILDSTDERR: In file included from /usr/include/string.h:494, BUILDSTDERR: from net.c:13: BUILDSTDERR: In function 'strncpy', BUILDSTDERR: inlined from 'send_tcp_packet' at net.c:85:2: BUILDSTDERR: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 14 equals destination size [-Wstringop-truncation] BUILDSTDERR: 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); BUILDSTDERR: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In function 'strncpy', BUILDSTDERR: inlined from 'send_icmp_packet' at net.c:151:2: BUILDSTDERR: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 14 equals destination size [-Wstringop-truncation] BUILDSTDERR: 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); BUILDSTDERR: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In function 'strncpy', BUILDSTDERR: inlined from 'send_arp_packet' at net.c:240:2: BUILDSTDERR: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 14 equals destination size [-Wstringop-truncation] BUILDSTDERR: 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); BUILDSTDERR: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In function 'strncpy', BUILDSTDERR: inlined from 'send_packet' at net.c:268:2: BUILDSTDERR: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 14 equals destination size [-Wstringop-truncation] BUILDSTDERR: 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); BUILDSTDERR: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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' 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 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -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 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -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 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -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 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -D_REENTRANT -c -o c/hash.o c/hash.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 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -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 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -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 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -D_REENTRANT -c -o net.o net.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 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -D_REENTRANT -c -o rst.o rst.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 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -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 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -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 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -D_REENTRANT -c -o rstd.o rstd.c BUILDSTDERR: gmenu.c: In function 'menu_prompt': BUILDSTDERR: menu.c:33:2: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: 33 | fgets(buf, buf_size, stdin); BUILDSTDERR: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: menu.c: In function 'menu_choose_char_nconn': BUILDSTDERR: menu.c:426:3: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: 426 | fgets(buf, sizeof(buf), stdin); BUILDSTDERR: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: menu.c: In function 'menu_choose_string': BUILDSTDERR: menu.c:487:2: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: 487 | fgets(buf, sizeof(buf), stdin); BUILDSTDERR: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: rstd.c: In function 'db_item_print': BUILDSTDERR: rstd.c:228:23: warning: '%s' directive writing up to 511 bytes into a region of size 508 [-Wformat-overflow=] BUILDSTDERR: 228 | sprintf(buf, "%s/%d [%s]", host_lookup(dbi->src_addr, hl_mode), BUILDSTDERR: | ^~ BUILDSTDERR: 229 | count_mask(dbi->src_mask), buf_src_ports); BUILDSTDERR: | ~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/stdio.h:867, BUILDSTDERR: from rstd.c:10: BUILDSTDERR: /usr/include/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output 6 or more bytes (assuming 517) into a destination of size 512 BUILDSTDERR: 36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, BUILDSTDERR: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: 37 | __bos (__s), __fmt, __va_arg_pack ()); BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: sniff.c: In function 'sniff_item_print': BUILDSTDERR: sniff.c:135:28: warning: '%s' directive writing up to 511 bytes into a region of size 508 [-Wformat-overflow=] BUILDSTDERR: 135 | sprintf(host_buf, "%s/%d [%s]", host_lookup(si->src_addr, hl_mode), BUILDSTDERR: | ^~ BUILDSTDERR: 136 | count_mask(si->src_mask), buf_src_ports); BUILDSTDERR: | ~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/stdio.h:867, BUILDSTDERR: from sniff.c:12: BUILDSTDERR: /usr/include/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output 6 or more bytes (assuming 517) into a destination of size 512 BUILDSTDERR: 36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, BUILDSTDERR: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: 37 | __bos (__s), __fmt, __va_arg_pack ()); BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: sniff.c: In function 'sniff_add_item': BUILDSTDERR: sniff.c:690:26: warning: '%s' directive writing up to 511 bytes into a region of size 505 [-Wformat-overflow=] BUILDSTDERR: 690 | sprintf(file_name, "%s/%s", SNIFF_FILE_DIR, file_name_buf); BUILDSTDERR: | ^~ ~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/stdio.h:867, BUILDSTDERR: from sniff.c:12: BUILDSTDERR: /usr/include/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 8 and 519 bytes into a destination of size 512 BUILDSTDERR: 36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, BUILDSTDERR: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: 37 | __bos (__s), __fmt, __va_arg_pack ()); BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: sniff.c: In function 'sniffer_log_print': BUILDSTDERR: sniff.c:236:28: warning: '%d' directive writing between 1 and 10 bytes into a region of size between 0 and 511 [-Wformat-overflow=] BUILDSTDERR: 236 | sprintf(file_name, "%s_%d", file_name_buf, ++i); BUILDSTDERR: | ^~ BUILDSTDERR: sniff.c:236:24: note: directive argument in the range [1, 2147483647] BUILDSTDERR: 236 | sprintf(file_name, "%s_%d", file_name_buf, ++i); BUILDSTDERR: | ^~~~~~~ BUILDSTDERR: In file included from /usr/include/stdio.h:867, BUILDSTDERR: from sniff.c:12: BUILDSTDERR: /usr/include/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 3 and 523 bytes into a destination of size 512 BUILDSTDERR: 36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, BUILDSTDERR: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: 37 | __bos (__s), __fmt, __va_arg_pack ()); BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: synchijack.c: In function 'hijack_sync': BUILDSTDERR: synchijack.c:464:18: warning: variable 'absts' set but not used [-Wunused-but-set-variable] BUILDSTDERR: 464 | struct timespec absts; BUILDSTDERR: | ^~~~~ BUILDSTDERR: addpolicy.c: In function 'addpolicy_item_print': BUILDSTDERR: addpolicy.c:79:28: warning: '%s' directive writing up to 511 bytes into a region of size 508 [-Wformat-overflow=] BUILDSTDERR: 79 | sprintf(host_buf, "%s/%d [%s]", host_lookup(api->src_addr, hl_mode), BUILDSTDERR: | ^~ BUILDSTDERR: 80 | count_mask(api->src_mask), buf_src_ports); BUILDSTDERR: | ~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/stdio.h:867, BUILDSTDERR: from addpolicy.c:10: BUILDSTDERR: /usr/include/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output 6 or more bytes (assuming 517) into a destination of size 512 BUILDSTDERR: 36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, BUILDSTDERR: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: 37 | __bos (__s), __fmt, __va_arg_pack ()); BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc -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 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -D_REENTRANT -c -o sniff.o sniff.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 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -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 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -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 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -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 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -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 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -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 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -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 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -D_REENTRANT -c -o hostup.o hostup.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 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -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 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -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 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -D_REENTRANT -c -o resolv.o resolv.c BUILDSTDERR: 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/rresolv.c: In function 'resolv_request': BUILDSTDERR: resolv.c:105:2: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: 105 | write(fd_req, &req, sizeof(struct req)); BUILDSTDERR: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: resolv.c: In function 'handle_response': BUILDSTDERR: resolv.c:337:4: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: 337 | read(sl->s_fd, res + 1, res->name_len); BUILDSTDERR: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: resolv.c:339:4: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: 339 | write(fd, buf, sizeof(struct res) + res->name_len); BUILDSTDERR: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: resolv.c: In function 'send_req_to_slave': BUILDSTDERR: resolv.c:257:4: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: 257 | write(sl->s_fd, &req, sizeof(struct req)); BUILDSTDERR: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: resolv.c:285:4: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: 285 | write(sl->s_fd, &req, sizeof(struct req)); BUILDSTDERR: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: resolv.c: In function 'resolv_slave': BUILDSTDERR: resolv.c:226:4: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: 226 | write(fd, res, sizeof(struct res) + res->name_len); BUILDSTDERR: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: pktrelay.c: In function 'relay_item_print': BUILDSTDERR: pktrelay.c:225:23: warning: '%s' directive writing up to 511 bytes into a region of size 508 [-Wformat-overflow=] BUILDSTDERR: 225 | sprintf(buf, "%s/%d [%s]", host_lookup(ri->src_addr, hl_mode), BUILDSTDERR: | ^~ BUILDSTDERR: 226 | count_mask(ri->src_mask), buf_src_ports); BUILDSTDERR: | ~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/stdio.h:867, BUILDSTDERR: from pktrelay.c:12: BUILDSTDERR: /usr/include/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output 6 or more bytes (assuming 517) into a destination of size 512 BUILDSTDERR: 36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, BUILDSTDERR: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: 37 | __bos (__s), __fmt, __va_arg_pack ()); BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + RPM_EC=0 BUILDSTDERR: ++ jobs -p + exit 0 edhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -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 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -D_REENTRANT -c -o pktrelay.o pktrelay.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 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -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 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.70xgih + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/hunt-1.5-31.fc31.riscv64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/hunt-1.5-31.fc31.riscv64 BUILDSTDERR: ++ dirname /builddir/build/BUILDROOT/hunt-1.5-31.fc31.riscv64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/hunt-1.5-31.fc31.riscv64 + cd hunt-1.5 + install -d /builddir/build/BUILDROOT/hunt-1.5-31.fc31.riscv64/usr/sbin /builddir/build/BUILDROOT/hunt-1.5-31.fc31.riscv64/usr/share/man/man1 /builddir/build/BUILDROOT/hunt-1.5-31.fc31.riscv64/usr/lib64/hunt + install -p hunt /builddir/build/BUILDROOT/hunt-1.5-31.fc31.riscv64/usr/sbin/ + install -p tpsetup/transproxy /builddir/build/BUILDROOT/hunt-1.5-31.fc31.riscv64/usr/lib64/hunt/ + install -p -m644 man/hunt.1 /builddir/build/BUILDROOT/hunt-1.5-31.fc31.riscv64/usr/share/man/man1/ + /usr/lib/rpm/find-debuginfo.sh -j4 --strict-build-id -m -i --build-id-seed 1.5-31.fc31 --unique-debug-suffix -1.5-31.fc31.riscv64 --unique-debug-src-base hunt-1.5-31.fc31.riscv64 --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 50000000 -S debugsourcefiles.list /builddir/build/BUILD/hunt-1.5 BUILDSTDERR: 545 blocks + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-ldconfig + /usr/lib/rpm/brp-compress + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/redhat/brp-python-bytecompile /usr/bin/python 1 0 + /usr/lib/rpm/brp-python-hardlink + /usr/lib/rpm/redhat/brp-mangle-shebangs explicitly decompress any DWARF compressed ELF sections in /builddir/build/BUILDROOT/hunt-1.5-31.fc31.riscv64/usr/sbin/hunt extracting debug info from /builddir/build/BUILDROOT/hunt-1.5-31.fc31.riscv64/usr/sbin/hunt original debug info size: 676kB, size after compression: 560kB /usr/lib/rpm/sepdebugcrcfix: Updated 1 CRC32s, 0 CRC32s did match. mangling shebang in /usr/lib64/hunt/transproxy from /bin/sh to #!/usr/bin/sh Processing files: hunt-1.5-31.fc31.riscv64 Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.T0vEQg + umask 022 + cd /builddir/build/BUILD + cd hunt-1.5 + DOCDIR=/builddir/build/BUILDROOT/hunt-1.5-31.fc31.riscv64/usr/share/doc/hunt + export LC_ALL=C + LC_ALL=C + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/hunt-1.5-31.fc31.riscv64/usr/share/doc/hunt + cp -pr CHANGES /builddir/build/BUILDROOT/hunt-1.5-31.fc31.riscv64/usr/share/doc/hunt + cp -pr README README.tp /builddir/build/BUILDROOT/hunt-1.5-31.fc31.riscv64/usr/share/doc/hunt + cp -pr TODO /builddir/build/BUILDROOT/hunt-1.5-31.fc31.riscv64/usr/share/doc/hunt + RPM_EC=0 BUILDSTDERR: ++ jobs -p + exit 0 Executing(%license): /bin/sh -e /var/tmp/rpm-tmp.DLK2Mi + umask 022 + cd /builddir/build/BUILD + cd hunt-1.5 + LICENSEDIR=/builddir/build/BUILDROOT/hunt-1.5-31.fc31.riscv64/usr/share/licenses/hunt + export LC_ALL=C + LC_ALL=C + export LICENSEDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/hunt-1.5-31.fc31.riscv64/usr/share/licenses/hunt + cp -pr COPYING /builddir/build/BUILDROOT/hunt-1.5-31.fc31.riscv64/usr/share/licenses/hunt + RPM_EC=0 BUILDSTDERR: ++ jobs -p + exit 0 Provides: hunt = 1.5-31.fc31 hunt(riscv-64) = 1.5-31.fc31 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: /usr/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) Processing files: hunt-debugsource-1.5-31.fc31.riscv64 Provides: hunt-debugsource = 1.5-31.fc31 hunt-debugsource(riscv-64) = 1.5-31.fc31 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Processing files: hunt-debuginfo-1.5-31.fc31.riscv64 Provides: debuginfo(build-id) = fecf8ca527a8fad700c15354841756d1da24482c hunt-debuginfo = 1.5-31.fc31 hunt-debuginfo(riscv-64) = 1.5-31.fc31 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Recommends: hunt-debugsource(riscv-64) = 1.5-31.fc31 Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/hunt-1.5-31.fc31.riscv64 Wrote: /builddir/build/RPMS/hunt-1.5-31.fc31.riscv64.rpm Wrote: /builddir/build/RPMS/hunt-debugsource-1.5-31.fc31.riscv64.rpm Wrote: /builddir/build/RPMS/hunt-debuginfo-1.5-31.fc31.riscv64.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.AkKsBh + umask 022 + cd /builddir/build/BUILD + cd hunt-1.5 + /usr/bin/rm -rf /builddir/build/BUILDROOT/hunt-1.5-31.fc31.riscv64 + RPM_EC=0 BUILDSTDERR: ++ jobs -p + exit 0 Child return code was: 0