[package - main-i386-default][security/snortsam] Failed for snortsam-2.70_1 in build

From: <pkg-fallout_at_FreeBSD.org>
Date: Thu, 15 Feb 2024 04:48:02 UTC
You are receiving this mail as a port that you maintain
is failing to build on the FreeBSD package build server.
Please investigate the failure and submit a PR to fix
build.

Maintainer:     urisso@bsd.com.br
Log URL:        https://pkg-status.freebsd.org/beefy17/data/main-i386-default/pe9c9c73181b5_sbd45bbe440/logs/snortsam-2.70_1.log
Build URL:      https://pkg-status.freebsd.org/beefy17/build.html?mastername=main-i386-default&build=pe9c9c73181b5_sbd45bbe440
Log:

=>> Building security/snortsam
build started at Thu Feb 15 04:47:54 UTC 2024
port directory: /usr/ports/security/snortsam
package name: snortsam-2.70_1
building for: FreeBSD main-i386-default-job-09 15.0-CURRENT FreeBSD 15.0-CURRENT 1500014 i386
maintained by: urisso@bsd.com.br
Makefile datestamp: -rw-r--r--  1 root wheel 2520 Sep  8  2022 /usr/ports/security/snortsam/Makefile
Ports top last git commit: e9c9c73181b
Ports top unclean checkout: no
Port dir last git commit: fb16dfecae4
Port dir unclean checkout: no
Poudriere version: poudriere-git-3.4.1
Host OSVERSION: 1500006
Jail OSVERSION: 1500014
Job Id: 09




!!! Jail is newer than host. (Jail: 1500014, Host: 1500006) !!!
!!! This is not supported. !!!
!!! Host kernel must be same or newer than jail. !!!
!!! Expect build failures. !!!



---Begin Environment---
SHELL=/bin/sh
BLOCKSIZE=K
MAIL=/var/mail/root
MM_CHARSET=UTF-8
LANG=C.UTF-8
OSVERSION=1500014
STATUS=1
HOME=/root
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin
MAKE_OBJDIR_CHECK_WRITABLE=0
UNAME_m=i386
UNAME_p=i386
UNAME_r=15.0-CURRENT
LOCALBASE=/usr/local
UNAME_v=FreeBSD 15.0-CURRENT 1500014
USER=root
POUDRIERE_NAME=poudriere-git
LIBEXECPREFIX=/usr/local/libexec/poudriere
POUDRIERE_VERSION=3.4.1
MASTERMNT=/usr/local/poudriere/data/.m/main-i386-default/ref
LC_COLLATE=C
POUDRIERE_BUILD_TYPE=bulk
PACKAGE_BUILDING=yes
SAVED_TERM=
OUTPUT_REDIRECTED_STDERR=4
OUTPUT_REDIRECTED=1
PWD=/usr/local/poudriere/data/.m/main-i386-default/09/.p
OUTPUT_REDIRECTED_STDOUT=3
P_PORTS_FEATURES=FLAVORS SUBPACKAGES SELECTED_OPTIONS
MASTERNAME=main-i386-default
SCRIPTPREFIX=/usr/local/share/poudriere
SCRIPTNAME=bulk.sh
OLDPWD=/usr/local/poudriere/data/.m/main-i386-default/ref/.p/pool
POUDRIERE_PKGNAME=poudriere-git-3.4.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=/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
--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=/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  " 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=15.0 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
PACKAGE_BUILDING=yes
PACKAGE_BUILDING_FLAVORS=yes
MACHINE=i386
MACHINE_ARCH=i386
ARCH=${MACHINE_ARCH}
####  ####
# XXX: We really need this but cannot use it while 'make checksum' does not
# try the next mirror on checksum failure.  It currently retries the same
# failed mirror and then fails rather then trying another.  It *does*
# try the next if the size is mismatched though.
#MASTER_SITE_FREEBSD=yes
# Build ALLOW_MAKE_JOBS_PACKAGES with 3 jobs
MAKE_JOBS_NUMBER=3
#### Misc Poudriere ####
.include "/etc/make.conf.ports_env"
GID=0
UID=0
---End make.conf---
--Resource limits--
cpu time               (seconds, -t)  unlimited
file size           (512-blocks, -f)  unlimited
data seg size           (kbytes, -d)  524288
stack size              (kbytes, -s)  65536
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--
=======================<phase: check-sanity   >============================
===== env: NO_DEPENDS=yes USER=root UID=0 GID=0
===========================================================================
=======================<phase: pkg-depends    >============================
===== 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
[main-i386-default-job-09] Installing pkg-1.20.9_1...
[main-i386-default-job-09] 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
===========================================================================
=======================<phase: fetch-depends  >============================
===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0
===========================================================================
=======================<phase: fetch          >============================
===== env: NO_DEPENDS=yes USER=root UID=0 GID=0
===> Fetching all distfiles required by snortsam-2.70_1 for building
===========================================================================
=======================<phase: checksum       >============================
===== 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.
===========================================================================
=======================<phase: extract-depends>============================
===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0
===========================================================================
=======================<phase: extract        >============================
===== 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.
===========================================================================
=======================<phase: patch-depends  >============================
===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0
===========================================================================
=======================<phase: patch          >============================
===== 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
===========================================================================
=======================<phase: build-depends  >============================
===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0
===========================================================================
=======================<phase: lib-depends    >============================
===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0
===========================================================================
=======================<phase: configure      >============================
===== env: NO_DEPENDS=yes USER=root UID=0 GID=0
===>  Configuring for snortsam-2.70_1
===========================================================================
=======================<phase: build          >============================
<snip>
      |                                    ^
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]
  228 |         {       _TwoFish_BlockCrypt(in,out,TwoFish_BLOCK_SIZE,decrypt,tfdata); /* de/encrypt it. */
      |                                        ^~~
./twofish.h:267:49: note: passing argument to parameter 'out' here
  267 | 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]
  234 |                 _TwoFish_BlockCrypt(in,out,len,decrypt,tfdata); /* ...then we de/encrypt that too. */
      |                                     ^~
./twofish.h:267:36: note: passing argument to parameter 'in' here
  267 | 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]
  234 |                 _TwoFish_BlockCrypt(in,out,len,decrypt,tfdata); /* ...then we de/encrypt that too. */
      |                                        ^~~
./twofish.h:267:49: note: passing argument to parameter 'out' here
  267 | 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]
  280 |         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]
  301 |         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]
  333 | {       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]
  440 |                 {       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]
  449 |                         _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
  267 | 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]
  452 |                         {       _TwoFish_BinHex(*out,olen,TRUE);                /* ...convert output to binhex... */
      |                                                 ^~~~
twofish.c:366:32: note: passing argument to parameter 'buf' here
  366 | 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]
  455 |                         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]
  503 |                         {       _TwoFish_BinHex(in,ilen,FALSE);         /* ...convert input to values... */
      |                                                 ^~
twofish.c:366:32: note: passing argument to parameter 'buf' here
  366 | 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]
  513 |                         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
  223 | 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]
  515 |                         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]
  158 |         strcpy(CPpacket+CP_MODSTR,"All");  /* set modules to ALL (add individual FW modules later) */
      |                ^~~~~~~~~~~~~~~~~~
/usr/include/string.h:85:31: note: passing argument to parameter here
   85 | 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]
  162 |   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]
   69 |         strncpy(newkey+6,station->stationkey,TwoFish_KEY_LENGTH-6); /* append old key */
      |                 ^~~~~~~~
/usr/include/string.h:110:32: note: passing argument to parameter here
  110 | 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]
   85 |         safecopy(station->stationkey,newkey);
      |                                      ^~~~~~
./snortsam.h:218:52: note: expanded from macro 'safecopy'
  218 | #define safecopy(dst,src)               _safecp(dst,sizeof(dst),src)
      |                                                                 ^~~
./snortsam.h:460:48: note: passing argument to parameter 'src' here
  460 | 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]
   87 |         station->stationfish=TwoFishInit(newkey);
      |                                          ^~~~~~
./twofish.h:133:28: note: passing argument to parameter 'userkey' here
  133 | 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]
  125 |         {       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
  125 |         {       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
  125 |         {       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]
  137 |                 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
  137 |                 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
  137 |                 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]
  150 |                                                                 {       if(bd->mode&FWSAM_WHO == FWSAM_WHO_SRC)
      |                                                                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
ssp_ipf.c:150:22: note: place parentheses around the '==' expression to silence this warning
  150 |                                                                 {       if(bd->mode&FWSAM_WHO == FWSAM_WHO_SRC)
      |                                                                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
ssp_ipf.c:150:22: note: place parentheses around the & expression to evaluate it first
  150 |                                                                 {       if(bd->mode&FWSAM_WHO == FWSAM_WHO_SRC)
      |                                                                            ~~~~~~~~^~~~~~~~~~
ssp_ipf.c:162:22: warning: & has lower precedence than ==; == will be evaluated first [-Wparentheses]
  162 |                                                                 {       if(bd->mode&FWSAM_WHO == FWSAM_WHO_SRC)
      |                                                                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
ssp_ipf.c:162:22: note: place parentheses around the '==' expression to silence this warning
  162 |                                                                 {       if(bd->mode&FWSAM_WHO == FWSAM_WHO_SRC)
      |                                                                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
ssp_ipf.c:162:22: note: place parentheses around the & expression to evaluate it first
  162 |                                                                 {       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]
  169 |                 if ((system(ipfw2cmd) && 0xff) ) 
      |                                       ^  ~~~~
ssp_ipfw2.c:169:25: note: use '&' for a bitwise operation
  169 |                 if ((system(ipfw2cmd) && 0xff) ) 
      |                                       ^~
      |                                       &
ssp_ipfw2.c:169:25: note: remove constant to silence this warning
  169 |                 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]
   90 |                     else
      |                     ^
ssp_pf2.c:270:37: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
  270 |         snprintf(ipsrc, sizeof(ipsrc) - 1, inettoa(bd->blockip));
      |                                            ^~~~~~~~~~~~~~~~~~~~
ssp_pf2.c:270:37: note: treat the string as an argument to avoid this
  270 |         snprintf(ipsrc, sizeof(ipsrc) - 1, inettoa(bd->blockip));
      |                                            ^
      |                                            "%s", 
ssp_pf2.c:295:19: error: use of undeclared identifier 'DIOCGETSTATUS'
  295 |         if (ioctl(pfdev, DIOCGETSTATUS, &status)) {
      |                          ^
ssp_pf2.c:313:4: warning: call to undeclared function 'change_table'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
  313 |                         change_table(pfdev, 1, pfp->tablein, pfp->anchorname, ipsrc);
      |                         ^
ssp_pf2.c:330:4: warning: call to undeclared function 'change_table'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
  330 |                         change_table(pfdev, 0, pfp->tablein, pfp->anchorname, ipsrc);
      |                         ^
ssp_pf2.c:420:19: error: use of undeclared identifier 'DIOCKILLSTATES'
  420 |         if (ioctl(pfdev, DIOCKILLSTATES, &psk)) {
      |                          ^
ssp_pf2.c:442:19: error: use of undeclared identifier 'DIOCKILLSTATES'
  442 |         if (ioctl(pfdev, DIOCKILLSTATES, &psk)) {
      |                          ^
4 warnings and 3 errors generated.
*** Error code 1

Stop.
make[3]: stopped in /wrkdirs/usr/ports/security/snortsam/work/snortsam-src-2.70/src
*** Error code 1

Stop.
make[2]: stopped in /wrkdirs/usr/ports/security/snortsam/work/snortsam-src-2.70/src
*** Error code 1

Stop.
make[1]: stopped in /wrkdirs/usr/ports/security/snortsam/work/snortsam-src-2.70/src
*** Error code 1

Stop.
make: stopped in /usr/ports/security/snortsam