=>> Building net/sniffit build started at Fri Apr 5 03:16:56 BST 2024 port directory: /usr/ports/net/sniffit package name: sniffit-0.5 building for: FreeBSD pkg-builder.dan.net.uk 13.2-RELEASE-p10 FreeBSD 13.2-RELEASE-p10 amd64 maintained by: bofh@FreeBSD.org Makefile datestamp: -rw-r--r-- 1 root wheel 1449 Jan 25 05:29 /usr/ports/net/sniffit/Makefile Ports top last git commit: c2c35d895e Ports top unclean checkout: yes Port dir last git commit: d39dc4cd53 Port dir unclean checkout: no Poudriere version: poudriere-git-3.4.99.20240122_1 Host OSVERSION: 1400097 Jail OSVERSION: 1302001 Job Id: 17 ---Begin Environment--- SHELL=/bin/csh OSVERSION=1302001 UNAME_v=FreeBSD 13.2-RELEASE-p10 UNAME_r=13.2-RELEASE-p10 BLOCKSIZE=K MAIL=/var/mail/root MM_CHARSET=UTF-8 LANG=C.UTF-8 STATUS=1 HOME=/root PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin MAKE_OBJDIR_CHECK_WRITABLE=0 LOCALBASE=/usr/local USER=root POUDRIERE_NAME=poudriere-git LIBEXECPREFIX=/usr/local/libexec/poudriere POUDRIERE_VERSION=3.4.99.20240122_1 MASTERMNT=/usr/local/poudriere/data/.m/13-amd64-default-dan/ref LC_COLLATE=C POUDRIERE_BUILD_TYPE=bulk PACKAGE_BUILDING=yes SAVED_TERM=screen OUTPUT_REDIRECTED_STDERR=4 OUTPUT_REDIRECTED=1 PWD=/usr/local/poudriere/data/.m/13-amd64-default-dan/17/.p OUTPUT_REDIRECTED_STDOUT=3 P_PORTS_FEATURES=FLAVORS SUBPACKAGES SELECTED_OPTIONS MASTERNAME=13-amd64-default-dan SCRIPTPREFIX=/usr/local/share/poudriere SCRIPTNAME=bulk.sh OLDPWD=/usr/local/poudriere/data/.m/13-amd64-default-dan/ref/.p/pool POUDRIERE_PKGNAME=poudriere-git-3.4.99.20240122_1 SCRIPTPATH=/usr/local/share/poudriere/bulk.sh POUDRIEREPATH=/usr/local/bin/poudriere ---End Environment--- ---Begin Poudriere Port Flags/Env--- PORT_FLAGS= PKGENV= FLAVOR= MAKE_ARGS= ---End Poudriere Port Flags/Env--- ---Begin OPTIONS List--- ===> The following configuration options are available for sniffit-0.5: DOCS=on: Build and/or install documentation EXAMPLES=on: Build and/or install examples ===> Use 'make config' to modify these settings ---End OPTIONS List--- --MAINTAINER-- bofh@FreeBSD.org --End MAINTAINER-- --CONFIGURE_ARGS-- --prefix=/usr/local ${_LATE_CONFIGURE_ARGS} --End CONFIGURE_ARGS-- --CONFIGURE_ENV-- XDG_DATA_HOME=/wrkdirs/usr/ports/net/sniffit/work XDG_CONFIG_HOME=/wrkdirs/usr/ports/net/sniffit/work XDG_CACHE_HOME=/wrkdirs/usr/ports/net/sniffit/work/.cache HOME=/wrkdirs/usr/ports/net/sniffit/work TMPDIR="/tmp" PATH=/ccache/libexec/ccache:/wrkdirs/usr/ports/net/sniffit/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin PKG_CONFIG_LIBDIR=/wrkdirs/usr/ports/net/sniffit/work/.pkgconfig:/usr/local/libdata/pkgconfig:/usr/local/share/pkgconfig:/usr/libdata/pkgconfig SHELL=/bin/sh CONFIG_SHELL=/bin/sh DEFAULT_AUTOCONF=2.72 CCACHE_DIR="/root/.ccache" CONFIG_SITE=/usr/ports/Templates/config.site lt_cv_sys_max_cmd_len=524288 --End CONFIGURE_ENV-- --MAKE_ENV-- XDG_DATA_HOME=/wrkdirs/usr/ports/net/sniffit/work XDG_CONFIG_HOME=/wrkdirs/usr/ports/net/sniffit/work XDG_CACHE_HOME=/wrkdirs/usr/ports/net/sniffit/work/.cache HOME=/wrkdirs/usr/ports/net/sniffit/work TMPDIR="/tmp" PATH=/ccache/libexec/ccache:/wrkdirs/usr/ports/net/sniffit/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin PKG_CONFIG_LIBDIR=/wrkdirs/usr/ports/net/sniffit/work/.pkgconfig:/usr/local/libdata/pkgconfig:/usr/local/share/pkgconfig:/usr/libdata/pkgconfig MK_DEBUG_FILES=no MK_KERNEL_SYMBOLS=no SHELL=/bin/sh NO_LINT=YES DEFAULT_AUTOCONF=2.72 PREFIX=/usr/local LOCALBASE=/usr/local CC="cc" CFLAGS="-O2 -pipe -fstack-protector-strong -fno-strict-aliasing " CPP="cpp" CPPFLAGS="" LDFLAGS=" -fstack-protector-strong " LIBS="" CXX="c++" CXXFLAGS="-O2 -pipe -fstack-protector-strong -fno-strict-aliasing " CCACHE_DIR="/root/.ccache" BSD_INSTALL_PROGRAM="install -s -m 555" BSD_INSTALL_LIB="install -s -m 0644" BSD_INSTALL_SCRIPT="install -m 555" BSD_INSTALL_DATA="install -m 0644" BSD_INSTALL_MAN="install -m 444" --End MAKE_ENV-- --PLIST_SUB-- PORTDOCS="" PORTEXAMPLES="" OSREL=13.2 PREFIX=%D LOCALBASE=/usr/local RESETPREFIX=/usr/local LIB32DIR=lib DOCSDIR="share/doc/sniffit" EXAMPLESDIR="share/examples/sniffit" DATADIR="share/sniffit" WWWDIR="www/sniffit" ETCDIR="etc/sniffit" --End PLIST_SUB-- --SUB_LIST-- PREFIX=/usr/local LOCALBASE=/usr/local DATADIR=/usr/local/share/sniffit DOCSDIR=/usr/local/share/doc/sniffit EXAMPLESDIR=/usr/local/share/examples/sniffit WWWDIR=/usr/local/www/sniffit ETCDIR=/usr/local/etc/sniffit --End SUB_LIST-- ---Begin make.conf--- USE_PACKAGE_DEPENDS=yes BATCH=yes WRKDIRPREFIX=/wrkdirs PORTSDIR=/usr/ports PACKAGES=/packages DISTDIR=/distfiles FORCE_PACKAGE=yes PACKAGE_BUILDING=yes PACKAGE_BUILDING_FLAVORS=yes #### #### CCACHE_CPP2=1 WITH_SSP_PORTS=yes WITH_SSP=yes #WITH_LTO=yes DISABLE_LICENSES=yes LICENSES_ACCEPTED=AGPLv3 APACHE10 APACHE11 APACHE20 ART10 ARTPERL10 ART20 BSD BSD2CLAUSE BSD3CLAUSE BSD4CLAUSE BSL CC0-1.0 CDDL ClArtistic EPL GFDL GMGPL GPLv1 GPLv2 GPLv3 GPLv3RLE ISCL LGPL20 LGPL21 LGPL3 LPPL10 LPPL11 LPPL12 LPPL13 LPPL13a LPPL13b LPPL13c MIT MPL OpenSSL OFL10 OFL11 OWL PostgreSQL PHP202 PHP30 PHP301 PSFL RUBY ZLIB ZPL21 SVM-Light EULA ALASIR Microsoft-exFAT SIMIAN UDEVGAME unknown MTA COMMERCIAL teamspeak NO_LICENSES_DIALOGS=yes #### #### NO_IGNORE=yes DEFAULT_VERSIONS+=ssl=openssl mysql=8.0 imagemagick=7 samba=4.13 java=18 WITH_SETID_MODE=force PHP_ZTS=enabled OPTIONS_UNSET+=OPENJPEG OPTIONS_UNSET+=GSSAPI_BASE OPTIONS_SET+=ZTS OPTIONS_SET+=GSSAPI_NONE WITH_CCACHE_BUILD=yes CCACHE_DIR=/root/.ccache NO_CCACHE_DEPEND=1 CCACHE_WRAPPER_PATH= /ccache/libexec/ccache #### Misc Poudriere #### .include "/etc/make.conf.ports_env" GID=0 UID=0 DISABLE_MAKE_JOBS=poudriere ---End make.conf--- --Resource limits-- cpu time (seconds, -t) unlimited file size (512-blocks, -f) unlimited data seg size (kbytes, -d) 33554432 stack size (kbytes, -s) 524288 core file size (512-blocks, -c) unlimited max memory size (kbytes, -m) unlimited locked memory (kbytes, -l) unlimited max user processes (-u) 89999 open files (-n) 8192 virtual mem size (kbytes, -v) unlimited swap limit (kbytes, -w) unlimited socket buffer size (bytes, -b) unlimited pseudo-terminals (-p) unlimited kqueues (-k) unlimited umtx shared locks (-o) unlimited --End resource limits-- =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 ===> sniffit-0.5 depends on file: /usr/local/sbin/pkg - not found ===> Installing existing package /packages/All/pkg-1.20.9_1.pkg [pkg-builder.dan.net.uk] Installing pkg-1.20.9_1... [pkg-builder.dan.net.uk] Extracting pkg-1.20.9_1: .......... done ===> sniffit-0.5 depends on file: /usr/local/sbin/pkg - found ===> Returning to build of sniffit-0.5 =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> Fetching all distfiles required by sniffit-0.5 for building =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> Fetching all distfiles required by sniffit-0.5 for building => SHA256 Checksum OK for resurrecting-open-source-projects-sniffit-sniffit-0.5_GH0.tar.gz. =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> Fetching all distfiles required by sniffit-0.5 for building ===> Extracting for sniffit-0.5 => SHA256 Checksum OK for resurrecting-open-source-projects-sniffit-sniffit-0.5_GH0.tar.gz. =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> Patching for sniffit-0.5 ===> Applying FreeBSD patches for sniffit-0.5 from /usr/ports/net/sniffit/files =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 ===> sniffit-0.5 depends on package: autoconf>=2.72 - not found ===> Installing existing package /packages/All/autoconf-2.72.pkg [pkg-builder.dan.net.uk] Installing autoconf-2.72... [pkg-builder.dan.net.uk] `-- Installing autoconf-switch-20220527... [pkg-builder.dan.net.uk] `-- Extracting autoconf-switch-20220527: ....... done [pkg-builder.dan.net.uk] `-- Installing indexinfo-0.3.1... [pkg-builder.dan.net.uk] `-- Extracting indexinfo-0.3.1: . done [pkg-builder.dan.net.uk] `-- Installing m4-1.4.19_1,1... [pkg-builder.dan.net.uk] | `-- Installing gettext-runtime-0.22.3_1... [pkg-builder.dan.net.uk] | `-- Extracting gettext-runtime-0.22.3_1: .......... done [pkg-builder.dan.net.uk] | `-- Installing libsigsegv-2.14... [pkg-builder.dan.net.uk] | `-- Extracting libsigsegv-2.14: ..... done [pkg-builder.dan.net.uk] `-- Extracting m4-1.4.19_1,1: .......... done [pkg-builder.dan.net.uk] `-- Installing perl5-5.36.3_1... [pkg-builder.dan.net.uk] `-- Extracting perl5-5.36.3_1: .......... done [pkg-builder.dan.net.uk] Extracting autoconf-2.72: .......... done ===== Message from libsigsegv-2.14: -- Note that the stackoverflow handling functions of this library need procfs mounted on /proc. ===> sniffit-0.5 depends on package: autoconf>=2.72 - found ===> Returning to build of sniffit-0.5 ===> sniffit-0.5 depends on package: automake>=1.16.5 - not found ===> Installing existing package /packages/All/automake-1.16.5_1.pkg [pkg-builder.dan.net.uk] Installing automake-1.16.5_1... [pkg-builder.dan.net.uk] Extracting automake-1.16.5_1: .......... done ===> sniffit-0.5 depends on package: automake>=1.16.5 - found ===> Returning to build of sniffit-0.5 =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> Configuring for sniffit-0.5 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' configure: loading site script /usr/ports/Templates/config.site checking for gcc... cc 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 cc accepts -g... yes checking for cc option to enable C11 features... none needed checking whether cc understands -c and -o together... yes checking for main in -lncurses... yes checking for pcap_open_live in -lpcap... yes checking for stdio.h... (cached) yes checking for stdlib.h... (cached) yes checking for string.h... (cached) yes checking for inttypes.h... (cached) yes checking for stdint.h... (cached) yes checking for strings.h... (cached) yes checking for sys/stat.h... (cached) yes checking for sys/types.h... (cached) yes checking for unistd.h... (cached) yes checking for vfork.h... (cached) no checking for arpa/inet.h... (cached) yes checking for fcntl.h... (cached) yes checking for netdb.h... (cached) yes checking for netinet/in.h... (cached) yes checking for stdlib.h... (cached) yes checking for string.h... (cached) yes checking for sys/socket.h... (cached) yes checking for sys/time.h... (cached) 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... (cached) yes checking for pid_t... (cached) yes checking for fork... (cached) yes checking for vfork... (cached) yes checking for working fork... yes checking for working vfork... (cached) yes checking build system type... amd64-portbld-freebsd13.2 checking host system type... amd64-portbld-freebsd13.2 checking for GNU libc compatible malloc... (cached) yes checking for GNU libc compatible realloc... yes checking for alarm... (cached) yes checking for bzero... (cached) yes checking for gethostbyname... (cached) yes checking for socket... yes checking for strchr... (cached) yes checking for strdup... (cached) yes checking for strstr... (cached) yes checking for shmget... (cached) yes checking for atexit... (cached) 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... (cached) /bin/mkdir -p checking for gawk... (cached) /usr/bin/awk 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 cc... gcc3 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 =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> Building for sniffit-0.5 /usr/bin/make all-recursive Making all in src cc -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 -lncurses -lpcap -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -MT sn_packets.o -MD -MP -MF .deps/sn_packets.Tpo -c -o sn_packets.o sn_packets.c cc: warning: -lncurses: 'linker' input unused [-Wunused-command-line-argument] cc: warning: -lpcap: 'linker' input unused [-Wunused-command-line-argument] sn_packets.c:68:15: warning: incompatible pointer types passing 'unsigned char *' to parameter of type 'unsigned short *' [-Wincompatible-pointer-types] if(in_cksum((sp+PROTO_HEAD),unwrapped->IP_len) != IPhead.checksum) ^~~~~~~~~~~~~~~ sn_packets.c:14:41: note: passing argument to parameter 'addr' here unsigned short in_cksum(unsigned short *addr,int len) ^ 1 warning generated. mv -f .deps/sn_packets.Tpo .deps/sn_packets.Po cc -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 -lncurses -lpcap -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -MT sn_generation.o -MD -MP -MF .deps/sn_generation.Tpo -c -o sn_generation.o sn_generation.c cc: warning: -lncurses: 'linker' input unused [-Wunused-command-line-argument] cc: warning: -lpcap: 'linker' input unused [-Wunused-command-line-argument] sn_generation.c:66:1: warning: implicit declaration of function 'input_field' is invalid in C99 [-Wimplicit-function-declaration] input_field(msg,NULL,0); ^ sn_generation.c:67:1: warning: implicit declaration of function 'forced_refresh' is invalid in C99 [-Wimplicit-function-declaration] forced_refresh(); ^ sn_generation.c:205:22: warning: implicit declaration of function 'in_cksum' is invalid in C99 [-Wimplicit-function-declaration] sp_help_ip->checksum=in_cksum((unsigned short *) (sp->buffer), ^ sn_generation.c:239:23: warning: implicit declaration of function 'in_cksum' is invalid in C99 [-Wimplicit-function-declaration] sp_help_tcp->checksum=in_cksum((unsigned short *) sp_pseudo_ip_construct, ^ sn_generation.c:310:23: warning: implicit declaration of function 'in_cksum' is invalid in C99 [-Wimplicit-function-declaration] sp_help_udp->checksum=in_cksum((unsigned short *) sp_pseudo_ip_construct, ^ 5 warnings generated. mv -f .deps/sn_generation.Tpo .deps/sn_generation.Po cc -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 -lncurses -lpcap -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -MT sn_interface.o -MD -MP -MF .deps/sn_interface.Tpo -c -o sn_interface.o sn_interface.c cc: warning: -lncurses: 'linker' input unused [-Wunused-command-line-argument] cc: warning: -lpcap: 'linker' input unused [-Wunused-command-line-argument] sn_interface.c:195:3: warning: incompatible pointer types assigning to 'unsigned char *' from '_32_bit *' (aka 'unsigned int *') [-Wincompatible-pointer-types] ad=&(mask->source_ip); ^~~~~~~~~~~~~~~~~~~ sn_interface.c:201:3: warning: incompatible pointer types assigning to 'unsigned char *' from '_32_bit *' (aka 'unsigned int *') [-Wincompatible-pointer-types] ad=&(mask->destination_ip); ^~~~~~~~~~~~~~~~~~~~~~~~ sn_interface.c:470:8: warning: implicitly declaring library function 'isprint' with type 'int (int)' [-Wimplicit-function-declaration] isprint(*(connection_data+i))? ^ sn_interface.c:470:8: note: include the header or explicitly provide a declaration for 'isprint' 3 warnings generated. mv -f .deps/sn_interface.Tpo .deps/sn_interface.Po cc -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 -lncurses -lpcap -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -MT sn_cfgfile.o -MD -MP -MF .deps/sn_cfgfile.Tpo -c -o sn_cfgfile.o sn_cfgfile.c cc: warning: -lncurses: 'linker' input unused [-Wunused-command-line-argument] cc: warning: -lpcap: 'linker' input unused [-Wunused-command-line-argument] sn_cfgfile.c:131:7: warning: implicitly declaring library function 'isalnum' with type 'int (int)' [-Wimplicit-function-declaration] if( (isalnum(string[i]))||(string[i]=='.') ) ^ sn_cfgfile.c:131:7: note: include the header or explicitly provide a declaration for 'isalnum' sn_cfgfile.c:155:8: warning: implicitly declaring library function 'iscntrl' with type 'int (int)' [-Wimplicit-function-declaration] if( !(iscntrl(string[i])) && !(isspace(string[i])) ) ^ sn_cfgfile.c:155:8: note: include the header or explicitly provide a declaration for 'iscntrl' sn_cfgfile.c:155:33: warning: implicitly declaring library function 'isspace' with type 'int (int)' [-Wimplicit-function-declaration] if( !(iscntrl(string[i])) && !(isspace(string[i])) ) ^ sn_cfgfile.c:155:33: note: include the header or explicitly provide a declaration for 'isspace' sn_cfgfile.c:175:6: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] digit=(char *)&hostnr; ^~~~~~~~~~~~~~~~ sn_cfgfile.c:239:22: warning: passing 'unsigned char[16]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(help->host,dot_notation); ^~~~~~~~~~ /usr/include/string.h:88:31: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ sn_cfgfile.c:255:15: warning: passing 'unsigned char[16]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(help->host, clean_string(strtok(NULL," "))); ^~~~~~~~~~ /usr/include/string.h:88:31: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ sn_cfgfile.c:270:15: warning: passing 'unsigned char[16]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(help->host,dot_notation); ^~~~~~~~~~ /usr/include/string.h:88:31: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ sn_cfgfile.c:286:15: warning: passing 'unsigned char[16]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(help->host, clean_string(strtok(NULL," "))); ^~~~~~~~~~ /usr/include/string.h:88:31: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ sn_cfgfile.c:302:15: warning: passing 'unsigned char[16]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(help->host,dot_notation); ^~~~~~~~~~ /usr/include/string.h:88:31: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ sn_cfgfile.c:303:15: warning: passing 'unsigned char[16]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(helpp->host,dot_notation); ^~~~~~~~~~~ /usr/include/string.h:88:31: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ sn_cfgfile.c:326:15: warning: passing 'unsigned char[16]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(help->host, field); ^~~~~~~~~~ /usr/include/string.h:88:31: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ sn_cfgfile.c:327:15: warning: passing 'unsigned char[16]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(helpp->host, field); ^~~~~~~~~~~ /usr/include/string.h:88:31: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ sn_cfgfile.c:348:15: warning: passing 'unsigned char[16]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(help->host,dot_notation); ^~~~~~~~~~ /usr/include/string.h:88:31: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ sn_cfgfile.c:364:15: warning: passing 'unsigned char[16]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(help->host, clean_string(strtok(NULL," "))); ^~~~~~~~~~ /usr/include/string.h:88:31: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ sn_cfgfile.c:379:15: warning: passing 'unsigned char[16]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(help->host,dot_notation); ^~~~~~~~~~ /usr/include/string.h:88:31: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ sn_cfgfile.c:395:15: warning: passing 'unsigned char[16]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(help->host, clean_string(strtok(NULL," "))); ^~~~~~~~~~ /usr/include/string.h:88:31: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ sn_cfgfile.c:411:15: warning: passing 'unsigned char[16]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(help->host,dot_notation); ^~~~~~~~~~ /usr/include/string.h:88:31: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ sn_cfgfile.c:412:15: warning: passing 'unsigned char[16]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(helpp->host,dot_notation); ^~~~~~~~~~~ /usr/include/string.h:88:31: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ sn_cfgfile.c:434:15: warning: passing 'unsigned char[16]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(help->host, field); ^~~~~~~~~~ /usr/include/string.h:88:31: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ sn_cfgfile.c:435:15: warning: passing 'unsigned char[16]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(helpp->host, field); ^~~~~~~~~~~ /usr/include/string.h:88:31: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ 20 warnings generated. mv -f .deps/sn_cfgfile.Tpo .deps/sn_cfgfile.Po cc -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 -lncurses -lpcap -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -MT sn_logfile.o -MD -MP -MF .deps/sn_logfile.Tpo -c -o sn_logfile.o sn_logfile.c cc: warning: -lncurses: 'linker' input unused [-Wunused-command-line-argument] cc: warning: -lpcap: 'linker' input unused [-Wunused-command-line-argument] sn_logfile.c:96:8: warning: incompatible pointer to integer conversion passing 'FILE *' (aka 'struct __sFILE *') to parameter of type 'int' [-Wint-conversion] fchmod(LogFILE, S_IWUSR|S_IRUSR); ^~~~~~~ /usr/include/sys/stat.h:373:15: note: passing argument to parameter here int fchmod(int, mode_t); ^ 1 warning generated. mv -f .deps/sn_logfile.Tpo .deps/sn_logfile.Po cc -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 -lncurses -lpcap -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -MT sn_resolv.o -MD -MP -MF .deps/sn_resolv.Tpo -c -o sn_resolv.o sn_resolv.c cc: warning: -lncurses: 'linker' input unused [-Wunused-command-line-argument] cc: warning: -lpcap: 'linker' input unused [-Wunused-command-line-argument] mv -f .deps/sn_resolv.Tpo .deps/sn_resolv.Po cc -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 -lncurses -lpcap -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -MT sniffit.o -MD -MP -MF .deps/sniffit.Tpo -c -o sniffit.o sniffit.c cc: warning: -lncurses: 'linker' input unused [-Wunused-command-line-argument] cc: warning: -lpcap: 'linker' input unused [-Wunused-command-line-argument] In file included from sniffit.c:35: In file included from ./sn_plugins.h:23: ./dns_plugin.plug:87:12: warning: incompatible pointer types assigning to 'struct PL_DNS_header *' from 'struct DNS_header *' [-Wincompatible-pointer-types] dns_dnshead= (struct DNS_header *) (dns_buffer+udp_start+sizeof(struct UDP_header)); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./dns_plugin.plug:122:25: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] dec_pos=PL_DNS_decode(dns_p,dec_pos,NULL,0); ^~~~~ ./dns_plugin.plug:30:25: note: passing argument to parameter 'buf' here int PL_DNS_decode(char *buf, int start_pos,char *string, int start_string) ^ ./dns_plugin.plug:142:25: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] dec_pos=PL_DNS_decode(dns_p,dec_pos,NULL,0); ^~~~~ ./dns_plugin.plug:30:25: note: passing argument to parameter 'buf' here int PL_DNS_decode(char *buf, int start_pos,char *string, int start_string) ^ sniffit.c:127:22: warning: implicitly declaring library function 'isupper' with type 'int (int)' [-Wimplicit-function-declaration] *(string + i) = (isupper (*(string + i)) ? tolower (*(string + i)) : *(string + i)); ^ sniffit.c:127:22: note: include the header or explicitly provide a declaration for 'isupper' sniffit.c:127:48: warning: implicitly declaring library function 'tolower' with type 'int (int)' [-Wimplicit-function-declaration] *(string + i) = (isupper (*(string + i)) ? tolower (*(string + i)) : *(string + i)); ^ sniffit.c:127:48: note: include the header or explicitly provide a declaration for 'tolower' sniffit.c:386:11: warning: implicitly declaring library function 'isprint' with type 'int (int)' [-Wimplicit-function-declaration] if (isprint (data[i])) ^ sniffit.c:386:11: note: include the header or explicitly provide a declaration for 'isprint' sniffit.c:602:25: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (strcmp (wc_so, str_IP) == 0) ^~~~~~ /usr/include/string.h:86:39: note: passing argument to parameter here int strcmp(const char *, const char *) __pure; ^ sniffit.c:611:42: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (strncmp (wc_so, str_IP, strlen (str_IP)) == 0) ^~~~~~ /usr/include/string.h:101:28: note: passing argument to parameter here size_t strlen(const char *) __pure; ^ sniffit.c:611:26: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (strncmp (wc_so, str_IP, strlen (str_IP)) == 0) ^~~~~~ /usr/include/string.h:106:40: note: passing argument to parameter here int strncmp(const char *, const char *, size_t) __pure; ^ sniffit.c:641:27: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (strcmp (wc_dest, str_IP) == 0) ^~~~~~ /usr/include/string.h:86:39: note: passing argument to parameter here int strcmp(const char *, const char *) __pure; ^ sniffit.c:650:44: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ^~~~~~ /usr/include/string.h:101:28: note: passing argument to parameter here size_t strlen(const char *) __pure; ^ sniffit.c:650:28: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ^~~~~~ /usr/include/string.h:106:40: note: passing argument to parameter here int strncmp(const char *, const char *, size_t) __pure; ^ sniffit.c:680:25: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (strcmp (wc_so, str_IP) == 0) ^~~~~~ /usr/include/string.h:86:39: note: passing argument to parameter here int strcmp(const char *, const char *) __pure; ^ sniffit.c:689:25: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (strcmp (wc_so, str_IP) == 0) ^~~~~~ /usr/include/string.h:86:39: note: passing argument to parameter here int strcmp(const char *, const char *) __pure; ^ sniffit.c:720:44: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ^~~~~~ /usr/include/string.h:101:28: note: passing argument to parameter here size_t strlen(const char *) __pure; ^ sniffit.c:720:28: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ^~~~~~ /usr/include/string.h:106:40: note: passing argument to parameter here int strncmp(const char *, const char *, size_t) __pure; ^ sniffit.c:729:44: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ^~~~~~ /usr/include/string.h:101:28: note: passing argument to parameter here size_t strlen(const char *) __pure; ^ sniffit.c:729:28: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ^~~~~~ /usr/include/string.h:106:40: note: passing argument to parameter here int strncmp(const char *, const char *, size_t) __pure; ^ sniffit.c:893:25: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (strcmp (wc_so, str_IP) == 0) ^~~~~~ /usr/include/string.h:86:39: note: passing argument to parameter here int strcmp(const char *, const char *) __pure; ^ sniffit.c:904:42: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (strncmp (wc_so, str_IP, strlen (str_IP)) == 0) ^~~~~~ /usr/include/string.h:101:28: note: passing argument to parameter here size_t strlen(const char *) __pure; ^ sniffit.c:904:26: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (strncmp (wc_so, str_IP, strlen (str_IP)) == 0) ^~~~~~ /usr/include/string.h:106:40: note: passing argument to parameter here int strncmp(const char *, const char *, size_t) __pure; ^ sniffit.c:934:27: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (strcmp (wc_dest, str_IP) == 0) ^~~~~~ /usr/include/string.h:86:39: note: passing argument to parameter here int strcmp(const char *, const char *) __pure; ^ sniffit.c:945:44: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ^~~~~~ /usr/include/string.h:101:28: note: passing argument to parameter here size_t strlen(const char *) __pure; ^ sniffit.c:945:28: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ^~~~~~ /usr/include/string.h:106:40: note: passing argument to parameter here int strncmp(const char *, const char *, size_t) __pure; ^ sniffit.c:973:25: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (strcmp (wc_so, str_IP) == 0) ^~~~~~ /usr/include/string.h:86:39: note: passing argument to parameter here int strcmp(const char *, const char *) __pure; ^ sniffit.c:982:25: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (strcmp (wc_so, str_IP) == 0) ^~~~~~ /usr/include/string.h:86:39: note: passing argument to parameter here int strcmp(const char *, const char *) __pure; ^ sniffit.c:1010:44: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ^~~~~~ /usr/include/string.h:101:28: note: passing argument to parameter here size_t strlen(const char *) __pure; ^ sniffit.c:1010:28: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ^~~~~~ /usr/include/string.h:106:40: note: passing argument to parameter here int strncmp(const char *, const char *, size_t) __pure; ^ sniffit.c:1019:44: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ^~~~~~ /usr/include/string.h:101:28: note: passing argument to parameter here size_t strlen(const char *) __pure; ^ sniffit.c:1019:28: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ^~~~~~ /usr/include/string.h:106:40: note: passing argument to parameter here int strncmp(const char *, const char *, size_t) __pure; ^ sniffit.c:1107:43: warning: incompatible pointer types passing 'const struct packetheader *' to parameter of type 'const struct pcap_pkthdr *' [-Wincompatible-pointer-types] pcap_dump((unsigned char *) dev_dump, p_header, sp); ^~~~~~~~ /usr/include/pcap/pcap.h:514:61: note: passing argument to parameter here PCAP_API void pcap_dump(u_char *, const struct pcap_pkthdr *, const u_char *); ^ sniffit.c:1108:12: warning: incompatible integer to pointer conversion returning 'int' from a function with result type 'pcap_handler' (aka 'void (*)(unsigned char *, const struct pcap_pkthdr *, const unsigned char *)') [-Wint-conversion] return 1; ^ sniffit.c:1154:39: warning: format specifies type 'unsigned long' but the argument has type 'unsigned int' [-Wformat] printf (" SEQ (hex): %lX ", ntohl (tcphead.seq_nr)); ~~~ ^~~~~~~~~~~~~~~~~~~~~~ %X /usr/include/netinet/in.h:121:18: note: expanded from macro 'ntohl' #define ntohl(x) __ntohl(x) ^~~~~~~~~~ /usr/include/sys/_endian.h:88:20: note: expanded from macro '__ntohl' #define __ntohl(x) (__bswap32(x)) ^~~~~~~~~~~~~~ sniffit.c:1156:30: warning: format specifies type 'unsigned long' but the argument has type 'unsigned int' [-Wformat] printf ("ACK (hex): %lX\n", ntohl (tcphead.ACK_nr)); ~~~ ^~~~~~~~~~~~~~~~~~~~~~ %X /usr/include/netinet/in.h:121:18: note: expanded from macro 'ntohl' #define ntohl(x) __ntohl(x) ^~~~~~~~~~ /usr/include/sys/_endian.h:88:20: note: expanded from macro '__ntohl' #define __ntohl(x) (__bswap32(x)) ^~~~~~~~~~~~~~ sniffit.c:1189:10: warning: incompatible integer to pointer conversion returning 'int' from a function with result type 'pcap_handler' (aka 'void (*)(unsigned char *, const struct pcap_pkthdr *, const unsigned char *)') [-Wint-conversion] return 1; ^ sniffit.c:1193:10: warning: incompatible integer to pointer conversion returning 'int' from a function with result type 'pcap_handler' (aka 'void (*)(unsigned char *, const struct pcap_pkthdr *, const unsigned char *)') [-Wint-conversion] return 1; ^ sniffit.c:1259:14: warning: incompatible integer to pointer conversion returning 'int' from a function with result type 'pcap_handler' (aka 'void (*)(unsigned char *, const struct pcap_pkthdr *, const unsigned char *)') [-Wint-conversion] return 1; ^ In file included from sniffit.c:1270: ./sn_analyse.c:13:9: warning: incompatible integer to pointer conversion returning 'int' from a function with result type 'pcap_handler' (aka 'void (*)(unsigned char *, const struct pcap_pkthdr *, const unsigned char *)') [-Wint-conversion] return 1; ^ ./sn_analyse.c:29:10: warning: incompatible integer to pointer conversion returning 'int' from a function with result type 'pcap_handler' (aka 'void (*)(unsigned char *, const struct pcap_pkthdr *, const unsigned char *)') [-Wint-conversion] return 1; ^ ./sn_analyse.c:43:37: warning: incompatible integer to pointer conversion returning 'int' from a function with result type 'pcap_handler' (aka 'void (*)(unsigned char *, const struct pcap_pkthdr *, const unsigned char *)') [-Wint-conversion] if((dummy&FIN)||(dummy&RST)) return 1; /* needed, cauz entry don't exist */ ^ ./sn_analyse.c:53:51: warning: passing 'const unsigned char *' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] sbuf_update(dummy_pointer,ntohl(tcphead.seq_nr),data,info.DATA_len); ^~~~ sniffit.c:413:13: note: passing argument to parameter 'data' here char *data, int len) ^ In file included from sniffit.c:1270: ./sn_analyse.c:83:52: warning: passing 'const unsigned char *' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] record_buf(dummy_pointer,ntohl(tcphead.seq_nr),data,info.DATA_len,0); ^~~~ sniffit.c:358:12: note: passing argument to parameter 'data' here char *data, int len, int type) ^ In file included from sniffit.c:1270: ./sn_analyse.c:95:54: warning: passing 'const unsigned char *' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] record_buf(dummy_pointer,ntohl(tcphead.seq_nr),data,info.DATA_len,0); ^~~~ sniffit.c:358:12: note: passing argument to parameter 'data' here char *data, int len, int type) ^ In file included from sniffit.c:1270: ./sn_analyse.c:117:51: warning: passing 'const unsigned char *' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] sbuf_update(dummy_pointer,ntohl(tcphead.seq_nr),data,info.DATA_len); ^~~~ sniffit.c:413:13: note: passing argument to parameter 'data' here char *data, int len) ^ In file included from sniffit.c:1270: ./sn_analyse.c:157:22: warning: passing 'const unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strncpy(workbuf1,data,len); ^~~~ /usr/include/string.h:107:57: note: passing argument to parameter here char *strncpy(char * __restrict, const char * __restrict, size_t); ^ In file included from sniffit.c:1270: ./sn_analyse.c:200:8: warning: incompatible integer to pointer conversion returning 'int' from a function with result type 'pcap_handler' (aka 'void (*)(unsigned char *, const struct pcap_pkthdr *, const unsigned char *)') [-Wint-conversion] return 1; ^ ./sn_analyse.c:201:8: warning: incompatible integer to pointer conversion returning 'int' from a function with result type 'pcap_handler' (aka 'void (*)(unsigned char *, const struct pcap_pkthdr *, const unsigned char *)') [-Wint-conversion] return 1; /* DON'T FORGET THEM!!!! */ ^ sniffit.c:1339:14: warning: incompatible integer to pointer conversion returning 'int' from a function with result type 'pcap_handler' (aka 'void (*)(unsigned char *, const struct pcap_pkthdr *, const unsigned char *)') [-Wint-conversion] return 1; ^ sniffit.c:1372:14: warning: incompatible integer to pointer conversion returning 'int' from a function with result type 'pcap_handler' (aka 'void (*)(unsigned char *, const struct pcap_pkthdr *, const unsigned char *)') [-Wint-conversion] return 1; ^ sniffit.c:1374:1: warning: non-void function does not return a value in all control paths [-Wreturn-type] } ^ In file included from sniffit.c:1458: ./sn_conn_desc.c:24:12: warning: implicitly declaring library function 'isalnum' with type 'int (int)' [-Wimplicit-function-declaration] if( (isalnum(data[i]) || ispunct(data[i]) || data[i]==' ')&&(j<(*DESC_LEN)-1) ) ^ ./sn_conn_desc.c:24:12: note: include the header or explicitly provide a declaration for 'isalnum' ./sn_conn_desc.c:24:32: warning: implicitly declaring library function 'ispunct' with type 'int (int)' [-Wimplicit-function-declaration] if( (isalnum(data[i]) || ispunct(data[i]) || data[i]==' ')&&(j<(*DESC_LEN)-1) ) ^ ./sn_conn_desc.c:24:32: note: include the header or explicitly provide a declaration for 'ispunct' ./sn_conn_desc.c:27:15: warning: implicitly declaring library function 'isspace' with type 'int (int)' [-Wimplicit-function-declaration] {if( (isspace(data[i]) && data[i]!=' ')&&(j<(*DESC_LEN)-1) ) ^ ./sn_conn_desc.c:27:15: note: include the header or explicitly provide a declaration for 'isspace' sniffit.c:1506:1: warning: non-void function does not return a value in all control paths [-Wreturn-type] } ^ sniffit.c:1522:20: warning: incompatible function pointer types passing 'void (void)' to parameter of type '__sighandler_t *' (aka 'void (*)(int)') [-Wincompatible-function-pointer-types] signal (SIGINT, my_exit); /* graceful termination in different ways */ ^~~~~~~ /usr/include/sys/signal.h:512:45: note: passing argument to parameter here __sighandler_t *signal(int, __sighandler_t *); ^ sniffit.c:1523:20: warning: incompatible function pointer types passing 'void (void)' to parameter of type '__sighandler_t *' (aka 'void (*)(int)') [-Wincompatible-function-pointer-types] signal (SIGHUP, my_exit); ^~~~~~~ /usr/include/sys/signal.h:512:45: note: passing argument to parameter here __sighandler_t *signal(int, __sighandler_t *); ^ sniffit.c:1524:20: warning: incompatible function pointer types passing 'void (void)' to parameter of type '__sighandler_t *' (aka 'void (*)(int)') [-Wincompatible-function-pointer-types] signal (SIGTERM, my_exit); ^~~~~~~ /usr/include/sys/signal.h:512:45: note: passing argument to parameter here __sighandler_t *signal(int, __sighandler_t *); ^ sniffit.c:1758:36: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if((dev_desc=pcap_open_offline(DUMPfile,ebuf))==NULL) ^~~~~~~~ /usr/include/pcap/pcap.h:410:48: note: passing argument to parameter here PCAP_API pcap_t *pcap_open_offline(const char *, char *); ^ sniffit.c:1773:15: warning: 'pcap_lookupdev' is deprecated: use 'pcap_findalldevs' and use the first device [-Wdeprecated-declarations] if((dev = pcap_lookupdev (ebuf)) == NULL) ^ /usr/include/pcap/pcap.h:326:1: note: 'pcap_lookupdev' has been explicitly marked deprecated here PCAP_DEPRECATED(pcap_lookupdev, "use 'pcap_findalldevs' and use the first device"); ^ /usr/include/pcap/funcattrs.h:227:53: note: expanded from macro 'PCAP_DEPRECATED' #define PCAP_DEPRECATED(func, msg) __attribute__((deprecated(msg))) ^ sniffit.c:1796:5: warning: add explicit braces to avoid dangling else [-Wdangling-else] else ^ sniffit.c:1800:20: warning: extra tokens at end of #ifdef directive [-Wextra-tokens] #ifdef PLUGIN0_INIT() ^ // sniffit.c:1804:20: warning: extra tokens at end of #ifdef directive [-Wextra-tokens] #ifdef PLUGIN1_INIT() ^ // sniffit.c:1808:20: warning: extra tokens at end of #ifdef directive [-Wextra-tokens] #ifdef PLUGIN2_INIT() ^ // sniffit.c:1812:20: warning: extra tokens at end of #ifdef directive [-Wextra-tokens] #ifdef PLUGIN3_INIT() ^ // sniffit.c:1816:20: warning: extra tokens at end of #ifdef directive [-Wextra-tokens] #ifdef PLUGIN4_INIT() ^ // sniffit.c:1820:20: warning: extra tokens at end of #ifdef directive [-Wextra-tokens] #ifdef PLUGIN5_INIT() ^ // sniffit.c:1824:20: warning: extra tokens at end of #ifdef directive [-Wextra-tokens] #ifdef PLUGIN6_INIT() ^ // sniffit.c:1828:20: warning: extra tokens at end of #ifdef directive [-Wextra-tokens] #ifdef PLUGIN7_INIT() ^ // sniffit.c:1832:20: warning: extra tokens at end of #ifdef directive [-Wextra-tokens] #ifdef PLUGIN8_INIT() ^ // sniffit.c:1836:20: warning: extra tokens at end of #ifdef directive [-Wextra-tokens] #ifdef PLUGIN9_INIT() ^ // sniffit.c:1864:30: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] printf ("Shared %d\n", memsize); ~~ ^~~~~~~ %lu sniffit.c:1867:18: warning: incompatible pointer types assigning to 'int *' from 'char *' [-Wincompatible-pointer-types] DATAlength = timing + sizeof (int); ^ ~~~~~~~~~~~~~~~~~~~~~ sniffit.c:1868:23: warning: incompatible pointer types assigning to 'char *' from 'int *' [-Wincompatible-pointer-types] connection_data = DATAlength + sizeof (int); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~ sniffit.c:1869:18: warning: incompatible pointer types assigning to 'int *' from 'char *' [-Wincompatible-pointer-types] LISTlength = connection_data + LENGTH_OF_INTERPROC_DATA; ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sniffit.c:1870:12: warning: incompatible pointer types assigning to 'struct snif_mask *' from 'int *' [-Wincompatible-pointer-types] mask = LISTlength + sizeof (int); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~ sniffit.c:1871:26: warning: incompatible pointer types assigning to 'char *' from 'struct snif_mask *' [-Wincompatible-pointer-types] logged_connections = mask + sizeof (struct snif_mask); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sniffit.c:1874:25: warning: incompatible pointer types assigning to 'unsigned int *' from 'char *' [-Wincompatible-pointer-types] TCP_nr_of_packets = running_connections + (sizeof (struct shared_conn_data) * CONNECTION_CAPACITY); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sniffit.c:1875:28: warning: incompatible pointer types assigning to 'unsigned long *' from 'unsigned int *' [-Wincompatible-pointer-types] TCP_bytes_in_packets = TCP_nr_of_packets + sizeof (int); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sniffit.c:1876:26: warning: incompatible pointer types assigning to 'unsigned int *' from 'unsigned long *' [-Wincompatible-pointer-types] ICMP_nr_of_packets = TCP_bytes_in_packets + sizeof (unsigned long); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sniffit.c:1878:28: warning: incompatible pointer types assigning to 'unsigned long *' from 'unsigned int *' [-Wincompatible-pointer-types] UDP_bytes_in_packets = UDP_nr_of_packets + sizeof (int); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sniffit.c:1879:24: warning: incompatible pointer types assigning to 'unsigned int *' from 'unsigned long *' [-Wincompatible-pointer-types] IP_nr_of_packets = UDP_bytes_in_packets + sizeof (unsigned long); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sniffit.c:1880:16: warning: assigning to 'int *' from 'unsigned int *' converts between pointers to integer types with different sign [-Wpointer-sign] DESC_LEN = IP_nr_of_packets + sizeof (int); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sniffit.c:1894:11: warning: incompatible function pointer types passing 'pcap_handler (char *, const struct packetheader *, const unsigned char *)' (aka 'void (*(char *, const struct packetheader *, const unsigned char *))(unsigned char *, const struct pcap_pkthdr *, const unsigned char *)') to parameter of type 'pcap_handler' (aka 'void (*)(unsigned char *, const struct pcap_pkthdr *, const unsigned char *)') [-Wincompatible-function-pointer-types] interactive_packethandler, NULL) < 0) ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/pcap/pcap.h:439:51: note: passing argument to parameter here PCAP_API int pcap_loop(pcap_t *, int, pcap_handler, u_char *); ^ sniffit.c:1921:47: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if((dev_dump=pcap_dump_open(dev_desc, DUMPfile))==NULL) ^~~~~~~~ /usr/include/pcap/pcap.h:485:62: note: passing argument to parameter here PCAP_API pcap_dumper_t *pcap_dump_open(pcap_t *, const char *); ^ sniffit.c:1927:41: warning: incompatible function pointer types passing 'pcap_handler (unsigned char *, const struct packetheader *, const unsigned char *)' (aka 'void (*(unsigned char *, const struct packetheader *, const unsigned char *))(unsigned char *, const struct pcap_pkthdr *, const unsigned char *)') to parameter of type 'pcap_handler' (aka 'void (*)(unsigned char *, const struct pcap_pkthdr *, const unsigned char *)') [-Wincompatible-function-pointer-types] switch (pcap_loop (dev_desc, CNT, packethandler, (unsigned char *) &ipaddr)) ^~~~~~~~~~~~~ /usr/include/pcap/pcap.h:439:51: note: passing argument to parameter here PCAP_API int pcap_loop(pcap_t *, int, pcap_handler, u_char *); ^ 85 warnings generated. mv -f .deps/sniffit.Tpo .deps/sniffit.Po cc -lncurses -lpcap -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -fstack-protector-strong -o sniffit sn_packets.o sn_generation.o sn_interface.o sn_cfgfile.o sn_logfile.o sn_resolv.o sniffit.o -lpcap -lncurses =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> Staging for sniffit-0.5 ===> Generating temporary packing list install -s -m 555 /wrkdirs/usr/ports/net/sniffit/work/sniffit-sniffit-0.5/src/sniffit /wrkdirs/usr/ports/net/sniffit/work/stage/usr/local/sbin install -m 444 /wrkdirs/usr/ports/net/sniffit/work/sniffit-sniffit-0.5/man/sniffit.5 /wrkdirs/usr/ports/net/sniffit/work/stage/usr/local/share/man/man5 install -m 444 /wrkdirs/usr/ports/net/sniffit/work/sniffit-sniffit-0.5/man/sniffit.8 /wrkdirs/usr/ports/net/sniffit/work/stage/usr/local/share/man/man8 install -m 0644 /wrkdirs/usr/ports/net/sniffit/work/sniffit-sniffit-0.5/docs/PLUGIN-HOWTO /wrkdirs/usr/ports/net/sniffit/work/stage/usr/local/share/doc/sniffit install -m 0644 /wrkdirs/usr/ports/net/sniffit/work/sniffit-sniffit-0.5/docs/README.FIRST /wrkdirs/usr/ports/net/sniffit/work/stage/usr/local/share/doc/sniffit install -m 0644 /wrkdirs/usr/ports/net/sniffit/work/sniffit-sniffit-0.5/docs/UPDATE-CHECK /wrkdirs/usr/ports/net/sniffit/work/stage/usr/local/share/doc/sniffit install -m 0644 /wrkdirs/usr/ports/net/sniffit/work/sniffit-sniffit-0.5/docs/sniffit-FAQ /wrkdirs/usr/ports/net/sniffit/work/stage/usr/local/share/doc/sniffit install -m 0644 /wrkdirs/usr/ports/net/sniffit/work/sniffit-sniffit-0.5/examples/sample_config_file /wrkdirs/usr/ports/net/sniffit/work/stage/usr/local/share/examples/sniffit ====> Compressing man pages (compress-man) =========================================================================== =================================================== ===== env: 'PKG_NOTES=build_timestamp ports_top_git_hash ports_top_checkout_unclean port_git_hash port_checkout_unclean built_by' 'PKG_NOTE_build_timestamp=2024-04-05T02:16:56+0000' 'PKG_NOTE_ports_top_git_hash=c2c35d895e' 'PKG_NOTE_ports_top_checkout_unclean=yes' 'PKG_NOTE_port_git_hash=d39dc4cd53' 'PKG_NOTE_port_checkout_unclean=no' 'PKG_NOTE_built_by=poudriere-git-3.4.99.20240122_1' NO_DEPENDS=yes USER=root UID=0 GID=0 ===> Building packages for sniffit-0.5 ===> Building sniffit-0.5 =========================================================================== =>> Cleaning up wrkdir ===> Cleaning for sniffit-0.5 build of net/sniffit | sniffit-0.5 ended at Fri Apr 5 03:18:06 BST 2024 build time: 00:01:11