Input buildinfo: https://buildinfos.debian.net/buildinfo-pool/h/hunt/hunt_1.5-6.1+b1_amd64.buildinfo Use metasnap for getting required timestamps New buildinfo file: /tmp/hunt-1.5-6.1+b1uvrwa2um/hunt_1.5-6.1_amd64.buildinfo Get source package info: hunt=1.5-6.1 Source URL: http://snapshot.notset.fr/mr/package/hunt/1.5-6.1/srcfiles?fileinfo=1 env -i PATH=/usr/sbin:/usr/bin:/sbin:/bin TMPDIR=/tmp mmdebstrap --arch=amd64 --include=autoconf=2.69-10 automake=1:1.15-6 autopoint=0.19.8.1-2 autotools-dev=20161112.1 base-files=9.8 base-passwd=3.5.43 bash=4.4-4 binutils=2.27.90.20170221-1 bsdmainutils=9.0.12 bsdutils=1:2.29.1-1 build-essential=12.3 bzip2=1.0.6-8.1 coreutils=8.26-3 cpp=4:6.3.0-1 cpp-6=6.3.0-8 dash=0.5.8-2.4 debconf=1.5.60 debhelper=10.2.5 debianutils=4.8.1 dh-autoreconf=13 dh-strip-nondeterminism=0.031-1 diffutils=1:3.5-3 dpkg=1.18.22 dpkg-dev=1.18.22 e2fslibs=1.43.4-2 e2fsprogs=1.43.4-2 file=1:5.29-3 findutils=4.6.0+git+20161106-2 g++=4:6.3.0-1 g++-6=6.3.0-8 gcc=4:6.3.0-1 gcc-6=6.3.0-8 gcc-6-base=6.3.0-8 gettext=0.19.8.1-2 gettext-base=0.19.8.1-2 grep=2.27-2 groff-base=1.22.3-9 gzip=1.6-5 hostname=3.18 init-system-helpers=1.47 intltool-debian=0.35.0+20060710.4 libacl1=2.2.52-3+b1 libarchive-zip-perl=1.59-1 libasan3=6.3.0-8 libatomic1=6.3.0-8 libattr1=1:2.4.47-2+b2 libaudit-common=1:2.6.7-1 libaudit1=1:2.6.7-1 libblkid1=2.29.1-1 libbsd0=0.8.3-1 libbz2-1.0=1.0.6-8.1 libc-bin=2.24-9 libc-dev-bin=2.24-9 libc6=2.24-9 libc6-dev=2.24-9 libcap-ng0=0.7.7-3+b1 libcc1-0=6.3.0-8 libcilkrts5=6.3.0-8 libcomerr2=1.43.4-2 libcroco3=0.6.11-2 libdb5.3=5.3.28-12+b1 libdebconfclient0=0.224 libdpkg-perl=1.18.22 libfdisk1=2.29.1-1 libffi6=3.2.1-6 libfile-stripnondeterminism-perl=0.031-1 libgcc-6-dev=6.3.0-8 libgcc1=1:6.3.0-8 libgcrypt20=1.7.6-1 libgdbm3=1.8.3-14 libglib2.0-0=2.50.3-1 libgmp10=2:6.1.2+dfsg-1 libgomp1=6.3.0-8 libgpg-error0=1.26-2 libicu57=57.1-5 libisl15=0.18-1 libitm1=6.3.0-8 liblsan0=6.3.0-8 liblz4-1=0.0~r131-2+b1 liblzma5=5.2.2-1.2+b1 libmagic-mgc=1:5.29-3 libmagic1=1:5.29-3 libmount1=2.29.1-1 libmpc3=1.0.3-1 libmpfr4=3.1.5-1 libmpx2=6.3.0-8 libncurses5=6.0+20161126-1 libncursesw5=6.0+20161126-1 libpam-modules=1.1.8-3.5 libpam-modules-bin=1.1.8-3.5 libpam-runtime=1.1.8-3.5 libpam0g=1.1.8-3.5 libpcre3=2:8.39-2.1 libperl5.24=5.24.1-1 libpipeline1=1.4.1-2 libquadmath0=6.3.0-8 libselinux1=2.6-3 libsemanage-common=2.6-2 libsemanage1=2.6-2 libsepol1=2.6-2 libsigsegv2=2.10-5 libsmartcols1=2.29.1-1 libss2=1.43.4-2 libstdc++-6-dev=6.3.0-8 libstdc++6=6.3.0-8 libsystemd0=232-19 libtimedate-perl=2.3000-2 libtinfo5=6.0+20161126-1 libtool=2.4.6-2 libtsan0=6.3.0-8 libubsan0=6.3.0-8 libudev1=232-18 libunistring0=0.9.6+really0.9.3-0.1 libustr-1.0-1=1.0.4-6 libuuid1=2.29.1-1 libxml2=2.9.4+dfsg1-2.2 linux-libc-dev=4.9.13-1 login=1:4.4-4 m4=1.4.18-1 make=4.1-9.1 man-db=2.7.6.1-2 mawk=1.3.3-17 mount=2.29.1-1 multiarch-support=2.24-9 ncurses-base=6.0+20161126-1 ncurses-bin=6.0+20161126-1 passwd=1:4.4-4 patch=2.7.5-1 perl=5.24.1-1 perl-base=5.24.1-1 perl-modules-5.24=5.24.1-1 po-debconf=1.0.20 sed=4.4-1 sensible-utils=0.0.9 sysvinit-utils=2.88dsf-59.9 tar=1.29b-1.1 util-linux=2.29.1-1 xz-utils=5.2.2-1.2+b1 zlib1g=1:1.2.8.dfsg-5 --variant=apt --aptopt=Acquire::Check-Valid-Until "false" --aptopt=Acquire::http::Dl-Limit "1000"; --aptopt=Acquire::https::Dl-Limit "1000"; --aptopt=Acquire::Retries "5"; --aptopt=APT::Get::allow-downgrades "true"; --keyring=/usr/share/keyrings/ --essential-hook=chroot "$1" sh -c "apt-get --yes install fakeroot util-linux" --essential-hook=copy-in /usr/share/keyrings/debian-archive-bullseye-automatic.gpg /usr/share/keyrings/debian-archive-bullseye-security-automatic.gpg /usr/share/keyrings/debian-archive-bullseye-stable.gpg /usr/share/keyrings/debian-archive-buster-automatic.gpg /usr/share/keyrings/debian-archive-buster-security-automatic.gpg /usr/share/keyrings/debian-archive-buster-stable.gpg /usr/share/keyrings/debian-archive-keyring.gpg /usr/share/keyrings/debian-archive-removed-keys.gpg /usr/share/keyrings/debian-archive-stretch-automatic.gpg /usr/share/keyrings/debian-archive-stretch-security-automatic.gpg /usr/share/keyrings/debian-archive-stretch-stable.gpg /usr/share/keyrings/debian-ports-archive-keyring-removed.gpg /usr/share/keyrings/debian-ports-archive-keyring.gpg /usr/share/keyrings/debian-keyring.gpg /etc/apt/trusted.gpg.d/ --essential-hook=chroot "$1" sh -c "rm /etc/apt/sources.list && echo 'deb http://snapshot.notset.fr/archive/debian/20210814T212851Z/ bookworm main deb-src http://snapshot.notset.fr/archive/debian/20210814T212851Z/ bookworm main deb http://snapshot.notset.fr/archive/debian/20170316T153720Z/ unstable main deb http://snapshot.notset.fr/archive/debian/20170302T092306Z/ unstable main' >> /etc/apt/sources.list && apt-get update" --customize-hook=chroot "$1" useradd --no-create-home -d /nonexistent -p "" builduser -s /bin/bash --customize-hook=chroot "$1" env sh -c "apt-get source --only-source -d hunt=1.5-6.1 && mkdir -p /build/hunt-YgYZaW && dpkg-source --no-check -x /*.dsc /build/hunt-YgYZaW/hunt-1.5 && cd /build/hunt-YgYZaW/hunt-1.5 && { printf '%s' 'hunt (1.5-6.1+b1) sid; urgency=low, binary-only=yes * Binary-only non-maintainer upload for amd64; no source changes. * rebuild with PIE -- amd64 Build Daemon (binet) Mon, 20 Jul 2015 19:17:12 +0200 '; cat debian/changelog; } > debian/changelog.debrebuild && mv debian/changelog.debrebuild debian/changelog && chown -R builduser:builduser /build/hunt-YgYZaW" --customize-hook=chroot "$1" env --unset=TMPDIR runuser builduser -c "cd /build/hunt-YgYZaW/hunt-1.5 && env DEB_BUILD_OPTIONS="parallel=4" SOURCE_DATE_EPOCH="1437412632" dpkg-buildpackage -uc -a amd64 --build=any" --customize-hook=sync-out /build/hunt-YgYZaW /tmp/hunt-1.5-6.1+b1uvrwa2um stretch /dev/null deb http://snapshot.notset.fr/archive/debian/20170302T092306Z unstable main I: automatically chosen mode: root I: chroot architecture amd64 is equal to the host's architecture I: automatically chosen format: tar I: using /tmp/mmdebstrap.s3_uL6h7jr as tempdir I: running apt-get update... I: downloading packages with apt... I: extracting archives... I: installing essential packages... I: running --essential-hook in shell: sh -c 'chroot "$1" sh -c "apt-get --yes install fakeroot util-linux"' exec /tmp/mmdebstrap.s3_uL6h7jr Reading package lists... Building dependency tree... util-linux is already the newest version (2.29.1-1). The following NEW packages will be installed: fakeroot libfakeroot 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded. Need to get 131 kB of archives. After this operation, 374 kB of additional disk space will be used. Get:1 http://snapshot.notset.fr/archive/debian/20170302T092306Z unstable/main amd64 libfakeroot amd64 1.21-3.1 [45.7 kB] Get:2 http://snapshot.notset.fr/archive/debian/20170302T092306Z unstable/main amd64 fakeroot amd64 1.21-3.1 [85.6 kB] debconf: delaying package configuration, since apt-utils is not installed Fetched 131 kB in 0s (1000 kB/s) Selecting previously unselected package libfakeroot:amd64. (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 ... 4397 files and directories currently installed.) Preparing to unpack .../libfakeroot_1.21-3.1_amd64.deb ... Unpacking libfakeroot:amd64 (1.21-3.1) ... Selecting previously unselected package fakeroot. Preparing to unpack .../fakeroot_1.21-3.1_amd64.deb ... Unpacking fakeroot (1.21-3.1) ... Processing triggers for libc-bin (2.24-9) ... Setting up libfakeroot:amd64 (1.21-3.1) ... Setting up fakeroot (1.21-3.1) ... update-alternatives: using /usr/bin/fakeroot-sysv to provide /usr/bin/fakeroot (fakeroot) in auto mode Processing triggers for libc-bin (2.24-9) ... I: running special hook: copy-in /usr/share/keyrings/debian-archive-bullseye-automatic.gpg /usr/share/keyrings/debian-archive-bullseye-security-automatic.gpg /usr/share/keyrings/debian-archive-bullseye-stable.gpg /usr/share/keyrings/debian-archive-buster-automatic.gpg /usr/share/keyrings/debian-archive-buster-security-automatic.gpg /usr/share/keyrings/debian-archive-buster-stable.gpg /usr/share/keyrings/debian-archive-keyring.gpg /usr/share/keyrings/debian-archive-removed-keys.gpg /usr/share/keyrings/debian-archive-stretch-automatic.gpg /usr/share/keyrings/debian-archive-stretch-security-automatic.gpg /usr/share/keyrings/debian-archive-stretch-stable.gpg /usr/share/keyrings/debian-ports-archive-keyring-removed.gpg /usr/share/keyrings/debian-ports-archive-keyring.gpg /usr/share/keyrings/debian-keyring.gpg /etc/apt/trusted.gpg.d/ I: running --essential-hook in shell: sh -c 'chroot "$1" sh -c "rm /etc/apt/sources.list && echo 'deb http://snapshot.notset.fr/archive/debian/20210814T212851Z/ bookworm main deb-src http://snapshot.notset.fr/archive/debian/20210814T212851Z/ bookworm main deb http://snapshot.notset.fr/archive/debian/20170316T153720Z/ unstable main deb http://snapshot.notset.fr/archive/debian/20170302T092306Z/ unstable main' >> /etc/apt/sources.list && apt-get update"' exec /tmp/mmdebstrap.s3_uL6h7jr Get:1 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm InRelease [81.6 kB] Get:2 http://snapshot.notset.fr/archive/debian/20170316T153720Z unstable InRelease [231 kB] Hit:3 http://snapshot.notset.fr/archive/debian/20170302T092306Z unstable InRelease Ign:4 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main Sources Ign:5 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main amd64 Packages Ign:4 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main Sources Ign:5 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main amd64 Packages Get:4 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main Sources [11.4 MB] Get:5 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main amd64 Packages [11.1 MB] Ign:6 http://snapshot.notset.fr/archive/debian/20170316T153720Z unstable/main amd64 Packages Ign:6 http://snapshot.notset.fr/archive/debian/20170316T153720Z unstable/main amd64 Packages Get:6 http://snapshot.notset.fr/archive/debian/20170316T153720Z unstable/main amd64 Packages [10.0 MB] Fetched 32.8 MB in 28s (1157 kB/s) Reading package lists... W: Problem unlinking the file auxfiles - Clean (21: Is a directory) I: installing remaining packages inside the chroot... I: running --customize-hook in shell: sh -c 'chroot "$1" useradd --no-create-home -d /nonexistent -p "" builduser -s /bin/bash' exec /tmp/mmdebstrap.s3_uL6h7jr I: running --customize-hook in shell: sh -c 'chroot "$1" env sh -c "apt-get source --only-source -d hunt=1.5-6.1 && mkdir -p /build/hunt-YgYZaW && dpkg-source --no-check -x /*.dsc /build/hunt-YgYZaW/hunt-1.5 && cd /build/hunt-YgYZaW/hunt-1.5 && { printf '%s' 'hunt (1.5-6.1+b1) sid; urgency=low, binary-only=yes * Binary-only non-maintainer upload for amd64; no source changes. * rebuild with PIE -- amd64 Build Daemon (binet) Mon, 20 Jul 2015 19:17:12 +0200 '; cat debian/changelog; } > debian/changelog.debrebuild && mv debian/changelog.debrebuild debian/changelog && chown -R builduser:builduser /build/hunt-YgYZaW"' exec /tmp/mmdebstrap.s3_uL6h7jr Reading package lists... Need to get 106 kB of source archives. Get:1 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main hunt 1.5-6.1 (dsc) [1707 B] Get:2 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main hunt 1.5-6.1 (tar) [99.2 kB] Get:3 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main hunt 1.5-6.1 (diff) [4556 B] Fetched 106 kB in 0s (393 kB/s) Download complete and in download only mode W: Download is performed unsandboxed as root as file 'hunt_1.5-6.1.dsc' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied) dpkg-source: info: extracting hunt in /build/hunt-YgYZaW/hunt-1.5 dpkg-source: info: unpacking hunt_1.5.orig.tar.gz dpkg-source: info: applying hunt_1.5-6.1.diff.gz dpkg-source: info: upstream files that have been modified: /build/hunt-YgYZaW/hunt-1.5/Makefile /build/hunt-YgYZaW/hunt-1.5/hostup.c /build/hunt-YgYZaW/hunt-1.5/hunt.c /build/hunt-YgYZaW/hunt-1.5/hunt.h /build/hunt-YgYZaW/hunt-1.5/main.c /build/hunt-YgYZaW/hunt-1.5/man/hunt.1 /build/hunt-YgYZaW/hunt-1.5/net.c /build/hunt-YgYZaW/hunt-1.5/tpserv/Makefile I: running --customize-hook in shell: sh -c 'chroot "$1" env --unset=TMPDIR runuser builduser -c "cd /build/hunt-YgYZaW/hunt-1.5 && env DEB_BUILD_OPTIONS="parallel=4" SOURCE_DATE_EPOCH="1437412632" dpkg-buildpackage -uc -a amd64 --build=any"' exec /tmp/mmdebstrap.s3_uL6h7jr dpkg-buildpackage: info: source package hunt dpkg-buildpackage: info: source version 1.5-6.1+b1 dpkg-buildpackage: info: source distribution sid dpkg-buildpackage: info: source changed by amd64 Build Daemon (binet) dpkg-source --before-build hunt-1.5 dpkg-buildpackage: info: host architecture amd64 fakeroot debian/rules clean dh_testdir dh_testroot rm -f build-stamp [ ! -f Makefile ] || /usr/bin/make distclean make[1]: Entering directory '/build/hunt-YgYZaW/hunt-1.5' rm -f *.o core c/*.o c/core c/list_test c/hash_test c/array_test rm -f hunt hunt_static /usr/bin/make -C tpserv distclean make[2]: Entering directory '/build/hunt-YgYZaW/hunt-1.5/tpserv' rm -f *.o rm -f tpserv make[2]: Leaving directory '/build/hunt-YgYZaW/hunt-1.5/tpserv' make[1]: Leaving directory '/build/hunt-YgYZaW/hunt-1.5' [ ! -f tpserv/Makefile ] || /usr/bin/make -C tpserv distclean make[1]: Entering directory '/build/hunt-YgYZaW/hunt-1.5/tpserv' rm -f *.o rm -f tpserv make[1]: Leaving directory '/build/hunt-YgYZaW/hunt-1.5/tpserv' #cd tpserv && make distclean dh_clean rm -f debian/debhelper-build-stamp rm -f debian/hunt.substvars rm -f debian/hunt.*.debhelper rm -rf debian/hunt/ rm -rf debian/.debhelper/ rm -f debian/*.debhelper.log dh_clean: Compatibility levels before 9 are deprecated (level 5 in use) rm -f debian/files find . \( \( \ \( -path .\*/.git -o -path .\*/.svn -o -path .\*/.bzr -o -path .\*/.hg -o -path .\*/CVS \) -prune -o -type f -a \ \( -name '#*#' -o -name '.*~' -o -name '*~' -o -name DEADJOE \ -o -name '*.orig' -o -name '*.rej' -o -name '*.bak' \ -o -name '.*.orig' -o -name .*.rej -o -name '.SUMS' \ -o -name TAGS -o \( -path '*/.deps/*' -a -name '*.P' \) \ \) -exec rm -f {} + \) -o \ \( -type d -a -name autom4te.cache -prune -exec rm -rf {} + \) \) dpkg-buildpackage: warning: debian/rules must be updated to support the 'build-arch' and 'build-indep' targets (at least 'build-arch' seems to be missing) debian/rules build dh_testdir # build package here /usr/bin/make make[1]: Entering directory '/build/hunt-YgYZaW/hunt-1.5' cc -Wall -O2 -g -D_REENTRANT -std=gnu89 -c -o hunt.o hunt.c In file included from hunt.c:9:0: hunt.h:410:5: warning: conflicting types for built-in function ‘log2’ int log2(unsigned int i); ^~~~ hunt.c: In function ‘conn_add_update’: hunt.c:393:30: warning: variable ‘h_dst’ set but not used [-Wunused-but-set-variable] struct host_info *h_src, *h_dst; ^~~~~ hunt.c: In function ‘mac_arp_learn’: hunt.c:695:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] ip = *(unsigned int *) arpethh->ar_sip; ^~ hunt.c:696:7: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] mac = arpethh->ar_sha; ^ hunt.c: In function ‘mac_ip_learn’: hunt.c:710:6: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] mac = p->p_ethh->h_source; ^ hunt.c: In function ‘print_mac_table’: hunt.c:1016:24: warning: pointer targets in passing argument 2 of ‘sprintf_eth_mac’ differ in signedness [-Wpointer-sign] sprintf_eth_mac(buf, mi->mac); ^~ In file included from hunt.c:9:0: hunt.h:422:5: note: expected ‘unsigned char *’ but argument is of type ‘char *’ int sprintf_eth_mac(char *b, unsigned char *mac); ^~~~~~~~~~~~~~~ cc -Wall -O2 -g -D_REENTRANT -std=gnu89 -c -o main.o main.c In file included from main.c:9:0: hunt.h:410:5: warning: conflicting types for built-in function ‘log2’ int log2(unsigned int i); ^~~~ main.c: In function ‘a_hijack’: main.c:350:34: warning: pointer targets in passing argument 2 of ‘user_arp_hijack’ differ in signedness [-Wpointer-sign] retval = user_arp_hijack(&uci, src_fake_mac, dst_fake_mac, input_mode); ^~~~~~~~~~~~ In file included from main.c:9:0: hunt.h:503:5: note: expected ‘char *’ but argument is of type ‘unsigned char *’ int user_arp_hijack(struct user_conn_info *uci, char *src_fake_mac, ^~~~~~~~~~~~~~~ main.c:350:48: warning: pointer targets in passing argument 3 of ‘user_arp_hijack’ differ in signedness [-Wpointer-sign] retval = user_arp_hijack(&uci, src_fake_mac, dst_fake_mac, input_mode); ^~~~~~~~~~~~ In file included from main.c:9:0: hunt.h:503:5: note: expected ‘char *’ but argument is of type ‘unsigned char *’ int user_arp_hijack(struct user_conn_info *uci, char *src_fake_mac, ^~~~~~~~~~~~~~~ main.c:373:24: warning: pointer targets in passing argument 1 of ‘user_arp_hijack_done’ differ in signedness [-Wpointer-sign] user_arp_hijack_done(src_fake_mac, dst_fake_mac); ^~~~~~~~~~~~ In file included from main.c:9:0: hunt.h:505:6: note: expected ‘char *’ but argument is of type ‘unsigned char *’ void user_arp_hijack_done(char *src_fake_mac, char *dst_fake_mac); ^~~~~~~~~~~~~~~~~~~~ main.c:373:38: warning: pointer targets in passing argument 2 of ‘user_arp_hijack_done’ differ in signedness [-Wpointer-sign] user_arp_hijack_done(src_fake_mac, dst_fake_mac); ^~~~~~~~~~~~ In file included from main.c:9:0: hunt.h:505:6: note: expected ‘char *’ but argument is of type ‘unsigned char *’ void user_arp_hijack_done(char *src_fake_mac, char *dst_fake_mac); ^~~~~~~~~~~~~~~~~~~~ main.c: In function ‘main’: main.c:509:56: warning: backslash and newline separated by space fprintf(stderr, "Network interface %s does not have "\ cc -Wall -O2 -g -D_REENTRANT -std=gnu89 -c -o c/list.o c/list.c c/list.c: In function ‘__func_remove_at’: c/list.c:252:12: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] if (nr == (int) m) ^ c/list.c: In function ‘list_remove_at’: c/list.c:297:44: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] return __list_remove(l, __func_remove_at, (void *) nr); ^ cc -Wall -O2 -g -D_REENTRANT -std=gnu89 -c -o c/hash.o c/hash.c cc -Wall -O2 -g -D_REENTRANT -std=gnu89 -c -o c/array.o c/array.c cc -Wall -O2 -g -D_REENTRANT -std=gnu89 -c -o util.o util.c In file included from util.c:9:0: hunt.h:410:5: warning: conflicting types for built-in function ‘log2’ int log2(unsigned int i); ^~~~ cc -Wall -O2 -g -D_REENTRANT -std=gnu89 -c -o net.o net.c In file included from net.c:9:0: hunt.h:410:5: warning: conflicting types for built-in function ‘log2’ int log2(unsigned int i); ^~~~ net.c: In function ‘is_icmp_reply’: net.c:189:17: warning: variable ‘seq’ set but not used [-Wunused-but-set-variable] unsigned short seq, id; ^~~ cc -Wall -O2 -g -D_REENTRANT -std=gnu89 -c -o rst.o rst.c In file included from rst.c:9:0: hunt.h:410:5: warning: conflicting types for built-in function ‘log2’ int log2(unsigned int i); ^~~~ rst.c: In function ‘rst’: rst.c:60:14: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] ts.src_mac = ci->dst.dst_mac; ^ rst.c:61:14: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] ts.dst_mac = ci->dst.src_mac; ^ rst.c:69:14: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] ts.src_mac = ci->src.dst_mac; ^ rst.c:70:14: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] ts.dst_mac = ci->src.src_mac; ^ cc -Wall -O2 -g -D_REENTRANT -std=gnu89 -c -o menu.o menu.c In file included from menu.c:9:0: hunt.h:410:5: warning: conflicting types for built-in function ‘log2’ int log2(unsigned int i); ^~~~ menu.c: In function ‘menu_choose_mac’: menu.c:254:22: warning: pointer targets in passing argument 2 of ‘parse_mac’ differ in signedness [-Wpointer-sign] if (parse_mac(buf, mac_ret) == 0) ^~~~~~~ menu.c:173:5: note: expected ‘char *’ but argument is of type ‘unsigned char *’ int parse_mac(char *buf, char *mac_ret) ^~~~~~~~~ menu.c: In function ‘menu_choose_ports’: menu.c:281:24: warning: pointer targets in passing argument 2 of ‘parse_ports’ differ in signedness [-Wpointer-sign] if (parse_ports(buf, ret_ports) == 0) ^~~~~~~~~ menu.c:58:5: note: expected ‘unsigned int *’ but argument is of type ‘int *’ int parse_ports(char *buf, unsigned int *ret_ports) ^~~~~~~~~~~ menu.c: In function ‘menu_choose_host_mask_ports_dfl’: menu.c:347:29: warning: pointer targets in passing argument 1 of ‘sprintf_db_ports’ differ in signedness [-Wpointer-sign] buf_p += sprintf_db_ports(dfl_ports, buf_p, ^~~~~~~~~ In file included from menu.c:9:0: hunt.h:415:5: note: expected ‘unsigned int *’ but argument is of type ‘int *’ int sprintf_db_ports(unsigned int *ports, char *buf, int buf_size, int all); ^~~~~~~~~~~~~~~~ menu.c: In function ‘menu’: menu.c:522:12: warning: field width specifier ‘*’ expects argument of type ‘int’, but argument 2 has type ‘size_t {aka long unsigned int}’ [-Wformat=] printf("%*s", strlen(head) + 9, " "); ^ cc -Wall -O2 -g -D_REENTRANT -std=gnu89 -c -o hijack.o hijack.c In file included from hijack.c:9:0: hunt.h:410:5: warning: conflicting types for built-in function ‘log2’ int log2(unsigned int i); ^~~~ hijack.c: In function ‘fast_ack_to_dst’: hijack.c:89:15: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] ts.src_mac = ci->src.src_mac; ^ hijack.c:90:15: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] ts.dst_mac = ci->dst.src_mac; ^ hijack.c: In function ‘stormack_hijack’: hijack.c:223:13: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] ts.src_mac = ci->dst.dst_mac; ^ hijack.c:224:13: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] ts.dst_mac = ci->dst.src_mac; ^ cc -Wall -O2 -g -D_REENTRANT -std=gnu89 -c -o rstd.o rstd.c In file included from rstd.c:9:0: hunt.h:410:5: warning: conflicting types for built-in function ‘log2’ int log2(unsigned int i); ^~~~ rstd.c: In function ‘func_tcp_packet’: rstd.c:86:27: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] p->p_arg[MODULE_RSTD] = (void *) dbi->rst_mode; ^ rstd.c: In function ‘rst_daemon_thr’: rstd.c:140:14: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] rst_mode = (int) p->p_arg[MODULE_RSTD]; ^ rstd.c: In function ‘rst_add_item’: rstd.c:265:16: warning: pointer targets in passing argument 4 of ‘menu_choose_host_mask_ports_dfl’ differ in signedness [-Wpointer-sign] &src_mask, src_ports, 0, 0, NULL) < 0) ^~~~~~~~~ In file included from rstd.c:9:0: hunt.h:370:5: note: expected ‘unsigned int *’ but argument is of type ‘int *’ int menu_choose_host_mask_ports_dfl(char *label, unsigned int *ret_ip, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ rstd.c:268:16: warning: pointer targets in passing argument 4 of ‘menu_choose_host_mask_ports_dfl’ differ in signedness [-Wpointer-sign] &dst_mask, dst_ports, 0, 0, NULL) < 0) ^~~~~~~~~ In file included from rstd.c:9:0: hunt.h:370:5: note: expected ‘unsigned int *’ but argument is of type ‘int *’ int menu_choose_host_mask_ports_dfl(char *label, unsigned int *ret_ip, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ rstd.c:281:13: warning: pointer targets in passing argument 1 of ‘port_htons’ differ in signedness [-Wpointer-sign] port_htons(src_ports); ^~~~~~~~~ In file included from rstd.c:9:0: hunt.h:428:6: note: expected ‘unsigned int *’ but argument is of type ‘int *’ void port_htons(unsigned int *db_ports); ^~~~~~~~~~ rstd.c:285:13: warning: pointer targets in passing argument 1 of ‘port_htons’ differ in signedness [-Wpointer-sign] port_htons(dst_ports); ^~~~~~~~~ In file included from rstd.c:9:0: hunt.h:428:6: note: expected ‘unsigned int *’ but argument is of type ‘int *’ void port_htons(unsigned int *db_ports); ^~~~~~~~~~ rstd.c: In function ‘rst_mod_item’: rstd.c:314:28: warning: pointer targets in passing argument 4 of ‘menu_choose_host_mask_ports_dfl’ differ in signedness [-Wpointer-sign] &src_ip, &src_mask, src_ports, ^~~~~~~~~ In file included from rstd.c:9:0: hunt.h:370:5: note: expected ‘unsigned int *’ but argument is of type ‘int *’ int menu_choose_host_mask_ports_dfl(char *label, unsigned int *ret_ip, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ rstd.c:315:38: warning: pointer targets in passing argument 7 of ‘menu_choose_host_mask_ports_dfl’ differ in signedness [-Wpointer-sign] dbi->src_addr, dbi->src_mask, dbi->src_ports) < 0) ^~~ In file included from rstd.c:9:0: hunt.h:370:5: note: expected ‘int *’ but argument is of type ‘unsigned int *’ int menu_choose_host_mask_ports_dfl(char *label, unsigned int *ret_ip, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ rstd.c:318:28: warning: pointer targets in passing argument 4 of ‘menu_choose_host_mask_ports_dfl’ differ in signedness [-Wpointer-sign] &dst_ip, &dst_mask, dst_ports, ^~~~~~~~~ In file included from rstd.c:9:0: hunt.h:370:5: note: expected ‘unsigned int *’ but argument is of type ‘int *’ int menu_choose_host_mask_ports_dfl(char *label, unsigned int *ret_ip, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ rstd.c:319:38: warning: pointer targets in passing argument 7 of ‘menu_choose_host_mask_ports_dfl’ differ in signedness [-Wpointer-sign] dbi->dst_addr, dbi->dst_mask, dbi->dst_ports) < 0) ^~~ In file included from rstd.c:9:0: hunt.h:370:5: note: expected ‘int *’ but argument is of type ‘unsigned int *’ int menu_choose_host_mask_ports_dfl(char *label, unsigned int *ret_ip, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ rstd.c:326:13: warning: pointer targets in passing argument 1 of ‘port_htons’ differ in signedness [-Wpointer-sign] port_htons(src_ports); ^~~~~~~~~ In file included from rstd.c:9:0: hunt.h:428:6: note: expected ‘unsigned int *’ but argument is of type ‘int *’ void port_htons(unsigned int *db_ports); ^~~~~~~~~~ rstd.c:327:13: warning: pointer targets in passing argument 1 of ‘port_htons’ differ in signedness [-Wpointer-sign] port_htons(dst_ports); ^~~~~~~~~ In file included from rstd.c:9:0: hunt.h:428:6: note: expected ‘unsigned int *’ but argument is of type ‘int *’ void port_htons(unsigned int *db_ports); ^~~~~~~~~~ cc -Wall -O2 -g -D_REENTRANT -std=gnu89 -c -o sniff.o sniff.c In file included from sniff.c:9:0: hunt.h:410:5: warning: conflicting types for built-in function ‘log2’ int log2(unsigned int i); ^~~~ sniff.c: In function ‘sniff_item_print’: sniff.c:128:19: warning: pointer targets in passing argument 1 of ‘sprintf_db_ports’ differ in signedness [-Wpointer-sign] sprintf_db_ports(si->src_ports, buf_src_ports, sizeof(buf_src_ports), 1); ^~ In file included from sniff.c:9:0: hunt.h:415:5: note: expected ‘unsigned int *’ but argument is of type ‘int *’ int sprintf_db_ports(unsigned int *ports, char *buf, int buf_size, int all); ^~~~~~~~~~~~~~~~ sniff.c:129:19: warning: pointer targets in passing argument 1 of ‘sprintf_db_ports’ differ in signedness [-Wpointer-sign] sprintf_db_ports(si->dst_ports, buf_dst_ports, sizeof(buf_dst_ports), 1); ^~ In file included from sniff.c:9:0: hunt.h:415:5: note: expected ‘unsigned int *’ but argument is of type ‘int *’ int sprintf_db_ports(unsigned int *ports, char *buf, int buf_size, int all); ^~~~~~~~~~~~~~~~ sniff.c: In function ‘sniff_packet_match’: sniff.c:174:32: warning: pointer targets in passing argument 2 of ‘port_match’ differ in signedness [-Wpointer-sign] port_match(tcph->source, si->src_ports) && ^~ In file included from sniff.c:9:0: hunt.h:427:5: note: expected ‘unsigned int *’ but argument is of type ‘int *’ int port_match(int port, unsigned int *db_ports); ^~~~~~~~~~ sniff.c:175:30: warning: pointer targets in passing argument 2 of ‘port_match’ differ in signedness [-Wpointer-sign] port_match(tcph->dest, si->dst_ports)) ^~ In file included from sniff.c:9:0: hunt.h:427:5: note: expected ‘unsigned int *’ but argument is of type ‘int *’ int port_match(int port, unsigned int *db_ports); ^~~~~~~~~~ sniff.c:181:32: warning: pointer targets in passing argument 2 of ‘port_match’ differ in signedness [-Wpointer-sign] port_match(tcph->source, si->dst_ports) && ^~ In file included from sniff.c:9:0: hunt.h:427:5: note: expected ‘unsigned int *’ but argument is of type ‘int *’ int port_match(int port, unsigned int *db_ports); ^~~~~~~~~~ sniff.c:182:30: warning: pointer targets in passing argument 2 of ‘port_match’ differ in signedness [-Wpointer-sign] port_match(tcph->dest, si->src_ports)) ^~ In file included from sniff.c:9:0: hunt.h:427:5: note: expected ‘unsigned int *’ but argument is of type ‘int *’ int port_match(int port, unsigned int *db_ports); ^~~~~~~~~~ sniff.c: In function ‘sniff_add_item’: sniff.c:664:4: warning: pointer targets in passing argument 3 of ‘menu_choose_host_mask_ports_dfl’ differ in signedness [-Wpointer-sign] &src_mask, src_ports, 0, 0, NULL) < 0) ^ In file included from sniff.c:9:0: hunt.h:370:5: note: expected ‘unsigned int *’ but argument is of type ‘int *’ int menu_choose_host_mask_ports_dfl(char *label, unsigned int *ret_ip, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sniff.c:664:15: warning: pointer targets in passing argument 4 of ‘menu_choose_host_mask_ports_dfl’ differ in signedness [-Wpointer-sign] &src_mask, src_ports, 0, 0, NULL) < 0) ^~~~~~~~~ In file included from sniff.c:9:0: hunt.h:370:5: note: expected ‘unsigned int *’ but argument is of type ‘int *’ int menu_choose_host_mask_ports_dfl(char *label, unsigned int *ret_ip, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sniff.c:667:4: warning: pointer targets in passing argument 3 of ‘menu_choose_host_mask_ports_dfl’ differ in signedness [-Wpointer-sign] &dst_mask, dst_ports, 0, 0, NULL) < 0) ^ In file included from sniff.c:9:0: hunt.h:370:5: note: expected ‘unsigned int *’ but argument is of type ‘int *’ int menu_choose_host_mask_ports_dfl(char *label, unsigned int *ret_ip, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sniff.c:667:15: warning: pointer targets in passing argument 4 of ‘menu_choose_host_mask_ports_dfl’ differ in signedness [-Wpointer-sign] &dst_mask, dst_ports, 0, 0, NULL) < 0) ^~~~~~~~~ In file included from sniff.c:9:0: hunt.h:370:5: note: expected ‘unsigned int *’ but argument is of type ‘int *’ int menu_choose_host_mask_ports_dfl(char *label, unsigned int *ret_ip, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sniff.c:705:13: warning: pointer targets in passing argument 1 of ‘port_htons’ differ in signedness [-Wpointer-sign] port_htons(src_ports); ^~~~~~~~~ In file included from sniff.c:9:0: hunt.h:428:6: note: expected ‘unsigned int *’ but argument is of type ‘int *’ void port_htons(unsigned int *db_ports); ^~~~~~~~~~ sniff.c:709:13: warning: pointer targets in passing argument 1 of ‘port_htons’ differ in signedness [-Wpointer-sign] port_htons(dst_ports); ^~~~~~~~~ In file included from sniff.c:9:0: hunt.h:428:6: note: expected ‘unsigned int *’ but argument is of type ‘int *’ void port_htons(unsigned int *db_ports); ^~~~~~~~~~ sniff.c: In function ‘sniff_mod_item’: sniff.c:747:17: warning: pointer targets in passing argument 3 of ‘menu_choose_host_mask_ports_dfl’ differ in signedness [-Wpointer-sign] &src_ip, &src_mask, src_ports, ^ In file included from sniff.c:9:0: hunt.h:370:5: note: expected ‘unsigned int *’ but argument is of type ‘int *’ int menu_choose_host_mask_ports_dfl(char *label, unsigned int *ret_ip, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sniff.c:747:28: warning: pointer targets in passing argument 4 of ‘menu_choose_host_mask_ports_dfl’ differ in signedness [-Wpointer-sign] &src_ip, &src_mask, src_ports, ^~~~~~~~~ In file included from sniff.c:9:0: hunt.h:370:5: note: expected ‘unsigned int *’ but argument is of type ‘int *’ int menu_choose_host_mask_ports_dfl(char *label, unsigned int *ret_ip, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sniff.c:751:17: warning: pointer targets in passing argument 3 of ‘menu_choose_host_mask_ports_dfl’ differ in signedness [-Wpointer-sign] &dst_ip, &dst_mask, dst_ports, ^ In file included from sniff.c:9:0: hunt.h:370:5: note: expected ‘unsigned int *’ but argument is of type ‘int *’ int menu_choose_host_mask_ports_dfl(char *label, unsigned int *ret_ip, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sniff.c:751:28: warning: pointer targets in passing argument 4 of ‘menu_choose_host_mask_ports_dfl’ differ in signedness [-Wpointer-sign] &dst_ip, &dst_mask, dst_ports, ^~~~~~~~~ In file included from sniff.c:9:0: hunt.h:370:5: note: expected ‘unsigned int *’ but argument is of type ‘int *’ int menu_choose_host_mask_ports_dfl(char *label, unsigned int *ret_ip, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sniff.c:770:13: warning: pointer targets in passing argument 1 of ‘port_htons’ differ in signedness [-Wpointer-sign] port_htons(src_ports); ^~~~~~~~~ In file included from sniff.c:9:0: hunt.h:428:6: note: expected ‘unsigned int *’ but argument is of type ‘int *’ void port_htons(unsigned int *db_ports); ^~~~~~~~~~ sniff.c:771:13: warning: pointer targets in passing argument 1 of ‘port_htons’ differ in signedness [-Wpointer-sign] port_htons(dst_ports); ^~~~~~~~~ In file included from sniff.c:9:0: hunt.h:428:6: note: expected ‘unsigned int *’ but argument is of type ‘int *’ void port_htons(unsigned int *db_ports); ^~~~~~~~~~ cc -Wall -O2 -g -D_REENTRANT -std=gnu89 -c -o macdisc.o macdisc.c In file included from macdisc.c:9:0: hunt.h:410:5: warning: conflicting types for built-in function ‘log2’ int log2(unsigned int i); ^~~~ macdisc.c: In function ‘mac_discover’: macdisc.c:40:13: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] as.src_mac = my_eth_mac; ^ macdisc.c:41:13: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] as.dst_mac = mac_broadcast; ^ macdisc.c:43:16: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] as.sender_mac = my_eth_mac; ^ macdisc.c:45:16: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] as.target_mac = mac_zero; ^ cc -Wall -O2 -g -D_REENTRANT -std=gnu89 -c -o tap.o tap.c In file included from tap.c:31:0: hunt.h:410:5: warning: conflicting types for built-in function ‘log2’ int log2(unsigned int i); ^~~~ tap.c: In function ‘get_ifc_info’: tap.c:135:17: warning: pointer targets in passing argument 1 of ‘print_eth_mac’ differ in signedness [-Wpointer-sign] print_eth_mac(mac); ^~~ In file included from tap.c:31:0: hunt.h:421:5: note: expected ‘unsigned char *’ but argument is of type ‘char *’ int print_eth_mac(unsigned char *mac); ^~~~~~~~~~~~~ cc -Wall -O2 -g -D_REENTRANT -std=gnu89 -c -o arphijack.o arphijack.c In file included from arphijack.c:9:0: hunt.h:410:5: warning: conflicting types for built-in function ‘log2’ int log2(unsigned int i); ^~~~ arphijack.c: In function ‘watch_tty’: arphijack.c:81:14: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] ts.dst_mac = wtd->ci->dst.src_mac; ^ arphijack.c: In function ‘arp_hijack’: arphijack.c:122:14: warning: pointer targets in passing argument 3 of ‘start_arp_spoof’ differ in signedness [-Wpointer-sign] ci->src.src_mac, ci->dst.src_mac, ^~ In file included from arphijack.c:9:0: hunt.h:520:24: note: expected ‘char *’ but argument is of type ‘unsigned char *’ struct arp_spoof_info *start_arp_spoof(unsigned int src_addr, ^~~~~~~~~~~~~~~ arphijack.c:122:31: warning: pointer targets in passing argument 4 of ‘start_arp_spoof’ differ in signedness [-Wpointer-sign] ci->src.src_mac, ci->dst.src_mac, ^~ In file included from arphijack.c:9:0: hunt.h:520:24: note: expected ‘char *’ but argument is of type ‘unsigned char *’ struct arp_spoof_info *start_arp_spoof(unsigned int src_addr, ^~~~~~~~~~~~~~~ arphijack.c:143:12: warning: pointer targets in passing argument 3 of ‘start_arp_spoof’ differ in signedness [-Wpointer-sign] ci->dst.src_mac, ci->src.src_mac, ^~ In file included from arphijack.c:9:0: hunt.h:520:24: note: expected ‘char *’ but argument is of type ‘unsigned char *’ struct arp_spoof_info *start_arp_spoof(unsigned int src_addr, ^~~~~~~~~~~~~~~ arphijack.c:143:29: warning: pointer targets in passing argument 4 of ‘start_arp_spoof’ differ in signedness [-Wpointer-sign] ci->dst.src_mac, ci->src.src_mac, ^~ In file included from arphijack.c:9:0: hunt.h:520:24: note: expected ‘char *’ but argument is of type ‘unsigned char *’ struct arp_spoof_info *start_arp_spoof(unsigned int src_addr, ^~~~~~~~~~~~~~~ arphijack.c:169:19: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] wtd.src_fake_mac = asi_src ? asi_src->src_fake_mac : ci->src.src_mac; ^ arphijack.c:200:16: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] ts.src_mac = asi_src ? asi_src->src_fake_mac : ^ arphijack.c:202:16: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] ts.dst_mac = ci->dst.src_mac; ^ arphijack.c:224:16: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] ts.src_mac = asi_dst ? asi_dst->src_fake_mac : ^ arphijack.c:226:16: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] ts.dst_mac = ci->src.src_mac; ^ cc -Wall -O2 -g -D_REENTRANT -std=gnu89 -c -o tty.o tty.c In file included from tty.c:9:0: hunt.h:410:5: warning: conflicting types for built-in function ‘log2’ int log2(unsigned int i); ^~~~ cc -Wall -O2 -g -D_REENTRANT -std=gnu89 -c -o synchijack.o synchijack.c In file included from synchijack.c:9:0: hunt.h:410:5: warning: conflicting types for built-in function ‘log2’ int log2(unsigned int i); ^~~~ synchijack.c: In function ‘hijack_sync_init_msg’: synchijack.c:153:14: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] ts.src_mac = ci->src.dst_mac; ^ synchijack.c:154:14: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] ts.dst_mac = ci->src.src_mac; ^ synchijack.c: In function ‘need_read_write_negative’: synchijack.c:220:13: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] ts.src_mac = ci->dst.dst_mac; ^ synchijack.c:221:13: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] ts.dst_mac = ci->dst.src_mac; ^ synchijack.c: In function ‘need_write_positive’: synchijack.c:279:13: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] ts.src_mac = ci->src.dst_mac; ^ synchijack.c:280:13: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] ts.dst_mac = ci->src.src_mac; ^ synchijack.c: In function ‘need_read_positive’: synchijack.c:307:13: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] ts.src_mac = ci->src.dst_mac; ^ synchijack.c:308:13: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] ts.dst_mac = ci->src.src_mac; ^ synchijack.c: In function ‘f_hijack_sync’: synchijack.c:419:16: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] ts.src_mac = ci->dst.dst_mac; ^ synchijack.c:420:16: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] ts.dst_mac = ci->dst.src_mac; ^ synchijack.c: In function ‘hijack_sync’: synchijack.c:464:18: warning: variable ‘absts’ set but not used [-Wunused-but-set-variable] struct timespec absts; ^~~~~ cc -Wall -O2 -g -D_REENTRANT -std=gnu89 -c -o arpspoof.o arpspoof.c In file included from arpspoof.c:9:0: hunt.h:410:5: warning: conflicting types for built-in function ‘log2’ int log2(unsigned int i); ^~~~ arpspoof.c: In function ‘send_src_spoof_to_dst’: arpspoof.c:85:17: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] as_dst.src_mac = arp_spoof_with_my_mac ? my_eth_mac : asi->src_fake_mac; ^ arpspoof.c:86:17: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] as_dst.dst_mac = asi->dst_mac; ^ arpspoof.c:88:20: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] as_dst.sender_mac = asi->src_fake_mac; ^ arpspoof.c:90:20: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] as_dst.target_mac = asi->dst_mac; ^ arpspoof.c: In function ‘send_src_spoof_to_dst_through_request’: arpspoof.c:117:17: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] as_dst.src_mac = arp_spoof_with_my_mac ? my_eth_mac : asi->src_fake_mac; ^ arpspoof.c:118:17: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] as_dst.dst_mac = asi->dst_mac; /* don't use broadcast - we want that it is received only by the target */ ^ arpspoof.c:120:20: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] as_dst.sender_mac = asi->src_fake_mac; ^ arpspoof.c:122:20: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] as_dst.target_mac = mac_zero; ^ arpspoof.c: In function ‘func_arp’: arpspoof.c:215:4: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] if (*(unsigned int *) arpethh->ar_sip == asi->src_addr && ^~ arpspoof.c:216:8: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] *(unsigned int *) arpethh->ar_tip == asi->dst_addr) { ^ arpspoof.c:244:4: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] if (*(unsigned int *) arpethh->ar_sip == asi->dst_addr && ^~ arpspoof.c:245:8: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] *(unsigned int *) arpethh->ar_tip == asi->src_addr) { ^ arpspoof.c:291:4: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] if (*(unsigned int *) arpethh->ar_sip == asi->src_addr && ^~ arpspoof.c:295:7: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] *(unsigned int *) arpethh->ar_tip); ^ arpspoof.c: In function ‘stop_arp_spoof’: arpspoof.c:543:19: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] as_dst.src_mac = arp_spoof_with_my_mac ? my_eth_mac : ^ arpspoof.c:546:19: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] as_dst.src_mac = arp_spoof_with_my_mac ? my_eth_mac : ^ arpspoof.c:548:18: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] as_dst.dst_mac = asi->dst_mac; ^ arpspoof.c:550:21: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] as_dst.sender_mac = asi_src_mac; ^ arpspoof.c:552:21: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] as_dst.target_mac = asi->dst_mac; ^ arpspoof.c:565:19: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] as_dst.src_mac = arp_spoof_with_my_mac ? my_eth_mac : ^ arpspoof.c:568:19: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] as_dst.src_mac = arp_spoof_with_my_mac ? my_eth_mac : ^ arpspoof.c:570:18: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] as_dst.src_mac = asi->src_mac; ^ arpspoof.c:571:18: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] as_dst.dst_mac = asi->dst_mac; ^ arpspoof.c:573:21: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] as_dst.sender_mac = asi_src_mac; ^ arpspoof.c:575:21: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] as_dst.target_mac = mac_zero; ^ arpspoof.c: In function ‘arp_spoof_range_list’: arpspoof.c:951:24: warning: pointer targets in passing argument 2 of ‘sprintf_eth_mac’ differ in signedness [-Wpointer-sign] sprintf_eth_mac(buf, asr->src_fake_mac); ^~~ In file included from arpspoof.c:9:0: hunt.h:422:5: note: expected ‘unsigned char *’ but argument is of type ‘char *’ int sprintf_eth_mac(char *b, unsigned char *mac); ^~~~~~~~~~~~~~~ arpspoof.c: In function ‘arp_spoof_add_item’: arpspoof.c:1008:36: warning: pointer targets in passing argument 5 of ‘start_arp_spoof’ differ in signedness [-Wpointer-sign] mi_dst ? mi_dst->mac : NULL, src_fake_mac, ^~~~~~~~~~~~ arpspoof.c:396:24: note: expected ‘char *’ but argument is of type ‘unsigned char *’ struct arp_spoof_info *start_arp_spoof(unsigned int src_addr, ^~~~~~~~~~~~~~~ arpspoof.c: In function ‘arp_spoof_add_h’: arpspoof.c:1163:77: warning: pointer targets in passing argument 5 of ‘start_arp_spoof’ differ in signedness [-Wpointer-sign] asi_src_in_dst = start_arp_spoof(src_ip, dst_ip, mi_src->mac, mi_dst->mac, src_fake_mac, ^~~~~~~~~~~~ arpspoof.c:396:24: note: expected ‘char *’ but argument is of type ‘unsigned char *’ struct arp_spoof_info *start_arp_spoof(unsigned int src_addr, ^~~~~~~~~~~~~~~ arpspoof.c:1165:77: warning: pointer targets in passing argument 5 of ‘start_arp_spoof’ differ in signedness [-Wpointer-sign] asi_dst_in_src = start_arp_spoof(dst_ip, src_ip, mi_dst->mac, mi_src->mac, dst_fake_mac, ^~~~~~~~~~~~ arpspoof.c:396:24: note: expected ‘char *’ but argument is of type ‘unsigned char *’ struct arp_spoof_info *start_arp_spoof(unsigned int src_addr, ^~~~~~~~~~~~~~~ arpspoof.c: In function ‘arpspoof_test’: arpspoof.c:1390:51: warning: pointer targets in passing argument 3 of ‘send_icmp_request’ differ in signedness [-Wpointer-sign] send_icmp_request(asi->src_addr, asi->dst_addr, asi->src_fake_mac, ^~~ In file included from arpspoof.c:9:0: hunt.h:697:6: note: expected ‘char *’ but argument is of type ‘unsigned char *’ void send_icmp_request(unsigned int src_addr, unsigned int dst_addr, ^~~~~~~~~~~~~~~~~ arpspoof.c:1391:7: warning: pointer targets in passing argument 4 of ‘send_icmp_request’ differ in signedness [-Wpointer-sign] asi->dst_mac, 1 + i); ^~~ In file included from arpspoof.c:9:0: hunt.h:697:6: note: expected ‘char *’ but argument is of type ‘unsigned char *’ void send_icmp_request(unsigned int src_addr, unsigned int dst_addr, ^~~~~~~~~~~~~~~~~ arpspoof.c:1397:13: warning: pointer targets in passing argument 4 of ‘is_icmp_reply’ differ in signedness [-Wpointer-sign] asi->dst_mac, asi->src_fake_mac); ^~~ In file included from arpspoof.c:9:0: hunt.h:699:5: note: expected ‘char *’ but argument is of type ‘unsigned char *’ int is_icmp_reply(struct packet *p, unsigned int src_addr, unsigned int dst_addr, ^~~~~~~~~~~~~ arpspoof.c:1397:27: warning: pointer targets in passing argument 5 of ‘is_icmp_reply’ differ in signedness [-Wpointer-sign] asi->dst_mac, asi->src_fake_mac); ^~~ In file included from arpspoof.c:9:0: hunt.h:699:5: note: expected ‘char *’ but argument is of type ‘unsigned char *’ int is_icmp_reply(struct packet *p, unsigned int src_addr, unsigned int dst_addr, ^~~~~~~~~~~~~ cc -Wall -O2 -g -D_REENTRANT -std=gnu89 -c -o hostup.o hostup.c In file included from hostup.c:9:0: hunt.h:410:5: warning: conflicting types for built-in function ‘log2’ int log2(unsigned int i); ^~~~ hostup.c: In function ‘func_arp_packet’: hostup.c:56:2: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] ip = *(unsigned int *) arpethh->ar_sip; ^~ hostup.c: In function ‘perform_ping’: hostup.c:87:14: warning: pointer targets in passing argument 3 of ‘send_icmp_request’ differ in signedness [-Wpointer-sign] ip, my_eth_mac, ^~~~~~~~~~ In file included from hostup.c:9:0: hunt.h:697:6: note: expected ‘char *’ but argument is of type ‘unsigned char *’ void send_icmp_request(unsigned int src_addr, unsigned int dst_addr, ^~~~~~~~~~~~~~~~~ hostup.c:93:7: warning: pointer targets in passing argument 3 of ‘send_icmp_request’ differ in signedness [-Wpointer-sign] my_eth_mac, fake_mac, htons(j + 2000)); ^~~~~~~~~~ In file included from hostup.c:9:0: hunt.h:697:6: note: expected ‘char *’ but argument is of type ‘unsigned char *’ void send_icmp_request(unsigned int src_addr, unsigned int dst_addr, ^~~~~~~~~~~~~~~~~ hostup.c:93:19: warning: pointer targets in passing argument 4 of ‘send_icmp_request’ differ in signedness [-Wpointer-sign] my_eth_mac, fake_mac, htons(j + 2000)); ^~~~~~~~ In file included from hostup.c:9:0: hunt.h:697:6: note: expected ‘char *’ but argument is of type ‘unsigned char *’ void send_icmp_request(unsigned int src_addr, unsigned int dst_addr, ^~~~~~~~~~~~~~~~~ hostup.c:106:8: warning: pointer targets in passing argument 4 of ‘is_icmp_reply’ differ in signedness [-Wpointer-sign] p->p_ethh->h_source, my_eth_mac) || ^ In file included from hostup.c:9:0: hunt.h:699:5: note: expected ‘char *’ but argument is of type ‘unsigned char *’ int is_icmp_reply(struct packet *p, unsigned int src_addr, unsigned int dst_addr, ^~~~~~~~~~~~~ hostup.c:106:29: warning: pointer targets in passing argument 5 of ‘is_icmp_reply’ differ in signedness [-Wpointer-sign] p->p_ethh->h_source, my_eth_mac) || ^~~~~~~~~~ In file included from hostup.c:9:0: hunt.h:699:5: note: expected ‘char *’ but argument is of type ‘unsigned char *’ int is_icmp_reply(struct packet *p, unsigned int src_addr, unsigned int dst_addr, ^~~~~~~~~~~~~ hostup.c:108:8: warning: pointer targets in passing argument 4 of ‘is_icmp_reply’ differ in signedness [-Wpointer-sign] fake_mac, my_eth_mac))) { ^~~~~~~~ In file included from hostup.c:9:0: hunt.h:699:5: note: expected ‘char *’ but argument is of type ‘unsigned char *’ int is_icmp_reply(struct packet *p, unsigned int src_addr, unsigned int dst_addr, ^~~~~~~~~~~~~ hostup.c:108:18: warning: pointer targets in passing argument 5 of ‘is_icmp_reply’ differ in signedness [-Wpointer-sign] fake_mac, my_eth_mac))) { ^~~~~~~~~~ In file included from hostup.c:9:0: hunt.h:699:5: note: expected ‘char *’ but argument is of type ‘unsigned char *’ int is_icmp_reply(struct packet *p, unsigned int src_addr, unsigned int dst_addr, ^~~~~~~~~~~~~ hostup.c: In function ‘send_arp_message’: hostup.c:125:13: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] as.src_mac = my_eth_mac; ^ hostup.c:128:16: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] as.sender_mac = my_eth_mac; ^ hostup.c:130:16: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] as.target_mac = mac_zero; ^ hostup.c: In function ‘perform_arp’: hostup.c:159:27: warning: pointer targets in passing argument 2 of ‘send_arp_message’ differ in signedness [-Wpointer-sign] send_arp_message(ip, mac_broadcast); ^~~~~~~~~~~~~ hostup.c:121:13: note: expected ‘char *’ but argument is of type ‘unsigned char *’ static void send_arp_message(unsigned int ip, char *dst_mac) ^~~~~~~~~~~~~~~~ hostup.c:161:27: warning: pointer targets in passing argument 2 of ‘send_arp_message’ differ in signedness [-Wpointer-sign] send_arp_message(ip, fake_mac); ^~~~~~~~ hostup.c:121:13: note: expected ‘char *’ but argument is of type ‘unsigned char *’ static void send_arp_message(unsigned int ip, char *dst_mac) ^~~~~~~~~~~~~~~~ hostup.c:173:4: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] src_addr = *(unsigned int *) arpethh->ar_sip; ^~~~~~~~ hostup.c: In function ‘host_up’: hostup.c:299:19: warning: pointer targets in passing argument 1 of ‘sprintf_eth_mac’ differ in signedness [-Wpointer-sign] sprintf_eth_mac(buf_mac, suggest_mac()); ^~~~~~~ In file included from hostup.c:9:0: hunt.h:422:5: note: expected ‘char *’ but argument is of type ‘unsigned char *’ int sprintf_eth_mac(char *b, unsigned char *mac); ^~~~~~~~~~~~~~~ hostup.c:300:70: warning: pointer targets in passing argument 3 of ‘menu_choose_mac’ differ in signedness [-Wpointer-sign] if (menu_choose_mac("choose unused MAC in your network", fake_mac, buf_mac) >= 0) { ^~~~~~~ In file included from hostup.c:9:0: hunt.h:365:5: note: expected ‘char *’ but argument is of type ‘unsigned char *’ int menu_choose_mac(char *label, unsigned char *mac_ret, char *dfl); ^~~~~~~~~~~~~~~ hostup.c:314:19: warning: pointer targets in passing argument 1 of ‘sprintf_eth_mac’ differ in signedness [-Wpointer-sign] sprintf_eth_mac(buf_mac, suggest_mac()); ^~~~~~~ In file included from hostup.c:9:0: hunt.h:422:5: note: expected ‘char *’ but argument is of type ‘unsigned char *’ int sprintf_eth_mac(char *b, unsigned char *mac); ^~~~~~~~~~~~~~~ hostup.c:315:70: warning: pointer targets in passing argument 3 of ‘menu_choose_mac’ differ in signedness [-Wpointer-sign] if (menu_choose_mac("choose unused MAC in your network", fake_mac, buf_mac) >= 0) { ^~~~~~~ In file included from hostup.c:9:0: hunt.h:365:5: note: expected ‘char *’ but argument is of type ‘unsigned char *’ int menu_choose_mac(char *label, unsigned char *mac_ret, char *dfl); ^~~~~~~~~~~~~~~ cc -Wall -O2 -g -D_REENTRANT -std=gnu89 -c -o addpolicy.o addpolicy.c In file included from addpolicy.c:9:0: hunt.h:410:5: warning: conflicting types for built-in function ‘log2’ int log2(unsigned int i); ^~~~ addpolicy.c: In function ‘addpolicy_add_item’: addpolicy.c:113:16: warning: pointer targets in passing argument 4 of ‘menu_choose_host_mask_ports_dfl’ differ in signedness [-Wpointer-sign] &src_mask, src_ports, 0, 0, NULL) < 0) ^~~~~~~~~ In file included from addpolicy.c:9:0: hunt.h:370:5: note: expected ‘unsigned int *’ but argument is of type ‘int *’ int menu_choose_host_mask_ports_dfl(char *label, unsigned int *ret_ip, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ addpolicy.c:116:16: warning: pointer targets in passing argument 4 of ‘menu_choose_host_mask_ports_dfl’ differ in signedness [-Wpointer-sign] &dst_mask, dst_ports, 0, 0, NULL) < 0) ^~~~~~~~~ In file included from addpolicy.c:9:0: hunt.h:370:5: note: expected ‘unsigned int *’ but argument is of type ‘int *’ int menu_choose_host_mask_ports_dfl(char *label, unsigned int *ret_ip, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ addpolicy.c:125:13: warning: pointer targets in passing argument 1 of ‘port_htons’ differ in signedness [-Wpointer-sign] port_htons(src_ports); ^~~~~~~~~ In file included from addpolicy.c:9:0: hunt.h:428:6: note: expected ‘unsigned int *’ but argument is of type ‘int *’ void port_htons(unsigned int *db_ports); ^~~~~~~~~~ addpolicy.c:129:13: warning: pointer targets in passing argument 1 of ‘port_htons’ differ in signedness [-Wpointer-sign] port_htons(dst_ports); ^~~~~~~~~ In file included from addpolicy.c:9:0: hunt.h:428:6: note: expected ‘unsigned int *’ but argument is of type ‘int *’ void port_htons(unsigned int *db_ports); ^~~~~~~~~~ addpolicy.c: In function ‘addpolicy_mod_item’: addpolicy.c:150:28: warning: pointer targets in passing argument 4 of ‘menu_choose_host_mask_ports_dfl’ differ in signedness [-Wpointer-sign] &src_ip, &src_mask, src_ports, ^~~~~~~~~ In file included from addpolicy.c:9:0: hunt.h:370:5: note: expected ‘unsigned int *’ but argument is of type ‘int *’ int menu_choose_host_mask_ports_dfl(char *label, unsigned int *ret_ip, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ addpolicy.c:151:38: warning: pointer targets in passing argument 7 of ‘menu_choose_host_mask_ports_dfl’ differ in signedness [-Wpointer-sign] api->src_addr, api->src_mask, api->src_ports) < 0) ^~~ In file included from addpolicy.c:9:0: hunt.h:370:5: note: expected ‘int *’ but argument is of type ‘unsigned int *’ int menu_choose_host_mask_ports_dfl(char *label, unsigned int *ret_ip, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ addpolicy.c:154:28: warning: pointer targets in passing argument 4 of ‘menu_choose_host_mask_ports_dfl’ differ in signedness [-Wpointer-sign] &dst_ip, &dst_mask, dst_ports, ^~~~~~~~~ In file included from addpolicy.c:9:0: hunt.h:370:5: note: expected ‘unsigned int *’ but argument is of type ‘int *’ int menu_choose_host_mask_ports_dfl(char *label, unsigned int *ret_ip, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ addpolicy.c:155:38: warning: pointer targets in passing argument 7 of ‘menu_choose_host_mask_ports_dfl’ differ in signedness [-Wpointer-sign] api->dst_addr, api->dst_mask, api->dst_ports) < 0) ^~~ In file included from addpolicy.c:9:0: hunt.h:370:5: note: expected ‘int *’ but argument is of type ‘unsigned int *’ int menu_choose_host_mask_ports_dfl(char *label, unsigned int *ret_ip, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ addpolicy.c:157:13: warning: pointer targets in passing argument 1 of ‘port_htons’ differ in signedness [-Wpointer-sign] port_htons(src_ports); ^~~~~~~~~ In file included from addpolicy.c:9:0: hunt.h:428:6: note: expected ‘unsigned int *’ but argument is of type ‘int *’ void port_htons(unsigned int *db_ports); ^~~~~~~~~~ addpolicy.c:158:13: warning: pointer targets in passing argument 1 of ‘port_htons’ differ in signedness [-Wpointer-sign] port_htons(dst_ports); ^~~~~~~~~ In file included from addpolicy.c:9:0: hunt.h:428:6: note: expected ‘unsigned int *’ but argument is of type ‘int *’ void port_htons(unsigned int *db_ports); ^~~~~~~~~~ cc -Wall -O2 -g -D_REENTRANT -std=gnu89 -c -o options.o options.c In file included from options.c:9:0: hunt.h:410:5: warning: conflicting types for built-in function ‘log2’ int log2(unsigned int i); ^~~~ cc -Wall -O2 -g -D_REENTRANT -std=gnu89 -c -o resolv.o resolv.c In file included from resolv.c:1:0: hunt.h:410:5: warning: conflicting types for built-in function ‘log2’ int log2(unsigned int i); ^~~~ resolv.c: In function ‘update_thr’: resolv.c:131:11: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] int fd = (int) arg; ^ resolv.c: In function ‘resolv_init’: resolv.c:485:52: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] pthread_create(&res_update_thr, NULL, update_thr, (void *) fd_req); ^ cc -Wall -O2 -g -D_REENTRANT -std=gnu89 -c -o timer.o timer.c In file included from timer.c:11:0: hunt.h:410:5: warning: conflicting types for built-in function ‘log2’ int log2(unsigned int i); ^~~~ timer.c: In function ‘timer_init’: timer.c:154:3: warning: implicit declaration of function ‘exit’ [-Wimplicit-function-declaration] exit(1); ^~~~ timer.c:154:3: warning: incompatible implicit declaration of built-in function ‘exit’ timer.c:154:3: note: include ‘’ or provide a declaration of ‘exit’ cc -Wall -O2 -g -D_REENTRANT -std=gnu89 -c -o pktrelay.o pktrelay.c In file included from pktrelay.c:9:0: hunt.h:410:5: warning: conflicting types for built-in function ‘log2’ int log2(unsigned int i); ^~~~ pktrelay.c: In function ‘relay_add_item’: pktrelay.c:270:16: warning: pointer targets in passing argument 4 of ‘menu_choose_host_mask_ports_dfl’ differ in signedness [-Wpointer-sign] &src_mask, src_ports, 0, 0, NULL) < 0) ^~~~~~~~~ In file included from pktrelay.c:9:0: hunt.h:370:5: note: expected ‘unsigned int *’ but argument is of type ‘int *’ int menu_choose_host_mask_ports_dfl(char *label, unsigned int *ret_ip, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ pktrelay.c:273:16: warning: pointer targets in passing argument 4 of ‘menu_choose_host_mask_ports_dfl’ differ in signedness [-Wpointer-sign] &dst_mask, dst_ports, 0, 0, NULL) < 0) ^~~~~~~~~ In file included from pktrelay.c:9:0: hunt.h:370:5: note: expected ‘unsigned int *’ but argument is of type ‘int *’ int menu_choose_host_mask_ports_dfl(char *label, unsigned int *ret_ip, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ pktrelay.c:294:13: warning: pointer targets in passing argument 1 of ‘port_htons’ differ in signedness [-Wpointer-sign] port_htons(src_ports); ^~~~~~~~~ In file included from pktrelay.c:9:0: hunt.h:428:6: note: expected ‘unsigned int *’ but argument is of type ‘int *’ void port_htons(unsigned int *db_ports); ^~~~~~~~~~ pktrelay.c:298:13: warning: pointer targets in passing argument 1 of ‘port_htons’ differ in signedness [-Wpointer-sign] port_htons(dst_ports); ^~~~~~~~~ In file included from pktrelay.c:9:0: hunt.h:428:6: note: expected ‘unsigned int *’ but argument is of type ‘int *’ void port_htons(unsigned int *db_ports); ^~~~~~~~~~ pktrelay.c: In function ‘relay_mod_item’: pktrelay.c:334:28: warning: pointer targets in passing argument 4 of ‘menu_choose_host_mask_ports_dfl’ differ in signedness [-Wpointer-sign] &src_ip, &src_mask, src_ports, ^~~~~~~~~ In file included from pktrelay.c:9:0: hunt.h:370:5: note: expected ‘unsigned int *’ but argument is of type ‘int *’ int menu_choose_host_mask_ports_dfl(char *label, unsigned int *ret_ip, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ pktrelay.c:335:36: warning: pointer targets in passing argument 7 of ‘menu_choose_host_mask_ports_dfl’ differ in signedness [-Wpointer-sign] ri->src_addr, ri->src_mask, ri->src_ports) < 0) ^~ In file included from pktrelay.c:9:0: hunt.h:370:5: note: expected ‘int *’ but argument is of type ‘unsigned int *’ int menu_choose_host_mask_ports_dfl(char *label, unsigned int *ret_ip, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ pktrelay.c:338:28: warning: pointer targets in passing argument 4 of ‘menu_choose_host_mask_ports_dfl’ differ in signedness [-Wpointer-sign] &dst_ip, &dst_mask, dst_ports, ^~~~~~~~~ In file included from pktrelay.c:9:0: hunt.h:370:5: note: expected ‘unsigned int *’ but argument is of type ‘int *’ int menu_choose_host_mask_ports_dfl(char *label, unsigned int *ret_ip, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ pktrelay.c:339:36: warning: pointer targets in passing argument 7 of ‘menu_choose_host_mask_ports_dfl’ differ in signedness [-Wpointer-sign] ri->dst_addr, ri->dst_mask, ri->dst_ports) < 0) ^~ In file included from pktrelay.c:9:0: hunt.h:370:5: note: expected ‘int *’ but argument is of type ‘unsigned int *’ int menu_choose_host_mask_ports_dfl(char *label, unsigned int *ret_ip, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ pktrelay.c:367:13: warning: pointer targets in passing argument 1 of ‘port_htons’ differ in signedness [-Wpointer-sign] port_htons(src_ports); ^~~~~~~~~ In file included from pktrelay.c:9:0: hunt.h:428:6: note: expected ‘unsigned int *’ but argument is of type ‘int *’ void port_htons(unsigned int *db_ports); ^~~~~~~~~~ pktrelay.c:368:13: warning: pointer targets in passing argument 1 of ‘port_htons’ differ in signedness [-Wpointer-sign] port_htons(dst_ports); ^~~~~~~~~ In file included from pktrelay.c:9:0: hunt.h:428:6: note: expected ‘unsigned int *’ but argument is of type ‘int *’ void port_htons(unsigned int *db_ports); ^~~~~~~~~~ cc -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 make[1]: Leaving directory '/build/hunt-YgYZaW/hunt-1.5' cd tpserv && make make[1]: Entering directory '/build/hunt-YgYZaW/hunt-1.5/tpserv' cc -Wall -O2 -g -c -o tpserv.o tpserv.c tpserv.c:58:13: warning: conflicting types for built-in function ‘log’ static void log(int level, int pid, char *format, ...) ^~~ tpserv.c: In function ‘process_request_connect’: tpserv.c:161:25: warning: passing argument 2 of ‘connect’ from incompatible pointer type [-Wincompatible-pointer-types] if (connect(fd_remote, to_addr, to_addr_len) < 0) { ^~~~~~~ In file included from tpserv.c:11:0: /usr/include/x86_64-linux-gnu/sys/socket.h:137:12: note: expected ‘const struct sockaddr *’ but argument is of type ‘struct sockaddr_in *’ extern int connect (int __fd, __CONST_SOCKADDR_ARG __addr, socklen_t __len); ^~~~~~~ tpserv.c:166:62: warning: pointer targets in passing argument 3 of ‘getsockname’ differ in signedness [-Wpointer-sign] if (getsockname(fd_remote, (struct sockaddr *) &local_addr, &local_addr_len) < 0) { ^ In file included from tpserv.c:11:0: /usr/include/x86_64-linux-gnu/sys/socket.h:127:12: note: expected ‘socklen_t * restrict {aka unsigned int * restrict}’ but argument is of type ‘int *’ extern int getsockname (int __fd, __SOCKADDR_ARG __addr, ^~~~~~~~~~~ tpserv.c: In function ‘serv_slave’: tpserv.c:216:52: warning: pointer targets in passing argument 3 of ‘getsockname’ differ in signedness [-Wpointer-sign] if (getsockname(fd, (struct sockaddr *) &to_addr, &to_addr_len) < 0) { ^ In file included from tpserv.c:11:0: /usr/include/x86_64-linux-gnu/sys/socket.h:127:12: note: expected ‘socklen_t * restrict {aka unsigned int * restrict}’ but argument is of type ‘int *’ extern int getsockname (int __fd, __SOCKADDR_ARG __addr, ^~~~~~~~~~~ tpserv.c:222:54: warning: pointer targets in passing argument 3 of ‘getpeername’ differ in signedness [-Wpointer-sign] if (getpeername(fd, (struct sockaddr *) &from_addr, &from_addr_len) < 0) { ^ In file included from tpserv.c:11:0: /usr/include/x86_64-linux-gnu/sys/socket.h:141:12: note: expected ‘socklen_t * restrict {aka unsigned int * restrict}’ but argument is of type ‘int *’ extern int getpeername (int __fd, __SOCKADDR_ARG __addr, ^~~~~~~~~~~ tpserv.c: In function ‘main’: tpserv.c:336:54: warning: pointer targets in passing argument 3 of ‘accept’ differ in signedness [-Wpointer-sign] clifd = accept(lfd, (struct sockaddr *) &cliaddr, &clilen); ^ In file included from tpserv.c:11:0: /usr/include/x86_64-linux-gnu/sys/socket.h:243:12: note: expected ‘socklen_t * restrict {aka unsigned int * restrict}’ but argument is of type ‘int *’ extern int accept (int __fd, __SOCKADDR_ARG __addr, ^~~~~~ cc -o tpserv tpserv.o make[1]: Leaving directory '/build/hunt-YgYZaW/hunt-1.5/tpserv' touch build-stamp fakeroot debian/rules binary-arch dh_testdir dh_testroot dh_clean rm -f debian/debhelper-build-stamp rm -f debian/hunt.substvars rm -f debian/hunt.*.debhelper rm -rf debian/hunt/ rm -rf debian/.debhelper/ rm -f debian/*.debhelper.log dh_clean: Compatibility levels before 9 are deprecated (level 5 in use) rm -f debian/files find . \( \( \ \( -path .\*/.git -o -path .\*/.svn -o -path .\*/.bzr -o -path .\*/.hg -o -path .\*/CVS \) -prune -o -type f -a \ \( -name '#*#' -o -name '.*~' -o -name '*~' -o -name DEADJOE \ -o -name '*.orig' -o -name '*.rej' -o -name '*.bak' \ -o -name '.*.orig' -o -name .*.rej -o -name '.SUMS' \ -o -name TAGS -o \( -path '*/.deps/*' -a -name '*.P' \) \ \) -exec rm -f {} + \) -o \ \( -type d -a -name autom4te.cache -prune -exec rm -rf {} + \) \) dh_installdocs README TODO README.tp install -d debian/hunt/usr/share/doc/hunt dh_installdocs: Compatibility levels before 9 are deprecated (level 5 in use) cp --reflink=auto -a README debian/hunt/usr/share/doc/hunt cp --reflink=auto -a TODO debian/hunt/usr/share/doc/hunt cp --reflink=auto -a README.tp debian/hunt/usr/share/doc/hunt chown -R 0:0 debian/hunt/usr/share/doc chmod -R go=rX debian/hunt/usr/share/doc chmod -R u\+rw debian/hunt/usr/share/doc install -p -m0644 debian/copyright debian/hunt/usr/share/doc/hunt/copyright dh_installman man/hunt.1 dh_installman: Compatibility levels before 9 are deprecated (level 5 in use) install -d debian/hunt/usr/share/man/man1/ install -p -m0644 man/hunt.1 debian/hunt/usr/share/man/man1/hunt.1 man --recode UTF-8 ./hunt\.1 > hunt\.1\.new chmod 0755 -- hunt.1.new chown 0:0 -- hunt.1.new mv -f hunt.1.new hunt.1 dh_installchangelogs CHANGES install -p -m0644 CHANGES debian/hunt/usr/share/doc/hunt/changelog dh_install dh_install: Compatibility levels before 9 are deprecated (level 5 in use) install -d debian/hunt/usr/sbin cp --reflink=auto -a ./hunt debian/hunt/usr/sbin/ cp --reflink=auto -a ./tpserv/tpserv debian/hunt/usr/sbin/ cp --reflink=auto -a ./tpsetup/transproxy debian/hunt/usr/sbin/ dh_strip dh_strip: Compatibility levels before 9 are deprecated (level 5 in use) install -d debian/.debhelper/hunt/dbgsym-root/usr/lib/debug/.build-id/d5 objcopy --only-keep-debug --compress-debug-sections debian/hunt/usr/sbin/tpserv debian/.debhelper/hunt/dbgsym-root/usr/lib/debug/.build-id/d5/7137ed7d11085f802107d1b62894aa6fcedcf3.debug chmod 0644 -- debian/.debhelper/hunt/dbgsym-root/usr/lib/debug/.build-id/d5/7137ed7d11085f802107d1b62894aa6fcedcf3.debug chown 0:0 -- debian/.debhelper/hunt/dbgsym-root/usr/lib/debug/.build-id/d5/7137ed7d11085f802107d1b62894aa6fcedcf3.debug strip --remove-section=.comment --remove-section=.note debian/hunt/usr/sbin/tpserv objcopy --add-gnu-debuglink debian/.debhelper/hunt/dbgsym-root/usr/lib/debug/.build-id/d5/7137ed7d11085f802107d1b62894aa6fcedcf3.debug debian/hunt/usr/sbin/tpserv install -d debian/.debhelper/hunt/dbgsym-root/usr/lib/debug/.build-id/f5 objcopy --only-keep-debug --compress-debug-sections debian/hunt/usr/sbin/hunt debian/.debhelper/hunt/dbgsym-root/usr/lib/debug/.build-id/f5/41fc2d99072fe16cc74769c0bfc8f82b1b647b.debug chmod 0644 -- debian/.debhelper/hunt/dbgsym-root/usr/lib/debug/.build-id/f5/41fc2d99072fe16cc74769c0bfc8f82b1b647b.debug chown 0:0 -- debian/.debhelper/hunt/dbgsym-root/usr/lib/debug/.build-id/f5/41fc2d99072fe16cc74769c0bfc8f82b1b647b.debug strip --remove-section=.comment --remove-section=.note debian/hunt/usr/sbin/hunt objcopy --add-gnu-debuglink debian/.debhelper/hunt/dbgsym-root/usr/lib/debug/.build-id/f5/41fc2d99072fe16cc74769c0bfc8f82b1b647b.debug debian/hunt/usr/sbin/hunt install -d debian/.debhelper/hunt/dbgsym-root/usr/share/doc ln -s hunt debian/.debhelper/hunt/dbgsym-root/usr/share/doc/hunt-dbgsym dh_compress cd debian/hunt chmod a-x usr/share/doc/hunt/README usr/share/doc/hunt/README.tp usr/share/doc/hunt/changelog usr/share/doc/hunt/changelog.Debian usr/share/doc/hunt/changelog.Debian.amd64 usr/share/man/man1/hunt.1 gzip -9nf usr/share/doc/hunt/README usr/share/doc/hunt/README.tp usr/share/doc/hunt/changelog usr/share/doc/hunt/changelog.Debian usr/share/doc/hunt/changelog.Debian.amd64 usr/share/man/man1/hunt.1 cd '/build/hunt-YgYZaW/hunt-1.5' dh_fixperms find debian/hunt -print0 2>/dev/null | xargs -0r chown --no-dereference 0:0 find debian/hunt ! -type l -print0 2>/dev/null | xargs -0r chmod go=rX,u+rw,a-s find debian/hunt/usr/share/doc -type f ! -regex 'debian/hunt/usr/share/doc/[^/]*/examples/.*' -print0 2>/dev/null | xargs -0r chmod 0644 find debian/hunt/usr/share/doc -type d -print0 2>/dev/null | xargs -0r chmod 0755 find debian/hunt/usr/share/man -type f -print0 2>/dev/null | xargs -0r chmod 0644 find debian/hunt/usr/include -type f -print0 2>/dev/null | xargs -0r chmod 0644 find debian/hunt/usr/share/applications -type f -print0 2>/dev/null | xargs -0r chmod 0644 find debian/hunt/usr/lib/x86_64-linux-gnu/perl5/5.24 debian/hunt/usr/share/perl5 -type f -perm -5 -name '*.pm' -print0 2>/dev/null | xargs -0r chmod a-X find debian/hunt -perm -5 -type f \( -name '*.so.*' -o -name '*.so' -o -name '*.la' -o -name '*.a' -o -name '*.js' -o -name '*.css' -o -name '*.jpeg' -o -name '*.jpg' -o -name '*.png' -o -name '*.gif' -o -name '*.cmxs' \) -print0 2>/dev/null | xargs -0r chmod 0644 find debian/hunt/usr/sbin -type f -print0 2>/dev/null | xargs -0r chmod a+x find debian/hunt/usr/lib -type f -name '*.ali' -print0 2>/dev/null | xargs -0r chmod uga-w dh_installdeb install -d debian/hunt/DEBIAN dh_installdeb: Compatibility levels before 9 are deprecated (level 5 in use) dh_shlibdeps dpkg-shlibdeps -Tdebian/hunt.substvars debian/hunt/usr/sbin/tpserv debian/hunt/usr/sbin/hunt dh_gencontrol echo misc:Depends= >> debian/hunt.substvars echo misc:Pre-Depends= >> debian/hunt.substvars install -d debian/.debhelper/hunt/dbgsym-root/DEBIAN dpkg-gencontrol -phunt -ldebian/changelog -Tdebian/hunt.substvars -Pdebian/.debhelper/hunt/dbgsym-root -UPre-Depends -URecommends -USuggests -UEnhances -UProvides -UEssential -UConflicts -DPriority=extra -DAuto-Built-Package=debug-symbols -DPackage=hunt-dbgsym "-DDepends=hunt (= \${binary:Version})" "-DDescription=Debug symbols for hunt" "-DBuild-Ids=d57137ed7d11085f802107d1b62894aa6fcedcf3 f541fc2d99072fe16cc74769c0bfc8f82b1b647b" -DSection=debug -UMulti-Arch -UReplaces -UBreaks chmod 0644 -- debian/.debhelper/hunt/dbgsym-root/DEBIAN/control chown 0:0 -- debian/.debhelper/hunt/dbgsym-root/DEBIAN/control dpkg-gencontrol -phunt -ldebian/changelog -Tdebian/hunt.substvars -Pdebian/hunt chmod 0644 -- debian/hunt/DEBIAN/control chown 0:0 -- debian/hunt/DEBIAN/control dh_md5sums (cd debian/hunt >/dev/null ; find . -type f ! -regex './DEBIAN/.*' -printf '%P\0' | LC_ALL=C sort -z | xargs -r0 md5sum | perl -pe 'if (s@^\\@@) { s/\\\\/\\/g; }' > DEBIAN/md5sums) >/dev/null chmod 0644 -- debian/hunt/DEBIAN/md5sums chown 0:0 -- debian/hunt/DEBIAN/md5sums (cd debian/.debhelper/hunt/dbgsym-root >/dev/null ; find . -type f ! -regex './DEBIAN/.*' -printf '%P\0' | LC_ALL=C sort -z | xargs -r0 md5sum | perl -pe 'if (s@^\\@@) { s/\\\\/\\/g; }' > DEBIAN/md5sums) >/dev/null chmod 0644 -- debian/.debhelper/hunt/dbgsym-root/DEBIAN/md5sums chown 0:0 -- debian/.debhelper/hunt/dbgsym-root/DEBIAN/md5sums dh_builddeb dpkg-deb -z1 -Zxz -Sextreme --build debian/.debhelper/hunt/dbgsym-root .. dpkg-deb: building package 'hunt-dbgsym' in '../hunt-dbgsym_1.5-6.1+b1_amd64.deb'. dpkg-deb --build debian/hunt .. dpkg-deb: building package 'hunt' in '../hunt_1.5-6.1+b1_amd64.deb'. dpkg-genbuildinfo --build=any dpkg-genchanges --build=any >../hunt_1.5-6.1+b1_amd64.changes dpkg-genchanges: info: binary-only arch-specific upload (source code and arch-indep packages not included) dpkg-source --after-build hunt-1.5 dpkg-buildpackage: info: binary-only upload (no source included) I: running special hook: sync-out /build/hunt-YgYZaW /tmp/hunt-1.5-6.1+b1uvrwa2um I: cleaning package lists and apt cache... I: creating tarball... I: done I: removing tempdir /tmp/mmdebstrap.s3_uL6h7jr... I: success in 223.7730 seconds md5: hunt-dbgsym_1.5-6.1+b1_amd64.deb: OK md5: hunt_1.5-6.1+b1_amd64.deb: OK sha1: hunt-dbgsym_1.5-6.1+b1_amd64.deb: OK sha1: hunt_1.5-6.1+b1_amd64.deb: OK sha256: hunt-dbgsym_1.5-6.1+b1_amd64.deb: OK sha256: hunt_1.5-6.1+b1_amd64.deb: OK Checksums: OK