=>> Building security/snortsam build started at Thu Apr 4 11:23:40 BST 2024 port directory: /usr/ports/security/snortsam package name: snortsam-2.70_1 building for: FreeBSD pkg-builder.dan.net.uk 13.2-RELEASE-p10 FreeBSD 13.2-RELEASE-p10 amd64 maintained by: urisso@bsd.com.br Makefile datestamp: -rw-r--r-- 1 root wheel 2520 Mar 8 2023 /usr/ports/security/snortsam/Makefile Ports top last git commit: c2c35d895e Ports top unclean checkout: yes Port dir last git commit: c014f9c79a Port dir unclean checkout: no Poudriere version: poudriere-git-3.4.99.20240122_1 Host OSVERSION: 1400097 Jail OSVERSION: 1302001 Job Id: 19 ---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/19/.p OUTPUT_REDIRECTED_STDOUT=3 P_PORTS_FEATURES=FLAVORS SUBPACKAGES SELECTED_OPTIONS MASTERNAME=13-amd64-default-dan SCRIPTPREFIX=/usr/local/share/poudriere SCRIPTNAME=bulk.sh OLDPWD=/usr/local/poudriere/data/.m/13-amd64-default-dan/ref/.p/pool POUDRIERE_PKGNAME=poudriere-git-3.4.99.20240122_1 SCRIPTPATH=/usr/local/share/poudriere/bulk.sh POUDRIEREPATH=/usr/local/bin/poudriere ---End Environment--- ---Begin Poudriere Port Flags/Env--- PORT_FLAGS= PKGENV= FLAVOR= MAKE_ARGS= ---End Poudriere Port Flags/Env--- ---Begin OPTIONS List--- ===> The following configuration options are available for snortsam-2.70_1: DEBUG=off: Build with debugging support DOCS=on: Build and/or install documentation IPFW=on: checks if configured tables are available SAMTOOL=on: install samtool ===> Use 'make config' to modify these settings ---End OPTIONS List--- --MAINTAINER-- urisso@bsd.com.br --End MAINTAINER-- --CONFIGURE_ARGS-- --End CONFIGURE_ARGS-- --CONFIGURE_ENV-- XDG_DATA_HOME=/wrkdirs/usr/ports/security/snortsam/work XDG_CONFIG_HOME=/wrkdirs/usr/ports/security/snortsam/work XDG_CACHE_HOME=/wrkdirs/usr/ports/security/snortsam/work/.cache HOME=/wrkdirs/usr/ports/security/snortsam/work TMPDIR="/tmp" PATH=/ccache/libexec/ccache:/wrkdirs/usr/ports/security/snortsam/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin PKG_CONFIG_LIBDIR=/wrkdirs/usr/ports/security/snortsam/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/security/snortsam/work XDG_CONFIG_HOME=/wrkdirs/usr/ports/security/snortsam/work XDG_CACHE_HOME=/wrkdirs/usr/ports/security/snortsam/work/.cache HOME=/wrkdirs/usr/ports/security/snortsam/work TMPDIR="/tmp" PATH=/ccache/libexec/ccache:/wrkdirs/usr/ports/security/snortsam/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin PKG_CONFIG_LIBDIR=/wrkdirs/usr/ports/security/snortsam/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 -fstack-protector-strong -fno-strict-aliasing " CPP="cpp" CPPFLAGS="" LDFLAGS=" -fstack-protector-strong " LIBS="" CXX="c++" CXXFLAGS="-O2 -pipe -fstack-protector-strong -fno-strict-aliasing " CCACHE_DIR="/root/.ccache" BSD_INSTALL_PROGRAM="install -s -m 555" BSD_INSTALL_LIB="install -s -m 0644" BSD_INSTALL_SCRIPT="install -m 555" BSD_INSTALL_DATA="install -m 0644" BSD_INSTALL_MAN="install -m 444" --End MAKE_ENV-- --PLIST_SUB-- PORTDOCS="" OSREL=13.2 PREFIX=%D LOCALBASE=/usr/local RESETPREFIX=/usr/local LIB32DIR=lib DOCSDIR="share/doc/snortsam" EXAMPLESDIR="share/examples/snortsam" DATADIR="share/snortsam" WWWDIR="www/snortsam" ETCDIR="etc/snortsam" --End PLIST_SUB-- --SUB_LIST-- PREFIX=/usr/local LOCALBASE=/usr/local DATADIR=/usr/local/share/snortsam DOCSDIR=/usr/local/share/doc/snortsam EXAMPLESDIR=/usr/local/share/examples/snortsam WWWDIR=/usr/local/www/snortsam ETCDIR=/usr/local/etc/snortsam --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 ===> snortsam-2.70_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 ===> snortsam-2.70_1 depends on file: /usr/local/sbin/pkg - found ===> Returning to build of snortsam-2.70_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 snortsam-2.70_1 for building =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> Fetching all distfiles required by snortsam-2.70_1 for building => SHA256 Checksum OK for snortsam-src-2.70.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 snortsam-2.70_1 for building ===> Extracting for snortsam-2.70_1 => SHA256 Checksum OK for snortsam-src-2.70.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 snortsam-2.70_1 ===> Applying FreeBSD patches for snortsam-2.70_1 from /usr/ports/security/snortsam/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 snortsam-2.70_1 =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> Building for snortsam-2.70_1 case "`uname`" in OpenBSD*) what=obsd;; *BSD) what=bsd;; Linux) what=linux;; SunOS) what=sunos;; esac && make snortsam-$what make snortsam "CFLAGS=-O2 -D`uname` -DBSD" "LDFLAGS= -lpthread" "OBJS=snortsam.o twofish.o ssp_fwexec.o ssp_ciscoacl.o ssp_cisco_nullroute.o ssp_email.o ssp_opsec.o ssp_fwsam.o ssp_pix.o ssp_netscreen.o ssp_wgrd.o ssp_snmp_interface_down.o ssp_forward.o ssp_cisco_nullroute2.o ssp_ipf.o ssp_ipfw2.o ssp_pf2.o" cc -O2 -DFreeBSD -DBSD -c snortsam.c snortsam.c:903:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] { if(hoste=gethostbyname(val)) ~~~~~^~~~~~~~~~~~~~~~~~~ snortsam.c:903:14: note: place parentheses around the assignment to silence this warning { if(hoste=gethostbyname(val)) ^ ( ) snortsam.c:903:14: note: use '==' to turn this assignment into an equality comparison { if(hoste=gethostbyname(val)) ^ == snortsam.c:941:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] { if(hoste=gethostbyname(val)) ~~~~~^~~~~~~~~~~~~~~~~~~ snortsam.c:941:14: note: place parentheses around the assignment to silence this warning { if(hoste=gethostbyname(val)) ^ ( ) snortsam.c:941:14: note: use '==' to turn this assignment into an equality comparison { if(hoste=gethostbyname(val)) ^ == snortsam.c:986:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] { if(hoste=gethostbyname(val)) ~~~~~^~~~~~~~~~~~~~~~~~~ snortsam.c:986:14: note: place parentheses around the assignment to silence this warning { if(hoste=gethostbyname(val)) ^ ( ) snortsam.c:986:14: note: use '==' to turn this assignment into an equality comparison { if(hoste=gethostbyname(val)) ^ == snortsam.c:1063:14: warning: passing 'unsigned char[34]' 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] safecopy(al->initialkey,val3); ^~~~~~~~~~~~~~ ./snortsam.h:218:36: note: expanded from macro 'safecopy' #define safecopy(dst,src) _safecp(dst,sizeof(dst),src) ^~~ snortsam.c:208:20: note: passing argument to parameter 'dst' here void _safecp(char *dst,unsigned long max,char *src) ^ snortsam.c:1709:11: warning: passing 'unsigned char[34]' 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] safecopy(sens->currentkey,ap->initialkey); /* set the key to the initial key as defined in accept list */ ^~~~~~~~~~~~~~~~ ./snortsam.h:218:36: note: expanded from macro 'safecopy' #define safecopy(dst,src) _safecp(dst,sizeof(dst),src) ^~~ snortsam.c:208:20: note: passing argument to parameter 'dst' here void _safecp(char *dst,unsigned long max,char *src) ^ snortsam.c:1709:28: warning: passing 'unsigned char[34]' 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] safecopy(sens->currentkey,ap->initialkey); /* set the key to the initial key as defined in accept list */ ^~~~~~~~~~~~~~ ./snortsam.h:218:52: note: expanded from macro 'safecopy' #define safecopy(dst,src) _safecp(dst,sizeof(dst),src) ^~~ snortsam.c:208:48: note: passing argument to parameter 'src' here void _safecp(char *dst,unsigned long max,char *src) ^ snortsam.c:1710:30: warning: passing 'unsigned char[34]' 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] sens->snortfish=TwoFishInit(sens->currentkey); /* create a TwoFish for the sensor */ ^~~~~~~~~~~~~~~~ ./twofish.h:133:28: note: passing argument to parameter 'userkey' here TWOFISH *TwoFishInit(char *userkey); ^ snortsam.c:1748:10: 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] strncpy(newkey+6,snortbox->currentkey,TwoFish_KEY_LENGTH-6); /* append old key */ ^~~~~~~~ /usr/include/string.h:107:32: note: passing argument to parameter here char *strncpy(char * __restrict, const char * __restrict, size_t); ^ snortsam.c:1748:19: warning: passing 'unsigned char[34]' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strncpy(newkey+6,snortbox->currentkey,TwoFish_KEY_LENGTH-6); /* append old key */ ^~~~~~~~~~~~~~~~~~~~ /usr/include/string.h:107:57: note: passing argument to parameter here char *strncpy(char * __restrict, const char * __restrict, size_t); ^ snortsam.c:1764:11: warning: passing 'unsigned char[34]' 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] safecopy(snortbox->currentkey,newkey); /* update key string */ ^~~~~~~~~~~~~~~~~~~~ ./snortsam.h:218:36: note: expanded from macro 'safecopy' #define safecopy(dst,src) _safecp(dst,sizeof(dst),src) ^~~ snortsam.c:208:20: note: passing argument to parameter 'dst' here void _safecp(char *dst,unsigned long max,char *src) ^ snortsam.c:1764:32: warning: passing 'unsigned char[34]' 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] safecopy(snortbox->currentkey,newkey); /* update key string */ ^~~~~~ ./snortsam.h:218:52: note: expanded from macro 'safecopy' #define safecopy(dst,src) _safecp(dst,sizeof(dst),src) ^~~ snortsam.c:208:48: note: passing argument to parameter 'src' here void _safecp(char *dst,unsigned long max,char *src) ^ snortsam.c:1766:34: warning: passing 'unsigned char[34]' 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] snortbox->snortfish=TwoFishInit(newkey); /* generate new TwoFish */ ^~~~~~ ./twofish.h:133:28: note: passing argument to parameter 'userkey' here TWOFISH *TwoFishInit(char *userkey); ^ snortsam.c:2162:13: warning: if statement has empty body [-Wempty-body] if(p>buf); ^ snortsam.c:2162:13: note: put the semicolon on a separate line to silence this warning snortsam.c:2457:13: warning: passing 'unsigned char[34]' 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] { safecopy(snortbox->currentkey,acceptp->initialkey); /* try intial key */ ^~~~~~~~~~~~~~~~~~~~ ./snortsam.h:218:36: note: expanded from macro 'safecopy' #define safecopy(dst,src) _safecp(dst,sizeof(dst),src) ^~~ snortsam.c:208:20: note: passing argument to parameter 'dst' here void _safecp(char *dst,unsigned long max,char *src) ^ snortsam.c:2457:34: warning: passing 'unsigned char[34]' 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] { safecopy(snortbox->currentkey,acceptp->initialkey); /* try intial key */ ^~~~~~~~~~~~~~~~~~~ ./snortsam.h:218:52: note: expanded from macro 'safecopy' #define safecopy(dst,src) _safecp(dst,sizeof(dst),src) ^~~ snortsam.c:208:48: note: passing argument to parameter 'src' here void _safecp(char *dst,unsigned long max,char *src) ^ snortsam.c:2459:35: warning: passing 'unsigned char[34]' 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] snortbox->snortfish=TwoFishInit(snortbox->currentkey); /* get a new TwoFish */ ^~~~~~~~~~~~~~~~~~~~ ./twofish.h:133:28: note: passing argument to parameter 'userkey' here TWOFISH *TwoFishInit(char *userkey); ^ snortsam.c:2811:27: warning: adding 'int' to a string does not append to the string [-Wstring-plus-int] safecopy(buf,SNORTSAM_REV+11); ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ ./snortsam.h:218:52: note: expanded from macro 'safecopy' #define safecopy(dst,src) _safecp(dst,sizeof(dst),src) ^~~ snortsam.c:2811:27: note: use array indexing to silence this warning safecopy(buf,SNORTSAM_REV+11); ^ & [ ./snortsam.h:218:52: note: expanded from macro 'safecopy' #define safecopy(dst,src) _safecp(dst,sizeof(dst),src) ^ snortsam.c:2812:25: warning: adding 'int' to a string does not append to the string [-Wstring-plus-int] buf[strlen(SNORTSAM_REV+11)-2]=0; ~~~~~~~~~~~~^~~ snortsam.c:2812:25: note: use array indexing to silence this warning buf[strlen(SNORTSAM_REV+11)-2]=0; ^ & [ ] snortsam.c:2904:13: warning: passing 'unsigned char[34]' 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] safecopy(acceptp->initialkey,defaultkey); ^~~~~~~~~~~~~~~~~~~ ./snortsam.h:218:36: note: expanded from macro 'safecopy' #define safecopy(dst,src) _safecp(dst,sizeof(dst),src) ^~~ snortsam.c:208:20: note: passing argument to parameter 'dst' here void _safecp(char *dst,unsigned long max,char *src) ^ snortsam.c:3012:59: warning: passing 'int *' to parameter of type 'socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign] callersock=accept(mysock,(struct sockaddr *)&(sockaddr),&i); /* Check if someone called (new connections) */ ^~ /usr/include/sys/socket.h:682:69: note: passing argument to parameter here int accept(int, struct sockaddr * __restrict, socklen_t * __restrict); ^ snortsam.c:3112:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while(snortbox=*snortboxpointer) ~~~~~~~~^~~~~~~~~~~~~~~~~ snortsam.c:3112:17: note: place parentheses around the assignment to silence this warning while(snortbox=*snortboxpointer) ^ ( ) snortsam.c:3112:17: note: use '==' to turn this assignment into an equality comparison while(snortbox=*snortboxpointer) ^ == 21 warnings generated. cc -O2 -DFreeBSD -DBSD -c twofish.c twofish.c:228:24: warning: passing 'char *' to parameter of type 'u_int8_t *' (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] { _TwoFish_BlockCrypt(in,out,TwoFish_BLOCK_SIZE,decrypt,tfdata); /* de/encrypt it. */ ^~ ./twofish.h:267:36: note: passing argument to parameter 'in' here void _TwoFish_BlockCrypt(u_int8_t *in,u_int8_t *out,unsigned long size,int decrypt,TWOFISH *tfdata); ^ twofish.c:228:27: warning: passing 'char *' to parameter of type 'u_int8_t *' (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] { _TwoFish_BlockCrypt(in,out,TwoFish_BLOCK_SIZE,decrypt,tfdata); /* de/encrypt it. */ ^~~ ./twofish.h:267:49: note: passing argument to parameter 'out' here void _TwoFish_BlockCrypt(u_int8_t *in,u_int8_t *out,unsigned long size,int decrypt,TWOFISH *tfdata); ^ twofish.c:234:23: warning: passing 'char *' to parameter of type 'u_int8_t *' (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] _TwoFish_BlockCrypt(in,out,len,decrypt,tfdata); /* ...then we de/encrypt that too. */ ^~ ./twofish.h:267:36: note: passing argument to parameter 'in' here void _TwoFish_BlockCrypt(u_int8_t *in,u_int8_t *out,unsigned long size,int decrypt,TWOFISH *tfdata); ^ twofish.c:234:26: warning: passing 'char *' to parameter of type 'u_int8_t *' (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] _TwoFish_BlockCrypt(in,out,len,decrypt,tfdata); /* ...then we de/encrypt that too. */ ^~~ ./twofish.h:267:49: note: passing argument to parameter 'out' here void _TwoFish_BlockCrypt(u_int8_t *in,u_int8_t *out,unsigned long size,int decrypt,TWOFISH *tfdata); ^ twofish.c:280:16: warning: assigning to 'u_int8_t *' (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] tfdata->output=out; /* output straight into output buffer. */ ^~~~ twofish.c:301:16: warning: assigning to 'u_int8_t *' (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] tfdata->output=out; /* output straight into output buffer. */ ^~~~ twofish.c:333:17: warning: assigning to 'u_int8_t *' (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] { tfdata->output=outp; /* (do we really need a function for this?) */ ^~~~~ twofish.c:440:19: warning: assigning to 'u_int8_t *' (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] { tfdata->output=*out; /* set output buffer. */ ^~~~~ twofish.c:449:54: warning: passing 'char *' to parameter of type 'u_int8_t *' (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] _TwoFish_BlockCrypt((u_int8_t *)&(tfdata->header),*out,olen,FALSE,tfdata); /* encrypt first block (without flush on 16 byte boundary). */ ^~~~ ./twofish.h:267:49: note: passing argument to parameter 'out' here void _TwoFish_BlockCrypt(u_int8_t *in,u_int8_t *out,unsigned long size,int decrypt,TWOFISH *tfdata); ^ twofish.c:452:22: warning: passing 'char *' to parameter of type 'u_int8_t *' (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] { _TwoFish_BinHex(*out,olen,TRUE); /* ...convert output to binhex... */ ^~~~ twofish.c:366:32: note: passing argument to parameter 'buf' here void _TwoFish_BinHex(u_int8_t *buf,unsigned long len,bool bintohex) ^ twofish.c:455:18: warning: assigning to 'u_int8_t *' (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] tfdata->output=*out; ^~~~~ twofish.c:503:22: warning: passing 'char *' to parameter of type 'u_int8_t *' (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] { _TwoFish_BinHex(in,ilen,FALSE); /* ...convert input to values... */ ^~ twofish.c:366:32: note: passing argument to parameter 'buf' here void _TwoFish_BinHex(u_int8_t *buf,unsigned long len,bool bintohex) ^ twofish.c:513:33: warning: passing 'u_int8_t *' (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] olen=_TwoFish_CryptRawCBC(in,tbuf,ilen,TRUE,tfdata)-TwoFish_BLOCK_SIZE; /* decrypt the whole thing. */ ^~~~ twofish.c:223:51: note: passing argument to parameter 'out' here unsigned long _TwoFish_CryptRawCBC(char *in,char *out,unsigned long len,bool decrypt,TWOFISH *tfdata) ^ twofish.c:515:18: warning: assigning to 'u_int8_t *' (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] tfdata->output=*out; ^~~~~ 14 warnings generated. cc -O2 -DFreeBSD -DBSD -c ssp_fwexec.c cc -O2 -DFreeBSD -DBSD -c ssp_ciscoacl.c cc -O2 -DFreeBSD -DBSD -c ssp_cisco_nullroute.c cc -O2 -DFreeBSD -DBSD -c ssp_email.c cc -O2 -DFreeBSD -DBSD -c ssp_opsec.c cc -O2 -DFreeBSD -DBSD -c ssp_fwsam.c ssp_fwsam.c:158:9: 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] strcpy(CPpacket+CP_MODSTR,"All"); /* set modules to ALL (add individual FW modules later) */ ^~~~~~~~~~~~~~~~~~ /usr/include/string.h:88:31: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ 1 warning generated. cc -O2 -DFreeBSD -DBSD -c ssp_pix.c cc -O2 -DFreeBSD -DBSD -c ssp_netscreen.c cc -O2 -DFreeBSD -DBSD -c ssp_wgrd.c ssp_wgrd.c:162:13: warning: address of array 'wgrdp->command' will always evaluate to 'true' [-Wpointer-bool-conversion] if(wgrdp->command) ~~ ~~~~~~~^~~~~~~ 1 warning generated. cc -O2 -DFreeBSD -DBSD -c ssp_snmp_interface_down.c cc -O2 -DFreeBSD -DBSD -c ssp_forward.c ssp_forward.c:69:10: 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] strncpy(newkey+6,station->stationkey,TwoFish_KEY_LENGTH-6); /* append old key */ ^~~~~~~~ /usr/include/string.h:107:32: note: passing argument to parameter here char *strncpy(char * __restrict, const char * __restrict, size_t); ^ ssp_forward.c:85:31: warning: passing 'unsigned char[34]' 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] safecopy(station->stationkey,newkey); ^~~~~~ ./snortsam.h:218:52: note: expanded from macro 'safecopy' #define safecopy(dst,src) _safecp(dst,sizeof(dst),src) ^~~ ./snortsam.h:460:48: note: passing argument to parameter 'src' here void _safecp(char *dst,unsigned long max,char *src); ^ ssp_forward.c:87:35: warning: passing 'unsigned char[34]' 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] station->stationfish=TwoFishInit(newkey); ^~~~~~ ./twofish.h:133:28: note: passing argument to parameter 'userkey' here TWOFISH *TwoFishInit(char *userkey); ^ 3 warnings generated. cc -O2 -DFreeBSD -DBSD -c ssp_cisco_nullroute2.c cc -O2 -DFreeBSD -DBSD -c ssp_ipf.c ssp_ipf.c:125:35: warning: & has lower precedence than ==; == will be evaluated first [-Wparentheses] { case FWSAM_HOW_IN: if(bd->mode&FWSAM_WHO == FWSAM_WHO_SRC) ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ssp_ipf.c:125:35: note: place parentheses around the '==' expression to silence this warning { case FWSAM_HOW_IN: if(bd->mode&FWSAM_WHO == FWSAM_WHO_SRC) ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ssp_ipf.c:125:35: note: place parentheses around the & expression to evaluate it first { case FWSAM_HOW_IN: if(bd->mode&FWSAM_WHO == FWSAM_WHO_SRC) ~~~~~~~~^~~~~~~~~~ ssp_ipf.c:137:37: warning: & has lower precedence than ==; == will be evaluated first [-Wparentheses] case FWSAM_HOW_OUT: if(bd->mode&FWSAM_WHO == FWSAM_WHO_SRC) ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ssp_ipf.c:137:37: note: place parentheses around the '==' expression to silence this warning case FWSAM_HOW_OUT: if(bd->mode&FWSAM_WHO == FWSAM_WHO_SRC) ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ssp_ipf.c:137:37: note: place parentheses around the & expression to evaluate it first case FWSAM_HOW_OUT: if(bd->mode&FWSAM_WHO == FWSAM_WHO_SRC) ~~~~~~~~^~~~~~~~~~ ssp_ipf.c:150:22: warning: & has lower precedence than ==; == will be evaluated first [-Wparentheses] { if(bd->mode&FWSAM_WHO == FWSAM_WHO_SRC) ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ssp_ipf.c:150:22: note: place parentheses around the '==' expression to silence this warning { if(bd->mode&FWSAM_WHO == FWSAM_WHO_SRC) ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ssp_ipf.c:150:22: note: place parentheses around the & expression to evaluate it first { if(bd->mode&FWSAM_WHO == FWSAM_WHO_SRC) ~~~~~~~~^~~~~~~~~~ ssp_ipf.c:162:22: warning: & has lower precedence than ==; == will be evaluated first [-Wparentheses] { if(bd->mode&FWSAM_WHO == FWSAM_WHO_SRC) ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ssp_ipf.c:162:22: note: place parentheses around the '==' expression to silence this warning { if(bd->mode&FWSAM_WHO == FWSAM_WHO_SRC) ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ssp_ipf.c:162:22: note: place parentheses around the & expression to evaluate it first { if(bd->mode&FWSAM_WHO == FWSAM_WHO_SRC) ~~~~~~~~^~~~~~~~~~ 4 warnings generated. cc -O2 -DFreeBSD -DBSD -c ssp_ipfw2.c ssp_ipfw2.c:169:25: warning: use of logical '&&' with constant operand [-Wconstant-logical-operand] if ((system(ipfw2cmd) && 0xff) ) ^ ~~~~ ssp_ipfw2.c:169:25: note: use '&' for a bitwise operation if ((system(ipfw2cmd) && 0xff) ) ^~ & ssp_ipfw2.c:169:25: note: remove constant to silence this warning if ((system(ipfw2cmd) && 0xff) ) ~^~~~~~~ 1 warning generated. cc -O2 -DFreeBSD -DBSD -c ssp_pf2.c ssp_pf2.c:90:7: warning: add explicit braces to avoid dangling else [-Wdangling-else] else ^ ssp_pf2.c:270:37: warning: format string is not a string literal (potentially insecure) [-Wformat-security] snprintf(ipsrc, sizeof(ipsrc) - 1, inettoa(bd->blockip)); ^~~~~~~~~~~~~~~~~~~~ ssp_pf2.c:270:37: note: treat the string as an argument to avoid this snprintf(ipsrc, sizeof(ipsrc) - 1, inettoa(bd->blockip)); ^ "%s", ssp_pf2.c:313:4: warning: implicit declaration of function 'change_table' is invalid in C99 [-Wimplicit-function-declaration] change_table(pfdev, 1, pfp->tablein, pfp->anchorname, ipsrc); ^ ssp_pf2.c:330:4: warning: implicit declaration of function 'change_table' is invalid in C99 [-Wimplicit-function-declaration] change_table(pfdev, 0, pfp->tablein, pfp->anchorname, ipsrc); ^ 4 warnings generated. cc -lpthread -o ../snortsam snortsam.o twofish.o ssp_fwexec.o ssp_ciscoacl.o ssp_cisco_nullroute.o ssp_email.o ssp_opsec.o ssp_fwsam.o ssp_pix.o ssp_netscreen.o ssp_wgrd.o ssp_snmp_interface_down.o ssp_forward.o ssp_cisco_nullroute2.o ssp_ipf.o ssp_ipfw2.o ssp_pf2.o cc -O2 -D`uname` -c samtool.c samtool.c:117:10: 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] strncpy(newkey+6,station->stationkey,TwoFish_KEY_LENGTH-6); /* append old key */ ^~~~~~~~ /usr/include/string.h:107:32: note: passing argument to parameter here char *strncpy(char * __restrict, const char * __restrict, size_t); ^ samtool.c:133:31: warning: passing 'unsigned char[34]' 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] safecopy(station->stationkey,newkey); ^~~~~~ ./snortsam.h:218:52: note: expanded from macro 'safecopy' #define safecopy(dst,src) _safecp(dst,sizeof(dst),src) ^~~ samtool.c:95:48: note: passing argument to parameter 'src' here void _safecp(char *dst,unsigned long max,char *src) ^ samtool.c:135:35: warning: passing 'unsigned char[34]' 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] station->stationfish=TwoFishInit(newkey); ^~~~~~ ./twofish.h:133:28: note: passing argument to parameter 'userkey' here TWOFISH *TwoFishInit(char *userkey); ^ samtool.c:762:28: warning: adding 'int' to a string does not append to the string [-Wstring-plus-int] { safecopy(str,SAMTOOL_REV+11); ~~~~~~~~~~~~~~~~~~~~~~~~^~~~ ./snortsam.h:218:52: note: expanded from macro 'safecopy' #define safecopy(dst,src) _safecp(dst,sizeof(dst),src) ^~~ samtool.c:762:28: note: use array indexing to silence this warning { safecopy(str,SAMTOOL_REV+11); ^ & [ ./snortsam.h:218:52: note: expanded from macro 'safecopy' #define safecopy(dst,src) _safecp(dst,sizeof(dst),src) ^ samtool.c:763:28: warning: adding 'int' to a string does not append to the string [-Wstring-plus-int] str[strlen(SAMTOOL_REV+11)-2]=0; ~~~~~~~~~~~^~~ samtool.c:763:28: note: use array indexing to silence this warning str[strlen(SAMTOOL_REV+11)-2]=0; ^ & [ ] 5 warnings generated. case "`uname`" in OpenBSD*) twhat=obsd;; *BSD) twhat=bsd;; Linux) twhat=linux;; SunOS) twhat=sunos;; esac && make samtool-$twhat cc -lpthread -o ../samtool samtool.o twofish.o =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> Staging for snortsam-2.70_1 ===> Generating temporary packing list install -s -m 555 /wrkdirs/usr/ports/security/snortsam/work/snortsam-src-2.70/snortsam /wrkdirs/usr/ports/security/snortsam/work/stage/usr/local/sbin install -s -m 555 /wrkdirs/usr/ports/security/snortsam/work/snortsam-src-2.70/samtool /wrkdirs/usr/ports/security/snortsam/work/stage/usr/local/sbin install -m 0644 /wrkdirs/usr/ports/security/snortsam/work/snortsam-src-2.70/conf/snortsam.conf.sample /wrkdirs/usr/ports/security/snortsam/work/stage/usr/local/etc/snortsam/snortsam.conf.sample install -m 0644 /wrkdirs/usr/ports/security/snortsam/work/snortsam-src-2.70/conf/rootservers.cfg /wrkdirs/usr/ports/security/snortsam/work/stage/usr/local/etc/snortsam/rootservers.cfg.sample install -m 0644 /wrkdirs/usr/ports/security/snortsam/work/snortsam-src-2.70/conf/country-rootservers.conf /wrkdirs/usr/ports/security/snortsam/work/stage/usr/local/etc/snortsam/country-rootservers.conf.sample install -m 0644 /wrkdirs/usr/ports/security/snortsam/work/snortsam-src-2.70/docs/AUTHORS /wrkdirs/usr/ports/security/snortsam/work/stage/usr/local/share/doc/snortsam install -m 0644 /wrkdirs/usr/ports/security/snortsam/work/snortsam-src-2.70/docs/BUGS /wrkdirs/usr/ports/security/snortsam/work/stage/usr/local/share/doc/snortsam install -m 0644 /wrkdirs/usr/ports/security/snortsam/work/snortsam-src-2.70/docs/CREDITS /wrkdirs/usr/ports/security/snortsam/work/stage/usr/local/share/doc/snortsam install -m 0644 /wrkdirs/usr/ports/security/snortsam/work/snortsam-src-2.70/docs/FAQ /wrkdirs/usr/ports/security/snortsam/work/stage/usr/local/share/doc/snortsam install -m 0644 /wrkdirs/usr/ports/security/snortsam/work/snortsam-src-2.70/docs/INSTALL /wrkdirs/usr/ports/security/snortsam/work/stage/usr/local/share/doc/snortsam install -m 0644 /wrkdirs/usr/ports/security/snortsam/work/snortsam-src-2.70/docs/LICENSE /wrkdirs/usr/ports/security/snortsam/work/stage/usr/local/share/doc/snortsam install -m 0644 /wrkdirs/usr/ports/security/snortsam/work/snortsam-src-2.70/docs/README /wrkdirs/usr/ports/security/snortsam/work/stage/usr/local/share/doc/snortsam install -m 0644 /wrkdirs/usr/ports/security/snortsam/work/snortsam-src-2.70/docs/README.ciscoacl /wrkdirs/usr/ports/security/snortsam/work/stage/usr/local/share/doc/snortsam install -m 0644 /wrkdirs/usr/ports/security/snortsam/work/snortsam-src-2.70/docs/README.conf /wrkdirs/usr/ports/security/snortsam/work/stage/usr/local/share/doc/snortsam install -m 0644 /wrkdirs/usr/ports/security/snortsam/work/snortsam-src-2.70/docs/README.iptables /wrkdirs/usr/ports/security/snortsam/work/stage/usr/local/share/doc/snortsam install -m 0644 /wrkdirs/usr/ports/security/snortsam/work/snortsam-src-2.70/docs/README.netscreen /wrkdirs/usr/ports/security/snortsam/work/stage/usr/local/share/doc/snortsam install -m 0644 /wrkdirs/usr/ports/security/snortsam/work/snortsam-src-2.70/docs/README.pf /wrkdirs/usr/ports/security/snortsam/work/stage/usr/local/share/doc/snortsam install -m 0644 /wrkdirs/usr/ports/security/snortsam/work/snortsam-src-2.70/docs/README.pf2 /wrkdirs/usr/ports/security/snortsam/work/stage/usr/local/share/doc/snortsam install -m 0644 /wrkdirs/usr/ports/security/snortsam/work/snortsam-src-2.70/docs/README.rules /wrkdirs/usr/ports/security/snortsam/work/stage/usr/local/share/doc/snortsam install -m 0644 /wrkdirs/usr/ports/security/snortsam/work/snortsam-src-2.70/docs/README.slackware /wrkdirs/usr/ports/security/snortsam/work/stage/usr/local/share/doc/snortsam install -m 0644 /wrkdirs/usr/ports/security/snortsam/work/snortsam-src-2.70/docs/README.snmp_interface_down /wrkdirs/usr/ports/security/snortsam/work/stage/usr/local/share/doc/snortsam install -m 0644 /wrkdirs/usr/ports/security/snortsam/work/snortsam-src-2.70/docs/README.wgrd /wrkdirs/usr/ports/security/snortsam/work/stage/usr/local/share/doc/snortsam install -m 0644 /wrkdirs/usr/ports/security/snortsam/work/snortsam-src-2.70/docs/README_8signs.rtf /wrkdirs/usr/ports/security/snortsam/work/stage/usr/local/share/doc/snortsam install -m 0644 /wrkdirs/usr/ports/security/snortsam/work/snortsam-src-2.70/docs/TODO /wrkdirs/usr/ports/security/snortsam/work/stage/usr/local/share/doc/snortsam ====> Compressing man pages (compress-man) ===> Staging rc.d startup script(s) =========================================================================== =================================================== ===== 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-04T10:23:40+0000' 'PKG_NOTE_ports_top_git_hash=c2c35d895e' 'PKG_NOTE_ports_top_checkout_unclean=yes' 'PKG_NOTE_port_git_hash=c014f9c79a' '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 snortsam-2.70_1 ===> Building snortsam-2.70_1 =========================================================================== =>> Cleaning up wrkdir ===> Cleaning for snortsam-2.70_1 build of security/snortsam | snortsam-2.70_1 ended at Thu Apr 4 11:23:50 BST 2024 build time: 00:00:11