Diff of the two buildlogs: -- --- b1/build.log 2023-05-15 23:43:28.577121894 +0000 +++ b2/build.log 2023-05-15 23:44:34.126250067 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Sun Jun 16 18:05:24 -12 2024 -I: pbuilder-time-stamp: 1718604324 +I: Current time: Tue May 16 13:43:33 +14 2023 +I: pbuilder-time-stamp: 1684194213 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/bookworm-reproducible-base.tgz] I: copying local configuration @@ -16,7 +16,7 @@ I: copying [./hunt_1.5.orig.tar.gz] I: copying [./hunt_1.5-8.debian.tar.xz] I: Extracting source -gpgv: Signature made Fri Nov 18 04:23:07 2022 -12 +gpgv: Signature made Sat Nov 19 06:23:07 2022 +14 gpgv: using RSA key 357DCB0EEC95A01AEBA1F0D2DE63B9C704EBE9EF gpgv: Can't check signature: No public key dpkg-source: warning: cannot verify inline signature for ./hunt_1.5-8.dsc: no acceptable signature found @@ -32,52 +32,84 @@ dpkg-source: info: applying 050_fix-spelling-rstd.patch I: Not using root during the build. I: Installing the build-deps -I: user script /srv/workspace/pbuilder/301/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/10519/tmp/hooks/D01_modify_environment starting +debug: Running on codethink10-arm64. +I: Changing host+domainname to test build reproducibility +I: Adding a custom variable just for the fun of it... +I: Changing /bin/sh to bash +'/bin/sh' -> '/bin/bash' +lrwxrwxrwx 1 root root 9 May 16 13:43 /bin/sh -> /bin/bash +I: Setting pbuilder2's login shell to /bin/bash +I: Setting pbuilder2's GECOS to second user,second room,second work-phone,second home-phone,second other +I: user script /srv/workspace/pbuilder/10519/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/10519/tmp/hooks/D02_print_environment starting I: set - BUILDDIR='/build' - BUILDUSERGECOS='first user,first room,first work-phone,first home-phone,first other' - BUILDUSERNAME='pbuilder1' - BUILD_ARCH='arm64' - DEBIAN_FRONTEND='noninteractive' + BASH=/bin/sh + BASHOPTS=checkwinsize:cmdhist:complete_fullquote:extquote:force_fignore:globasciiranges:globskipdots:hostcomplete:interactive_comments:patsub_replacement:progcomp:promptvars:sourcepath + BASH_ALIASES=() + BASH_ARGC=() + BASH_ARGV=() + BASH_CMDS=() + BASH_LINENO=([0]="12" [1]="0") + BASH_LOADABLES_PATH=/usr/local/lib/bash:/usr/lib/bash:/opt/local/lib/bash:/usr/pkg/lib/bash:/opt/pkg/lib/bash:. + BASH_SOURCE=([0]="/tmp/hooks/D02_print_environment" [1]="/tmp/hooks/D02_print_environment") + BASH_VERSINFO=([0]="5" [1]="2" [2]="15" [3]="1" [4]="release" [5]="aarch64-unknown-linux-gnu") + BASH_VERSION='5.2.15(1)-release' + BUILDDIR=/build + BUILDUSERGECOS='second user,second room,second work-phone,second home-phone,second other' + BUILDUSERNAME=pbuilder2 + BUILD_ARCH=arm64 + DEBIAN_FRONTEND=noninteractive DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=8' - DISTRIBUTION='bookworm' - HOME='/var/lib/jenkins' - HOST_ARCH='arm64' + DIRSTACK=() + DISTRIBUTION=bookworm + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/var/lib/jenkins + HOSTNAME=i-capture-the-hostname + HOSTTYPE=aarch64 + HOST_ARCH=arm64 IFS=' ' - LANG='C' - LANGUAGE='en_US:en' - LC_ALL='C' - MAIL='/var/mail/root' - OPTIND='1' - PATH='/usr/sbin:/usr/bin:/sbin:/bin:/usr/games' - PBCURRENTCOMMANDLINEOPERATION='build' - PBUILDER_OPERATION='build' - PBUILDER_PKGDATADIR='/usr/share/pbuilder' - PBUILDER_PKGLIBDIR='/usr/lib/pbuilder' - PBUILDER_SYSCONFDIR='/etc' - PPID='301' - PS1='# ' - PS2='> ' + LANG=C + LANGUAGE=nl_BE:nl + LC_ALL=C + MACHTYPE=aarch64-unknown-linux-gnu + MAIL=/var/mail/root + OPTERR=1 + OPTIND=1 + OSTYPE=linux-gnu + PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path + PBCURRENTCOMMANDLINEOPERATION=build + PBUILDER_OPERATION=build + PBUILDER_PKGDATADIR=/usr/share/pbuilder + PBUILDER_PKGLIBDIR=/usr/lib/pbuilder + PBUILDER_SYSCONFDIR=/etc + PIPESTATUS=([0]="0") + POSIXLY_CORRECT=y + PPID=10519 PS4='+ ' - PWD='/' - SHELL='/bin/bash' - SHLVL='2' - SUDO_COMMAND='/usr/bin/timeout -k 18.1h 18h /usr/bin/ionice -c 3 /usr/bin/nice /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/r-b-build.bfKASpMu/pbuilderrc_VMaM --distribution bookworm --hookdir /etc/pbuilder/first-build-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/bookworm-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.bfKASpMu/b1 --logfile b1/build.log hunt_1.5-8.dsc' - SUDO_GID='117' - SUDO_UID='110' - SUDO_USER='jenkins' - TERM='unknown' - TZ='/usr/share/zoneinfo/Etc/GMT+12' - USER='root' - USERNAME='root' - _='/usr/bin/systemd-run' - http_proxy='http://192.168.101.16:3128' + PWD=/ + SHELL=/bin/bash + SHELLOPTS=braceexpand:errexit:hashall:interactive-comments:posix + SHLVL=3 + SUDO_COMMAND='/usr/bin/timeout -k 24.1h 24h /usr/bin/ionice -c 3 /usr/bin/nice -n 11 /usr/bin/unshare --uts -- /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/r-b-build.bfKASpMu/pbuilderrc_ho2Q --distribution bookworm --hookdir /etc/pbuilder/rebuild-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/bookworm-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.bfKASpMu/b2 --logfile b2/build.log --extrapackages usrmerge hunt_1.5-8.dsc' + SUDO_GID=117 + SUDO_UID=110 + SUDO_USER=jenkins + TERM=unknown + TZ=/usr/share/zoneinfo/Etc/GMT-14 + UID=0 + USER=root + USERNAME=root + _='I: set' + http_proxy=http://192.168.101.16:3128 I: uname -a - Linux codethink13-arm64 4.15.0-211-generic #222-Ubuntu SMP Tue Apr 18 18:58:27 UTC 2023 aarch64 GNU/Linux + Linux i-capture-the-hostname 4.15.0-211-generic #222-Ubuntu SMP Tue Apr 18 18:58:27 UTC 2023 aarch64 GNU/Linux I: ls -l /bin - lrwxrwxrwx 1 root root 7 Jun 15 04:49 /bin -> usr/bin -I: user script /srv/workspace/pbuilder/301/tmp/hooks/D02_print_environment finished + lrwxrwxrwx 1 root root 7 May 15 00:25 /bin -> usr/bin +I: user script /srv/workspace/pbuilder/10519/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -143,7 +175,7 @@ Get: 28 http://deb.debian.org/debian bookworm/main arm64 intltool-debian all 0.35.0+20060710.6 [22.9 kB] Get: 29 http://deb.debian.org/debian bookworm/main arm64 po-debconf all 1.0.21+nmu1 [248 kB] Get: 30 http://deb.debian.org/debian bookworm/main arm64 debhelper all 13.11.4 [942 kB] -Fetched 18.3 MB in 0s (42.6 MB/s) +Fetched 18.3 MB in 2s (9231 kB/s) debconf: delaying package configuration, since apt-utils is not installed Selecting previously unselected package sensible-utils. (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 19616 files and directories currently installed.) @@ -277,8 +309,17 @@ Writing extended state information... Building tag database... -> Finished parsing the build-deps +Reading package lists... +Building dependency tree... +Reading state information... +usrmerge is already the newest version (35). +0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. I: Building the package -I: Running cd /build/hunt-1.5/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-buildpackage -us -uc -b && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-genchanges -S > ../hunt_1.5-8_source.changes +I: user script /srv/workspace/pbuilder/10519/tmp/hooks/A99_set_merged_usr starting +Re-configuring usrmerge... +I: user script /srv/workspace/pbuilder/10519/tmp/hooks/A99_set_merged_usr finished +hostname: Temporary failure in name resolution +I: Running cd /build/hunt-1.5/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-buildpackage -us -uc -b && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-genchanges -S > ../hunt_1.5-8_source.changes dpkg-buildpackage: info: source package hunt dpkg-buildpackage: info: source version 1.5-8 dpkg-buildpackage: info: source distribution unstable @@ -317,7 +358,20 @@ cc -g -O2 -ffile-prefix-map=/build/hunt-1.5=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -O2 -g -D_REENTRANT -std=gnu89 -ffile-prefix-map=/build/hunt-1.5=. -Wdate-time -D_FORTIFY_SOURCE=2 -c -o util.o util.c cc -g -O2 -ffile-prefix-map=/build/hunt-1.5=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -O2 -g -D_REENTRANT -std=gnu89 -ffile-prefix-map=/build/hunt-1.5=. -Wdate-time -D_FORTIFY_SOURCE=2 -c -o net.o net.c cc -g -O2 -ffile-prefix-map=/build/hunt-1.5=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -O2 -g -D_REENTRANT -std=gnu89 -ffile-prefix-map=/build/hunt-1.5=. -Wdate-time -D_FORTIFY_SOURCE=2 -c -o rst.o rst.c -In file included from main.c:9: +c/list.c: In function '__func_remove_at': +c/list.c:252:19: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] + 252 | if (nr == (int) m) + | ^ +c/list.c: In function 'list_remove_at': +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))); + | ^ +c/list.c:297:51: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] + 297 | return __list_remove(l, __func_remove_at, (void *) nr); + | ^ +In file included from hunt.c:9: hunt.h:410:5: warning: conflicting types for built-in function 'log2'; expected 'double(double)' [-Wbuiltin-declaration-mismatch] 410 | int log2(unsigned int i); | ^~~~ @@ -325,7 +379,7 @@ 47 | #include "c/hash.h" +++ |+#include 48 | -In file included from hunt.c:9: +In file included from main.c:9: hunt.h:410:5: warning: conflicting types for built-in function 'log2'; expected 'double(double)' [-Wbuiltin-declaration-mismatch] 410 | int log2(unsigned int i); | ^~~~ @@ -333,12 +387,7 @@ 47 | #include "c/hash.h" +++ |+#include 48 | -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))); - | ^ -In file included from util.c:9: +In file included from net.c:9: hunt.h:410:5: warning: conflicting types for built-in function 'log2'; expected 'double(double)' [-Wbuiltin-declaration-mismatch] 410 | int log2(unsigned int i); | ^~~~ @@ -346,15 +395,7 @@ 47 | #include "c/hash.h" +++ |+#include 48 | -c/list.c: In function '__func_remove_at': -c/list.c:252:19: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] - 252 | if (nr == (int) m) - | ^ -c/list.c: In function 'list_remove_at': -c/list.c:297:51: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] - 297 | return __list_remove(l, __func_remove_at, (void *) nr); - | ^ -In file included from rst.c:9: +In file included from util.c:9: hunt.h:410:5: warning: conflicting types for built-in function 'log2'; expected 'double(double)' [-Wbuiltin-declaration-mismatch] 410 | int log2(unsigned int i); | ^~~~ @@ -362,7 +403,7 @@ 47 | #include "c/hash.h" +++ |+#include 48 | -In file included from net.c:9: +In file included from rst.c:9: hunt.h:410:5: warning: conflicting types for built-in function 'log2'; expected 'double(double)' [-Wbuiltin-declaration-mismatch] 410 | int log2(unsigned int i); | ^~~~ @@ -370,6 +411,31 @@ 47 | #include "c/hash.h" +++ |+#include 48 | +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; + | ^~~~~ +hunt.c: In function 'mac_arp_learn': +hunt.c:696:21: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] + 696 | mac = arpethh->ar_sha; + | ^ +hunt.c: In function 'mac_ip_learn': +hunt.c:710:13: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] + 710 | mac = p->p_ethh->h_source; + | ^ +hunt.c: In function 'print_mac_table': +hunt.c:1016:40: warning: pointer targets in passing argument 2 of 'sprintf_eth_mac' differ in signedness [-Wpointer-sign] + 1016 | sprintf_eth_mac(buf, mi->mac); + | ~~^~~~~ + | | + | char * +hunt.h:422:45: note: expected 'unsigned char *' but argument is of type 'char *' + 422 | int sprintf_eth_mac(char *b, unsigned char *mac); + | ~~~~~~~~~~~~~~~^~~ +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; + | ^~~ main.c: In function 'a_hijack': main.c:350:48: warning: pointer targets in passing argument 2 of 'user_arp_hijack' differ in signedness [-Wpointer-sign] 350 | retval = user_arp_hijack(&uci, src_fake_mac, dst_fake_mac, input_mode); @@ -411,22 +477,6 @@ main.c:250:25: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 250 | fgets(cmdbuf, sizeof(cmdbuf), stdin); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -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; - | ^~~~~ -hunt.c: In function 'mac_arp_learn': -hunt.c:696:21: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] - 696 | mac = arpethh->ar_sha; - | ^ -hunt.c: In function 'mac_ip_learn': -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; - | ^~~ -hunt.c:710:13: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] - 710 | mac = p->p_ethh->h_source; - | ^ rst.c: In function 'rst': rst.c:60:28: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] 60 | ts.src_mac = ci->dst.dst_mac; @@ -440,24 +490,16 @@ rst.c:70:28: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] 70 | ts.dst_mac = ci->src.src_mac; | ^ -hunt.c: In function 'print_mac_table': -hunt.c:1016:40: warning: pointer targets in passing argument 2 of 'sprintf_eth_mac' differ in signedness [-Wpointer-sign] - 1016 | sprintf_eth_mac(buf, mi->mac); - | ~~^~~~~ - | | - | char * -hunt.h:422:45: note: expected 'unsigned char *' but argument is of type 'char *' - 422 | int sprintf_eth_mac(char *b, unsigned char *mac); - | ~~~~~~~~~~~~~~~^~~ 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)); | ^ -cc -g -O2 -ffile-prefix-map=/build/hunt-1.5=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -O2 -g -D_REENTRANT -std=gnu89 -ffile-prefix-map=/build/hunt-1.5=. -Wdate-time -D_FORTIFY_SOURCE=2 -c -o menu.o menu.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)); | ^ +cc -g -O2 -ffile-prefix-map=/build/hunt-1.5=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -O2 -g -D_REENTRANT -std=gnu89 -ffile-prefix-map=/build/hunt-1.5=. -Wdate-time -D_FORTIFY_SOURCE=2 -c -o menu.o menu.c +cc -g -O2 -ffile-prefix-map=/build/hunt-1.5=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -O2 -g -D_REENTRANT -std=gnu89 -ffile-prefix-map=/build/hunt-1.5=. -Wdate-time -D_FORTIFY_SOURCE=2 -c -o hijack.o hijack.c net.c: In function 'send_arp_packet': net.c:246:9: warning: '__builtin_strncpy' specified bound 14 equals destination size [-Wstringop-truncation] 246 | strncpy(spkt.sa_data, eth_device, sizeof(spkt.sa_data)); @@ -507,7 +549,6 @@ | ~^~ ~~~~~~~~~~~~~~~~ | | | | int size_t {aka long unsigned int} -cc -g -O2 -ffile-prefix-map=/build/hunt-1.5=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -O2 -g -D_REENTRANT -std=gnu89 -ffile-prefix-map=/build/hunt-1.5=. -Wdate-time -D_FORTIFY_SOURCE=2 -c -o hijack.o hijack.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); @@ -520,7 +561,6 @@ menu.c:487:9: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 487 | fgets(buf, sizeof(buf), stdin); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -cc -g -O2 -ffile-prefix-map=/build/hunt-1.5=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -O2 -g -D_REENTRANT -std=gnu89 -ffile-prefix-map=/build/hunt-1.5=. -Wdate-time -D_FORTIFY_SOURCE=2 -c -o rstd.o rstd.c In file included from hijack.c:9: hunt.h:410:5: warning: conflicting types for built-in function 'log2'; expected 'double(double)' [-Wbuiltin-declaration-mismatch] 410 | int log2(unsigned int i); @@ -529,14 +569,7 @@ 47 | #include "c/hash.h" +++ |+#include 48 | -In file included from rstd.c:9: -hunt.h:410:5: warning: conflicting types for built-in function 'log2'; expected 'double(double)' [-Wbuiltin-declaration-mismatch] - 410 | int log2(unsigned int i); - | ^~~~ -hunt.h:48:1: note: 'log2' is declared in header '' - 47 | #include "c/hash.h" - +++ |+#include - 48 | +cc -g -O2 -ffile-prefix-map=/build/hunt-1.5=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -O2 -g -D_REENTRANT -std=gnu89 -ffile-prefix-map=/build/hunt-1.5=. -Wdate-time -D_FORTIFY_SOURCE=2 -c -o rstd.o rstd.c hijack.c: In function 'fast_ack_to_dst': hijack.c:89:36: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] 89 | ts.src_mac = ci->src.src_mac; @@ -551,7 +584,14 @@ hijack.c:224:20: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] 224 | ts.dst_mac = ci->dst.src_mac; | ^ -cc -g -O2 -ffile-prefix-map=/build/hunt-1.5=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -O2 -g -D_REENTRANT -std=gnu89 -ffile-prefix-map=/build/hunt-1.5=. -Wdate-time -D_FORTIFY_SOURCE=2 -c -o sniff.o sniff.c +In file included from rstd.c:9: +hunt.h:410:5: warning: conflicting types for built-in function 'log2'; expected 'double(double)' [-Wbuiltin-declaration-mismatch] + 410 | int log2(unsigned int i); + | ^~~~ +hunt.h:48:1: note: 'log2' is declared in header '' + 47 | #include "c/hash.h" + +++ |+#include + 48 | rstd.c: In function 'func_tcp_packet': rstd.c:86:41: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 86 | p->p_arg[MODULE_RSTD] = (void *) dbi->rst_mode; @@ -642,8 +682,27 @@ hunt.h:428:31: note: expected 'unsigned int *' but argument is of type 'int *' 428 | void port_htons(unsigned int *db_ports); | ~~~~~~~~~~~~~~^~~~~~~~ +cc -g -O2 -ffile-prefix-map=/build/hunt-1.5=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -O2 -g -D_REENTRANT -std=gnu89 -ffile-prefix-map=/build/hunt-1.5=. -Wdate-time -D_FORTIFY_SOURCE=2 -c -o sniff.o sniff.c cc -g -O2 -ffile-prefix-map=/build/hunt-1.5=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -O2 -g -D_REENTRANT -std=gnu89 -ffile-prefix-map=/build/hunt-1.5=. -Wdate-time -D_FORTIFY_SOURCE=2 -c -o macdisc.o macdisc.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:906, + from rstd.c:10: +In function 'sprintf', + inlined from 'db_item_print' at rstd.c:228:2: +/usr/include/aarch64-linux-gnu/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 ()); + | ~~~~~~~~~~~~~~~~~ cc -g -O2 -ffile-prefix-map=/build/hunt-1.5=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -O2 -g -D_REENTRANT -std=gnu89 -ffile-prefix-map=/build/hunt-1.5=. -Wdate-time -D_FORTIFY_SOURCE=2 -c -o tap.o tap.c +cc -g -O2 -ffile-prefix-map=/build/hunt-1.5=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -O2 -g -D_REENTRANT -std=gnu89 -ffile-prefix-map=/build/hunt-1.5=. -Wdate-time -D_FORTIFY_SOURCE=2 -c -o arphijack.o arphijack.c In file included from sniff.c:9: hunt.h:410:5: warning: conflicting types for built-in function 'log2'; expected 'double(double)' [-Wbuiltin-declaration-mismatch] 410 | int log2(unsigned int i); @@ -652,14 +711,6 @@ 47 | #include "c/hash.h" +++ |+#include 48 | -In file included from tap.c:31: -hunt.h:410:5: warning: conflicting types for built-in function 'log2'; expected 'double(double)' [-Wbuiltin-declaration-mismatch] - 410 | int log2(unsigned int i); - | ^~~~ -hunt.h:48:1: note: 'log2' is declared in header '' - 47 | #include "c/hash.h" - +++ |+#include - 48 | In file included from macdisc.c:9: hunt.h:410:5: warning: conflicting types for built-in function 'log2'; expected 'double(double)' [-Wbuiltin-declaration-mismatch] 410 | int log2(unsigned int i); @@ -668,15 +719,7 @@ 47 | #include "c/hash.h" +++ |+#include 48 | -tap.c: In function 'get_ifc_info': -tap.c:135:31: warning: pointer targets in passing argument 1 of 'print_eth_mac' differ in signedness [-Wpointer-sign] - 135 | print_eth_mac(mac); - | ^~~ - | | - | char * -hunt.h:421:34: note: expected 'unsigned char *' but argument is of type 'char *' - 421 | int print_eth_mac(unsigned char *mac); - | ~~~~~~~~~~~~~~~^~~ +cc -g -O2 -ffile-prefix-map=/build/hunt-1.5=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -O2 -g -D_REENTRANT -std=gnu89 -ffile-prefix-map=/build/hunt-1.5=. -Wdate-time -D_FORTIFY_SOURCE=2 -c -o tty.o tty.c sniff.c: In function 'sniff_item_print': sniff.c:128:28: warning: pointer targets in passing argument 1 of 'sprintf_db_ports' differ in signedness [-Wpointer-sign] 128 | sprintf_db_ports(si->src_ports, buf_src_ports, sizeof(buf_src_ports), 1); @@ -727,7 +770,14 @@ hunt.h:427:40: note: expected 'unsigned int *' but argument is of type 'int *' 427 | int port_match(int port, unsigned int *db_ports); | ~~~~~~~~~~~~~~^~~~~~~~ -cc -g -O2 -ffile-prefix-map=/build/hunt-1.5=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -O2 -g -D_REENTRANT -std=gnu89 -ffile-prefix-map=/build/hunt-1.5=. -Wdate-time -D_FORTIFY_SOURCE=2 -c -o arphijack.o arphijack.c +In file included from arphijack.c:9: +hunt.h:410:5: warning: conflicting types for built-in function 'log2'; expected 'double(double)' [-Wbuiltin-declaration-mismatch] + 410 | int log2(unsigned int i); + | ^~~~ +hunt.h:48:1: note: 'log2' is declared in header '' + 47 | #include "c/hash.h" + +++ |+#include + 48 | sniff.c: In function 'sniff_add_item': sniff.c:664:25: warning: pointer targets in passing argument 3 of 'menu_choose_host_mask_ports_dfl' differ in signedness [-Wpointer-sign] 664 | &src_mask, src_ports, 0, 0, NULL) < 0) @@ -761,15 +811,27 @@ hunt.h:371:55: note: expected 'unsigned int *' but argument is of type 'int *' 371 | unsigned int *ret_mask, unsigned int *ret_ports, | ~~~~~~~~~~~~~~^~~~~~~~~ +macdisc.c: In function 'mac_discover': +macdisc.c:40:20: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] + 40 | as.src_mac = my_eth_mac; + | ^ +macdisc.c:41:20: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] + 41 | as.dst_mac = mac_broadcast; + | ^ +macdisc.c:43:23: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] + 43 | as.sender_mac = my_eth_mac; + | ^ sniff.c:705:20: warning: pointer targets in passing argument 1 of 'port_htons' differ in signedness [-Wpointer-sign] 705 | port_htons(src_ports); | ^~~~~~~~~ | | | int * +macdisc.c:45:23: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] + 45 | as.target_mac = mac_zero; + | ^ hunt.h:428:31: note: expected 'unsigned int *' but argument is of type 'int *' 428 | void port_htons(unsigned int *db_ports); | ~~~~~~~~~~~~~~^~~~~~~~ -cc -g -O2 -ffile-prefix-map=/build/hunt-1.5=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -O2 -g -D_REENTRANT -std=gnu89 -ffile-prefix-map=/build/hunt-1.5=. -Wdate-time -D_FORTIFY_SOURCE=2 -c -o tty.o tty.c sniff.c:709:20: warning: pointer targets in passing argument 1 of 'port_htons' differ in signedness [-Wpointer-sign] 709 | port_htons(dst_ports); | ^~~~~~~~~ @@ -827,37 +889,7 @@ hunt.h:428:31: note: expected 'unsigned int *' but argument is of type 'int *' 428 | void port_htons(unsigned int *db_ports); | ~~~~~~~~~~~~~~^~~~~~~~ -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:906, - from rstd.c:10: -In function 'sprintf', - inlined from 'db_item_print' at rstd.c:228:2: -/usr/include/aarch64-linux-gnu/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 ()); - | ~~~~~~~~~~~~~~~~~ -macdisc.c: In function 'mac_discover': -macdisc.c:40:20: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] - 40 | as.src_mac = my_eth_mac; - | ^ -macdisc.c:41:20: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] - 41 | as.dst_mac = mac_broadcast; - | ^ -macdisc.c:43:23: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] - 43 | as.sender_mac = my_eth_mac; - | ^ -macdisc.c:45:23: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] - 45 | as.target_mac = mac_zero; - | ^ -In file included from tty.c:9: +In file included from tap.c:31: hunt.h:410:5: warning: conflicting types for built-in function 'log2'; expected 'double(double)' [-Wbuiltin-declaration-mismatch] 410 | int log2(unsigned int i); | ^~~~ @@ -865,7 +897,16 @@ 47 | #include "c/hash.h" +++ |+#include 48 | -In file included from arphijack.c:9: +tap.c: In function 'get_ifc_info': +tap.c:135:31: warning: pointer targets in passing argument 1 of 'print_eth_mac' differ in signedness [-Wpointer-sign] + 135 | print_eth_mac(mac); + | ^~~ + | | + | char * +hunt.h:421:34: note: expected 'unsigned char *' but argument is of type 'char *' + 421 | int print_eth_mac(unsigned char *mac); + | ~~~~~~~~~~~~~~~^~~ +In file included from tty.c:9: hunt.h:410:5: warning: conflicting types for built-in function 'log2'; expected 'double(double)' [-Wbuiltin-declaration-mismatch] 410 | int log2(unsigned int i); | ^~~~ @@ -873,7 +914,6 @@ 47 | #include "c/hash.h" +++ |+#include 48 | -cc -g -O2 -ffile-prefix-map=/build/hunt-1.5=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -O2 -g -D_REENTRANT -std=gnu89 -ffile-prefix-map=/build/hunt-1.5=. -Wdate-time -D_FORTIFY_SOURCE=2 -c -o synchijack.o synchijack.c arphijack.c: In function 'watch_tty': arphijack.c:81:28: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] 81 | ts.dst_mac = wtd->ci->dst.src_mac; @@ -895,23 +935,6 @@ hunt.h:522:38: note: expected 'char *' but argument is of type 'unsigned char *' 522 | char *src_mac, char *dst_mac, char *src_fake_mac, | ~~~~~~^~~~~~~ -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:906, - from sniff.c:12: -In function 'sprintf', - inlined from 'sniff_item_print' at sniff.c:135:2: -/usr/include/aarch64-linux-gnu/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 ()); - | ~~~~~~~~~~~~~~~~~ arphijack.c:143:54: warning: pointer targets in passing argument 3 of 'start_arp_spoof' differ in signedness [-Wpointer-sign] 143 | ci->dst.src_mac, ci->src.src_mac, | ~~~~~~~^~~~~~~~ @@ -943,6 +966,26 @@ arphijack.c:226:44: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] 226 | ts.dst_mac = ci->src.src_mac; | ^ +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:906, + from sniff.c:12: +In function 'sprintf', + inlined from 'sniff_item_print' at sniff.c:135:2: +/usr/include/aarch64-linux-gnu/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 ()); + | ~~~~~~~~~~~~~~~~~ +cc -g -O2 -ffile-prefix-map=/build/hunt-1.5=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -O2 -g -D_REENTRANT -std=gnu89 -ffile-prefix-map=/build/hunt-1.5=. -Wdate-time -D_FORTIFY_SOURCE=2 -c -o synchijack.o synchijack.c +cc -g -O2 -ffile-prefix-map=/build/hunt-1.5=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -O2 -g -D_REENTRANT -std=gnu89 -ffile-prefix-map=/build/hunt-1.5=. -Wdate-time -D_FORTIFY_SOURCE=2 -c -o arpspoof.o arpspoof.c +cc -g -O2 -ffile-prefix-map=/build/hunt-1.5=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -O2 -g -D_REENTRANT -std=gnu89 -ffile-prefix-map=/build/hunt-1.5=. -Wdate-time -D_FORTIFY_SOURCE=2 -c -o hostup.o hostup.c In file included from synchijack.c:9: hunt.h:410:5: warning: conflicting types for built-in function 'log2'; expected 'double(double)' [-Wbuiltin-declaration-mismatch] 410 | int log2(unsigned int i); @@ -951,56 +994,6 @@ 47 | #include "c/hash.h" +++ |+#include 48 | -cc -g -O2 -ffile-prefix-map=/build/hunt-1.5=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -O2 -g -D_REENTRANT -std=gnu89 -ffile-prefix-map=/build/hunt-1.5=. -Wdate-time -D_FORTIFY_SOURCE=2 -c -o arpspoof.o arpspoof.c -synchijack.c: In function 'hijack_sync_init_msg': -synchijack.c:153:28: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] - 153 | ts.src_mac = ci->src.dst_mac; - | ^ -synchijack.c:154:28: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] - 154 | ts.dst_mac = ci->src.src_mac; - | ^ -synchijack.c: In function 'need_read_write_negative': -synchijack.c:220:20: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] - 220 | ts.src_mac = ci->dst.dst_mac; - | ^ -synchijack.c:221:20: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] - 221 | ts.dst_mac = ci->dst.src_mac; - | ^ -synchijack.c: In function 'need_write_positive': -synchijack.c:245:28: warning: format '%f' expects argument of type 'double', but argument 3 has type 'char *' [-Wformat=] - 245 | sprintf(fin_msg, "%f%", suggest_sync_msg(0)); - | ~^ ~~~~~~~~~~~~~~~~~~~ - | | | - | | char * - | double - | %s -synchijack.c:245:29: warning: spurious trailing '%' in format [-Wformat=] - 245 | sprintf(fin_msg, "%f%", suggest_sync_msg(0)); - | ^ -synchijack.c:279:20: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] - 279 | ts.src_mac = ci->src.dst_mac; - | ^ -synchijack.c:280:20: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] - 280 | ts.dst_mac = ci->src.src_mac; - | ^ -synchijack.c: In function 'need_read_positive': -synchijack.c:307:20: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] - 307 | ts.src_mac = ci->src.dst_mac; - | ^ -synchijack.c:308:20: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] - 308 | ts.dst_mac = ci->src.src_mac; - | ^ -synchijack.c: In function 'f_hijack_sync': -synchijack.c:419:44: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] - 419 | ts.src_mac = ci->dst.dst_mac; - | ^ -synchijack.c:420:44: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] - 420 | ts.dst_mac = ci->dst.src_mac; - | ^ -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; - | ^~~~~ In file included from arpspoof.c:9: hunt.h:410:5: warning: conflicting types for built-in function 'log2'; expected 'double(double)' [-Wbuiltin-declaration-mismatch] 410 | int log2(unsigned int i); @@ -1009,7 +1002,15 @@ 47 | #include "c/hash.h" +++ |+#include 48 | -cc -g -O2 -ffile-prefix-map=/build/hunt-1.5=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -O2 -g -D_REENTRANT -std=gnu89 -ffile-prefix-map=/build/hunt-1.5=. -Wdate-time -D_FORTIFY_SOURCE=2 -c -o hostup.o hostup.c +In file included from hostup.c:9: +hunt.h:410:5: warning: conflicting types for built-in function 'log2'; expected 'double(double)' [-Wbuiltin-declaration-mismatch] + 410 | int log2(unsigned int i); + | ^~~~ +hunt.h:48:1: note: 'log2' is declared in header '' + 47 | #include "c/hash.h" + +++ |+#include + 48 | +cc -g -O2 -ffile-prefix-map=/build/hunt-1.5=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -O2 -g -D_REENTRANT -std=gnu89 -ffile-prefix-map=/build/hunt-1.5=. -Wdate-time -D_FORTIFY_SOURCE=2 -c -o addpolicy.o addpolicy.c arpspoof.c: In function 'send_src_spoof_to_dst': arpspoof.c:85:24: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] 85 | as_dst.src_mac = arp_spoof_with_my_mac ? my_eth_mac : asi->src_fake_mac; @@ -1097,6 +1098,13 @@ arpspoof.c:398:53: note: expected 'char *' but argument is of type 'unsigned char *' 398 | char *src_mac, char *dst_mac, char *src_fake_mac, | ~~~~~~^~~~~~~~~~~~ +synchijack.c: In function 'hijack_sync_init_msg': +synchijack.c:153:28: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] + 153 | ts.src_mac = ci->src.dst_mac; + | ^ +synchijack.c:154:28: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] + 154 | ts.dst_mac = ci->src.src_mac; + | ^ arpspoof.c:1165:84: warning: pointer targets in passing argument 5 of 'start_arp_spoof' differ in signedness [-Wpointer-sign] 1165 | asi_dst_in_src = start_arp_spoof(dst_ip, src_ip, mi_dst->mac, mi_src->mac, dst_fake_mac, | ^~~~~~~~~~~~ @@ -1105,7 +1113,63 @@ arpspoof.c:398:53: note: expected 'char *' but argument is of type 'unsigned char *' 398 | char *src_mac, char *dst_mac, char *src_fake_mac, | ~~~~~~^~~~~~~~~~~~ +synchijack.c: In function 'need_read_write_negative': +synchijack.c:220:20: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] + 220 | ts.src_mac = ci->dst.dst_mac; + | ^ +synchijack.c:221:20: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] + 221 | ts.dst_mac = ci->dst.src_mac; + | ^ +synchijack.c: In function 'need_write_positive': +synchijack.c:245:28: warning: format '%f' expects argument of type 'double', but argument 3 has type 'char *' [-Wformat=] + 245 | sprintf(fin_msg, "%f%", suggest_sync_msg(0)); + | ~^ ~~~~~~~~~~~~~~~~~~~ + | | | + | | char * + | double + | %s +synchijack.c:245:29: warning: spurious trailing '%' in format [-Wformat=] + 245 | sprintf(fin_msg, "%f%", suggest_sync_msg(0)); + | ^ +synchijack.c:279:20: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] + 279 | ts.src_mac = ci->src.dst_mac; + | ^ +synchijack.c:280:20: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] + 280 | ts.dst_mac = ci->src.src_mac; + | ^ arpspoof.c: In function 'arpspoof_test': +synchijack.c: In function 'need_read_positive': +synchijack.c:307:20: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] + 307 | ts.src_mac = ci->src.dst_mac; + | ^ +synchijack.c:308:20: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] + 308 | ts.dst_mac = ci->src.src_mac; + | ^ +hostup.c: In function 'perform_ping': +hostup.c:87:63: warning: pointer targets in passing argument 3 of 'send_icmp_request' differ in signedness [-Wpointer-sign] + 87 | ip, my_eth_mac, + | ^~~~~~~~~~ + | | + | unsigned char * +hunt.h:698:30: note: expected 'char *' but argument is of type 'unsigned char *' + 698 | char *src_mac, char *dst_mac, unsigned short seq); + | ~~~~~~^~~~~~~ +hostup.c:93:49: warning: pointer targets in passing argument 3 of 'send_icmp_request' differ in signedness [-Wpointer-sign] + 93 | my_eth_mac, fake_mac, htons(j + 2000)); + | ^~~~~~~~~~ + | | + | unsigned char * +hunt.h:698:30: note: expected 'char *' but argument is of type 'unsigned char *' + 698 | char *src_mac, char *dst_mac, unsigned short seq); + | ~~~~~~^~~~~~~ +hostup.c:93:61: warning: pointer targets in passing argument 4 of 'send_icmp_request' differ in signedness [-Wpointer-sign] + 93 | my_eth_mac, fake_mac, htons(j + 2000)); + | ^~~~~~~~ + | | + | unsigned char * +hunt.h:698:45: note: expected 'char *' but argument is of type 'unsigned char *' + 698 | char *src_mac, char *dst_mac, unsigned short seq); + | ~~~~~~^~~~~~~ arpspoof.c:1390:68: warning: pointer targets in passing argument 3 of 'send_icmp_request' differ in signedness [-Wpointer-sign] 1390 | send_icmp_request(asi->src_addr, asi->dst_addr, asi->src_fake_mac, | ~~~^~~~~~~~~~~~~~ @@ -1135,57 +1199,12 @@ | ~~~^~~~~~~~~~~~~~ | | | unsigned char * -hunt.h:700:40: note: expected 'char *' but argument is of type 'unsigned char *' - 700 | char *src_mac, char *dst_mac); - | ~~~~~~^~~~~~~ -cc -g -O2 -ffile-prefix-map=/build/hunt-1.5=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -O2 -g -D_REENTRANT -std=gnu89 -ffile-prefix-map=/build/hunt-1.5=. -Wdate-time -D_FORTIFY_SOURCE=2 -c -o addpolicy.o addpolicy.c -cc -g -O2 -ffile-prefix-map=/build/hunt-1.5=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -O2 -g -D_REENTRANT -std=gnu89 -ffile-prefix-map=/build/hunt-1.5=. -Wdate-time -D_FORTIFY_SOURCE=2 -c -o options.o options.c -In file included from hostup.c:9: -hunt.h:410:5: warning: conflicting types for built-in function 'log2'; expected 'double(double)' [-Wbuiltin-declaration-mismatch] - 410 | int log2(unsigned int i); - | ^~~~ -hunt.h:48:1: note: 'log2' is declared in header '' - 47 | #include "c/hash.h" - +++ |+#include - 48 | -In file included from addpolicy.c:9: -hunt.h:410:5: warning: conflicting types for built-in function 'log2'; expected 'double(double)' [-Wbuiltin-declaration-mismatch] - 410 | int log2(unsigned int i); - | ^~~~ -hunt.h:48:1: note: 'log2' is declared in header '' - 47 | #include "c/hash.h" - +++ |+#include - 48 | -hostup.c: In function 'perform_ping': -hostup.c:87:63: warning: pointer targets in passing argument 3 of 'send_icmp_request' differ in signedness [-Wpointer-sign] - 87 | ip, my_eth_mac, - | ^~~~~~~~~~ - | | - | unsigned char * -hunt.h:698:30: note: expected 'char *' but argument is of type 'unsigned char *' - 698 | char *src_mac, char *dst_mac, unsigned short seq); - | ~~~~~~^~~~~~~ -hostup.c:93:49: warning: pointer targets in passing argument 3 of 'send_icmp_request' differ in signedness [-Wpointer-sign] - 93 | my_eth_mac, fake_mac, htons(j + 2000)); - | ^~~~~~~~~~ - | | - | unsigned char * -hunt.h:698:30: note: expected 'char *' but argument is of type 'unsigned char *' - 698 | char *src_mac, char *dst_mac, unsigned short seq); - | ~~~~~~^~~~~~~ -hostup.c:93:61: warning: pointer targets in passing argument 4 of 'send_icmp_request' differ in signedness [-Wpointer-sign] - 93 | my_eth_mac, fake_mac, htons(j + 2000)); - | ^~~~~~~~ - | | - | unsigned char * -hunt.h:698:45: note: expected 'char *' but argument is of type 'unsigned char *' - 698 | char *src_mac, char *dst_mac, unsigned short seq); - | ~~~~~~^~~~~~~ hostup.c:106:52: warning: pointer targets in passing argument 4 of 'is_icmp_reply' differ in signedness [-Wpointer-sign] 106 | p->p_ethh->h_source, my_eth_mac) || | ~~~~~~~~~^~~~~~~~~~ | | | unsigned char * +synchijack.c: In function 'f_hijack_sync': hunt.h:700:25: note: expected 'char *' but argument is of type 'unsigned char *' 700 | char *src_mac, char *dst_mac); | ~~~~~~^~~~~~~ @@ -1194,6 +1213,9 @@ | ^~~~~~~~~~ | | | unsigned char * +synchijack.c:419:44: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] + 419 | ts.src_mac = ci->dst.dst_mac; + | ^ hunt.h:700:40: note: expected 'char *' but argument is of type 'unsigned char *' 700 | char *src_mac, char *dst_mac); | ~~~~~~^~~~~~~ @@ -1202,6 +1224,9 @@ | ^~~~~~~~ | | | unsigned char * +synchijack.c:420:44: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] + 420 | ts.dst_mac = ci->dst.src_mac; + | ^ hunt.h:700:25: note: expected 'char *' but argument is of type 'unsigned char *' 700 | char *src_mac, char *dst_mac); | ~~~~~~^~~~~~~ @@ -1232,6 +1257,10 @@ hostup.c:121:53: note: expected 'char *' but argument is of type 'unsigned char *' 121 | static void send_arp_message(unsigned int ip, char *dst_mac) | ~~~~~~^~~~~~~ +synchijack.c: In function 'hijack_sync': +hunt.h:700:40: note: expected 'char *' but argument is of type 'unsigned char *' + 700 | char *src_mac, char *dst_mac); + | ~~~~~~^~~~~~~ hostup.c:161:62: warning: pointer targets in passing argument 2 of 'send_arp_message' differ in signedness [-Wpointer-sign] 161 | send_arp_message(ip, fake_mac); | ^~~~~~~~ @@ -1240,15 +1269,9 @@ hostup.c:121:53: note: expected 'char *' but argument is of type 'unsigned char *' 121 | static void send_arp_message(unsigned int ip, char *dst_mac) | ~~~~~~^~~~~~~ -In file included from options.c:9: -hunt.h:410:5: warning: conflicting types for built-in function 'log2'; expected 'double(double)' [-Wbuiltin-declaration-mismatch] - 410 | int log2(unsigned int i); - | ^~~~ -hunt.h:48:1: note: 'log2' is declared in header '' - 47 | #include "c/hash.h" - +++ |+#include - 48 | -cc -g -O2 -ffile-prefix-map=/build/hunt-1.5=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -O2 -g -D_REENTRANT -std=gnu89 -ffile-prefix-map=/build/hunt-1.5=. -Wdate-time -D_FORTIFY_SOURCE=2 -c -o resolv.o resolv.c +synchijack.c:464:25: warning: variable 'absts' set but not used [-Wunused-but-set-variable] + 464 | struct timespec absts; + | ^~~~~ hostup.c: In function 'host_up': hostup.c:299:33: warning: pointer targets in passing argument 1 of 'sprintf_eth_mac' differ in signedness [-Wpointer-sign] 299 | sprintf_eth_mac(buf_mac, suggest_mac()); @@ -1282,6 +1305,16 @@ hunt.h:365:64: note: expected 'char *' but argument is of type 'unsigned char *' 365 | int menu_choose_mac(char *label, unsigned char *mac_ret, char *dfl); | ~~~~~~^~~ +cc -g -O2 -ffile-prefix-map=/build/hunt-1.5=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -O2 -g -D_REENTRANT -std=gnu89 -ffile-prefix-map=/build/hunt-1.5=. -Wdate-time -D_FORTIFY_SOURCE=2 -c -o options.o options.c +In file included from addpolicy.c:9: +hunt.h:410:5: warning: conflicting types for built-in function 'log2'; expected 'double(double)' [-Wbuiltin-declaration-mismatch] + 410 | int log2(unsigned int i); + | ^~~~ +hunt.h:48:1: note: 'log2' is declared in header '' + 47 | #include "c/hash.h" + +++ |+#include + 48 | +cc -g -O2 -ffile-prefix-map=/build/hunt-1.5=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -O2 -g -D_REENTRANT -std=gnu89 -ffile-prefix-map=/build/hunt-1.5=. -Wdate-time -D_FORTIFY_SOURCE=2 -c -o resolv.o resolv.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); @@ -1298,6 +1331,14 @@ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ +In file included from options.c:9: +hunt.h:410:5: warning: conflicting types for built-in function 'log2'; expected 'double(double)' [-Wbuiltin-declaration-mismatch] + 410 | int log2(unsigned int i); + | ^~~~ +hunt.h:48:1: note: 'log2' is declared in header '' + 47 | #include "c/hash.h" + +++ |+#include + 48 | addpolicy.c: In function 'addpolicy_add_item': addpolicy.c:113:44: warning: pointer targets in passing argument 4 of 'menu_choose_host_mask_ports_dfl' differ in signedness [-Wpointer-sign] 113 | &src_mask, src_ports, 0, 0, NULL) < 0) @@ -1380,14 +1421,7 @@ hunt.h:428:31: note: expected 'unsigned int *' but argument is of type 'int *' 428 | void port_htons(unsigned int *db_ports); | ~~~~~~~~~~~~~~^~~~~~~~ -In file included from resolv.c:1: -hunt.h:410:5: warning: conflicting types for built-in function 'log2'; expected 'double(double)' [-Wbuiltin-declaration-mismatch] - 410 | int log2(unsigned int i); - | ^~~~ -hunt.h:48:1: note: 'log2' is declared in header '' - 47 | #include "c/hash.h" - +++ |+#include - 48 | +cc -g -O2 -ffile-prefix-map=/build/hunt-1.5=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -O2 -g -D_REENTRANT -std=gnu89 -ffile-prefix-map=/build/hunt-1.5=. -Wdate-time -D_FORTIFY_SOURCE=2 -c -o timer.o timer.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), @@ -1405,11 +1439,38 @@ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ -cc -g -O2 -ffile-prefix-map=/build/hunt-1.5=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -O2 -g -D_REENTRANT -std=gnu89 -ffile-prefix-map=/build/hunt-1.5=. -Wdate-time -D_FORTIFY_SOURCE=2 -c -o timer.o timer.c +In file included from resolv.c:1: +hunt.h:410:5: warning: conflicting types for built-in function 'log2'; expected 'double(double)' [-Wbuiltin-declaration-mismatch] + 410 | int log2(unsigned int i); + | ^~~~ +hunt.h:48:1: note: 'log2' is declared in header '' + 47 | #include "c/hash.h" + +++ |+#include + 48 | resolv.c: In function 'update_thr': resolv.c:131:18: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 131 | int fd = (int) arg; | ^ +In file included from timer.c:11: +hunt.h:410:5: warning: conflicting types for built-in function 'log2'; expected 'double(double)' [-Wbuiltin-declaration-mismatch] + 410 | int log2(unsigned int i); + | ^~~~ +hunt.h:48:1: note: 'log2' is declared in header '' + 47 | #include "c/hash.h" + +++ |+#include + 48 | +timer.c: In function 'timer_init': +timer.c:154:17: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration] + 154 | exit(1); + | ^~~~ +timer.c:12:1: note: include '' or provide a declaration of 'exit' + 11 | #include "hunt.h" + +++ |+#include + 12 | +timer.c:154:17: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] + 154 | exit(1); + | ^~~~ +timer.c:154:17: note: include '' or provide a declaration of 'exit' resolv.c: In function 'resolv_init': resolv.c:485:59: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 485 | pthread_create(&res_update_thr, NULL, update_thr, (void *) fd_req); @@ -1436,26 +1497,6 @@ 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); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -In file included from timer.c:11: -hunt.h:410:5: warning: conflicting types for built-in function 'log2'; expected 'double(double)' [-Wbuiltin-declaration-mismatch] - 410 | int log2(unsigned int i); - | ^~~~ -hunt.h:48:1: note: 'log2' is declared in header '' - 47 | #include "c/hash.h" - +++ |+#include - 48 | -timer.c: In function 'timer_init': -timer.c:154:17: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration] - 154 | exit(1); - | ^~~~ -timer.c:12:1: note: include '' or provide a declaration of 'exit' - 11 | #include "hunt.h" - +++ |+#include - 12 | -timer.c:154:17: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] - 154 | exit(1); - | ^~~~ -timer.c:154:17: note: include '' or provide a declaration of 'exit' cc -g -O2 -ffile-prefix-map=/build/hunt-1.5=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -O2 -g -D_REENTRANT -std=gnu89 -ffile-prefix-map=/build/hunt-1.5=. -Wdate-time -D_FORTIFY_SOURCE=2 -c -o pktrelay.o pktrelay.c In file included from pktrelay.c:9: hunt.h:410:5: warning: conflicting types for built-in function 'log2'; expected 'double(double)' [-Wbuiltin-declaration-mismatch] @@ -1650,8 +1691,8 @@ dh_gencontrol dh_md5sums dh_builddeb -dpkg-deb: building package 'hunt' in '../hunt_1.5-8_arm64.deb'. dpkg-deb: building package 'hunt-dbgsym' in '../hunt-dbgsym_1.5-8_arm64.deb'. +dpkg-deb: building package 'hunt' in '../hunt_1.5-8_arm64.deb'. dpkg-genbuildinfo --build=binary -O../hunt_1.5-8_arm64.buildinfo dpkg-genchanges --build=binary -O../hunt_1.5-8_arm64.changes dpkg-genchanges: info: binary-only upload (no source code included) @@ -1659,12 +1700,14 @@ dpkg-buildpackage: info: binary-only upload (no source included) dpkg-genchanges: info: not including original source code in upload I: copying local configuration +I: user script /srv/workspace/pbuilder/10519/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/10519/tmp/hooks/B01_cleanup finished I: unmounting dev/ptmx filesystem I: unmounting dev/pts filesystem I: unmounting dev/shm filesystem I: unmounting proc filesystem I: unmounting sys filesystem I: cleaning the build env -I: removing directory /srv/workspace/pbuilder/301 and its subdirectories -I: Current time: Sun Jun 16 18:06:27 -12 2024 -I: pbuilder-time-stamp: 1718604387 +I: removing directory /srv/workspace/pbuilder/10519 and its subdirectories +I: Current time: Tue May 16 13:44:32 +14 2023 +I: pbuilder-time-stamp: 1684194272