Input buildinfo: https://buildinfos.debian.net/buildinfo-pool/s/sniffit/sniffit_0.5-2_amd64.buildinfo Use metasnap for getting required timestamps New buildinfo file: /tmp/sniffit-0.5-24kc287i2/sniffit_0.5-2_amd64.buildinfo Get source package info: sniffit=0.5-2 Source URL: http://snapshot.notset.fr/mr/package/sniffit/0.5-2/srcfiles?fileinfo=1 env -i PATH=/usr/sbin:/usr/bin:/sbin:/bin TMPDIR=/tmp mmdebstrap --arch=amd64 --include=autoconf=2.71-2 automake=1:1.16.4-1 autopoint=0.21-4 autotools-dev=20180224.1+nmu1 base-files=12 base-passwd=3.5.51 bash=5.1-3+b1 binutils=2.37-5 binutils-common=2.37-5 binutils-x86-64-linux-gnu=2.37-5 bsdextrautils=2.37.2-1 bsdutils=1:2.37.2-1 build-essential=12.9 bzip2=1.0.8-4 coreutils=8.32-4+b1 cpp=4:10.2.1-1 cpp-10=10.3.0-8 dash=0.5.11+git20210120+802ebd4-1 debconf=1.5.77 debhelper=13.5.1 debianutils=5.4-3 dh-autoreconf=20 dh-strip-nondeterminism=1.12.0-1 diffutils=1:3.7-5 dpkg=1.20.9 dpkg-dev=1.20.9 dwz=0.14-1 file=1:5.39-3 findutils=4.8.0-1 g++=4:10.2.1-1 g++-10=10.3.0-8 gcc=4:10.2.1-1 gcc-10=10.3.0-8 gcc-10-base=10.3.0-8 gcc-11-base=11.2.0-3 gettext=0.21-4 gettext-base=0.21-4 grep=3.7-1 groff-base=1.22.4-6 gzip=1.10-4 hostname=3.23 init-system-helpers=1.60 intltool-debian=0.35.0+20060710.5 libacl1=2.3.1-1 libarchive-zip-perl=1.68-1 libasan6=11.2.0-3 libatomic1=11.2.0-3 libattr1=1:2.5.1-1 libaudit-common=1:3.0.5-1 libaudit1=1:3.0.5-1 libbinutils=2.37-5 libblkid1=2.37.2-1 libbz2-1.0=1.0.8-4 libc-bin=2.31-17 libc-dev-bin=2.31-17 libc6=2.31-17 libc6-dev=2.31-17 libcap-ng0=0.7.9-2.2+b1 libcc1-0=11.2.0-3 libcom-err2=1.46.4-1 libcrypt-dev=1:4.4.25-1 libcrypt1=1:4.4.25-1 libctf-nobfd0=2.37-5 libctf0=2.37-5 libdb5.3=5.3.28+dfsg1-0.8 libdbus-1-3=1.12.20-2 libdbus-1-dev=1.12.20-2 libdebconfclient0=0.260 libdebhelper-perl=13.5.1 libdpkg-perl=1.20.9 libelf1=0.185-2 libffi7=3.3-6 libfile-stripnondeterminism-perl=1.12.0-1 libgcc-10-dev=10.3.0-8 libgcc-s1=11.2.0-3 libgcrypt20=1.8.7-6 libgdbm-compat4=1.20-1 libgdbm6=1.20-1 libglib2.0-0=2.68.4-1 libgmp10=2:6.2.1+dfsg-1 libgomp1=11.2.0-3 libgpg-error0=1.42-3 libgssapi-krb5-2=1.18.3-7 libicu67=67.1-7 libisl23=0.23-1 libitm1=11.2.0-3 libk5crypto3=1.18.3-7 libkeyutils1=1.6.1-2 libkrb5-3=1.18.3-7 libkrb5support0=1.18.3-7 liblsan0=11.2.0-3 liblz4-1=1.9.3-2 liblzma5=5.2.5-2 libmagic-mgc=1:5.39-3 libmagic1=1:5.39-3 libmount1=2.37.2-1 libmpc3=1.2.0-1 libmpfr6=4.1.0-3 libncurses-dev=6.2+20201114-4 libncurses5-dev=6.2+20201114-4 libncurses6=6.2+20201114-4 libncursesw6=6.2+20201114-4 libnsl-dev=1.3.0-2 libnsl2=1.3.0-2 libpam-modules=1.4.0-10 libpam-modules-bin=1.4.0-10 libpam-runtime=1.4.0-10 libpam0g=1.4.0-10 libpcap-dev=1.10.1-3 libpcap0.8=1.10.1-3 libpcap0.8-dev=1.10.1-3 libpcre2-8-0=10.36-2 libpcre3=2:8.39-13 libperl5.32=5.32.1-5 libpipeline1=1.5.3-1 libquadmath0=11.2.0-3 libseccomp2=2.5.1-1 libselinux1=3.1-3 libsigsegv2=2.13-1 libsmartcols1=2.37.2-1 libssl1.1=1.1.1l-1 libstdc++-10-dev=10.3.0-8 libstdc++6=11.2.0-3 libsub-override-perl=0.09-2 libsystemd0=247.9-1 libtinfo6=6.2+20201114-4 libtirpc-common=1.3.2-2 libtirpc-dev=1.3.2-2 libtirpc3=1.3.2-2 libtool=2.4.6-15 libtsan0=11.2.0-3 libubsan1=11.2.0-3 libuchardet0=0.0.7-1 libudev1=247.9-1 libunistring2=0.9.10-6 libuuid1=2.37.2-1 libxml2=2.9.12+dfsg-3 libzstd1=1.4.8+dfsg-2.1 linux-libc-dev=5.10.46-4 login=1:4.8.1-1 lsb-base=11.1.0 m4=1.4.18-5 make=4.3-4.1 man-db=2.9.4-2 mawk=1.3.4.20200120-2 ncurses-base=6.2+20201114-4 ncurses-bin=6.2+20201114-4 patch=2.7.6-7 perl=5.32.1-5 perl-base=5.32.1-5 perl-modules-5.32=5.32.1-5 pkg-config=0.29.2-1 po-debconf=1.0.21+nmu1 rpcsvc-proto=1.4.2-4 sed=4.8-1 sensible-utils=0.0.17 sysvinit-utils=2.96-7 tar=1.34+dfsg-1 util-linux=2.37.2-1 xz-utils=5.2.5-2 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/20210907T024355Z/ bookworm main deb-src http://snapshot.notset.fr/archive/debian/20210907T024355Z/ bookworm main deb http://snapshot.notset.fr/archive/debian/20210902T205533Z/ 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-2 && mkdir -p /build/sniffit-BJKu4e && dpkg-source --no-check -x /*.dsc /build/sniffit-BJKu4e/sniffit-0.5 && chown -R builduser:builduser /build/sniffit-BJKu4e" --customize-hook=chroot "$1" env --unset=TMPDIR runuser builduser -c "cd /build/sniffit-BJKu4e/sniffit-0.5 && env DEB_BUILD_OPTIONS="parallel=4" LC_ALL="C.UTF-8" LC_COLLATE="C.UTF-8" SOURCE_DATE_EPOCH="1630778958" DEB_BUILD_OPTIONS=nocheck dpkg-buildpackage -uc -a amd64 --build=any" --customize-hook=sync-out /build/sniffit-BJKu4e /tmp/sniffit-0.5-24kc287i2 bookworm /dev/null deb http://snapshot.notset.fr/archive/debian/20210902T205533Z unstable main I: automatically chosen mode: root I: chroot architecture amd64 is equal to the host's architecture I: automatically chosen format: null I: using /tmp/mmdebstrap.FaJZ5c2wia 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.FaJZ5c2wia Reading package lists... Building dependency tree... util-linux is already the newest version (2.37.2-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 134 kB of archives. After this operation, 397 kB of additional disk space will be used. Get:1 http://snapshot.notset.fr/archive/debian/20210902T205533Z unstable/main amd64 libfakeroot amd64 1.25.3-1.1 [47.0 kB] Get:2 http://snapshot.notset.fr/archive/debian/20210902T205533Z unstable/main amd64 fakeroot amd64 1.25.3-1.1 [87.0 kB] debconf: delaying package configuration, since apt-utils is not installed Fetched 134 kB in 0s (1028 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 ... 4670 files and directories currently installed.) Preparing to unpack .../libfakeroot_1.25.3-1.1_amd64.deb ... Unpacking libfakeroot:amd64 (1.25.3-1.1) ... Selecting previously unselected package fakeroot. Preparing to unpack .../fakeroot_1.25.3-1.1_amd64.deb ... Unpacking fakeroot (1.25.3-1.1) ... Setting up libfakeroot:amd64 (1.25.3-1.1) ... Setting up fakeroot (1.25.3-1.1) ... update-alternatives: using /usr/bin/fakeroot-sysv to provide /usr/bin/fakeroot (fakeroot) in auto mode Processing triggers for libc-bin (2.31-17) ... 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/20210907T024355Z/ bookworm main deb-src http://snapshot.notset.fr/archive/debian/20210907T024355Z/ bookworm main deb http://snapshot.notset.fr/archive/debian/20210902T205533Z/ unstable main' >> /etc/apt/sources.list && apt-get update"' exec /tmp/mmdebstrap.FaJZ5c2wia Get:1 http://snapshot.notset.fr/archive/debian/20210907T024355Z bookworm InRelease [112 kB] Hit:2 http://snapshot.notset.fr/archive/debian/20210902T205533Z unstable InRelease Ign:3 http://snapshot.notset.fr/archive/debian/20210907T024355Z bookworm/main Sources Ign:4 http://snapshot.notset.fr/archive/debian/20210907T024355Z bookworm/main amd64 Packages Ign:3 http://snapshot.notset.fr/archive/debian/20210907T024355Z bookworm/main Sources Ign:4 http://snapshot.notset.fr/archive/debian/20210907T024355Z bookworm/main amd64 Packages Ign:3 http://snapshot.notset.fr/archive/debian/20210907T024355Z bookworm/main Sources Ign:4 http://snapshot.notset.fr/archive/debian/20210907T024355Z bookworm/main amd64 Packages Get:3 http://snapshot.notset.fr/archive/debian/20210907T024355Z bookworm/main Sources [11.6 MB] Get:4 http://snapshot.notset.fr/archive/debian/20210907T024355Z bookworm/main amd64 Packages [11.3 MB] Fetched 23.0 MB in 20s (1168 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.FaJZ5c2wia I: running --customize-hook in shell: sh -c 'chroot "$1" env sh -c "apt-get source --only-source -d sniffit=0.5-2 && mkdir -p /build/sniffit-BJKu4e && dpkg-source --no-check -x /*.dsc /build/sniffit-BJKu4e/sniffit-0.5 && chown -R builduser:builduser /build/sniffit-BJKu4e"' exec /tmp/mmdebstrap.FaJZ5c2wia 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/20210907T024355Z bookworm/main sniffit 0.5-2 (dsc) [1884 B] Get:2 http://snapshot.notset.fr/archive/debian/20210907T024355Z bookworm/main sniffit 0.5-2 (tar) [60.1 kB] Get:3 http://snapshot.notset.fr/archive/debian/20210907T024355Z bookworm/main sniffit 0.5-2 (diff) [7184 B] Fetched 69.1 kB in 0s (698 kB/s) Download complete and in download only mode W: Download is performed unsandboxed as root as file 'sniffit_0.5-2.dsc' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied) dpkg-source: info: extracting sniffit in /build/sniffit-BJKu4e/sniffit-0.5 dpkg-source: info: unpacking sniffit_0.5.orig.tar.gz dpkg-source: info: unpacking sniffit_0.5-2.debian.tar.xz I: running --customize-hook in shell: sh -c 'chroot "$1" env --unset=TMPDIR runuser builduser -c "cd /build/sniffit-BJKu4e/sniffit-0.5 && env DEB_BUILD_OPTIONS="parallel=4" LC_ALL="C.UTF-8" LC_COLLATE="C.UTF-8" SOURCE_DATE_EPOCH="1630778958" DEB_BUILD_OPTIONS=nocheck dpkg-buildpackage -uc -a amd64 --build=any"' exec /tmp/mmdebstrap.FaJZ5c2wia dpkg-buildpackage: info: source package sniffit dpkg-buildpackage: info: source version 0.5-2 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:28: installing './config.guess' configure.ac:28: installing './config.sub' 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-option-checking --disable-silent-rules --libdir=\${prefix}/lib/x86_64-linux-gnu --runstatedir=/run --disable-maintainer-mode --disable-dependency-tracking 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 the compiler supports GNU C... yes checking whether gcc accepts -g... yes checking for gcc option to enable C11 features... 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 for stdio.h... yes checking for stdlib.h... yes checking for string.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for strings.h... yes checking for sys/stat.h... yes checking for sys/types.h... yes checking for unistd.h... yes checking for vfork.h... no checking for arpa/inet.h... yes checking for fcntl.h... yes checking for netdb.h... yes checking for netinet/in.h... yes checking for stdlib.h... (cached) yes checking for string.h... (cached) yes checking for sys/socket.h... yes checking for sys/time.h... yes checking for termios.h... yes checking for unistd.h... (cached) yes checking for ncurses.h... yes checking for pcap.h... yes checking for size_t... yes checking for pid_t... yes checking for fork... yes checking for vfork... yes checking for working fork... yes checking for working vfork... (cached) yes checking build system type... x86_64-pc-linux-gnu checking host system type... x86_64-pc-linux-gnu checking for GNU libc compatible malloc... 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 race-free 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 dh_auto_build -a make -j10 make[1]: Entering directory '/build/sniffit-BJKu4e/sniffit-0.5' make all-recursive make[2]: Entering directory '/build/sniffit-BJKu4e/sniffit-0.5' Making all in src make[3]: Entering directory '/build/sniffit-BJKu4e/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 -ffile-prefix-map=/build/sniffit-BJKu4e/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 -ffile-prefix-map=/build/sniffit-BJKu4e/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 -ffile-prefix-map=/build/sniffit-BJKu4e/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 -ffile-prefix-map=/build/sniffit-BJKu4e/sniffit-0.5=. -fstack-protector-strong -Wformat -Werror=format-security -c -o sn_cfgfile.o sn_cfgfile.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 -ffile-prefix-map=/build/sniffit-BJKu4e/sniffit-0.5=. -fstack-protector-strong -Wformat -Werror=format-security -c -o sn_logfile.o sn_logfile.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 -ffile-prefix-map=/build/sniffit-BJKu4e/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 -ffile-prefix-map=/build/sniffit-BJKu4e/sniffit-0.5=. -fstack-protector-strong -Wformat -Werror=format-security -c -o sniffit.o sniffit.c sn_packets.c: In function ‘unwrap_packet’: 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_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 * 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 *’ 293 | extern int fchmod (int __fd, __mode_t __mode) __THROW; | ~~~~^~~~ sn_cfgfile.c: In function ‘clean_string’: 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_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), | ^~~~~~~~ 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_interface.c: In function ‘mask_status’: 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))? | ^~~~~~~ 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:742:35: note: expected ‘const struct pcap_pkthdr *’ but argument is of type ‘const struct packetheader *’ 742 | 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:394:16: note: declared here 394 | 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:565: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 *)’} 565 | 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:565: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 *)’} 565 | PCAP_API int pcap_loop(pcap_t *, int, pcap_handler, u_char *); | ^~~~~~~~~~~~ gcc -lncurses -lpcap -g -O2 -ffile-prefix-map=/build/sniffit-BJKu4e/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-BJKu4e/sniffit-0.5/src' make[3]: Entering directory '/build/sniffit-BJKu4e/sniffit-0.5' make[3]: Leaving directory '/build/sniffit-BJKu4e/sniffit-0.5' make[2]: Leaving directory '/build/sniffit-BJKu4e/sniffit-0.5' make[1]: Leaving directory '/build/sniffit-BJKu4e/sniffit-0.5' dh: command-omitted: The call to "dh_auto_test -a" was omitted due to "DEB_BUILD_OPTIONS=nocheck" create-stamp debian/debhelper-build-stamp dh_prep -a dh_auto_install --destdir=debian/sniffit/ -a make -j10 install DESTDIR=/build/sniffit-BJKu4e/sniffit-0.5/debian/sniffit AM_UPDATE_INFO_DIR=no make[1]: Entering directory '/build/sniffit-BJKu4e/sniffit-0.5' Making install in src make[2]: Entering directory '/build/sniffit-BJKu4e/sniffit-0.5/src' make[3]: Entering directory '/build/sniffit-BJKu4e/sniffit-0.5/src' make[3]: Nothing to be done for 'install-data-am'. /bin/mkdir -p '/build/sniffit-BJKu4e/sniffit-0.5/debian/sniffit/usr/sbin' /usr/bin/install -c sniffit '/build/sniffit-BJKu4e/sniffit-0.5/debian/sniffit/usr/sbin' make[3]: Leaving directory '/build/sniffit-BJKu4e/sniffit-0.5/src' make[2]: Leaving directory '/build/sniffit-BJKu4e/sniffit-0.5/src' make[2]: Entering directory '/build/sniffit-BJKu4e/sniffit-0.5' make[3]: Entering directory '/build/sniffit-BJKu4e/sniffit-0.5' make[3]: Nothing to be done for 'install-exec-am'. /bin/mkdir -p '/build/sniffit-BJKu4e/sniffit-0.5/debian/sniffit/usr/share/man/man5' /bin/mkdir -p '/build/sniffit-BJKu4e/sniffit-0.5/debian/sniffit/usr/share/man/man8' /usr/bin/install -c -m 644 man/sniffit.5 '/build/sniffit-BJKu4e/sniffit-0.5/debian/sniffit/usr/share/man/man5' /usr/bin/install -c -m 644 man/sniffit.8 '/build/sniffit-BJKu4e/sniffit-0.5/debian/sniffit/usr/share/man/man8' make[3]: Leaving directory '/build/sniffit-BJKu4e/sniffit-0.5' make[2]: Leaving directory '/build/sniffit-BJKu4e/sniffit-0.5' make[1]: Leaving directory '/build/sniffit-BJKu4e/sniffit-0.5' 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 -a dh_strip -a -a dh_makeshlibs -a -a dh_shlibdeps -a -a dh_installdeb -a dh_gencontrol -a dh_md5sums -a dh_builddeb -a dpkg-deb: building package 'sniffit' in '../sniffit_0.5-2_amd64.deb'. dpkg-deb: building package 'sniffit-dbgsym' in '../sniffit-dbgsym_0.5-2_amd64.deb'. dpkg-genbuildinfo --build=any dpkg-genchanges --build=any >../sniffit_0.5-2_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-BJKu4e /tmp/sniffit-0.5-24kc287i2 I: cleaning package lists and apt cache... I: removing tempdir /tmp/mmdebstrap.FaJZ5c2wia... I: success in 279.7837 seconds md5: sniffit-dbgsym_0.5-2_amd64.deb: OK md5: sniffit_0.5-2_amd64.deb: OK sha1: sniffit-dbgsym_0.5-2_amd64.deb: OK sha1: sniffit_0.5-2_amd64.deb: OK sha256: sniffit-dbgsym_0.5-2_amd64.deb: OK sha256: sniffit_0.5-2_amd64.deb: OK Checksums: OK