=>> Building net-mgmt/rate build started at Fri Apr 5 02:28:08 BST 2024 port directory: /usr/ports/net-mgmt/rate package name: rate-0.9_3 building for: FreeBSD pkg-builder.dan.net.uk 13.2-RELEASE-p10 FreeBSD 13.2-RELEASE-p10 amd64 maintained by: portmaster@bsdforge.com Makefile datestamp: -rw-r--r-- 1 root wheel 677 Jan 25 05:29 /usr/ports/net-mgmt/rate/Makefile Ports top last git commit: c2c35d895e Ports top unclean checkout: yes Port dir last git commit: 06e29c9984 Port dir unclean checkout: no Poudriere version: poudriere-git-3.4.99.20240122_1 Host OSVERSION: 1400097 Jail OSVERSION: 1302001 Job Id: 05 ---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/05/.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-- portmaster@bsdforge.com --End MAINTAINER-- --CONFIGURE_ARGS-- --End CONFIGURE_ARGS-- --CONFIGURE_ENV-- XDG_DATA_HOME=/wrkdirs/usr/ports/net-mgmt/rate/work XDG_CONFIG_HOME=/wrkdirs/usr/ports/net-mgmt/rate/work XDG_CACHE_HOME=/wrkdirs/usr/ports/net-mgmt/rate/work/.cache HOME=/wrkdirs/usr/ports/net-mgmt/rate/work TMPDIR="/tmp" PATH=/ccache/libexec/ccache:/wrkdirs/usr/ports/net-mgmt/rate/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin PKG_CONFIG_LIBDIR=/wrkdirs/usr/ports/net-mgmt/rate/work/.pkgconfig:/usr/local/libdata/pkgconfig:/usr/local/share/pkgconfig:/usr/libdata/pkgconfig SHELL=/bin/sh CONFIG_SHELL=/bin/sh CCACHE_DIR="/root/.ccache" --End CONFIGURE_ENV-- --MAKE_ENV-- XDG_DATA_HOME=/wrkdirs/usr/ports/net-mgmt/rate/work XDG_CONFIG_HOME=/wrkdirs/usr/ports/net-mgmt/rate/work XDG_CACHE_HOME=/wrkdirs/usr/ports/net-mgmt/rate/work/.cache HOME=/wrkdirs/usr/ports/net-mgmt/rate/work TMPDIR="/tmp" PATH=/ccache/libexec/ccache:/wrkdirs/usr/ports/net-mgmt/rate/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin PKG_CONFIG_LIBDIR=/wrkdirs/usr/ports/net-mgmt/rate/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 -DOPEN_BSD=1 -DHAVE_REGEX -DSTREAM_ANALYZER -DIOCTL_GETWINSIZE -DAUTOSENSE_DLH -fstack-protector-strong -fno-strict-aliasing " CPP="cpp" CPPFLAGS="" LDFLAGS=" -lcompat -fstack-protector-strong " LIBS="" CXX="c++" CXXFLAGS="-O2 -pipe -DOPEN_BSD=1 -DHAVE_REGEX -DSTREAM_ANALYZER -DIOCTL_GETWINSIZE -DAUTOSENSE_DLH -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/rate" EXAMPLESDIR="share/examples/rate" DATADIR="share/rate" WWWDIR="www/rate" ETCDIR="etc/rate" --End PLIST_SUB-- --SUB_LIST-- PREFIX=/usr/local LOCALBASE=/usr/local DATADIR=/usr/local/share/rate DOCSDIR=/usr/local/share/doc/rate EXAMPLESDIR=/usr/local/share/examples/rate WWWDIR=/usr/local/www/rate ETCDIR=/usr/local/etc/rate --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 ===> rate-0.9_3 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 ===> rate-0.9_3 depends on file: /usr/local/sbin/pkg - found ===> Returning to build of rate-0.9_3 =========================================================================== =================================================== ===== 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 rate-0.9_3 for building =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> Fetching all distfiles required by rate-0.9_3 for building => SHA256 Checksum OK for rate-0.9.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 rate-0.9_3 for building ===> Extracting for rate-0.9_3 => SHA256 Checksum OK for rate-0.9.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 rate-0.9_3 ===> Applying FreeBSD patches for rate-0.9_3 from /usr/ports/net-mgmt/rate/files =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> Configuring for rate-0.9_3 =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> Building for rate-0.9_3 cc -O2 -pipe -DOPEN_BSD=1 -DHAVE_REGEX -DSTREAM_ANALYZER -DIOCTL_GETWINSIZE -DAUTOSENSE_DLH -fstack-protector-strong -fno-strict-aliasing -c rate.c -o rate.o In file included from rate.c:32: /usr/include/sys/timeb.h:44:2: warning: "this file includes which is deprecated" [-W#warnings] #warning "this file includes which is deprecated" ^ rate.c:172:7: warning: implicit declaration of function 'check_regex' is invalid in C99 [-Wimplicit-function-declaration] if(!check_regex(data + opt_prefix, hd->caplen - opt_prefix, opt_nul_char)) return; ^ rate.c:183:72: warning: data argument not used by format string [-Wformat-extra-args] printf("rate 0.9 - Mateusz 'mteg' Golicz , 2003\n", name); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ rate.c:240:18: warning: initializing 'unsigned char *' with an expression of type 'char[5]' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] unsigned char * interface = "eth0"; ^ ~~~~~~ rate.c:299:10: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] help(argv[0]); ^~~~~~~ rate.c:181:27: note: passing argument to parameter 'name' here void help(unsigned char * name) ^ rate.c:302:15: 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] interface = strdup(optarg); ^ ~~~~~~~~~~~~~~ rate.c:305:23: 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] opt_bpfexpression = strdup(optarg); ^ ~~~~~~~~~~~~~~ rate.c:317:30: 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((handle = pcap_open_live(interface, 2048, opt_promisc, 50, ebuff))==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 *); ^ rate.c:381:3: warning: implicit declaration of function 'prepare_regex' is invalid in C99 [-Wimplicit-function-declaration] prepare_regex(opt_regex, opt_caplen); ^ rate.c:387:33: 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(pcap_compile(handle, &bpf, opt_bpfexpression, 1, 0xffffffff) == -1) ^~~~~~~~~~~~~~~~~ /usr/include/pcap/pcap.h:455:71: note: passing argument to parameter here PCAP_API int pcap_compile(pcap_t *, struct bpf_program *, const char *, int, ^ 10 warnings generated. cc -O2 -pipe -DOPEN_BSD=1 -DHAVE_REGEX -DSTREAM_ANALYZER -DIOCTL_GETWINSIZE -DAUTOSENSE_DLH -fstack-protector-strong -fno-strict-aliasing -c rate_estimator.c -o rate_estimator.o In file included from rate_estimator.c:31: /usr/include/sys/timeb.h:44:2: warning: "this file includes which is deprecated" [-W#warnings] #warning "this file includes which is deprecated" ^ rate_estimator.c:106:10: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] help(argv[0]); ^~~~~~~ ./protos.h:36:27: note: passing argument to parameter 'name' here void help(unsigned char * name); ^ rate_estimator.c:120:22: 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] opt_bpfexpression = argv[optind++]; ^ ~~~~~~~~~~~~~~ 3 warnings generated. cc -O2 -pipe -DOPEN_BSD=1 -DHAVE_REGEX -DSTREAM_ANALYZER -DIOCTL_GETWINSIZE -DAUTOSENSE_DLH -fstack-protector-strong -fno-strict-aliasing -c rate_abusers.c -o rate_abusers.o In file included from rate_abusers.c:31: /usr/include/sys/timeb.h:44:2: warning: "this file includes which is deprecated" [-W#warnings] #warning "this file includes which is deprecated" ^ rate_abusers.c:235:10: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] help(argv[0]); ^~~~~~~ ./protos.h:36:27: note: passing argument to parameter 'name' here void help(unsigned char * name); ^ rate_abusers.c:273:22: 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] opt_bpfexpression = argv[optind++]; ^ ~~~~~~~~~~~~~~ 3 warnings generated. cc -O2 -pipe -DOPEN_BSD=1 -DHAVE_REGEX -DSTREAM_ANALYZER -DIOCTL_GETWINSIZE -DAUTOSENSE_DLH -fstack-protector-strong -fno-strict-aliasing -c rate_extractor.c -o rate_extractor.o In file included from rate_extractor.c:32: /usr/include/sys/timeb.h:44:2: warning: "this file includes which is deprecated" [-W#warnings] #warning "this file includes which is deprecated" ^ rate_extractor.c:60:2: warning: implicit declaration of function 'extractor' is invalid in C99 [-Wimplicit-function-declaration] extractor(data, caplen, opt_nul_char, opt_ips); ^ rate_extractor.c:86:10: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] help(argv[0]); ^~~~~~~ ./protos.h:36:27: note: passing argument to parameter 'name' here void help(unsigned char * name); ^ rate_extractor.c:120:2: warning: implicit declaration of function 'prepare_extractor' is invalid in C99 [-Wimplicit-function-declaration] prepare_extractor(opt_extractor, opt_order, opt_caplen); ^ 4 warnings generated. cc -O2 -pipe -DOPEN_BSD=1 -DHAVE_REGEX -DSTREAM_ANALYZER -DIOCTL_GETWINSIZE -DAUTOSENSE_DLH -fstack-protector-strong -fno-strict-aliasing -c rate_sta.c -o rate_sta.o In file included from rate_sta.c:32: /usr/include/sys/timeb.h:44:2: warning: "this file includes which is deprecated" [-W#warnings] #warning "this file includes which is deprecated" ^ rate_sta.c:359:10: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] help(argv[0]); ^~~~~~~ ./protos.h:36:27: note: passing argument to parameter 'name' here void help(unsigned char * name); ^ 2 warnings generated. cc -O2 -pipe -DOPEN_BSD=1 -DHAVE_REGEX -DSTREAM_ANALYZER -DIOCTL_GETWINSIZE -DAUTOSENSE_DLH -fstack-protector-strong -fno-strict-aliasing -c lib.c -o lib.o lib.c:92:16: 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((z = index(s, '/'))) ^ /usr/include/strings.h:62:25: note: passing argument to parameter here char *index(const char *, int) __pure; /* LEGACY */ ^ lib.c:92:8: 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] if((z = index(s, '/'))) ^ ~~~~~~~~~~~~~ lib.c:96:18: 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(inet_my_aton(s, &in) == 0) return(-1); ^ lib.c:47:37: note: passing argument to parameter 'cp' here inline int inet_my_aton(const char *cp, void * addr) ^ lib.c:104:21: 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] masksize = strtol(z, (char**) &e, 0); ^ /usr/include/stdlib.h:117:37: note: passing argument to parameter here long strtol(const char * __restrict, char ** __restrict, int); ^ lib.c:121:21: 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(!inet_my_aton(z, &in)) return(-1); ^ lib.c:47:37: note: passing argument to parameter 'cp' here inline int inet_my_aton(const char *cp, void * addr) ^ lib.c:177:41: 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] word = (unsigned char*) malloc(strlen(start) + 1); ^~~~~ /usr/include/string.h:101:28: note: passing argument to parameter here size_t strlen(const char *) __pure; ^ lib.c:258:13: 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] c = strtod(val, (char**) &endptr); ^~~ /usr/include/stdlib.h:115:39: note: passing argument to parameter here double strtod(const char * __restrict, char ** __restrict); ^ lib.c:265:12: 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(endptr, "pps") == 0 || strcmp(endptr, "bps") == 0) mult = 1; ^~~~~~ /usr/include/string.h:86:25: note: passing argument to parameter here int strcmp(const char *, const char *) __pure; ^ lib.c:265: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(strcmp(endptr, "pps") == 0 || strcmp(endptr, "bps") == 0) mult = 1; ^~~~~~ /usr/include/string.h:86:25: note: passing argument to parameter here int strcmp(const char *, const char *) __pure; ^ lib.c:266:13: 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(endptr, "kpps")) mult = 1000; ^~~~~~ /usr/include/string.h:86:25: note: passing argument to parameter here int strcmp(const char *, const char *) __pure; ^ lib.c:267:13: 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(endptr, "Mpps")) mult = 1000000; ^~~~~~ /usr/include/string.h:86:25: note: passing argument to parameter here int strcmp(const char *, const char *) __pure; ^ lib.c:268:13: 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(endptr, "Gpps")) mult = 1000000000; ^~~~~~ /usr/include/string.h:86:25: note: passing argument to parameter here int strcmp(const char *, const char *) __pure; ^ lib.c:270:13: 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(endptr, "kbps")) mult = 1024 / 8; ^~~~~~ /usr/include/string.h:86:25: note: passing argument to parameter here int strcmp(const char *, const char *) __pure; ^ lib.c:271:13: 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(endptr, "Kbps")) mult = 1024 / 8; ^~~~~~ /usr/include/string.h:86:25: note: passing argument to parameter here int strcmp(const char *, const char *) __pure; ^ lib.c:272:13: 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(endptr, "Mbps")) mult = 1024 * 1024 / 8; ^~~~~~ /usr/include/string.h:86:25: note: passing argument to parameter here int strcmp(const char *, const char *) __pure; ^ lib.c:273:13: 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(endptr, "Gbps")) { mult = 1024 * 1024 * 1024; mult /= 8; } ^~~~~~ /usr/include/string.h:86:25: note: passing argument to parameter here int strcmp(const char *, const char *) __pure; ^ lib.c:275:13: 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(endptr, "kBps")) mult = 1024; ^~~~~~ /usr/include/string.h:86:25: note: passing argument to parameter here int strcmp(const char *, const char *) __pure; ^ lib.c:276:13: 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(endptr, "KBps")) mult = 1024; ^~~~~~ /usr/include/string.h:86:25: note: passing argument to parameter here int strcmp(const char *, const char *) __pure; ^ lib.c:277:13: 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(endptr, "MBps")) mult = 1024 * 1024; ^~~~~~ /usr/include/string.h:86:25: note: passing argument to parameter here int strcmp(const char *, const char *) __pure; ^ lib.c:278:13: 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(endptr, "GBps")) mult = 1024 * 1024 * 1024; ^~~~~~ /usr/include/string.h:86:25: note: passing argument to parameter here int strcmp(const char *, const char *) __pure; ^ lib.c:310: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 ((he = gethostbyname(host)) != NULL) ^~~~ /usr/include/netdb.h:236:43: note: passing argument to parameter here struct hostent *gethostbyname(const char *); ^ lib.c:317:19: 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(inet_my_aton(host, &sin)) h = 1; ^~~~ lib.c:47:37: note: passing argument to parameter 'cp' here inline int inet_my_aton(const char *cp, void * addr) ^ 22 warnings generated. cc -O2 -pipe -DOPEN_BSD=1 -DHAVE_REGEX -DSTREAM_ANALYZER -DIOCTL_GETWINSIZE -DAUTOSENSE_DLH -fstack-protector-strong -fno-strict-aliasing -c iphash.c -o iphash.o iphash.c:56:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if(mask = index(tmpname, '/')) ~~~~~^~~~~~~~~~~~~~~~~~~~~ iphash.c:56:10: note: place parentheses around the assignment to silence this warning if(mask = index(tmpname, '/')) ^ ( ) iphash.c:56:10: note: use '==' to turn this assignment into an equality comparison if(mask = index(tmpname, '/')) ^ == iphash.c:64:17: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] ip = inet_addr(tmpname); ^~~~~~~ iphash.c:38:35: note: passing argument to parameter here u_int32_t inet_addr(unsigned char*); ^ iphash.c:68:12: warning: implicit declaration of function 'htonl' is invalid in C99 [-Wimplicit-function-declaration] netmask = htonl(netmask); ^ 3 warnings generated. cc -O2 -pipe -DOPEN_BSD=1 -DHAVE_REGEX -DSTREAM_ANALYZER -DIOCTL_GETWINSIZE -DAUTOSENSE_DLH -fstack-protector-strong -fno-strict-aliasing -c regex.c -o regex.o In file included from regex.c:32: /usr/include/sys/timeb.h:44:2: warning: "this file includes which is deprecated" [-W#warnings] #warning "this file includes which is deprecated" ^ regex.c:334:14: warning: passing 'unsigned char[512]' 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] snprintf(strout, l, "%s", stringtab[o]); ^~~~~~ /usr/include/stdio.h:298:32: note: passing argument to parameter here int snprintf(char * __restrict, size_t, const char * __restrict, ^ regex.c:345:14: warning: passing 'unsigned char[512]' 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] snprintf(strout, l, "%s", stringtab[i]); ^~~~~~ /usr/include/stdio.h:298:32: note: passing argument to parameter here int snprintf(char * __restrict, size_t, const char * __restrict, ^ regex.c:351:1: warning: non-void function does not return a value [-Wreturn-type] } ^ 4 warnings generated. cc -O2 -pipe -DOPEN_BSD=1 -DHAVE_REGEX -DSTREAM_ANALYZER -DIOCTL_GETWINSIZE -DAUTOSENSE_DLH -fstack-protector-strong -fno-strict-aliasing -c save.c -o save.o save.c:138:32: warning: implicit declaration of function 'getuid' is invalid in C99 [-Wimplicit-function-declaration] struct passwd * pw = getpwuid(getuid()); ^ save.c:157:73: warning: more '%' conversions than data arguments [-Wformat-insufficient-args] fprintf(stderr, "Unable to save operation mode, unable to open file '%s' for writing.\n"); ~^ save.c:203:32: warning: implicit declaration of function 'getuid' is invalid in C99 [-Wimplicit-function-declaration] struct passwd * pw = getpwuid(getuid()); ^ 3 warnings generated. cc -O2 -pipe -DOPEN_BSD=1 -DHAVE_REGEX -DSTREAM_ANALYZER -DIOCTL_GETWINSIZE -DAUTOSENSE_DLH -fstack-protector-strong -fno-strict-aliasing -c streams.c -o streams.o In file included from streams.c:23: /usr/include/sys/timeb.h:44:2: warning: "this file includes which is deprecated" [-W#warnings] #warning "this file includes which is deprecated" ^ streams.c:62:38: warning: implicit declaration of function 'sta_malloc' is invalid in C99 [-Wimplicit-function-declaration] sta_class * c = (sta_class*) sta_malloc(sizeof(sta_class)); ^ streams.c:62:25: warning: cast to 'sta_class *' (aka 'struct class *') from smaller integer type 'int' [-Wint-to-pointer-cast] sta_class * c = (sta_class*) sta_malloc(sizeof(sta_class)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ streams.c:125:2: warning: implicitly declaring library function 'memset' with type 'void *(void *, int, unsigned long)' [-Wimplicit-function-declaration] memset(streamhash, 0, sizeof(streamhash)); ^ streams.c:125:2: note: include the header or explicitly provide a declaration for 'memset' streams.c:137:21: warning: implicit declaration of function 'sta_malloc' is invalid in C99 [-Wimplicit-function-declaration] host = (sta_host*) sta_malloc(sizeof(sta_host)); ^ streams.c:137:9: warning: cast to 'sta_host *' (aka 'struct host *') from smaller integer type 'int' [-Wint-to-pointer-cast] host = (sta_host*) sta_malloc(sizeof(sta_host)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ streams.c:255:8: warning: implicitly declaring library function 'memcpy' with type 'void *(void *, const void *, unsigned long)' [-Wimplicit-function-declaration] memcpy(&s->endpoints[1].firstdata, now, sizeof(struct timeval)); ^ streams.c:255:8: note: include the header or explicitly provide a declaration for 'memcpy' streams.c:267:21: warning: implicit declaration of function 'sta_malloc' is invalid in C99 [-Wimplicit-function-declaration] s = (sta_stream*) sta_malloc(sizeof(sta_stream)); ^ streams.c:267:7: warning: cast to 'sta_stream *' (aka 'struct stream *') from smaller integer type 'int' [-Wint-to-pointer-cast] s = (sta_stream*) sta_malloc(sizeof(sta_stream)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ streams.c:403:15: warning: implicit declaration of function 'sta_process' is invalid in C99 [-Wimplicit-function-declaration] if((proto = sta_process(s, content, len, endpoint))) ^ streams.c:498:4: warning: implicit declaration of function 'sta_destroyprotodata' is invalid in C99 [-Wimplicit-function-declaration] sta_destroyprotodata(s); ^ streams.c:499:4: warning: implicit declaration of function 'sta_free' is invalid in C99 [-Wimplicit-function-declaration] sta_free(s); ^ streams.c:565:28: warning: implicit declaration of function 'sta_malloc' is invalid in C99 [-Wimplicit-function-declaration] int *leasttimes = (void*) sta_malloc(sizeof(int) * count); ^ streams.c:565:20: warning: cast to 'void *' from smaller integer type 'int' [-Wint-to-void-pointer-cast] int *leasttimes = (void*) sta_malloc(sizeof(int) * count); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ streams.c:566:29: warning: cast to 'void *' from smaller integer type 'int' [-Wint-to-void-pointer-cast] sta_stream ** leasttable = (void*) sta_malloc(sizeof(sta_stream*) * count); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ streams.c:591:6: warning: implicitly declaring library function 'memmove' with type 'void *(void *, const void *, unsigned long)' [-Wimplicit-function-declaration] memmove(leasttimes + i + 1, leasttimes + i, sizeof(int) * (count - i - 1)); ^ streams.c:591:6: note: include the header or explicitly provide a declaration for 'memmove' streams.c:638:3: warning: implicit declaration of function 'sta_destroyprotodata' is invalid in C99 [-Wimplicit-function-declaration] sta_destroyprotodata(s); ^ streams.c:639:3: warning: implicit declaration of function 'sta_free' is invalid in C99 [-Wimplicit-function-declaration] sta_free(s); ^ streams.c:653:6: warning: implicitly declaring library function 'free' with type 'void (void *)' [-Wimplicit-function-declaration] free(next); ^ streams.c:653:6: note: include the header or explicitly provide a declaration for 'free' 19 warnings generated. cc -O2 -pipe -DOPEN_BSD=1 -DHAVE_REGEX -DSTREAM_ANALYZER -DIOCTL_GETWINSIZE -DAUTOSENSE_DLH -fstack-protector-strong -fno-strict-aliasing -c streamstat.c -o streamstat.o In file included from streamstat.c:21: /usr/include/sys/timeb.h:44:2: warning: "this file includes which is deprecated" [-W#warnings] #warning "this file includes which is deprecated" ^ streamstat.c:79:4: warning: implicitly declaring library function 'memmove' with type 'void *(void *, const void *, unsigned long)' [-Wimplicit-function-declaration] memmove(list + j + 1, list + j, sizeof(void*) * (*n - j - (*n == maxitems ? 1 : 0))); ^ streamstat.c:79:4: note: include the header or explicitly provide a declaration for 'memmove' streamstat.c:96:34: warning: implicit declaration of function 'sta_malloc' is invalid in C99 [-Wimplicit-function-declaration] sta_host ** list = (sta_host**) sta_malloc(sizeof(sta_host*) * maxitems); ^ streamstat.c:96:21: warning: cast to 'sta_host **' (aka 'struct host **') from smaller integer type 'int' [-Wint-to-pointer-cast] sta_host ** list = (sta_host**) sta_malloc(sizeof(sta_host*) * maxitems); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ streamstat.c:108:9: warning: implicit declaration of function 'stastream_isours' is invalid in C99 [-Wimplicit-function-declaration] if(!stastream_isours(current->ip)) continue; ^ streamstat.c:160:38: warning: implicit declaration of function 'sta_malloc' is invalid in C99 [-Wimplicit-function-declaration] sta_stream ** list = (sta_stream**) sta_malloc(sizeof(sta_stream*) * maxitems); ^ streamstat.c:160:23: warning: cast to 'sta_stream **' (aka 'struct stream **') from smaller integer type 'int' [-Wint-to-pointer-cast] sta_stream ** list = (sta_stream**) sta_malloc(sizeof(sta_stream*) * maxitems); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ streamstat.c:170:9: warning: implicit declaration of function 'stastream_isours' is invalid in C99 [-Wimplicit-function-declaration] if(!(stastream_isours(current->endpoints[0].host->ip) || ^ streamstat.c:183:2: warning: implicitly declaring library function 'memset' with type 'void *(void *, int, unsigned long)' [-Wimplicit-function-declaration] memset(pi, 0, sizeof(struct protoinfo)); ^ streamstat.c:183:2: note: include the header or explicitly provide a declaration for 'memset' streamstat.c:208:50: warning: implicit declaration of function 'sta_malloc' is invalid in C99 [-Wimplicit-function-declaration] struct protoinfo ** list = (struct protoinfo**) sta_malloc(sizeof(struct protoinfo*) * maxitems); ^ streamstat.c:208:29: warning: cast to 'struct protoinfo **' from smaller integer type 'int' [-Wint-to-pointer-cast] struct protoinfo ** list = (struct protoinfo**) sta_malloc(sizeof(struct protoinfo*) * maxitems); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ streamstat.c:286:2: warning: implicitly declaring library function 'snprintf' with type 'int (char *, unsigned long, const char *, ...)' [-Wimplicit-function-declaration] snprintf(fmtstring, 256, fmt, n, n, n, n); ^ streamstat.c:286:2: note: include the header or explicitly provide a declaration for 'snprintf' streamstat.c:298:50: warning: implicitly declaring library function 'strlen' with type 'unsigned long (const char *)' [-Wimplicit-function-declaration] snprintf(header, 500, customize_format(cols - strlen(indent), 31, "%%s%%s%%%d.%ds%%%d.%ds Traffic| Speed%%s"), ^ streamstat.c:298:50: note: include the header or explicitly provide a declaration for 'strlen' streamstat.c:402:30: warning: passing 'char[20]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] return(auto_snprintf(300, "%s%s%7s%s%c%s%7s%s ", ^~~~~~~~~~~~~~~~~~~~~ ./util.h:20:56: note: passing argument to parameter 'format' here unsigned char * auto_snprintf(int max, unsigned char * format, ...); ^ streamstat.c:402:10: warning: returning 'unsigned char *' from a function with result type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] return(auto_snprintf(300, "%s%s%7s%s%c%s%7s%s ", ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ streamstat.c:423:13: warning: implicit declaration of function 'sta_protoinfo' is invalid in C99 [-Wimplicit-function-declaration] sta_protoinfo(s), ^ streamstat.c:412:30: warning: passing 'char[36]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] return(auto_snprintf(300, "%s%s%7s%s%c%s%7s%s \n%s%s%-70.70s%s ", ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./util.h:20:56: note: passing argument to parameter 'format' here unsigned char * auto_snprintf(int max, unsigned char * format, ...); ^ streamstat.c:412:10: warning: returning 'unsigned char *' from a function with result type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] return(auto_snprintf(300, "%s%s%7s%s%c%s%7s%s \n%s%s%-70.70s%s ", ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ streamstat.c:426:1: warning: non-void function does not return a value in all control paths [-Wreturn-type] } ^ streamstat.c:434:24: warning: implicit declaration of function 'sta_malloc' is invalid in C99 [-Wimplicit-function-declaration] list = (sta_stream**) sta_malloc(sizeof(sta_stream*) * h->streamcount); ^ streamstat.c:434:9: warning: cast to 'sta_stream **' (aka 'struct stream **') from smaller integer type 'int' [-Wint-to-pointer-cast] list = (sta_stream**) sta_malloc(sizeof(sta_stream*) * h->streamcount); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 21 warnings generated. cc -O2 -pipe -DOPEN_BSD=1 -DHAVE_REGEX -DSTREAM_ANALYZER -DIOCTL_GETWINSIZE -DAUTOSENSE_DLH -fstack-protector-strong -fno-strict-aliasing -c process.c -o process.o In file included from process.c:23: /usr/include/sys/timeb.h:44:2: warning: "this file includes which is deprecated" [-W#warnings] #warning "this file includes which is deprecated" ^ process.c:169:25: warning: implicitly declaring library function 'malloc' with type 'void *(unsigned long)' [-Wimplicit-function-declaration] str = (unsigned char*) malloc(m + 1); ^ process.c:169:25: note: include the header or explicitly provide a declaration for 'malloc' process.c:174:25: warning: implicitly declaring library function 'realloc' with type 'void *(void *, unsigned long)' [-Wimplicit-function-declaration] str = (unsigned char*) realloc(str, i + 1); ^ process.c:174:25: note: include the header or explicitly provide a declaration for 'realloc' process.c:181:19: 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] pos = rabin_karp(d, maxd, str, l = strlen(str)); ^ process.c:136:42: note: passing argument to parameter 'y' here static inline int rabin_karp(const char *y, int n, const char *x, int m) ^ process.c:220:4: warning: implicitly declaring library function 'free' with type 'void (void *)' [-Wimplicit-function-declaration] free(portinfos); ^ process.c:220:4: note: include the header or explicitly provide a declaration for 'free' process.c:282:7: warning: implicitly declaring library function 'sscanf' with type 'int (const char *restrict, const char *restrict, ...)' [-Wimplicit-function-declaration] if(sscanf(pasv, "(%d,%d,%d,%d,%d,%d)", &i1, &i2, &i3, &i4, &p1, &p2) == 6) ^ process.c:282:7: note: include the header or explicitly provide a declaration for 'sscanf' process.c:282:14: 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(sscanf(pasv, "(%d,%d,%d,%d,%d,%d)", &i1, &i2, &i3, &i4, &p1, &p2) == 6) ^~~~ process.c:284:20: warning: implicit declaration of function 'htonl' is invalid in C99 [-Wimplicit-function-declaration] u_int32_t ip = htonl((i1 << 24) | (i2 << 16) | (i3 << 8) | i4); ^ process.c:285:22: warning: implicit declaration of function 'htons' is invalid in C99 [-Wimplicit-function-declaration] u_int16_t port = htons((p1 << 8) | p2); ^ process.c:301:14: 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(sscanf(port, "%d,%d,%d,%d,%d,%d", &i1, &i2, &i3, &i4, &p1, &p2) == 6) ^~~~ process.c:303:20: warning: implicit declaration of function 'htonl' is invalid in C99 [-Wimplicit-function-declaration] u_int32_t ip = htonl((i1 << 24) | (i2 << 16) | (i3 << 8) | i4); ^ process.c:304:22: warning: implicit declaration of function 'htons' is invalid in C99 [-Wimplicit-function-declaration] u_int16_t port = htons((p1 << 8) | p2); ^ process.c:348:41: warning: passing 'char[7]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] s->protocol_data = auto_snprintf(256, "%s => ", from); ^~~~~~~~ ./util.h:20:56: note: passing argument to parameter 'format' here unsigned char * auto_snprintf(int max, unsigned char * format, ...); ^ process.c:355:25: warning: passing 'char[5]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] r = auto_snprintf(256, "%s%s", s->protocol_data, to); ^~~~~~ ./util.h:20:56: note: passing argument to parameter 'format' here unsigned char * auto_snprintf(int max, unsigned char * format, ...); ^ process.c:375:41: warning: passing 'char[6]' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] s->protocol_data = auto_snprintf(250, "%s:%s", host, req); ^~~~~~~ ./util.h:20:56: note: passing argument to parameter 'format' here unsigned char * auto_snprintf(int max, unsigned char * format, ...); ^ process.c:396:3: warning: implicitly declaring library function 'snprintf' with type 'int (char *, unsigned long, const char *, ...)' [-Wimplicit-function-declaration] snprintf(buffer, n, "%s", s->protocol_data); ^ process.c:396:3: note: include the header or explicitly provide a declaration for 'snprintf' process.c:396:29: warning: format specifies type 'char *' but the argument has type 'void *' [-Wformat] snprintf(buffer, n, "%s", s->protocol_data); ~~ ^~~~~~~~~~~~~~~~ process.c:402:35: warning: format specifies type 'char *' but the argument has type 'void *' [-Wformat] snprintf(buffer, n, "User: %s", s->protocol_data); ~~ ^~~~~~~~~~~~~~~~ process.c:455:17: 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] if(strncmp(content, "220 ", 4) == 0 && ^~~~~~~ /usr/include/string.h:106:26: note: passing argument to parameter here int strncmp(const char *, const char *, size_t) __pure; ^ process.c:456: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] ((rabin_karp(content, len, "SMTP", 4) != -1) || ^~~~~~~ process.c:136:42: note: passing argument to parameter 'y' here static inline int rabin_karp(const char *y, int n, const char *x, int m) ^ process.c:457: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] (rabin_karp(content, len, "smtp", 4) != -1))) ^~~~~~~ process.c:136:42: note: passing argument to parameter 'y' here static inline int rabin_karp(const char *y, int n, const char *x, int m) ^ process.c:459: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] else if(strncmp(content, "+OK", 3) == 0) ^~~~~~~ /usr/include/string.h:106:26: note: passing argument to parameter here int strncmp(const char *, const char *, size_t) __pure; ^ process.c:465:20: 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] if(rabin_karp(content, len, "220", 3) != -1 && ^~~~~~~ process.c:136:42: note: passing argument to parameter 'y' here static inline int rabin_karp(const char *y, int n, const char *x, int m) ^ process.c:466:23: 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] ((rabin_karp(content, len, "FTP", 3) != -1) || ^~~~~~~ process.c:136:42: note: passing argument to parameter 'y' here static inline int rabin_karp(const char *y, int n, const char *x, int m) ^ process.c:467:23: 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] (rabin_karp(content, len, "ftp", 3) != -1))) ^~~~~~~ process.c:136:42: note: passing argument to parameter 'y' here static inline int rabin_karp(const char *y, int n, const char *x, int m) ^ process.c:479:17: 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] if(strncmp(content, "GET ", 4) == 0 || ^~~~~~~ /usr/include/string.h:106:26: note: passing argument to parameter here int strncmp(const char *, const char *, size_t) __pure; ^ process.c:480:18: 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] strncmp(content, "PUT ", 4) == 0 || ^~~~~~~ /usr/include/string.h:106:26: note: passing argument to parameter here int strncmp(const char *, const char *, size_t) __pure; ^ process.c:481:18: 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] strncmp(content, "HEAD ", 5) == 0 || ^~~~~~~ /usr/include/string.h:106:26: note: passing argument to parameter here int strncmp(const char *, const char *, size_t) __pure; ^ process.c:482:18: 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] strncmp(content, "POST ", 5) == 0) ^~~~~~~ /usr/include/string.h:106:26: note: passing argument to parameter here int strncmp(const char *, const char *, size_t) __pure; ^ process.c:500:29: warning: implicit declaration of function 'ntohs' is invalid in C99 [-Wimplicit-function-declaration] if(!(g = tcp_port_guess(ntohs(s->endpoints[1].port)))) ^ process.c:533:28: warning: implicit declaration of function 'ntohs' is invalid in C99 [-Wimplicit-function-declaration] if(!(g = udp_port_guess(ntohs(s->endpoints[1].port)))) ^ process.c:574:11: warning: implicit declaration of function 'ntohs' is invalid in C99 [-Wimplicit-function-declaration] int p1 = ntohs(s->endpoints[0].port); ^ process.c:596:26: warning: implicit declaration of function 'htons' is invalid in C99 [-Wimplicit-function-declaration] if(!(se = getservbyport(htons(p1), proto))) ^ 33 warnings generated. cc -O2 -pipe -DOPEN_BSD=1 -DHAVE_REGEX -DSTREAM_ANALYZER -DIOCTL_GETWINSIZE -DAUTOSENSE_DLH -fstack-protector-strong -fno-strict-aliasing -c util.c -o util.o In file included from util.c:22: /usr/include/sys/timeb.h:44:2: warning: "this file includes which is deprecated" [-W#warnings] #warning "this file includes which is deprecated" ^ util.c:38:16: 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] n = vsnprintf(out, max, format, ap); ^~~ /usr/include/stdio.h:300:33: note: passing argument to parameter here int vsnprintf(char * __restrict, size_t, const char * __restrict, ^ util.c:38: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] n = vsnprintf(out, max, format, ap); ^~~~~~ /usr/include/stdio.h:300:66: note: passing argument to parameter here int vsnprintf(char * __restrict, size_t, const char * __restrict, ^ 3 warnings generated. cc -O2 -pipe -DOPEN_BSD=1 -DHAVE_REGEX -DSTREAM_ANALYZER -DIOCTL_GETWINSIZE -DAUTOSENSE_DLH -fstack-protector-strong -fno-strict-aliasing -c dns.c -o dns.o dns.c:336:10: warning: indirection of non-volatile null pointer will be deleted, not trap [-Wnull-dereference] *(int*)0=0; ^~~~~~~~ dns.c:336:10: note: consider using __builtin_trap() or qualifying pointer with 'volatile' dns.c:341:13: warning: indirection of non-volatile null pointer will be deleted, not trap [-Wnull-dereference] *(int*)0=0; ^~~~~~~~ dns.c:341:13: note: consider using __builtin_trap() or qualifying pointer with 'volatile' dns.c:1073:83: warning: passing 'int *' to parameter of type 'socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign] r = recvfrom(resfd,(byte *)resrecvbuf,MaxPacketsize,0,(struct sockaddr *)&from,&fromlen); ^~~~~~~~ /usr/include/sys/socket.h:695:96: note: passing argument to parameter here ssize_t recvfrom(int, void *, size_t, int, struct sockaddr * __restrict, socklen_t * __restrict); ^ 3 warnings generated. cc rate.o rate_estimator.o rate_abusers.o rate_extractor.o rate_sta.o lib.o iphash.o regex.o save.o streams.o streamstat.o process.o util.o dns.o -o rate -lcompat -fstack-protector-strong -lpcap =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> Staging for rate-0.9_3 ===> Generating temporary packing list install -m 555 /wrkdirs/usr/ports/net-mgmt/rate/work/rate-0.9/rate /wrkdirs/usr/ports/net-mgmt/rate/work/stage/usr/local/bin/rate install -m 444 /wrkdirs/usr/ports/net-mgmt/rate/work/rate-0.9/doc/rate.1 /wrkdirs/usr/ports/net-mgmt/rate/work/stage/usr/local/share/man/man1 ====> 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-05T01:28:08+0000' 'PKG_NOTE_ports_top_git_hash=c2c35d895e' 'PKG_NOTE_ports_top_checkout_unclean=yes' 'PKG_NOTE_port_git_hash=06e29c9984' '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 rate-0.9_3 ===> Building rate-0.9_3 =========================================================================== =>> Cleaning up wrkdir ===> Cleaning for rate-0.9_3 build of net-mgmt/rate | rate-0.9_3 ended at Fri Apr 5 02:28:18 BST 2024 build time: 00:00:10