=>> Building net/nast build started at Sat Apr 6 12:07:46 BST 2024 port directory: /usr/ports/net/nast package name: nast-0.2.1.g20210616_1 building for: FreeBSD pkg-builder.dan.net.uk 13.2-RELEASE-p10 FreeBSD 13.2-RELEASE-p10 amd64 maintained by: fuz@FreeBSD.org Makefile datestamp: -rw-r--r-- 1 root wheel 710 Jan 25 05:29 /usr/ports/net/nast/Makefile Ports top last git commit: c2c35d895e Ports top unclean checkout: yes Port dir last git commit: e7ed1fa017 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--- ---End OPTIONS List--- --MAINTAINER-- fuz@FreeBSD.org --End MAINTAINER-- --CONFIGURE_ARGS-- --prefix=/usr/local ${_LATE_CONFIGURE_ARGS} --End CONFIGURE_ARGS-- --CONFIGURE_ENV-- MAKE=gmake XDG_DATA_HOME=/wrkdirs/usr/ports/net/nast/work XDG_CONFIG_HOME=/wrkdirs/usr/ports/net/nast/work XDG_CACHE_HOME=/wrkdirs/usr/ports/net/nast/work/.cache HOME=/wrkdirs/usr/ports/net/nast/work TMPDIR="/tmp" PATH=/ccache/libexec/ccache:/wrkdirs/usr/ports/net/nast/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin PKG_CONFIG_LIBDIR=/wrkdirs/usr/ports/net/nast/work/.pkgconfig:/usr/local/libdata/pkgconfig:/usr/local/share/pkgconfig:/usr/libdata/pkgconfig SHELL=/bin/sh CONFIG_SHELL=/bin/sh 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/nast/work XDG_CONFIG_HOME=/wrkdirs/usr/ports/net/nast/work XDG_CACHE_HOME=/wrkdirs/usr/ports/net/nast/work/.cache HOME=/wrkdirs/usr/ports/net/nast/work TMPDIR="/tmp" PATH=/ccache/libexec/ccache:/wrkdirs/usr/ports/net/nast/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin PKG_CONFIG_LIBDIR=/wrkdirs/usr/ports/net/nast/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 PREFIX=/usr/local LOCALBASE=/usr/local CC="cc" CFLAGS="-O2 -pipe -fcommon -fstack-protector-strong -fno-strict-aliasing " CPP="cpp" CPPFLAGS="" LDFLAGS=" -fstack-protector-strong " LIBS="" CXX="c++" CXXFLAGS="-O2 -pipe -fcommon -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-- OSREL=13.2 PREFIX=%D LOCALBASE=/usr/local RESETPREFIX=/usr/local LIB32DIR=lib DOCSDIR="share/doc/nast" EXAMPLESDIR="share/examples/nast" DATADIR="share/nast" WWWDIR="www/nast" ETCDIR="etc/nast" --End PLIST_SUB-- --SUB_LIST-- PREFIX=/usr/local LOCALBASE=/usr/local DATADIR=/usr/local/share/nast DOCSDIR=/usr/local/share/doc/nast EXAMPLESDIR=/usr/local/share/examples/nast WWWDIR=/usr/local/www/nast ETCDIR=/usr/local/etc/nast --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 ===> nast-0.2.1.g20210616_1 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 ===> nast-0.2.1.g20210616_1 depends on file: /usr/local/sbin/pkg - found ===> Returning to build of nast-0.2.1.g20210616_1 =========================================================================== =================================================== ===== 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 nast-0.2.1.g20210616_1 for building =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> Fetching all distfiles required by nast-0.2.1.g20210616_1 for building => SHA256 Checksum OK for embyte0-nast-0.2.1-g20210616-96f4f8edd457772485415aaf5404ea56cf2b311f_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 nast-0.2.1.g20210616_1 for building ===> Extracting for nast-0.2.1.g20210616_1 => SHA256 Checksum OK for embyte0-nast-0.2.1-g20210616-96f4f8edd457772485415aaf5404ea56cf2b311f_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 nast-0.2.1.g20210616_1 ===> Applying FreeBSD patches for nast-0.2.1.g20210616_1 from /usr/ports/net/nast/files =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 ===> nast-0.2.1.g20210616_1 depends on package: gmake>=4.4.1 - not found ===> Installing existing package /packages/All/gmake-4.4.1.pkg [pkg-builder.dan.net.uk] Installing gmake-4.4.1... [pkg-builder.dan.net.uk] `-- Installing gettext-runtime-0.22.3_1... [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] `-- Extracting gettext-runtime-0.22.3_1: .......... done [pkg-builder.dan.net.uk] Extracting gmake-4.4.1: .......... done ===> nast-0.2.1.g20210616_1 depends on package: gmake>=4.4.1 - found ===> Returning to build of nast-0.2.1.g20210616_1 =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 ===> nast-0.2.1.g20210616_1 depends on shared library: libnet.so - not found ===> Installing existing package /packages/All/libnet-1.3,1.pkg [pkg-builder.dan.net.uk] Installing libnet-1.3,1... [pkg-builder.dan.net.uk] Extracting libnet-1.3,1: .......... done ===> nast-0.2.1.g20210616_1 depends on shared library: libnet.so - found (/usr/local/lib/libnet.so) ===> Returning to build of nast-0.2.1.g20210616_1 =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> Configuring for nast-0.2.1.g20210616_1 configure: loading site script /usr/ports/Templates/config.site Please wait, I'm going to configure Nast 0.2.0 checking build system type... amd64-portbld-freebsd13.2 checking host system type... amd64-portbld-freebsd13.2 checking target system type... amd64-portbld-freebsd13.2 configure: Found FreeBSD, are you a nerd? checking for gcc... cc checking for C compiler default output... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether cc accepts -g... yes checking for cc option to accept ANSI C... none needed checking for /usr/lib/libnet.a... no checking for /usr/local/lib/libnet.a... yes checking for libnet_name2addr4 in -lnet... yes checking for /usr/lib/libpcap.a... yes checking for pcap_dispatch in -lpcap... yes checking for /usr/lib/libncurses.a... yes checking for initscr in -lncurses... yes checking for /usr/lib/libmenu.a... yes checking for menu_opts_off in -lmenu... yes checking how to run the C preprocessor... cpp checking for egrep... grep -E checking for ANSI C header files... (cached) yes checking for sys/types.h... (cached) yes checking for sys/stat.h... (cached) yes checking for stdlib.h... (cached) yes checking for string.h... (cached) yes checking for memory.h... (cached) yes checking for strings.h... (cached) yes checking for inttypes.h... (cached) yes checking for stdint.h... (cached) yes checking for unistd.h... (cached) yes checking for errno.h... (cached) yes checking sys/utsname.h usability... yes checking sys/utsname.h presence... yes checking for sys/utsname.h... yes checking for getopt_long... yes checking for an ANSI C-conforming const... yes checking whether time.h and sys/time.h may both be included... yes checking whether struct tm is in sys/time.h or time.h... time.h checking for stdlib.h... (cached) yes checking for GNU libc compatible malloc... (cached) yes checking return type of signal handlers... void checking for vprintf... (cached) yes checking for _doprnt... no configure: creating ./config.status config.status: creating Makefile config.status: creating config.h Ok. I have done with all. Results are: PLATFORM ...... : amd64 amd64 O.S. .......... : FreeBSD 13.2-RELEASE-p10 (pkg-builder.dan.net.uk) COMPILER ...... : cc CFLAGS ........ : -O2 -pipe -fcommon -fstack-protector-strong -fno-strict-aliasing -Wall -lpthread CPPFLAGS ...... : -I/usr/local/include LDFLAGS ....... : -fstack-protector-strong LIBS .......... : -lmenu -lncurses -lpcap -lnet -L/usr/local/lib PREFIX ........ : /usr/local NCURSES SUPPORT : yes Type 'make' to compile or 'make help' to show accepted options. =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> Building for nast-0.2.1.g20210616_1 cc -O2 -pipe -fcommon -fstack-protector-strong -fno-strict-aliasing -Wall -lpthread -I/usr/local/include -c main.c -o main.o cc: warning: -lpthread: 'linker' input unused [-Wunused-command-line-argument] main.c:110:10: warning: 'pcap_lookupdev' is deprecated: use 'pcap_findalldevs' and use the first device [-Wdeprecated-declarations] dev = pcap_lookupdev(errbuf); ^ /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))) ^ main.c:309:36: warning: passing 'char *' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (flags.banner) return mport (dev, ports, flags.l); ^~~ ./include/nast.h:69:20: note: passing argument to parameter 'dev' here int mport (u_char *dev, u_short ports[], int lg); ^ main.c:316:30: warning: passing 'char *' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (flags.gw) return fgw (dev); ^~~ ./include/nast.h:65:18: note: passing argument to parameter 'dev' here int fgw (u_char *dev); ^ main.c:317:32: warning: passing 'char *' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (flags.lk) return flink (dev); ^~~ ./include/nast.h:67:20: note: passing argument to parameter 'dev' here int flink (u_char *dev); ^ 4 warnings generated. cc -O2 -pipe -fcommon -fstack-protector-strong -fno-strict-aliasing -Wall -lpthread -I/usr/local/include -c dev.c -o dev.o cc: warning: -lpthread: 'linker' input unused [-Wunused-command-line-argument] cc -O2 -pipe -fcommon -fstack-protector-strong -fno-strict-aliasing -Wall -lpthread -I/usr/local/include -c tcp.c -o tcp.o cc: warning: -lpthread: 'linker' input unused [-Wunused-command-line-argument] tcp.c:101:6: warning: assigning to 'u_char *' (aka '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] buf = (char *) (packet + offset + size_ip + size_tcp); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tcp.c:106:20: warning: passing 'u_char *' (aka '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] data_sniffo (buf, size_buf, output); ^~~ ./include/nast.h:59:25: note: passing argument to parameter 'data' here void data_sniffo (char *data, u_int l, FILE *log); ^ tcp.c:112:24: warning: passing 'u_char *' (aka '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] print_ascii_hex (buf, size_buf, output); ^~~ ./include/nast.h:60:29: note: passing argument to parameter 'data_info' here void print_ascii_hex (char *data_info, u_int len, FILE *log); ^ tcp.c:124:20: warning: passing 'u_char *' (aka '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] data_sniffo (buf, size_buf, ldd); ^~~ ./include/nast.h:59:25: note: passing argument to parameter 'data' here void data_sniffo (char *data, u_int l, FILE *log); ^ 4 warnings generated. cc -O2 -pipe -fcommon -fstack-protector-strong -fno-strict-aliasing -Wall -lpthread -I/usr/local/include -c icmp.c -o icmp.o cc: warning: -lpthread: 'linker' input unused [-Wunused-command-line-argument] icmp.c:206:6: warning: assigning to 'u_char *' (aka '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] buf = (char *) (packet + size_ip + size_icmp + offset); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ icmp.c:211:20: warning: passing 'u_char *' (aka '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] data_sniffo (buf, size_buf, output); ^~~ ./include/nast.h:59:25: note: passing argument to parameter 'data' here void data_sniffo (char *data, u_int l, FILE *log); ^ icmp.c:218:24: warning: passing 'u_char *' (aka '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] print_ascii_hex (buf, size_buf, output); ^~~ ./include/nast.h:60:29: note: passing argument to parameter 'data_info' here void print_ascii_hex (char *data_info, u_int len, FILE *log); ^ icmp.c:226:20: warning: passing 'u_char *' (aka '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] data_sniffo (buf, size_buf, ldd); ^~~ ./include/nast.h:59:25: note: passing argument to parameter 'data' here void data_sniffo (char *data, u_int l, FILE *log); ^ 4 warnings generated. cc -O2 -pipe -fcommon -fstack-protector-strong -fno-strict-aliasing -Wall -lpthread -I/usr/local/include -c arp.c -o arp.o cc: warning: -lpthread: 'linker' input unused [-Wunused-command-line-argument] cc -O2 -pipe -fcommon -fstack-protector-strong -fno-strict-aliasing -Wall -lpthread -I/usr/local/include -c udp.c -o udp.o cc: warning: -lpthread: 'linker' input unused [-Wunused-command-line-argument] udp.c:59:6: warning: assigning to 'u_char *' (aka '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] buf = (char *) (packet + size_ip + size_udp + offset); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ udp.c:64:20: warning: passing 'u_char *' (aka '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] data_sniffo (buf, size_buf, output); ^~~ ./include/nast.h:59:25: note: passing argument to parameter 'data' here void data_sniffo (char *data, u_int l, FILE *log); ^ udp.c:70:24: warning: passing 'u_char *' (aka '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] print_ascii_hex (buf, size_buf, output); ^~~ ./include/nast.h:60:29: note: passing argument to parameter 'data_info' here void print_ascii_hex (char *data_info, u_int len, FILE *log); ^ udp.c:81:20: warning: passing 'u_char *' (aka '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] data_sniffo (buf, size_buf, ldd); ^~~ ./include/nast.h:59:25: note: passing argument to parameter 'data' here void data_sniffo (char *data, u_int l, FILE *log); ^ 4 warnings generated. cc -O2 -pipe -fcommon -fstack-protector-strong -fno-strict-aliasing -Wall -lpthread -I/usr/local/include -c prom.c -o prom.o cc: warning: -lpthread: 'linker' input unused [-Wunused-command-line-argument] prom.c:171:16: warning: passing 'u_char[16]' (aka '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] sprintf (ip, "%d.%d.%d.%d", uphost[i].ip[0], uphost[i].ip[1], uphost[i].ip[2], uphost[i].ip[3]); ^~ /usr/include/stdio.h:286:31: note: passing argument to parameter here int sprintf(char * __restrict, const char * __restrict, ...); ^ prom.c:172:88: warning: passing 'u_char[16]' (aka 'unsigned char[16]') 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] n_print ("princ",ln,1,lg,"%s (%s) --------->", ip, libnet_addr2name4(inet_addr(ip), LIBNET_RESOLVE)); ^~ /usr/include/arpa/inet.h:147:34: note: passing argument to parameter here in_addr_t inet_addr(const char *); ^ 2 warnings generated. cc -O2 -pipe -fcommon -fstack-protector-strong -fno-strict-aliasing -Wall -lpthread -I/usr/local/include -c eth.c -o eth.o cc: warning: -lpthread: 'linker' input unused [-Wunused-command-line-argument] cc -O2 -pipe -fcommon -fstack-protector-strong -fno-strict-aliasing -Wall -lpthread -I/usr/local/include -c map.c -o map.o cc: warning: -lpthread: 'linker' input unused [-Wunused-command-line-argument] map.c:199:20: warning: passing 'char *' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (send_arp(l, dev, ip_dst, enet_src, ip_src)==-1) goto error; ^~~ map.c:39:35: note: passing argument to parameter 'device' here int send_arp(libnet_t *l, u_char *device, u_char *ip_dst, u_char *enet_src, u_long ip_src); ^ map.c:209:25: warning: passing 'char *' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (send_arp(l, dev, ip_dst, enet_src, ip_src)==-1) goto error; ^~~ map.c:39:35: note: passing argument to parameter 'device' here int send_arp(libnet_t *l, u_char *device, u_char *ip_dst, u_char *enet_src, u_long ip_src); ^ map.c:225:26: warning: passing 'char *' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (send_arp(l, dev, ip_dst, enet_src, ip_src)==-1) goto error; ^~~ map.c:39:35: note: passing argument to parameter 'device' here int send_arp(libnet_t *l, u_char *device, u_char *ip_dst, u_char *enet_src, u_long ip_src); ^ map.c:247:24: warning: passing 'char *' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (send_arp(l, dev, ip_dst, enet_src, ip_src)==-1) goto error; ^~~ map.c:39:35: note: passing argument to parameter 'device' here int send_arp(libnet_t *l, u_char *device, u_char *ip_dst, u_char *enet_src, u_long ip_src); ^ map.c:346:16: warning: passing 'u_char[20]' (aka 'unsigned char[20]') 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] sprintf (ip, "%d.%d.%d.%d", arp->__ar_sip[0],arp->__ar_sip[1],arp->__ar_sip[2],arp->__ar_sip[3]); ^~ /usr/include/stdio.h:286:31: note: passing argument to parameter here int sprintf(char * __restrict, const char * __restrict, ...); ^ map.c:355:121: warning: passing 'u_char[20]' (aka 'unsigned char[20]') 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] n_print("princ",line,1,lg,"%s \t%s (%s)\n", nast_hex_ntoa (eptr->ether_shost), ip, libnet_addr2name4(inet_addr(ip), LIBNET_RESOLVE)); ^~ /usr/include/arpa/inet.h:147:34: note: passing argument to parameter here in_addr_t inet_addr(const char *); ^ 6 warnings generated. cc -O2 -pipe -fcommon -fstack-protector-strong -fno-strict-aliasing -Wall -lpthread -I/usr/local/include -c sniff.c -o sniff.o cc: warning: -lpthread: 'linker' input unused [-Wunused-command-line-argument] cc -O2 -pipe -fcommon -fstack-protector-strong -fno-strict-aliasing -Wall -lpthread -I/usr/local/include -c data.c -o data.o cc: warning: -lpthread: 'linker' input unused [-Wunused-command-line-argument] cc -O2 -pipe -fcommon -fstack-protector-strong -fno-strict-aliasing -Wall -lpthread -I/usr/local/include -c rst.c -o rst.o cc: warning: -lpthread: 'linker' input unused [-Wunused-command-line-argument] cc -O2 -pipe -fcommon -fstack-protector-strong -fno-strict-aliasing -Wall -lpthread -I/usr/local/include -c fgw.c -o fgw.o cc: warning: -lpthread: 'linker' input unused [-Wunused-command-line-argument] fgw.c:39:2: warning: initializing 'u_char *' (aka 'unsigned char *') with an expression of type 'char[13]' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] "66.102.11.99" ^~~~~~~~~~~~~~ fgw.c:86:34: warning: passing 'u_char *' (aka '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] l = libnet_init (LIBNET_LINK, dev, ebuf); ^~~ /usr/local/include/./libnet/libnet-functions.h:64:45: note: passing argument to parameter 'device' here libnet_init(int injection_type, const char *device, char *err_buf); ^ fgw.c:86:39: warning: passing 'u_char[256]' (aka 'unsigned char[256]') 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] l = libnet_init (LIBNET_LINK, dev, ebuf); ^~~~ /usr/local/include/./libnet/libnet-functions.h:64:59: note: passing argument to parameter 'err_buf' here libnet_init(int injection_type, const char *device, char *err_buf); ^ fgw.c:92:34: warning: passing 'u_char *' (aka '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] l = libnet_init (LIBNET_LINK, dev, ebuf); ^~~ /usr/local/include/./libnet/libnet-functions.h:64:45: note: passing argument to parameter 'device' here libnet_init(int injection_type, const char *device, char *err_buf); ^ fgw.c:92:39: warning: passing 'u_char[256]' (aka 'unsigned char[256]') 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] l = libnet_init (LIBNET_LINK, dev, ebuf); ^~~~ /usr/local/include/./libnet/libnet-functions.h:64:59: note: passing argument to parameter 'err_buf' here libnet_init(int injection_type, const char *device, char *err_buf); ^ fgw.c:101:120: warning: passing 'u_char *' (aka '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 (libnet_build_ipv4 (LIBNET_TCP_H + LIBNET_IPV4_H, 0x08, 35320, 0, 64, IPPROTO_TCP, 0, myip, libnet_name2addr4(l, extip, LIBNET_DONT_RESOLVE), NULL, 0, l, 0)==-1) ^~~~~ /usr/local/include/./libnet/libnet-functions.h:257:44: note: passing argument to parameter 'host_name' here libnet_name2addr4(libnet_t *l, const char *host_name, uint8_t use_name); ^ fgw.c:111:26: warning: passing 'u_char *' (aka '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] if ((uphost = map_lan(dev, 0, &n))==NULL) ^~~ ./include/nast.h:63:30: note: passing argument to parameter 'dev' here struct host * map_lan (char *dev, u_short mode, u_short *n); ^ fgw.c:143:17: warning: passing 'u_char *' (aka '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] pcap_lookupnet(dev,&netp,&maskp,ebuf); ^~~ /usr/include/pcap/pcap.h:328:41: note: passing argument to parameter here PCAP_API int pcap_lookupnet(const char *, bpf_u_int32 *, bpf_u_int32 *, char *); ^ fgw.c:143:34: warning: passing 'u_char[256]' (aka 'unsigned char[256]') 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] pcap_lookupnet(dev,&netp,&maskp,ebuf); ^~~~ /usr/include/pcap/pcap.h:328:79: note: passing argument to parameter here PCAP_API int pcap_lookupnet(const char *, bpf_u_int32 *, bpf_u_int32 *, char *); ^ fgw.c:145:27: warning: passing 'u_char *' (aka '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 ((p = pcap_open_live (dev, BUFSIZ, NOT_PROMISC, 10, ebuf))==NULL) ^~~ /usr/include/pcap/pcap.h:406:45: note: passing argument to parameter here PCAP_API pcap_t *pcap_open_live(const char *, int, int, int, char *); ^ fgw.c:145:57: warning: passing 'u_char[256]' (aka 'unsigned char[256]') 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] if ((p = pcap_open_live (dev, BUFSIZ, NOT_PROMISC, 10, ebuf))==NULL) ^~~~ /usr/include/pcap/pcap.h:406:68: note: passing argument to parameter here PCAP_API pcap_t *pcap_open_live(const char *, int, int, int, char *); ^ fgw.c:198:103: warning: passing 'u_char *' (aka '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 ((ntohs(tcp->th_sport)==80) && (ntohs(tcp->th_dport)==2500) && (!strcmp(inet_ntoa(ip->ip_src), extip))) ^~~~~ /usr/include/string.h:86:39: note: passing argument to parameter here int strcmp(const char *, const char *) __pure; ^ 12 warnings generated. cc -O2 -pipe -fcommon -fstack-protector-strong -fno-strict-aliasing -Wall -lpthread -I/usr/local/include -c flink.c -o flink.o cc: warning: -lpthread: 'linker' input unused [-Wunused-command-line-argument] flink.c:73:26: warning: passing 'u_char *' (aka '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] if ((uphost = map_lan(dev, 0, &n))==NULL) ^~~ ./include/nast.h:63:30: note: passing argument to parameter 'dev' here struct host * map_lan (char *dev, u_short mode, u_short *n); ^ flink.c:88:45: warning: passing 'u_char[256]' (aka 'unsigned char[256]') 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] if ((l = libnet_init (LIBNET_RAW4, NULL, errbuf))==NULL) ^~~~~~ /usr/local/include/./libnet/libnet-functions.h:64:59: note: passing argument to parameter 'err_buf' here libnet_init(int injection_type, const char *device, char *err_buf); ^ flink.c:116:10: warning: passing 'u_char[20]' (aka 'unsigned char[20]') 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] sprintf(testip, "%d.%d.%d.%d", uphost[i].ip[0], uphost[i].ip[1], uphost[i].ip[2], uphost[i].ip[3]); ^~~~~~ /usr/include/stdio.h:286:31: note: passing argument to parameter here int sprintf(char * __restrict, const char * __restrict, ...); ^ flink.c:117:123: warning: passing 'u_char[20]' (aka 'unsigned char[20]') 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 ( (ptag = libnet_build_ipv4(LIBNET_ICMPV4_ECHO_H + LIBNET_IPV4_H, 0x00, 1000, 0, 64, IPPROTO_ICMP, 0, myip, inet_addr(testip), NULL, 0, l, ptag)) ==-1) ^~~~~~ /usr/include/arpa/inet.h:147:34: note: passing argument to parameter here in_addr_t inet_addr(const char *); ^ flink.c:131:27: warning: passing 'u_char *' (aka '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 ((p = pcap_open_live (dev, BUFSIZ, NOT_PROMISC, 10, errbuf))==NULL) ^~~ /usr/include/pcap/pcap.h:406:45: note: passing argument to parameter here PCAP_API pcap_t *pcap_open_live(const char *, int, int, int, char *); ^ flink.c:131:57: warning: passing 'u_char[256]' (aka 'unsigned char[256]') 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] if ((p = pcap_open_live (dev, BUFSIZ, NOT_PROMISC, 10, errbuf))==NULL) ^~~~~~ /usr/include/pcap/pcap.h:406:68: note: passing argument to parameter here PCAP_API pcap_t *pcap_open_live(const char *, int, int, int, char *); ^ flink.c:163:29: warning: passing 'u_char *' (aka '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] if ((offset = (device(dev,p)))==-1) return -1; ^~~ ./include/nast.h:58:19: note: passing argument to parameter 'dev' here int device (char *dev, pcap_t* descr); ^ flink.c:168:43: warning: passing 'u_char[20]' (aka 'unsigned char[20]') 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 ((ip->ip_src.s_addr == inet_addr(testip)) && icmp->icmp_type==ICMP_ECHOREPLY && icmp->icmp_id == 1000) ^~~~~~ /usr/include/arpa/inet.h:147:34: note: passing argument to parameter here in_addr_t inet_addr(const char *); ^ flink.c:178:15: warning: passing 'u_char[20]' (aka 'unsigned char[20]') 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] sprintf(testip, "%d.%d.%d.%d", uphost[1].ip[0], uphost[1].ip[1], uphost[1].ip[2], uphost[1].ip[3]); ^~~~~~ /usr/include/stdio.h:286:31: note: passing argument to parameter here int sprintf(char * __restrict, const char * __restrict, ...); ^ flink.c:180:15: warning: passing 'u_char[20]' (aka 'unsigned char[20]') 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] sprintf(testip, "%d.%d.%d.%d", uphost[0].ip[0], uphost[0].ip[1], uphost[0].ip[2], uphost[0].ip[3]); ^~~~~~ /usr/include/stdio.h:286:31: note: passing argument to parameter here int sprintf(char * __restrict, const char * __restrict, ...); ^ flink.c:182:28: warning: passing 'u_char[20]' (aka 'unsigned char[20]') 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 ( (ip_src=inet_addr(testip)) == -1) ^~~~~~ /usr/include/arpa/inet.h:147:34: note: passing argument to parameter here in_addr_t inet_addr(const char *); ^ flink.c:215:39: warning: passing 'u_char *' (aka '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 ((l = libnet_init (LIBNET_LINK, dev, errbuf))==NULL) ^~~ /usr/local/include/./libnet/libnet-functions.h:64:45: note: passing argument to parameter 'device' here libnet_init(int injection_type, const char *device, char *err_buf); ^ flink.c:215:44: warning: passing 'u_char[256]' (aka 'unsigned char[256]') 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] if ((l = libnet_init (LIBNET_LINK, dev, errbuf))==NULL) ^~~~~~ /usr/local/include/./libnet/libnet-functions.h:64:59: note: passing argument to parameter 'err_buf' here libnet_init(int injection_type, const char *device, char *err_buf); ^ flink.c:247:29: warning: passing 'u_char *' (aka '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 ((p = pcap_open_live (dev, BUFSIZ, PROMISC, 10, errbuf))==NULL) ^~~ /usr/include/pcap/pcap.h:406:45: note: passing argument to parameter here PCAP_API pcap_t *pcap_open_live(const char *, int, int, int, char *); ^ flink.c:247:55: warning: passing 'u_char[256]' (aka 'unsigned char[256]') 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] if ((p = pcap_open_live (dev, BUFSIZ, PROMISC, 10, errbuf))==NULL) ^~~~~~ /usr/include/pcap/pcap.h:406:68: note: passing argument to parameter here PCAP_API pcap_t *pcap_open_live(const char *, int, int, int, char *); ^ flink.c:291:19: warning: passing 'u_char *' (aka '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] offset = (device(dev,p)); ^~~ ./include/nast.h:58:19: note: passing argument to parameter 'dev' here int device (char *dev, pcap_t* descr); ^ 16 warnings generated. cc -O2 -pipe -fcommon -fstack-protector-strong -fno-strict-aliasing -Wall -lpthread -I/usr/local/include -c port.c -o port.o cc: warning: -lpthread: 'linker' input unused [-Wunused-command-line-argument] port.c:347:25: warning: passing 'u_char *' (aka '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] if ((uphost = map_lan(dev, 0, &n))==NULL) ^~~ ./include/nast.h:63:30: note: passing argument to parameter 'dev' here struct host * map_lan (char *dev, u_short mode, u_short *n); ^ port.c:466:21: warning: passing 'u_char[1024]' (aka 'unsigned char[1024]') 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] x = strlen(tmpbuf); ^~~~~~ /usr/include/string.h:101:28: note: passing argument to parameter here size_t strlen(const char *) __pure; ^ port.c:309:21: warning: variable 'bsent' set but not used [-Wunused-but-set-variable] int sd, r, size, bsent,z,k,x,y; ^ port.c:615:26: warning: passing 'u_char *' (aka '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] if ((uphost = map_lan(dev, 0, &n))==NULL) ^~~ ./include/nast.h:63:30: note: passing argument to parameter 'dev' here struct host * map_lan (char *dev, u_short mode, u_short *n); ^ port.c:635:4: warning: passing 'u_char *' (aka '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] dev, /* network interface */ ^~~ /usr/local/include/./libnet/libnet-functions.h:64:45: note: passing argument to parameter 'device' here libnet_init(int injection_type, const char *device, char *err_buf); ^ port.c:647:10: warning: passing 'u_char[20]' (aka 'unsigned char[20]') 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] sprintf(testip, "%d.%d.%d.%d", uphost[i].ip[0], uphost[i].ip[1], uphost[i].ip[2], uphost[i].ip[3]); ^~~~~~ /usr/include/stdio.h:286:31: note: passing argument to parameter here int sprintf(char * __restrict, const char * __restrict, ...); ^ port.c:654:17: warning: passing 'u_char *' (aka '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] pcap_lookupnet(dev,&netp,&maskp,errbuf); ^~~ /usr/include/pcap/pcap.h:328:41: note: passing argument to parameter here PCAP_API int pcap_lookupnet(const char *, bpf_u_int32 *, bpf_u_int32 *, char *); ^ port.c:658:31: warning: passing 'u_char *' (aka '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 ((descr = pcap_open_live (dev, BUFSIZ, NOT_PROMISC, 10,errbuf)) == NULL) ^~~ /usr/include/pcap/pcap.h:406:45: note: passing argument to parameter here PCAP_API pcap_t *pcap_open_live(const char *, int, int, int, char *); ^ port.c:665:22: warning: passing 'u_char *' (aka '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] if ((offset=(device(dev,descr)))==-1) return -1; ^~~ ./include/nast.h:58:19: note: passing argument to parameter 'dev' here int device (char *dev, pcap_t* descr); ^ port.c:707:21: warning: passing 'u_char[20]' (aka 'unsigned char[20]') 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] inet_addr(testip), /* destination IP */ ^~~~~~ /usr/include/arpa/inet.h:147:34: note: passing argument to parameter here in_addr_t inet_addr(const char *); ^ port.c:584:8: warning: variable 'linep' set but not used [-Wunused-but-set-variable] int linep; ^ 11 warnings generated. cc -O2 -pipe -fcommon -fstack-protector-strong -fno-strict-aliasing -Wall -lpthread -I/usr/local/include -c common.c -o common.o cc: warning: -lpthread: 'linker' input unused [-Wunused-command-line-argument] common.c:202:10: warning: passing 'char *' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] mhport (dev,plist_p,l); ^~~ ./include/nast.h:70:21: note: passing argument to parameter 'dev' here int mhport (u_char *dev, libnet_plist_t *plist_p, int lg); ^ common.c:295:8: warning: variable 'n' set but not used [-Wunused-but-set-variable] int n; ^ 2 warnings generated. cc -O2 -pipe -fcommon -fstack-protector-strong -fno-strict-aliasing -Wall -lpthread -I/usr/local/include -c stream.c -o stream.o cc: warning: -lpthread: 'linker' input unused [-Wunused-command-line-argument] cc -O2 -pipe -fcommon -fstack-protector-strong -fno-strict-aliasing -Wall -lpthread -I/usr/local/include -c igmp.c -o igmp.o cc: warning: -lpthread: 'linker' input unused [-Wunused-command-line-argument] cc -O2 -pipe -fcommon -fstack-protector-strong -fno-strict-aliasing -Wall -lpthread -I/usr/local/include -c bcount.c -o bcount.o cc: warning: -lpthread: 'linker' input unused [-Wunused-command-line-argument] bcount.c:156:15: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printf (value); ^~~~~ bcount.c:156:15: note: treat the string as an argument to avoid this printf (value); ^ "%s", bcount.c:123:8: warning: variable 'line' set but not used [-Wunused-but-set-variable] int line; ^ bcount.c:224:14: warning: variable 'l' set but not used [-Wunused-but-set-variable] int line, l; ^ bcount.c:224:8: warning: variable 'line' set but not used [-Wunused-but-set-variable] int line, l; ^ 4 warnings generated. cc -O2 -pipe -fcommon -fstack-protector-strong -fno-strict-aliasing -Wall -lpthread -I/usr/local/include -c error.c -o error.o cc: warning: -lpthread: 'linker' input unused [-Wunused-command-line-argument] error.c:32:8: warning: variable 'n' set but not used [-Wunused-but-set-variable] int n,ris; ^ error.c:32:10: warning: variable 'ris' set but not used [-Wunused-but-set-variable] int n,ris; ^ 2 warnings generated. cc -O2 -pipe -fcommon -fstack-protector-strong -fno-strict-aliasing -Wall -lpthread -I/usr/local/include -c ncurses/n_menu.c -o ncurses/n_menu.o cc: warning: -lpthread: 'linker' input unused [-Wunused-command-line-argument] ncurses/n_menu.c:97:8: warning: variable 'ris' set but not used [-Wunused-but-set-variable] int ris; ^ ncurses/n_menu.c:783:14: warning: passing 'char[10]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] fgw (dev); ^~~ ncurses/../include/nast.h:65:18: note: passing argument to parameter 'dev' here int fgw (u_char *dev); ^ ncurses/n_menu.c:944:17: warning: passing 'char[10]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] mhport (dev,plist_p,lr); ^~~ ncurses/../include/nast.h:70:21: note: passing argument to parameter 'dev' here int mhport (u_char *dev, libnet_plist_t *plist_p, int lg); ^ ncurses/n_menu.c:961:15: warning: passing 'char[10]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] flink(dev); ^~~ ncurses/../include/nast.h:67:20: note: passing argument to parameter 'dev' here int flink (u_char *dev); ^ ncurses/n_menu.c:978:15: warning: passing 'char[10]' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] mport(dev,ports,lr); ^~~ ncurses/../include/nast.h:69:20: note: passing argument to parameter 'dev' here int mport (u_char *dev, u_short ports[], int lg); ^ ncurses/n_menu.c:1360:27: warning: if statement has empty body [-Wempty-body] else if (ris == 'n'); ^ ncurses/n_menu.c:1360:27: note: put the semicolon on a separate line to silence this warning ncurses/n_menu.c:1542:10: warning: comparison of array 'currfil' equal to a null pointer is always false [-Wtautological-pointer-compare] if(currfil==0) ^~~~~~~ ~ ncurses/n_menu.c:1671:10: warning: comparison of array 'currfil' equal to a null pointer is always false [-Wtautological-pointer-compare] if(currfil==0) ^~~~~~~ ~ 8 warnings generated. cc -O2 -pipe -fcommon -fstack-protector-strong -fno-strict-aliasing -Wall -lpthread -I/usr/local/include -c ncurses/n_scroll_win.c -o ncurses/n_scroll_win.o cc: warning: -lpthread: 'linker' input unused [-Wunused-command-line-argument] cc -O2 -pipe -fcommon -fstack-protector-strong -fno-strict-aliasing -Wall -lpthread -I/usr/local/include -c ncurses/n_comm.c -o ncurses/n_comm.o cc: warning: -lpthread: 'linker' input unused [-Wunused-command-line-argument] ncurses/n_comm.c:209:8: warning: variable 'ris' set but not used [-Wunused-but-set-variable] int ris,i,ret; ^ 1 warning generated. cc -O2 -pipe -fcommon -fstack-protector-strong -fno-strict-aliasing -Wall -lpthread -I/usr/local/include -c ncurses/n_stream.c -o ncurses/n_stream.o cc: warning: -lpthread: 'linker' input unused [-Wunused-command-line-argument] ncurses/n_stream.c:120:9: warning: assigning to 'char *' from 'u_char *' (aka 'unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] data = packet = NULL; ^ ~~~~~~~~~~~~~ 1 warning generated. cc -O2 -pipe -fcommon -fstack-protector-strong -fno-strict-aliasing -Wall -lpthread -I/usr/local/include -c ncurses/n_conn.c -o ncurses/n_conn.o cc: warning: -lpthread: 'linker' input unused [-Wunused-command-line-argument] cc -O2 -pipe -fcommon -fstack-protector-strong -fno-strict-aliasing -Wall -lpthread -I/usr/local/include -c ncurses/n_rst.c -o ncurses/n_rst.o cc: warning: -lpthread: 'linker' input unused [-Wunused-command-line-argument] cc -O2 -pipe -fcommon -fstack-protector-strong -fno-strict-aliasing -Wall -lpthread -I/usr/local/include -c ncurses/n_nast.c -o ncurses/n_nast.o cc: warning: -lpthread: 'linker' input unused [-Wunused-command-line-argument] ncurses/n_nast.c:379:25: warning: if statement has empty body [-Wempty-body] else if (ris == 'n'); ^ ncurses/n_nast.c:379:25: note: put the semicolon on a separate line to silence this warning ncurses/n_nast.c:469:13: warning: comparison of array 'currfil' equal to a null pointer is always false [-Wtautological-pointer-compare] if(currfil==0) ^~~~~~~ ~ ncurses/n_nast.c:589:13: warning: comparison of array 'currfil' equal to a null pointer is always false [-Wtautological-pointer-compare] if(currfil==0) ^~~~~~~ ~ 3 warnings generated. cc -O2 -pipe -fcommon -fstack-protector-strong -fno-strict-aliasing -Wall -lpthread -fstack-protector-strong -o nast main.o dev.o tcp.o icmp.o arp.o udp.o prom.o eth.o map.o sniff.o data.o rst.o fgw.o flink.o port.o common.o stream.o igmp.o bcount.o error.o ncurses/n_menu.o ncurses/n_scroll_win.o ncurses/n_comm.o ncurses/n_stream.o ncurses/n_conn.o ncurses/n_rst.o ncurses/n_nast.o -lmenu -lncurses -lpcap -lnet -L/usr/local/lib Done! Type make install from root =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> Staging for nast-0.2.1.g20210616_1 ===> Generating temporary packing list install -s -m 555 /wrkdirs/usr/ports/net/nast/work/nast-96f4f8edd457772485415aaf5404ea56cf2b311f/nast /wrkdirs/usr/ports/net/nast/work/stage/usr/local/bin install -m 444 /wrkdirs/usr/ports/net/nast/work/nast-96f4f8edd457772485415aaf5404ea56cf2b311f/nast.8 /wrkdirs/usr/ports/net/nast/work/stage/usr/local/share/man/man8 ====> 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-06T11:07:46+0000' 'PKG_NOTE_ports_top_git_hash=c2c35d895e' 'PKG_NOTE_ports_top_checkout_unclean=yes' 'PKG_NOTE_port_git_hash=e7ed1fa017' '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 nast-0.2.1.g20210616_1 ===> Building nast-0.2.1.g20210616_1 =========================================================================== =>> Cleaning up wrkdir ===> Cleaning for nast-0.2.1.g20210616_1 build of net/nast | nast-0.2.1.g20210616_1 ended at Sat Apr 6 12:08:08 BST 2024 build time: 00:00:23