Mock Version: 2.15 Mock Version: 2.15 Mock Version: 2.15 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/hunt.spec'], chrootPath='/var/lib/mock/f40-build-793283-138798/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=604800uid=991gid=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': 'C.UTF-8'} and shell False warning: %patchN is deprecated (7 usages found), use %patch N (or %patch -P N) Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1706054400 Wrote: /builddir/build/SRPMS/hunt-1.5-42.fc40.src.rpm RPM build warnings: %patchN is deprecated (7 usages found), use %patch N (or %patch -P N) Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/hunt.spec'], chrootPath='/var/lib/mock/f40-build-793283-138798/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=604800uid=991gid=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': 'C.UTF-8'} and shell False warning: %patchN is deprecated (7 usages found), use %patch N (or %patch -P N) Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1706054400 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.Xq32Kk + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf hunt-1.5 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/hunt-1.5.tgz + STATUS=0 + '[' 0 -ne 0 ']' + cd hunt-1.5 + rm -rf /builddir/build/BUILD/hunt-1.5-SPECPARTS + /usr/bin/mkdir -p /builddir/build/BUILD/hunt-1.5-SPECPARTS + /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 -f -p1 -b --suffix .arridx --fuzz=0 patching file c/hash.c Patch #1 (hunt-1.5-cleanup.patch): + echo 'Patch #1 (hunt-1.5-cleanup.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .cleanup --fuzz=0 patching file util.c patching file hunt.h patching file timer.c Patch #2 (hunt-1.5-signness.patch): + echo 'Patch #2 (hunt-1.5-signness.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -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 Patch #3 (hunt-1.5-listlen.patch): + echo 'Patch #3 (hunt-1.5-listlen.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .listlen --fuzz=0 patching file hostup.c Patch #4 (hunt-1.5-badcmp.patch): + echo 'Patch #4 (hunt-1.5-badcmp.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -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 Patch #5 (hunt-1.5-datatypes.patch): + echo 'Patch #5 (hunt-1.5-datatypes.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -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 -f -p1 -b --suffix .format-security --fuzz=0 patching file synchijack.c + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.IIfuML + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -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/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -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/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -I/usr/lib64/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-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 -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes' + export RUSTFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld-errors -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + 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 -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/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -D_REENTRANT' 'LDFLAGS=-O2 -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/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -D_REENTRANT' gcc -std=gnu89 -O2 -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/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -D_REENTRANT -c -o hunt.o hunt.c gcc -std=gnu89 -O2 -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/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -D_REENTRANT -c -o main.o main.c gcc -std=gnu89 -O2 -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/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -D_REENTRANT -c -o c/list.o c/list.c gcc -std=gnu89 -O2 -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/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -D_REENTRANT -c -o c/hash.o c/hash.c hunt.c: In function ‘conn_add_update’: hunt.c:393:51: warning: variable ‘h_dst’ set but not used [-Wunused-but-set-variable] 393 | struct host_info *h_src, *h_dst; | ^~~~~ main.c: In function ‘simple_hijack’: main.c:245:25: warning: ignoring return value of ‘fgets’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 245 | fgets(cmdbuf, sizeof(cmdbuf), stdin); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gcc -std=gnu89 -O2 -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/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -D_REENTRANT -c -o c/array.o c/array.c In file included from c/array.c:10: c/array.c: In function ‘array_init’: c/array.c:27:16: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 27 | assert(a->a_arr = malloc(size * sizeof(struct array_item))); | ^ gcc -std=gnu89 -O2 -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/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -D_REENTRANT -c -o util.o util.c gcc -std=gnu89 -O2 -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/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -D_REENTRANT -c -o net.o net.c net.c: In function ‘is_icmp_reply’: net.c:189:24: warning: variable ‘seq’ set but not used [-Wunused-but-set-variable] 189 | unsigned short seq, id; | ^~~ net.c: In function ‘send_tcp_packet’: net.c:85:9: warning: ‘__builtin_strncpy’ specified bound 14 equals destination size [-Wstringop-truncation] 85 | strncpy(spkt.sa_data, eth_device, sizeof(spkt.sa_data)); | ^ gcc -std=gnu89 -O2 -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/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -D_REENTRANT -c -o rst.o rst.c net.c: In function ‘send_icmp_packet’: net.c:151:9: warning: ‘__builtin_strncpy’ specified bound 14 equals destination size [-Wstringop-truncation] 151 | strncpy(spkt.sa_data, eth_device, sizeof(spkt.sa_data)); | ^ net.c: In function ‘send_arp_packet’: net.c:240:9: warning: ‘__builtin_strncpy’ specified bound 14 equals destination size [-Wstringop-truncation] 240 | strncpy(spkt.sa_data, eth_device, sizeof(spkt.sa_data)); | ^ net.c: In function ‘send_packet’: net.c:268:9: warning: ‘__builtin_strncpy’ specified bound 14 equals destination size [-Wstringop-truncation] 268 | strncpy(spkt.sa_data, eth_device, sizeof(spkt.sa_data)); | ^ gcc -std=gnu89 -O2 -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/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -D_REENTRANT -c -o menu.o menu.c gcc -std=gnu89 -O2 -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/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -D_REENTRANT -c -o hijack.o hijack.c gcc -std=gnu89 -O2 -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/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -D_REENTRANT -c -o rstd.o rstd.c menu.c: In function ‘menu_prompt’: menu.c:33:9: warning: ignoring return value of ‘fgets’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 33 | fgets(buf, buf_size, stdin); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ menu.c: In function ‘menu_choose_char_nconn’: menu.c:426:17: warning: ignoring return value of ‘fgets’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 426 | fgets(buf, sizeof(buf), stdin); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ menu.c: In function ‘menu_choose_string’: menu.c:487:9: warning: ignoring return value of ‘fgets’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 487 | fgets(buf, sizeof(buf), stdin); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gcc -std=gnu89 -O2 -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/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -D_REENTRANT -c -o sniff.o sniff.c rstd.c: In function ‘db_item_print’: rstd.c:228:30: warning: ‘%s’ directive writing up to 511 bytes into a region of size 508 [-Wformat-overflow=] 228 | sprintf(buf, "%s/%d [%s]", host_lookup(dbi->src_addr, hl_mode), | ^~ 229 | count_mask(dbi->src_mask), buf_src_ports); | ~~~~~~~~~~~~~ In file included from /usr/include/stdio.h:980, from rstd.c:10: In function ‘sprintf’, inlined from ‘db_item_print’ at rstd.c:228:2: /usr/include/bits/stdio2.h:30:10: note: ‘__builtin___sprintf_chk’ output 6 or more bytes (assuming 517) into a destination of size 512 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 31 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ gcc -std=gnu89 -O2 -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/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -D_REENTRANT -c -o macdisc.o macdisc.c sniff.c: In function ‘sniff_item_print’: sniff.c:135:35: warning: ‘%s’ directive writing up to 511 bytes into a region of size 508 [-Wformat-overflow=] 135 | sprintf(host_buf, "%s/%d [%s]", host_lookup(si->src_addr, hl_mode), | ^~ 136 | count_mask(si->src_mask), buf_src_ports); | ~~~~~~~~~~~~~ In file included from /usr/include/stdio.h:980, from sniff.c:12: In function ‘sprintf’, inlined from ‘sniff_item_print’ at sniff.c:135:2: /usr/include/bits/stdio2.h:30:10: note: ‘__builtin___sprintf_chk’ output 6 or more bytes (assuming 517) into a destination of size 512 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 31 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ gcc -std=gnu89 -O2 -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/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -D_REENTRANT -c -o tap.o tap.c gcc -std=gnu89 -O2 -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/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -D_REENTRANT -c -o arphijack.o arphijack.c sniff.c: In function ‘sniffer_log_print’: sniff.c:236:56: warning: ‘%d’ directive writing between 1 and 10 bytes into a region of size between 0 and 511 [-Wformat-overflow=] 236 | sprintf(file_name, "%s_%d", file_name_buf, ++i); | ^~ sniff.c:236:52: note: directive argument in the range [1, 2147483647] 236 | sprintf(file_name, "%s_%d", file_name_buf, ++i); | ^~~~~~~ In function ‘sprintf’, inlined from ‘sniffer_log_print’ at sniff.c:236:5: /usr/include/bits/stdio2.h:30:10: note: ‘__builtin___sprintf_chk’ output between 3 and 523 bytes into a destination of size 512 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 31 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ gcc -std=gnu89 -O2 -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/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -D_REENTRANT -c -o tty.o tty.c gcc -std=gnu89 -O2 -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/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -D_REENTRANT -c -o synchijack.o synchijack.c synchijack.c: In function ‘hijack_sync’: synchijack.c:464:25: warning: variable ‘absts’ set but not used [-Wunused-but-set-variable] 464 | struct timespec absts; | ^~~~~ gcc -std=gnu89 -O2 -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/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -D_REENTRANT -c -o arpspoof.o arpspoof.c gcc -std=gnu89 -O2 -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/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -D_REENTRANT -c -o hostup.o hostup.c gcc -std=gnu89 -O2 -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/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -D_REENTRANT -c -o addpolicy.o addpolicy.c gcc -std=gnu89 -O2 -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/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -D_REENTRANT -c -o options.o options.c addpolicy.c: In function ‘addpolicy_item_print’: addpolicy.c:79:35: warning: ‘%s’ directive writing up to 511 bytes into a region of size 508 [-Wformat-overflow=] 79 | sprintf(host_buf, "%s/%d [%s]", host_lookup(api->src_addr, hl_mode), | ^~ 80 | count_mask(api->src_mask), buf_src_ports); | ~~~~~~~~~~~~~ In file included from /usr/include/stdio.h:980, from addpolicy.c:10: In function ‘sprintf’, inlined from ‘addpolicy_item_print’ at addpolicy.c:79:2: /usr/include/bits/stdio2.h:30:10: note: ‘__builtin___sprintf_chk’ output 6 or more bytes (assuming 517) into a destination of size 512 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 31 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ gcc -std=gnu89 -O2 -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/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -D_REENTRANT -c -o resolv.o resolv.c gcc -std=gnu89 -O2 -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/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -D_REENTRANT -c -o timer.o timer.c gcc -std=gnu89 -O2 -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/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -D_REENTRANT -c -o pktrelay.o pktrelay.c resolv.c: In function ‘resolv_request’: resolv.c:105:9: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 105 | write(fd_req, &req, sizeof(struct req)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ resolv.c: In function ‘handle_response’: resolv.c:337:25: warning: ignoring return value of ‘read’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 337 | read(sl->s_fd, res + 1, res->name_len); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ resolv.c:339:25: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 339 | write(fd, buf, sizeof(struct res) + res->name_len); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ resolv.c: In function ‘send_req_to_slave’: resolv.c:257:25: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 257 | write(sl->s_fd, &req, sizeof(struct req)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ resolv.c:285:25: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 285 | write(sl->s_fd, &req, sizeof(struct req)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ resolv.c: In function ‘resolv_slave’: resolv.c:226:25: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 226 | write(fd, res, sizeof(struct res) + res->name_len); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ pktrelay.c: In function ‘relay_item_print’: pktrelay.c:225:30: warning: ‘%s’ directive writing up to 511 bytes into a region of size 508 [-Wformat-overflow=] 225 | sprintf(buf, "%s/%d [%s]", host_lookup(ri->src_addr, hl_mode), | ^~ 226 | count_mask(ri->src_mask), buf_src_ports); | ~~~~~~~~~~~~~ In file included from /usr/include/stdio.h:980, from pktrelay.c:12: In function ‘sprintf’, inlined from ‘relay_item_print’ at pktrelay.c:225:2: /usr/include/bits/stdio2.h:30:10: note: ‘__builtin___sprintf_chk’ output 6 or more bytes (assuming 517) into a destination of size 512 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 31 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ gcc -std=gnu89 -O2 -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/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -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 + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.zIDbXO + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/hunt-1.5-42.fc40.riscv64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/hunt-1.5-42.fc40.riscv64 ++ dirname /builddir/build/BUILDROOT/hunt-1.5-42.fc40.riscv64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/hunt-1.5-42.fc40.riscv64 + CFLAGS='-O2 -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/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -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/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -I/usr/lib64/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-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 -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes' + export RUSTFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld-errors -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd hunt-1.5 + install -d /builddir/build/BUILDROOT/hunt-1.5-42.fc40.riscv64/usr/sbin /builddir/build/BUILDROOT/hunt-1.5-42.fc40.riscv64/usr/share/man/man1 /builddir/build/BUILDROOT/hunt-1.5-42.fc40.riscv64/usr/lib64/hunt + install -p hunt /builddir/build/BUILDROOT/hunt-1.5-42.fc40.riscv64/usr/sbin/ + install -p tpsetup/transproxy /builddir/build/BUILDROOT/hunt-1.5-42.fc40.riscv64/usr/lib64/hunt/ + install -p -m644 man/hunt.1 /builddir/build/BUILDROOT/hunt-1.5-42.fc40.riscv64/usr/share/man/man1/ + /usr/bin/find-debuginfo -j4 --strict-build-id -m -i --build-id-seed 1.5-42.fc40 --unique-debug-suffix -1.5-42.fc40.riscv64 --unique-debug-src-base hunt-1.5-42.fc40.riscv64 --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 50000000 -S debugsourcefiles.list /builddir/build/BUILD/hunt-1.5 find-debuginfo: starting Extracting debug info from 1 files DWARF-compressing 1 files sepdebugcrcfix: Updated 1 CRC32s, 0 CRC32s did match. Creating .debug symlinks for symlinks to ELF files Copying sources found by 'debugedit -l' to /usr/src/debug/hunt-1.5-42.fc40.riscv64 545 blocks find-debuginfo: done + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-ldconfig + /usr/lib/rpm/brp-compress + /usr/lib/rpm/redhat/brp-strip-lto /usr/bin/strip + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/check-rpaths + /usr/lib/rpm/redhat/brp-mangle-shebangs mangling shebang in /usr/lib64/hunt/transproxy from /bin/sh to #!/usr/bin/sh + /usr/lib/rpm/brp-remove-la-files + env /usr/lib/rpm/redhat/brp-python-bytecompile '' 1 0 -j4 + /usr/lib/rpm/redhat/brp-python-hardlink Processing files: hunt-1.5-42.fc40.riscv64 Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.rHdiBf + umask 022 + cd /builddir/build/BUILD + cd hunt-1.5 + DOCDIR=/builddir/build/BUILDROOT/hunt-1.5-42.fc40.riscv64/usr/share/doc/hunt + export LC_ALL= + LC_ALL= + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/hunt-1.5-42.fc40.riscv64/usr/share/doc/hunt + cp -pr /builddir/build/BUILD/hunt-1.5/CHANGES /builddir/build/BUILDROOT/hunt-1.5-42.fc40.riscv64/usr/share/doc/hunt + cp -pr /builddir/build/BUILD/hunt-1.5/README /builddir/build/BUILDROOT/hunt-1.5-42.fc40.riscv64/usr/share/doc/hunt + cp -pr /builddir/build/BUILD/hunt-1.5/README.tp /builddir/build/BUILDROOT/hunt-1.5-42.fc40.riscv64/usr/share/doc/hunt + cp -pr /builddir/build/BUILD/hunt-1.5/TODO /builddir/build/BUILDROOT/hunt-1.5-42.fc40.riscv64/usr/share/doc/hunt + RPM_EC=0 ++ jobs -p + exit 0 Executing(%license): /bin/sh -e /var/tmp/rpm-tmp.HsUof4 + umask 022 + cd /builddir/build/BUILD + cd hunt-1.5 + LICENSEDIR=/builddir/build/BUILDROOT/hunt-1.5-42.fc40.riscv64/usr/share/licenses/hunt + export LC_ALL= + LC_ALL= + export LICENSEDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/hunt-1.5-42.fc40.riscv64/usr/share/licenses/hunt + cp -pr /builddir/build/BUILD/hunt-1.5/COPYING /builddir/build/BUILDROOT/hunt-1.5-42.fc40.riscv64/usr/share/licenses/hunt + RPM_EC=0 ++ jobs -p + exit 0 Provides: hunt = 1.5-42.fc40 hunt(riscv-64) = 1.5-42.fc40 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) libc.so.6(GLIBC_2.32)(64bit) libc.so.6(GLIBC_2.33)(64bit) libc.so.6(GLIBC_2.34)(64bit) rtld(GNU_HASH) Processing files: hunt-debugsource-1.5-42.fc40.riscv64 Provides: hunt-debugsource = 1.5-42.fc40 hunt-debugsource(riscv-64) = 1.5-42.fc40 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-42.fc40.riscv64 Provides: debuginfo(build-id) = b71fb1317bc2e3df1a6c71113e7ab4b7e6b22d89 hunt-debuginfo = 1.5-42.fc40 hunt-debuginfo(riscv-64) = 1.5-42.fc40 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-42.fc40 Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/hunt-1.5-42.fc40.riscv64 Wrote: /builddir/build/RPMS/hunt-1.5-42.fc40.riscv64.rpm Wrote: /builddir/build/RPMS/hunt-debuginfo-1.5-42.fc40.riscv64.rpm Wrote: /builddir/build/RPMS/hunt-debugsource-1.5-42.fc40.riscv64.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.zpYWZA + umask 022 + cd /builddir/build/BUILD + cd hunt-1.5 + /usr/bin/rm -rf /builddir/build/BUILDROOT/hunt-1.5-42.fc40.riscv64 + RPM_EC=0 ++ jobs -p + exit 0 Executing(rmbuild): /bin/sh -e /var/tmp/rpm-tmp.hZYWcO + umask 022 + cd /builddir/build/BUILD + rm -rf /builddir/build/BUILD/hunt-1.5-SPECPARTS + rm -rf hunt-1.5 hunt-1.5.gemspec + RPM_EC=0 ++ jobs -p + exit 0 RPM build warnings: %patchN is deprecated (7 usages found), use %patch N (or %patch -P N) Child return code was: 0