Input buildinfo: https://buildinfos.debian.net/buildinfo-pool/s/sniffit/sniffit_0.5-1_amd64.buildinfo Use metasnap for getting required timestamps New buildinfo file: /tmp/sniffit-0.5-1rycmzs0a/sniffit_0.5-1_amd64.buildinfo Get source package info: sniffit=0.5-1 Source URL: http://snapshot.notset.fr/mr/package/sniffit/0.5-1/srcfiles?fileinfo=1 env -i PATH=/usr/sbin:/usr/bin:/sbin:/bin TMPDIR=/tmp mmdebstrap --arch=amd64 --include=autoconf=2.69-11.1 automake=1:1.16.2-1 autopoint=0.19.8.1-10 autotools-dev=20180224.1 base-files=11 base-passwd=3.5.47 bash=5.0-6 binutils=2.34-6 binutils-common=2.34-6 binutils-x86-64-linux-gnu=2.34-6 bsdmainutils=11.1.2+b1 bsdutils=1:2.34-0.1 build-essential=12.8 bzip2=1.0.8-2 coreutils=8.30-3+b1 cpp=4:9.2.1-3.1 cpp-9=9.3.0-10 dash=0.5.10.2-7 debconf=1.5.74 debhelper=13 debianutils=4.9.1 dh-autoreconf=19 dh-strip-nondeterminism=1.8.0-1 diffutils=1:3.7-3 dpkg=1.19.7 dpkg-dev=1.19.7 dwz=0.13-5 fdisk=2.34-0.1 file=1:5.38-4 findutils=4.7.0-1 g++=4:9.2.1-3.1 g++-9=9.3.0-10 gcc=4:9.2.1-3.1 gcc-10-base=10-20200418-1 gcc-9=9.3.0-10 gcc-9-base=9.3.0-10 gettext=0.19.8.1-10 gettext-base=0.19.8.1-10 grep=3.4-1 groff-base=1.22.4-4 gzip=1.10-2 hostname=3.23 init-system-helpers=1.57 intltool-debian=0.35.0+20060710.5 libacl1=2.2.53-6 libarchive-zip-perl=1.68-1 libasan5=9.3.0-10 libatomic1=10-20200418-1 libattr1=1:2.4.48-5 libaudit-common=1:2.8.5-3 libaudit1=1:2.8.5-3+b1 libbinutils=2.34-6 libblkid1=2.34-0.1 libbsd0=0.10.0-1 libbz2-1.0=1.0.8-2 libc-bin=2.30-4 libc-dev-bin=2.30-4 libc6=2.30-4 libc6-dev=2.30-4 libcap-ng0=0.7.9-2.1+b2 libcc1-0=10-20200418-1 libcroco3=0.6.13-1 libcrypt-dev=1:4.4.16-1 libcrypt1=1:4.4.16-1 libctf-nobfd0=2.34-6 libctf0=2.34-6 libdb5.3=5.3.28+dfsg1-0.6 libdebconfclient0=0.251 libdebhelper-perl=13 libdpkg-perl=1.19.7 libelf1=0.176-1.1 libfdisk1=2.34-0.1 libffi7=3.3-4 libfile-stripnondeterminism-perl=1.8.0-1 libgcc-9-dev=9.3.0-10 libgcc-s1=10-20200418-1 libgcrypt20=1.8.5-5 libgdbm-compat4=1.18.1-5 libgdbm6=1.18.1-5 libglib2.0-0=2.64.2-1 libgmp10=2:6.2.0+dfsg-4 libgomp1=10-20200418-1 libgpg-error0=1.37-1 libicu63=63.2-3 libisl22=0.22.1-1 libitm1=10-20200418-1 liblsan0=10-20200418-1 liblz4-1=1.9.2-2 liblzma5=5.2.4-1+b1 libmagic-mgc=1:5.38-4 libmagic1=1:5.38-4 libmount1=2.34-0.1 libmpc3=1.1.0-1 libmpfr6=4.0.2-1 libncurses-dev=6.2-1 libncurses5-dev=6.2-1 libncurses6=6.2-1 libncursesw6=6.2-1 libpam-modules=1.3.1-5 libpam-modules-bin=1.3.1-5 libpam-runtime=1.3.1-5 libpam0g=1.3.1-5 libpcap-dev=1.9.1-3 libpcap0.8=1.9.1-3 libpcap0.8-dev=1.9.1-3 libpcre2-8-0=10.34-7 libpcre3=2:8.39-12+b1 libperl5.30=5.30.0-10 libpipeline1=1.5.2-2 libquadmath0=10-20200418-1 libseccomp2=2.4.3-1+b1 libselinux1=3.0-1+b3 libsigsegv2=2.12-2 libsmartcols1=2.34-0.1 libstdc++-9-dev=9.3.0-10 libstdc++6=10-20200418-1 libsub-override-perl=0.09-2 libsystemd0=245.5-1 libtinfo6=6.2-1 libtool=2.4.6-14 libtsan0=10-20200418-1 libubsan1=10-20200418-1 libuchardet0=0.0.6-3 libudev1=245.5-1 libunistring2=0.9.10-2 libuuid1=2.34-0.1 libxml2=2.9.10+dfsg-5 linux-libc-dev=5.5.17-1 login=1:4.8.1-1 lsb-base=11.1.0 m4=1.4.18-4 make=4.2.1-1.2 man-db=2.9.1-1 mawk=1.3.4.20200120-2 ncurses-base=6.2-1 ncurses-bin=6.2-1 patch=2.7.6-6 perl=5.30.0-10 perl-base=5.30.0-10 perl-modules-5.30=5.30.0-10 po-debconf=1.0.21 sed=4.7-1 sensible-utils=0.0.12+nmu1 sysvinit-utils=2.96-3 tar=1.30+dfsg-7 util-linux=2.34-0.1 xz-utils=5.2.4-1+b1 zlib1g=1:1.2.11.dfsg-2 --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/20200422T145249Z/ 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 sniffit=0.5-1 && mkdir -p /build/sniffit-wed05Q && dpkg-source --no-check -x /*.dsc /build/sniffit-wed05Q/sniffit-0.5 && chown -R builduser:builduser /build/sniffit-wed05Q" --customize-hook=chroot "$1" env --unset=TMPDIR runuser builduser -c "cd /build/sniffit-wed05Q/sniffit-0.5 && env DEB_BUILD_OPTIONS="parallel=4" LANG="C.UTF-8" LC_ALL="C.UTF-8" SOURCE_DATE_EPOCH="1587348944" dpkg-buildpackage -uc -a amd64 --build=any" --customize-hook=sync-out /build/sniffit-wed05Q /tmp/sniffit-0.5-1rycmzs0a bullseye /dev/null deb http://snapshot.notset.fr/archive/debian/20200422T145249Z 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.1uoCmA1J5p 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.1uoCmA1J5p Reading package lists... Building dependency tree... util-linux is already the newest version (2.34-0.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 132 kB of archives. After this operation, 393 kB of additional disk space will be used. Get:1 http://snapshot.notset.fr/archive/debian/20200422T145249Z unstable/main amd64 libfakeroot amd64 1.24-1 [45.7 kB] Get:2 http://snapshot.notset.fr/archive/debian/20200422T145249Z unstable/main amd64 fakeroot amd64 1.24-1 [85.9 kB] debconf: delaying package configuration, since apt-utils is not installed Fetched 132 kB in 0s (807 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 ... 4504 files and directories currently installed.) Preparing to unpack .../libfakeroot_1.24-1_amd64.deb ... Unpacking libfakeroot:amd64 (1.24-1) ... Selecting previously unselected package fakeroot. Preparing to unpack .../fakeroot_1.24-1_amd64.deb ... Unpacking fakeroot (1.24-1) ... Setting up libfakeroot:amd64 (1.24-1) ... Setting up fakeroot (1.24-1) ... update-alternatives: using /usr/bin/fakeroot-sysv to provide /usr/bin/fakeroot (fakeroot) in auto mode Processing triggers for libc-bin (2.30-4) ... 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/20200422T145249Z/ unstable main' >> /etc/apt/sources.list && apt-get update"' exec /tmp/mmdebstrap.1uoCmA1J5p Get:1 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm InRelease [81.6 kB] Hit:2 http://snapshot.notset.fr/archive/debian/20200422T145249Z unstable InRelease Ign:3 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main Sources Ign:4 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main amd64 Packages Ign:3 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main Sources Ign:4 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main amd64 Packages Ign:3 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main Sources Ign:4 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main amd64 Packages Get:3 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main Sources [11.4 MB] Get:4 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main amd64 Packages [11.1 MB] Fetched 22.6 MB in 20s (1154 kB/s) Reading package lists... 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.1uoCmA1J5p I: running --customize-hook in shell: sh -c 'chroot "$1" env sh -c "apt-get source --only-source -d sniffit=0.5-1 && mkdir -p /build/sniffit-wed05Q && dpkg-source --no-check -x /*.dsc /build/sniffit-wed05Q/sniffit-0.5 && chown -R builduser:builduser /build/sniffit-wed05Q"' exec /tmp/mmdebstrap.1uoCmA1J5p Reading package lists... NOTICE: 'sniffit' packaging is maintained in the 'Git' version control system at: https://salsa.debian.org/debian/sniffit.git Please use: git clone https://salsa.debian.org/debian/sniffit.git to retrieve the latest (possibly unreleased) updates to the package. Need to get 69.1 kB of source archives. Get:1 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main sniffit 0.5-1 (dsc) [1884 B] Get:2 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main sniffit 0.5-1 (tar) [60.1 kB] Get:3 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main sniffit 0.5-1 (diff) [7164 B] Fetched 69.1 kB in 0s (819 kB/s) Download complete and in download only mode W: Download is performed unsandboxed as root as file 'sniffit_0.5-1.dsc' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied) dpkg-source: info: extracting sniffit in /build/sniffit-wed05Q/sniffit-0.5 dpkg-source: info: unpacking sniffit_0.5.orig.tar.gz dpkg-source: info: unpacking sniffit_0.5-1.debian.tar.xz I: running --customize-hook in shell: sh -c 'chroot "$1" env --unset=TMPDIR runuser builduser -c "cd /build/sniffit-wed05Q/sniffit-0.5 && env DEB_BUILD_OPTIONS="parallel=4" LANG="C.UTF-8" LC_ALL="C.UTF-8" SOURCE_DATE_EPOCH="1587348944" dpkg-buildpackage -uc -a amd64 --build=any"' exec /tmp/mmdebstrap.1uoCmA1J5p dpkg-buildpackage: info: source package sniffit dpkg-buildpackage: info: source version 0.5-1 dpkg-buildpackage: info: source distribution unstable dpkg-buildpackage: info: source changed by Joao Eriberto Mota Filho dpkg-source --before-build . dpkg-buildpackage: info: host architecture amd64 debian/rules clean dh clean dh_clean debian/rules binary-arch dh binary-arch dh_update_autotools_config -a dh_autoreconf -a configure.ac:12: installing './compile' configure.ac:62: installing './install-sh' configure.ac:62: installing './missing' src/Makefile.am: installing './depcomp' dh_auto_configure -a ./configure --build=x86_64-linux-gnu --prefix=/usr --includedir=\${prefix}/include --mandir=\${prefix}/share/man --infodir=\${prefix}/share/info --sysconfdir=/etc --localstatedir=/var --disable-silent-rules --libdir=\${prefix}/lib/x86_64-linux-gnu --runstatedir=/run --disable-maintainer-mode --disable-dependency-tracking configure: WARNING: unrecognized options: --disable-maintainer-mode checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking whether gcc understands -c and -o together... yes checking for main in -lncurses... yes checking for pcap_open_live in -lpcap... yes checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking arpa/inet.h usability... yes checking arpa/inet.h presence... yes checking for arpa/inet.h... yes checking fcntl.h usability... yes checking fcntl.h presence... yes checking for fcntl.h... yes checking netdb.h usability... yes checking netdb.h presence... yes checking for netdb.h... yes checking netinet/in.h usability... yes checking netinet/in.h presence... yes checking for netinet/in.h... yes checking for stdlib.h... (cached) yes checking for string.h... (cached) yes checking sys/socket.h usability... yes checking sys/socket.h presence... yes checking for sys/socket.h... yes checking sys/time.h usability... yes checking sys/time.h presence... yes checking for sys/time.h... yes checking termios.h usability... yes checking termios.h presence... yes checking for termios.h... yes checking for unistd.h... (cached) yes checking ncurses.h usability... yes checking ncurses.h presence... yes checking for ncurses.h... yes checking pcap.h usability... yes checking pcap.h presence... yes checking for pcap.h... yes checking for size_t... yes checking for pid_t... yes checking vfork.h usability... no checking vfork.h presence... no checking for vfork.h... no checking for fork... yes checking for vfork... yes checking for working fork... yes checking for working vfork... (cached) yes checking for stdlib.h... (cached) yes checking for GNU libc compatible malloc... yes checking for stdlib.h... (cached) yes checking for GNU libc compatible realloc... yes checking for alarm... yes checking for bzero... yes checking for gethostbyname... yes checking for socket... yes checking for strchr... yes checking for strdup... yes checking for strstr... yes checking for shmget... yes checking for atexit... yes checking size of unsigned short int... 2 checking size of unsigned long int... 8 unsigned long is NOT 4 bytes... hmmm... checking size of unsigned int... 4 checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... no checking for mawk... mawk checking whether make sets $(MAKE)... yes checking whether make supports the include directive... yes (GNU style) checking whether make supports nested variables... yes checking dependency style of gcc... none checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: creating src/Makefile config.status: creating config.h config.status: executing depfiles commands configure: WARNING: unrecognized options: --disable-maintainer-mode dh_auto_build -a make -j4 make[1]: Entering directory '/build/sniffit-wed05Q/sniffit-0.5' make all-recursive make[2]: Entering directory '/build/sniffit-wed05Q/sniffit-0.5' Making all in src make[3]: Entering directory '/build/sniffit-wed05Q/sniffit-0.5/src' gcc -DHAVE_CONFIG_H -I. -I.. -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DHAVE_LIBNCURSES=1 -DHAVE_SHMGET=1 -DHAVE_ATEXIT=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSIZEOF_UNSIGNED_SHORT_INT=2 -DSIZEOF_UNSIGNED_LONG_INT=8 -DSIZEOF_UNSIGNED_INT=4 -DUSE_32_INT=1 -DLINUX=1 -Wdate-time -D_FORTIFY_SOURCE=2 -lncurses -lpcap -g -O2 -fdebug-prefix-map=/build/sniffit-wed05Q/sniffit-0.5=. -fstack-protector-strong -Wformat -Werror=format-security -c -o sn_packets.o sn_packets.c gcc -DHAVE_CONFIG_H -I. -I.. -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DHAVE_LIBNCURSES=1 -DHAVE_SHMGET=1 -DHAVE_ATEXIT=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSIZEOF_UNSIGNED_SHORT_INT=2 -DSIZEOF_UNSIGNED_LONG_INT=8 -DSIZEOF_UNSIGNED_INT=4 -DUSE_32_INT=1 -DLINUX=1 -Wdate-time -D_FORTIFY_SOURCE=2 -lncurses -lpcap -g -O2 -fdebug-prefix-map=/build/sniffit-wed05Q/sniffit-0.5=. -fstack-protector-strong -Wformat -Werror=format-security -c -o sn_generation.o sn_generation.c gcc -DHAVE_CONFIG_H -I. -I.. -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DHAVE_LIBNCURSES=1 -DHAVE_SHMGET=1 -DHAVE_ATEXIT=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSIZEOF_UNSIGNED_SHORT_INT=2 -DSIZEOF_UNSIGNED_LONG_INT=8 -DSIZEOF_UNSIGNED_INT=4 -DUSE_32_INT=1 -DLINUX=1 -Wdate-time -D_FORTIFY_SOURCE=2 -lncurses -lpcap -g -O2 -fdebug-prefix-map=/build/sniffit-wed05Q/sniffit-0.5=. -fstack-protector-strong -Wformat -Werror=format-security -c -o sn_interface.o sn_interface.c gcc -DHAVE_CONFIG_H -I. -I.. -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DHAVE_LIBNCURSES=1 -DHAVE_SHMGET=1 -DHAVE_ATEXIT=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSIZEOF_UNSIGNED_SHORT_INT=2 -DSIZEOF_UNSIGNED_LONG_INT=8 -DSIZEOF_UNSIGNED_INT=4 -DUSE_32_INT=1 -DLINUX=1 -Wdate-time -D_FORTIFY_SOURCE=2 -lncurses -lpcap -g -O2 -fdebug-prefix-map=/build/sniffit-wed05Q/sniffit-0.5=. -fstack-protector-strong -Wformat -Werror=format-security -c -o sn_cfgfile.o sn_cfgfile.c sn_cfgfile.c: In function ‘clean_string’: sn_packets.c: In function ‘unwrap_packet’: sn_interface.c: In function ‘mask_status’: sn_packets.c:68:18: warning: passing argument 1 of ‘in_cksum’ from incompatible pointer type [-Wincompatible-pointer-types] 68 | if(in_cksum((sp+PROTO_HEAD),unwrapped->IP_len) != IPhead.checksum) | ~~~^~~~~~~~~~~~ | | | unsigned char * sn_packets.c:14:41: note: expected ‘short unsigned int *’ but argument is of type ‘unsigned char *’ 14 | unsigned short in_cksum(unsigned short *addr,int len) | ~~~~~~~~~~~~~~~~^~~~ sn_interface.c:195:3: warning: assignment to ‘unsigned char *’ from incompatible pointer type ‘_32_bit *’ {aka ‘unsigned int *’} [-Wincompatible-pointer-types] 195 | ad=&(mask->source_ip); | ^ sn_interface.c:201:3: warning: assignment to ‘unsigned char *’ from incompatible pointer type ‘_32_bit *’ {aka ‘unsigned int *’} [-Wincompatible-pointer-types] 201 | ad=&(mask->destination_ip); | ^ sn_interface.c: In function ‘interaction’: sn_interface.c:470:8: warning: implicit declaration of function ‘isprint’ [-Wimplicit-function-declaration] 470 | isprint(*(connection_data+i))? | ^~~~~~~ sn_cfgfile.c:131:7: warning: implicit declaration of function ‘isalnum’ [-Wimplicit-function-declaration] 131 | if( (isalnum(string[i]))||(string[i]=='.') ) | ^~~~~~~ sn_cfgfile.c: In function ‘clean_filename’: sn_cfgfile.c:155:8: warning: implicit declaration of function ‘iscntrl’ [-Wimplicit-function-declaration] 155 | if( !(iscntrl(string[i])) && !(isspace(string[i])) ) | ^~~~~~~ sn_cfgfile.c:155:33: warning: implicit declaration of function ‘isspace’ [-Wimplicit-function-declaration] 155 | if( !(iscntrl(string[i])) && !(isspace(string[i])) ) | ^~~~~~~ sn_generation.c: In function ‘exec_generate’: sn_generation.c:66:1: warning: implicit declaration of function ‘input_field’ [-Wimplicit-function-declaration] 66 | input_field(msg,NULL,0); | ^~~~~~~~~~~ sn_generation.c:67:1: warning: implicit declaration of function ‘forced_refresh’ [-Wimplicit-function-declaration] 67 | forced_refresh(); | ^~~~~~~~~~~~~~ sn_cfgfile.c: In function ‘read_cfg_file’: sn_cfgfile.c:463:2: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result] 463 | fgets(lineptr,259,cfgfile); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ sn_generation.c: In function ‘sp_fix_IP_packet’: sn_generation.c:205:22: warning: implicit declaration of function ‘in_cksum’ [-Wimplicit-function-declaration] 205 | sp_help_ip->checksum=in_cksum((unsigned short *) (sp->buffer), | ^~~~~~~~ gcc -DHAVE_CONFIG_H -I. -I.. -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DHAVE_LIBNCURSES=1 -DHAVE_SHMGET=1 -DHAVE_ATEXIT=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSIZEOF_UNSIGNED_SHORT_INT=2 -DSIZEOF_UNSIGNED_LONG_INT=8 -DSIZEOF_UNSIGNED_INT=4 -DUSE_32_INT=1 -DLINUX=1 -Wdate-time -D_FORTIFY_SOURCE=2 -lncurses -lpcap -g -O2 -fdebug-prefix-map=/build/sniffit-wed05Q/sniffit-0.5=. -fstack-protector-strong -Wformat -Werror=format-security -c -o sn_logfile.o sn_logfile.c sn_logfile.c: In function ‘open_logfile’: sn_logfile.c:96:8: warning: passing argument 1 of ‘fchmod’ makes integer from pointer without a cast [-Wint-conversion] 96 | fchmod(LogFILE, S_IWUSR|S_IRUSR); | ^~~~~~~ | | | FILE * {aka struct _IO_FILE *} In file included from sn_logfile.c:9: /usr/include/x86_64-linux-gnu/sys/stat.h:293:24: note: expected ‘int’ but argument is of type ‘FILE *’ {aka ‘struct _IO_FILE *’} 293 | extern int fchmod (int __fd, __mode_t __mode) __THROW; | ~~~~^~~~ gcc -DHAVE_CONFIG_H -I. -I.. -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DHAVE_LIBNCURSES=1 -DHAVE_SHMGET=1 -DHAVE_ATEXIT=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSIZEOF_UNSIGNED_SHORT_INT=2 -DSIZEOF_UNSIGNED_LONG_INT=8 -DSIZEOF_UNSIGNED_INT=4 -DUSE_32_INT=1 -DLINUX=1 -Wdate-time -D_FORTIFY_SOURCE=2 -lncurses -lpcap -g -O2 -fdebug-prefix-map=/build/sniffit-wed05Q/sniffit-0.5=. -fstack-protector-strong -Wformat -Werror=format-security -c -o sn_resolv.o sn_resolv.c gcc -DHAVE_CONFIG_H -I. -I.. -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DHAVE_LIBNCURSES=1 -DHAVE_SHMGET=1 -DHAVE_ATEXIT=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSIZEOF_UNSIGNED_SHORT_INT=2 -DSIZEOF_UNSIGNED_LONG_INT=8 -DSIZEOF_UNSIGNED_INT=4 -DUSE_32_INT=1 -DLINUX=1 -Wdate-time -D_FORTIFY_SOURCE=2 -lncurses -lpcap -g -O2 -fdebug-prefix-map=/build/sniffit-wed05Q/sniffit-0.5=. -fstack-protector-strong -Wformat -Werror=format-security -c -o sniffit.o sniffit.c In file included from sn_plugins.h:23, from sniffit.c:35: dns_plugin.plug: In function ‘PL_DNS_plugin’: dns_plugin.plug:87:12: warning: assignment to ‘struct PL_DNS_header *’ from incompatible pointer type ‘struct DNS_header *’ [-Wincompatible-pointer-types] 87 | dns_dnshead= (struct DNS_header *) (dns_buffer+udp_start+sizeof(struct UDP_header)); | ^ sniffit.c: In function ‘strlower’: sniffit.c:127:22: warning: implicit declaration of function ‘isupper’ [-Wimplicit-function-declaration] 127 | *(string + i) = (isupper (*(string + i)) ? tolower (*(string + i)) : *(string + i)); | ^~~~~~~ sniffit.c:127:48: warning: implicit declaration of function ‘tolower’ [-Wimplicit-function-declaration] 127 | *(string + i) = (isupper (*(string + i)) ? tolower (*(string + i)) : *(string + i)); | ^~~~~~~ sniffit.c: In function ‘record_buf’: sniffit.c:386:11: warning: implicit declaration of function ‘isprint’ [-Wimplicit-function-declaration] 386 | if (isprint (data[i])) | ^~~~~~~ sniffit.c: In function ‘packethandler’: sniffit.c:1107:43: warning: passing argument 2 of ‘pcap_dump’ from incompatible pointer type [-Wincompatible-pointer-types] 1107 | pcap_dump((unsigned char *) dev_dump, p_header, sp); | ^~~~~~~~ | | | const struct packetheader * In file included from /usr/include/pcap.h:43, from sniffit.c:24: /usr/include/pcap/pcap.h:517:35: note: expected ‘const struct pcap_pkthdr *’ but argument is of type ‘const struct packetheader *’ 517 | PCAP_API void pcap_dump(u_char *, const struct pcap_pkthdr *, const u_char *); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ sniffit.c:1108:12: warning: returning ‘int’ from a function with return type ‘pcap_handler’ {aka ‘void (*)(unsigned char *, const struct pcap_pkthdr *, const unsigned char *)’} makes pointer from integer without a cast [-Wint-conversion] 1108 | return 1; | ^ sniffit.c:1154:32: warning: format ‘%lX’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘__uint32_t’ {aka ‘unsigned int’} [-Wformat=] 1154 | printf (" SEQ (hex): %lX ", ntohl (tcphead.seq_nr)); | ~~^ | | | long unsigned int | %X sniffit.c:1156:24: warning: format ‘%lX’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘__uint32_t’ {aka ‘unsigned int’} [-Wformat=] 1156 | printf ("ACK (hex): %lX\n", ntohl (tcphead.ACK_nr)); | ~~^ | | | long unsigned int | %X sniffit.c:1189:10: warning: returning ‘int’ from a function with return type ‘pcap_handler’ {aka ‘void (*)(unsigned char *, const struct pcap_pkthdr *, const unsigned char *)’} makes pointer from integer without a cast [-Wint-conversion] 1189 | return 1; | ^ sniffit.c:1193:10: warning: returning ‘int’ from a function with return type ‘pcap_handler’ {aka ‘void (*)(unsigned char *, const struct pcap_pkthdr *, const unsigned char *)’} makes pointer from integer without a cast [-Wint-conversion] 1193 | return 1; | ^ sniffit.c:1259:14: warning: returning ‘int’ from a function with return type ‘pcap_handler’ {aka ‘void (*)(unsigned char *, const struct pcap_pkthdr *, const unsigned char *)’} makes pointer from integer without a cast [-Wint-conversion] 1259 | return 1; | ^ In file included from sniffit.c:1270: sn_analyse.c:13:9: warning: returning ‘int’ from a function with return type ‘pcap_handler’ {aka ‘void (*)(unsigned char *, const struct pcap_pkthdr *, const unsigned char *)’} makes pointer from integer without a cast [-Wint-conversion] 13 | return 1; | ^ sn_analyse.c:29:10: warning: returning ‘int’ from a function with return type ‘pcap_handler’ {aka ‘void (*)(unsigned char *, const struct pcap_pkthdr *, const unsigned char *)’} makes pointer from integer without a cast [-Wint-conversion] 29 | return 1; | ^ sn_analyse.c:43:37: warning: returning ‘int’ from a function with return type ‘pcap_handler’ {aka ‘void (*)(unsigned char *, const struct pcap_pkthdr *, const unsigned char *)’} makes pointer from integer without a cast [-Wint-conversion] 43 | if((dummy&FIN)||(dummy&RST)) return 1; /* needed, cauz entry don't exist */ | ^ sn_analyse.c:53:51: warning: passing argument 3 of ‘sbuf_update’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 53 | sbuf_update(dummy_pointer,ntohl(tcphead.seq_nr),data,info.DATA_len); | ^~~~ sniffit.c:413:13: note: expected ‘char *’ but argument is of type ‘const unsigned char *’ 413 | char *data, int len) | ~~~~~~^~~~ In file included from sniffit.c:1270: sn_analyse.c:83:52: warning: passing argument 3 of ‘record_buf’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 83 | record_buf(dummy_pointer,ntohl(tcphead.seq_nr),data,info.DATA_len,0); | ^~~~ sniffit.c:358:12: note: expected ‘char *’ but argument is of type ‘const unsigned char *’ 358 | char *data, int len, int type) | ~~~~~~^~~~ In file included from sniffit.c:1270: sn_analyse.c:95:54: warning: passing argument 3 of ‘record_buf’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 95 | record_buf(dummy_pointer,ntohl(tcphead.seq_nr),data,info.DATA_len,0); | ^~~~ sniffit.c:358:12: note: expected ‘char *’ but argument is of type ‘const unsigned char *’ 358 | char *data, int len, int type) | ~~~~~~^~~~ In file included from sniffit.c:1270: sn_analyse.c:117:51: warning: passing argument 3 of ‘sbuf_update’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 117 | sbuf_update(dummy_pointer,ntohl(tcphead.seq_nr),data,info.DATA_len); | ^~~~ sniffit.c:413:13: note: expected ‘char *’ but argument is of type ‘const unsigned char *’ 413 | char *data, int len) | ~~~~~~^~~~ In file included from sniffit.c:1270: sn_analyse.c:200:8: warning: returning ‘int’ from a function with return type ‘pcap_handler’ {aka ‘void (*)(unsigned char *, const struct pcap_pkthdr *, const unsigned char *)’} makes pointer from integer without a cast [-Wint-conversion] 200 | return 1; | ^ sn_analyse.c:201:8: warning: returning ‘int’ from a function with return type ‘pcap_handler’ {aka ‘void (*)(unsigned char *, const struct pcap_pkthdr *, const unsigned char *)’} makes pointer from integer without a cast [-Wint-conversion] 201 | return 1; /* DON'T FORGET THEM!!!! */ | ^ sniffit.c:1339:14: warning: returning ‘int’ from a function with return type ‘pcap_handler’ {aka ‘void (*)(unsigned char *, const struct pcap_pkthdr *, const unsigned char *)’} makes pointer from integer without a cast [-Wint-conversion] 1339 | return 1; | ^ sniffit.c:1372:14: warning: returning ‘int’ from a function with return type ‘pcap_handler’ {aka ‘void (*)(unsigned char *, const struct pcap_pkthdr *, const unsigned char *)’} makes pointer from integer without a cast [-Wint-conversion] 1372 | return 1; | ^ In file included from sniffit.c:1458: sn_conn_desc.c: In function ‘check_mask’: sn_conn_desc.c:24:12: warning: implicit declaration of function ‘isalnum’ [-Wimplicit-function-declaration] 24 | if( (isalnum(data[i]) || ispunct(data[i]) || data[i]==' ')&&(j<(*DESC_LEN)-1) ) | ^~~~~~~ sn_conn_desc.c:24:32: warning: implicit declaration of function ‘ispunct’ [-Wimplicit-function-declaration] 24 | if( (isalnum(data[i]) || ispunct(data[i]) || data[i]==' ')&&(j<(*DESC_LEN)-1) ) | ^~~~~~~ sn_conn_desc.c:27:15: warning: implicit declaration of function ‘isspace’ [-Wimplicit-function-declaration] 27 | {if( (isspace(data[i]) && data[i]!=' ')&&(j<(*DESC_LEN)-1) ) | ^~~~~~~ sniffit.c: In function ‘main’: sniffit.c:1522:20: warning: passing argument 2 of ‘signal’ from incompatible pointer type [-Wincompatible-pointer-types] 1522 | signal (SIGINT, my_exit); /* graceful termination in different ways */ | ^~~~~~~ | | | void (*)(void) In file included from sniffit.c:7: /usr/include/signal.h:88:57: note: expected ‘__sighandler_t’ {aka ‘void (*)(int)’} but argument is of type ‘void (*)(void)’ 88 | extern __sighandler_t signal (int __sig, __sighandler_t __handler) | ~~~~~~~~~~~~~~~^~~~~~~~~ sniffit.c:1523:20: warning: passing argument 2 of ‘signal’ from incompatible pointer type [-Wincompatible-pointer-types] 1523 | signal (SIGHUP, my_exit); | ^~~~~~~ | | | void (*)(void) In file included from sniffit.c:7: /usr/include/signal.h:88:57: note: expected ‘__sighandler_t’ {aka ‘void (*)(int)’} but argument is of type ‘void (*)(void)’ 88 | extern __sighandler_t signal (int __sig, __sighandler_t __handler) | ~~~~~~~~~~~~~~~^~~~~~~~~ sniffit.c:1524:20: warning: passing argument 2 of ‘signal’ from incompatible pointer type [-Wincompatible-pointer-types] 1524 | signal (SIGTERM, my_exit); | ^~~~~~~ | | | void (*)(void) In file included from sniffit.c:7: /usr/include/signal.h:88:57: note: expected ‘__sighandler_t’ {aka ‘void (*)(int)’} but argument is of type ‘void (*)(void)’ 88 | extern __sighandler_t signal (int __sig, __sighandler_t __handler) | ~~~~~~~~~~~~~~~^~~~~~~~~ sniffit.c:1563:36: warning: macro "__DATE__" might prevent reproducible builds [-Wdate-time] 1563 | printf ("Binary build %s %s\n", __DATE__, __TIME__); | ^~~~~~~~ sniffit.c:1563:46: warning: macro "__TIME__" might prevent reproducible builds [-Wdate-time] 1563 | printf ("Binary build %s %s\n", __DATE__, __TIME__); | ^~~~~~~~ sniffit.c:1773:5: warning: ‘pcap_lookupdev’ is deprecated: use 'pcap_findalldevs' and use the first device [-Wdeprecated-declarations] 1773 | if((dev = pcap_lookupdev (ebuf)) == NULL) | ^~ In file included from /usr/include/pcap.h:43, from sniffit.c:24: /usr/include/pcap/pcap.h:328:16: note: declared here 328 | PCAP_API char *pcap_lookupdev(char *) | ^~~~~~~~~~~~~~ sniffit.c:1800:20: warning: extra tokens at end of #ifdef directive 1800 | #ifdef PLUGIN0_INIT() | ^ sniffit.c:1804:20: warning: extra tokens at end of #ifdef directive 1804 | #ifdef PLUGIN1_INIT() | ^ sniffit.c:1808:20: warning: extra tokens at end of #ifdef directive 1808 | #ifdef PLUGIN2_INIT() | ^ sniffit.c:1812:20: warning: extra tokens at end of #ifdef directive 1812 | #ifdef PLUGIN3_INIT() | ^ sniffit.c:1816:20: warning: extra tokens at end of #ifdef directive 1816 | #ifdef PLUGIN4_INIT() | ^ sniffit.c:1820:20: warning: extra tokens at end of #ifdef directive 1820 | #ifdef PLUGIN5_INIT() | ^ sniffit.c:1824:20: warning: extra tokens at end of #ifdef directive 1824 | #ifdef PLUGIN6_INIT() | ^ sniffit.c:1828:20: warning: extra tokens at end of #ifdef directive 1828 | #ifdef PLUGIN7_INIT() | ^ sniffit.c:1832:20: warning: extra tokens at end of #ifdef directive 1832 | #ifdef PLUGIN8_INIT() | ^ sniffit.c:1836:20: warning: extra tokens at end of #ifdef directive 1836 | #ifdef PLUGIN9_INIT() | ^ sniffit.c:1864:24: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long unsigned int’ [-Wformat=] 1864 | printf ("Shared %d\n", memsize); | ~^ ~~~~~~~ | | | | int long unsigned int | %ld sniffit.c:1867:18: warning: assignment to ‘int *’ from incompatible pointer type ‘char *’ [-Wincompatible-pointer-types] 1867 | DATAlength = timing + sizeof (int); | ^ sniffit.c:1868:23: warning: assignment to ‘char *’ from incompatible pointer type ‘int *’ [-Wincompatible-pointer-types] 1868 | connection_data = DATAlength + sizeof (int); | ^ sniffit.c:1869:18: warning: assignment to ‘int *’ from incompatible pointer type ‘char *’ [-Wincompatible-pointer-types] 1869 | LISTlength = connection_data + LENGTH_OF_INTERPROC_DATA; | ^ sniffit.c:1870:12: warning: assignment to ‘struct snif_mask *’ from incompatible pointer type ‘int *’ [-Wincompatible-pointer-types] 1870 | mask = LISTlength + sizeof (int); | ^ sniffit.c:1871:26: warning: assignment to ‘char *’ from incompatible pointer type ‘struct snif_mask *’ [-Wincompatible-pointer-types] 1871 | logged_connections = mask + sizeof (struct snif_mask); | ^ sniffit.c:1874:25: warning: assignment to ‘unsigned int *’ from incompatible pointer type ‘char *’ [-Wincompatible-pointer-types] 1874 | TCP_nr_of_packets = running_connections + (sizeof (struct shared_conn_data) * CONNECTION_CAPACITY); | ^ sniffit.c:1875:28: warning: assignment to ‘long unsigned int *’ from incompatible pointer type ‘unsigned int *’ [-Wincompatible-pointer-types] 1875 | TCP_bytes_in_packets = TCP_nr_of_packets + sizeof (int); | ^ sniffit.c:1876:26: warning: assignment to ‘unsigned int *’ from incompatible pointer type ‘long unsigned int *’ [-Wincompatible-pointer-types] 1876 | ICMP_nr_of_packets = TCP_bytes_in_packets + sizeof (unsigned long); | ^ sniffit.c:1878:28: warning: assignment to ‘long unsigned int *’ from incompatible pointer type ‘unsigned int *’ [-Wincompatible-pointer-types] 1878 | UDP_bytes_in_packets = UDP_nr_of_packets + sizeof (int); | ^ sniffit.c:1879:24: warning: assignment to ‘unsigned int *’ from incompatible pointer type ‘long unsigned int *’ [-Wincompatible-pointer-types] 1879 | IP_nr_of_packets = UDP_bytes_in_packets + sizeof (unsigned long); | ^ sniffit.c:1894:11: warning: passing argument 3 of ‘pcap_loop’ from incompatible pointer type [-Wincompatible-pointer-types] 1894 | interactive_packethandler, NULL) < 0) | ^~~~~~~~~~~~~~~~~~~~~~~~~ | | | void (* (*)(char *, const struct packetheader *, const unsigned char *))(u_char *, const struct pcap_pkthdr *, const u_char *) {aka void (* (*)(char *, const struct packetheader *, const unsigned char *))(unsigned char *, const struct pcap_pkthdr *, const unsigned char *)} In file included from /usr/include/pcap.h:43, from sniffit.c:24: /usr/include/pcap/pcap.h:442:39: note: expected ‘pcap_handler’ {aka ‘void (*)(unsigned char *, const struct pcap_pkthdr *, const unsigned char *)’} but argument is of type ‘void (* (*)(char *, const struct packetheader *, const unsigned char *))(u_char *, const struct pcap_pkthdr *, const u_char *)’ {aka ‘void (* (*)(char *, const struct packetheader *, const unsigned char *))(unsigned char *, const struct pcap_pkthdr *, const unsigned char *)’} 442 | PCAP_API int pcap_loop(pcap_t *, int, pcap_handler, u_char *); | ^~~~~~~~~~~~ sniffit.c:1927:41: warning: passing argument 3 of ‘pcap_loop’ from incompatible pointer type [-Wincompatible-pointer-types] 1927 | switch (pcap_loop (dev_desc, CNT, packethandler, (unsigned char *) &ipaddr)) | ^~~~~~~~~~~~~ | | | void (* (*)(unsigned char *, const struct packetheader *, const unsigned char *))(u_char *, const struct pcap_pkthdr *, const u_char *) {aka void (* (*)(unsigned char *, const struct packetheader *, const unsigned char *))(unsigned char *, const struct pcap_pkthdr *, const unsigned char *)} In file included from /usr/include/pcap.h:43, from sniffit.c:24: /usr/include/pcap/pcap.h:442:39: note: expected ‘pcap_handler’ {aka ‘void (*)(unsigned char *, const struct pcap_pkthdr *, const unsigned char *)’} but argument is of type ‘void (* (*)(unsigned char *, const struct packetheader *, const unsigned char *))(u_char *, const struct pcap_pkthdr *, const u_char *)’ {aka ‘void (* (*)(unsigned char *, const struct packetheader *, const unsigned char *))(unsigned char *, const struct pcap_pkthdr *, const unsigned char *)’} 442 | PCAP_API int pcap_loop(pcap_t *, int, pcap_handler, u_char *); | ^~~~~~~~~~~~ gcc -lncurses -lpcap -g -O2 -fdebug-prefix-map=/build/sniffit-wed05Q/sniffit-0.5=. -fstack-protector-strong -Wformat -Werror=format-security -Wl,-z,relro -Wl,-z,now -o sniffit sn_packets.o sn_generation.o sn_interface.o sn_cfgfile.o sn_logfile.o sn_resolv.o sniffit.o -lpcap -lncurses make[3]: Leaving directory '/build/sniffit-wed05Q/sniffit-0.5/src' make[3]: Entering directory '/build/sniffit-wed05Q/sniffit-0.5' make[3]: Leaving directory '/build/sniffit-wed05Q/sniffit-0.5' make[2]: Leaving directory '/build/sniffit-wed05Q/sniffit-0.5' make[1]: Leaving directory '/build/sniffit-wed05Q/sniffit-0.5' dh_auto_test -a make -j4 check VERBOSE=1 make[1]: Entering directory '/build/sniffit-wed05Q/sniffit-0.5' Making check in src make[2]: Entering directory '/build/sniffit-wed05Q/sniffit-0.5/src' make[2]: Nothing to be done for 'check'. make[2]: Leaving directory '/build/sniffit-wed05Q/sniffit-0.5/src' make[2]: Entering directory '/build/sniffit-wed05Q/sniffit-0.5' make[2]: Leaving directory '/build/sniffit-wed05Q/sniffit-0.5' make[1]: Leaving directory '/build/sniffit-wed05Q/sniffit-0.5' create-stamp debian/debhelper-build-stamp dh_testroot -a dh_prep -a dh_auto_install -a make -j4 install DESTDIR=/build/sniffit-wed05Q/sniffit-0.5/debian/sniffit AM_UPDATE_INFO_DIR=no make[1]: Entering directory '/build/sniffit-wed05Q/sniffit-0.5' Making install in src make[2]: Entering directory '/build/sniffit-wed05Q/sniffit-0.5/src' make[3]: Entering directory '/build/sniffit-wed05Q/sniffit-0.5/src' make[3]: Nothing to be done for 'install-data-am'. /bin/mkdir -p '/build/sniffit-wed05Q/sniffit-0.5/debian/sniffit/usr/sbin' /usr/bin/install -c sniffit '/build/sniffit-wed05Q/sniffit-0.5/debian/sniffit/usr/sbin' make[3]: Leaving directory '/build/sniffit-wed05Q/sniffit-0.5/src' make[2]: Leaving directory '/build/sniffit-wed05Q/sniffit-0.5/src' make[2]: Entering directory '/build/sniffit-wed05Q/sniffit-0.5' make[3]: Entering directory '/build/sniffit-wed05Q/sniffit-0.5' make[3]: Nothing to be done for 'install-exec-am'. /bin/mkdir -p '/build/sniffit-wed05Q/sniffit-0.5/debian/sniffit/usr/share/man/man5' /bin/mkdir -p '/build/sniffit-wed05Q/sniffit-0.5/debian/sniffit/usr/share/man/man8' /usr/bin/install -c -m 644 man/sniffit.5 '/build/sniffit-wed05Q/sniffit-0.5/debian/sniffit/usr/share/man/man5' /usr/bin/install -c -m 644 man/sniffit.8 '/build/sniffit-wed05Q/sniffit-0.5/debian/sniffit/usr/share/man/man8' make[3]: Leaving directory '/build/sniffit-wed05Q/sniffit-0.5' make[2]: Leaving directory '/build/sniffit-wed05Q/sniffit-0.5' make[1]: Leaving directory '/build/sniffit-wed05Q/sniffit-0.5' dh_install -a dh_installdocs -a dh_installchangelogs -a dh_installexamples -a dh_installman -a dh_perl -a dh_link -a dh_strip_nondeterminism -a dh_compress -a dh_fixperms -a dh_missing -a dh_dwz -a dh_strip -a dh_makeshlibs -a dh_shlibdeps -a dh_installdeb -a dh_gencontrol -a dh_md5sums -a dh_builddeb -a dpkg-deb: building package 'sniffit' in '../sniffit_0.5-1_amd64.deb'. dpkg-deb: building package 'sniffit-dbgsym' in '../sniffit-dbgsym_0.5-1_amd64.deb'. dpkg-genbuildinfo --build=any dpkg-genchanges --build=any >../sniffit_0.5-1_amd64.changes dpkg-genchanges: info: binary-only arch-specific upload (source code and arch-indep packages not included) dpkg-source --after-build . dpkg-buildpackage: info: binary-only upload (no source included) I: running special hook: sync-out /build/sniffit-wed05Q /tmp/sniffit-0.5-1rycmzs0a I: cleaning package lists and apt cache... I: creating tarball... I: done I: removing tempdir /tmp/mmdebstrap.1uoCmA1J5p... I: success in 290.2797 seconds md5: sniffit-dbgsym_0.5-1_amd64.deb: OK md5: sniffit_0.5-1_amd64.deb: OK sha1: sniffit-dbgsym_0.5-1_amd64.deb: OK sha1: sniffit_0.5-1_amd64.deb: OK sha256: sniffit-dbgsym_0.5-1_amd64.deb: OK sha256: sniffit_0.5-1_amd64.deb: OK Checksums: OK