------------------------------------------------------------------------------- -- Phase: check-sanity ------------------------------------------------------------------------------- SUCCEEDED 00:00:00 ------------------------------------------------------------------------------- -- Phase: pkg-depends ------------------------------------------------------------------------------- ===> sancp-1.6.1_6 depends on file: /usr/local/sbin/pkg - found SUCCEEDED 00:00:01 ------------------------------------------------------------------------------- -- Phase: fetch-depends ------------------------------------------------------------------------------- SUCCEEDED 00:00:00 ------------------------------------------------------------------------------- -- Phase: fetch ------------------------------------------------------------------------------- ===> sancp-1.6.1_6 depends on file: /usr/local/sbin/pkg - found ===> Fetching all distfiles required by sancp-1.6.1_6 for building SUCCEEDED 00:00:00 ------------------------------------------------------------------------------- -- Phase: checksum ------------------------------------------------------------------------------- ===> sancp-1.6.1_6 depends on file: /usr/local/sbin/pkg - found ===> Fetching all distfiles required by sancp-1.6.1_6 for building => SHA256 Checksum OK for sancp-1.6.1-stable.tar.gz. SUCCEEDED 00:00:00 ------------------------------------------------------------------------------- -- Phase: extract-depends ------------------------------------------------------------------------------- SUCCEEDED 00:00:00 ------------------------------------------------------------------------------- -- Phase: extract ------------------------------------------------------------------------------- ===> sancp-1.6.1_6 depends on file: /usr/local/sbin/pkg - found ===> Fetching all distfiles required by sancp-1.6.1_6 for building ===> Extracting for sancp-1.6.1_6 ===> sancp-1.6.1_6 depends on file: /usr/local/sbin/pkg - found ===> Fetching all distfiles required by sancp-1.6.1_6 for building => SHA256 Checksum OK for sancp-1.6.1-stable.tar.gz. Extracted Memory Use: 0.37M SUCCEEDED 00:00:01 ------------------------------------------------------------------------------- -- Phase: patch-depends ------------------------------------------------------------------------------- SUCCEEDED 00:00:00 ------------------------------------------------------------------------------- -- Phase: patch ------------------------------------------------------------------------------- ===> Patching for sancp-1.6.1_6 ===> Applying ports patches for sancp-1.6.1_6 from /xports/security/sancp/files SUCCEEDED 00:00:00 ------------------------------------------------------------------------------- -- Phase: build-depends ------------------------------------------------------------------------------- SUCCEEDED 00:00:00 ------------------------------------------------------------------------------- -- Phase: lib-depends ------------------------------------------------------------------------------- SUCCEEDED 00:00:00 ------------------------------------------------------------------------------- -- Phase: configure ------------------------------------------------------------------------------- ===> Configuring for sancp-1.6.1_6 SUCCEEDED 00:00:00 ------------------------------------------------------------------------------- -- Phase: build ------------------------------------------------------------------------------- ===> Building for sancp-1.6.1_6 --- bsd --- --- final --- c++ -Wall -pipe -Wno-narrowing -Wno-restrict -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -O2 -fno-strict-aliasing -c build_acl.cc -o build_acl.o build_acl.cc: In function 'void parse_args(int, char**)': build_acl.cc:153:42: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 3 has type 'u_int64_t' {aka 'long unsigned int'} [-Wformat=] syslog(LOG_ERR,"cnxid provided (%llu) is less than 64bit cnxid in the '.cnxid' cache file, using cnxid %llu from cache instead\n",num,(long long unsigned) gVars.cnx_id); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~ build_acl.cc:155:42: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 3 has type 'u_int64_t' {aka 'long unsigned int'} [-Wformat=] syslog(LOG_ERR,"Using cnxid provided (%llu) rather than the last cnxid in the '.cnxid' cache file (%llu)\n",num,(long long unsigned) gVars.cnx_id); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~ build_acl.cc: In function 'void build_config(int)': build_acl.cc:411:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] char *accept="\t ,="; ^~~~~~~ build_acl.cc: In function 'char* get_tok(char**, const char*)': build_acl.cc:2098:6: warning: variable 'len' set but not used [-Wunused-but-set-variable] int len=0; ^~~ build_acl.cc: In function 'char* get_next_tok(char**, const char*)': build_acl.cc:2118:6: warning: variable 'len' set but not used [-Wunused-but-set-variable] int len=0; ^~~ c++ -Wall -pipe -Wno-narrowing -Wno-restrict -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -O2 -fno-strict-aliasing -c misc_functs.cc -o misc_functs.o misc_functs.cc: In function 'void manage_cid(int)': misc_functs.cc:56:20: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 3 has type 'u_int64_t' {aka 'long unsigned int'} [-Wformat=] syslog(LOG_INFO,"Retrieved last connection ID: %llu %d %d\n", cid,len,errno); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~ c++ -Wall -pipe -Wno-narrowing -Wno-restrict -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -O2 -fno-strict-aliasing -c outputFileHandle.cc -o outputFileHandle.o c++ -Wall -pipe -Wno-narrowing -Wno-restrict -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -O2 -fno-strict-aliasing -c apply_rule.cc -o apply_rule.o c++ -Wall -pipe -Wno-narrowing -Wno-restrict -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -O2 -fno-strict-aliasing -c decode.cc -o decode.o c++ -Wall -pipe -Wno-narrowing -Wno-restrict -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -O2 -fno-strict-aliasing -c fileHandle.cc -o fileHandle.o c++ -Wall -pipe -Wno-narrowing -Wno-restrict -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -O2 -fno-strict-aliasing -c MemoryPool.cc -o MemoryPool.o c++ -Wall -pipe -Wno-narrowing -Wno-restrict -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -O2 -fno-strict-aliasing -c pcapFileHandle.cc -o pcapFileHandle.o pcapFileHandle.cc: In member function 'ssize_t pcapFileHandle::write(const char*, int, timeval*)': pcapFileHandle.cc:60:7: warning: variable 'tmp' set but not used [-Wunused-but-set-variable] char tmp[5]; ^~~ c++ -Wall -pipe -Wno-narrowing -Wno-restrict -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -O2 -fno-strict-aliasing -c sancp.cc -o sancp.o sancp.cc: In function 'void ProcessMyPacket(char*, pcap_pkthdr*, u_char*)': sancp.cc:285:93: warning: '((unsigned char*)&gVars)[23824]' is used uninitialized in this function [-Wuninitialized] if( gVars.strip_80211 && (*(u_int16_t*)(pkt + 12 + gVars.pcap_shift)==ETHPROTO_8021Q)){ ^ sancp.cc:285:66: warning: 'gVars.gvars::pcap_shift' may be used uninitialized in this function [-Wmaybe-uninitialized] if( gVars.strip_80211 && (*(u_int16_t*)(pkt + 12 + gVars.pcap_shift)==ETHPROTO_8021Q)){ ~~~~~~^~~~~~~~~~ sancp.cc:297:12: warning: 'gVars.gvars::rpfH' may be used uninitialized in this function [-Wmaybe-uninitialized] if(gVars.rpfH){ ~~~~~~^~~~ sancp.cc:298:40: warning: 'gVars.gvars::pcap_shift' may be used uninitialized in this function [-Wmaybe-uninitialized] gVars.rpfH->write((char *)pkt+gVars.pcap_shift,pkthdr->caplen,&gVars.timeptr); ~~~~~~^~~~~~~~~~ cc -Wall -pipe -Wno-narrowing -Wno-restrict -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -O2 -fno-strict-aliasing -c pcap_functions.c -o pcap_functions.o c++ -Wall -pipe -Wno-narrowing -Wno-restrict -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -O2 -fno-strict-aliasing -c permissions.cc -o permissions.o c++ -Wall -pipe -Wno-narrowing -Wno-restrict -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -O2 -fno-strict-aliasing -c check_packet.cc -o check_packet.o c++ -Wall -pipe -Wno-narrowing -Wno-restrict -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -O2 -fno-strict-aliasing -c statefull_logging.cc -o statefull_logging.o statefull_logging.cc: In function 'void expire_connections()': statefull_logging.cc:120:6: warning: variable 'x' set but not used [-Wunused-but-set-variable] int x, y; ^ statefull_logging.cc:120:9: warning: variable 'y' set but not used [-Wunused-but-set-variable] int x, y; ^ statefull_logging.cc: In function 'void record(cnx*, outputFileHandle*)': statefull_logging.cc:236:42: warning: format '%lld' expects argument of type 'long long int', but argument 4 has type 'u_int64_t' {aka 'long unsigned int'} [-Wformat=] snprintf(LOG,MAXENTRYLEN,"%lld",cn->cid); ^~~~~~ ~~~~~~~ statefull_logging.cc:333:46: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 4 has type 'u_int64_t' {aka 'long unsigned int'} [-Wformat=] snprintf(LOG,MAXENTRYLEN,"%llu",cn->d_total_pkts); ^~~~~~ ~~~~~~~~~~~~~~~~ statefull_logging.cc:335:46: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 4 has type 'u_int64_t' {aka 'long unsigned int'} [-Wformat=] snprintf(LOG,MAXENTRYLEN,"%llu",cn->s_total_pkts); ^~~~~~ ~~~~~~~~~~~~~~~~ statefull_logging.cc:341:46: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 4 has type 'u_int64_t' {aka 'long unsigned int'} [-Wformat=] snprintf(LOG,MAXENTRYLEN,"%llu",cn->s_total_pkts); ^~~~~~ ~~~~~~~~~~~~~~~~ statefull_logging.cc:343:46: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 4 has type 'u_int64_t' {aka 'long unsigned int'} [-Wformat=] snprintf(LOG,MAXENTRYLEN,"%llu",cn->d_total_pkts); ^~~~~~ ~~~~~~~~~~~~~~~~ statefull_logging.cc:349:46: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 4 has type 'u_int64_t' {aka 'long unsigned int'} [-Wformat=] snprintf(LOG,MAXENTRYLEN,"%llu",cn->d_total_bytes); ^~~~~~ ~~~~~~~~~~~~~~~~~ statefull_logging.cc:351:46: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 4 has type 'u_int64_t' {aka 'long unsigned int'} [-Wformat=] snprintf(LOG,MAXENTRYLEN,"%llu",cn->s_total_bytes); ^~~~~~ ~~~~~~~~~~~~~~~~~ statefull_logging.cc:357:46: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 4 has type 'u_int64_t' {aka 'long unsigned int'} [-Wformat=] snprintf(LOG,MAXENTRYLEN,"%llu",cn->s_total_bytes); ^~~~~~ ~~~~~~~~~~~~~~~~~ statefull_logging.cc:359:46: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 4 has type 'u_int64_t' {aka 'long unsigned int'} [-Wformat=] snprintf(LOG,MAXENTRYLEN,"%llu",cn->d_total_bytes); ^~~~~~ ~~~~~~~~~~~~~~~~~ statefull_logging.cc:520:46: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 4 has type 'u_int64_t' {aka 'long unsigned int'} [-Wformat=] snprintf(LOG,MAXENTRYLEN,"%llu",cn->total_bytes); ^~~~~~ ~~~~~~~~~~~~~~~ statefull_logging.cc:528:46: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 4 has type 'u_int64_t' {aka 'long unsigned int'} [-Wformat=] snprintf(LOG,MAXENTRYLEN,"%llu",cn->collected); ^~~~~~ ~~~~~~~~~~~~~ statefull_logging.cc:532:46: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 4 has type 'u_int64_t' {aka 'long unsigned int'} [-Wformat=] snprintf(LOG,MAXENTRYLEN,"%llu",cn->limit); ^~~~~~ ~~~~~~~~~ statefull_logging.cc:648:83: warning: ?: using integer constants in boolean context, the expression will always evaluate to 'true' [-Wint-in-bool-context] snprintf(LOG,MAXENTRYLEN,"%c",(cn->tcpCFlags&(cn->reversed==1)?0x10:0x20)?Y:N); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ statefull_logging.cc:652:83: warning: ?: using integer constants in boolean context, the expression will always evaluate to 'true' [-Wint-in-bool-context] snprintf(LOG,MAXENTRYLEN,"%c",(cn->tcpCFlags&(cn->reversed==1)?0x20:0x10)?Y:N); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ statefull_logging.cc:656:83: warning: ?: using integer constants in boolean context, the expression will always evaluate to 'true' [-Wint-in-bool-context] snprintf(LOG,MAXENTRYLEN,"%c",(cn->tcpCFlags&(cn->reversed==1)?0x04:0x08)?Y:N); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ statefull_logging.cc:660:83: warning: ?: using integer constants in boolean context, the expression will always evaluate to 'true' [-Wint-in-bool-context] snprintf(LOG,MAXENTRYLEN,"%c",(cn->tcpCFlags&(cn->reversed==1)?0x08:0x04)?Y:N); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ statefull_logging.cc:664:83: warning: ?: using integer constants in boolean context, the expression will always evaluate to 'true' [-Wint-in-bool-context] snprintf(LOG,MAXENTRYLEN,"%c",(cn->tcpCFlags&(cn->reversed==1)?0x01:0x02)?Y:N); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ statefull_logging.cc:668:83: warning: ?: using integer constants in boolean context, the expression will always evaluate to 'true' [-Wint-in-bool-context] snprintf(LOG,MAXENTRYLEN,"%c",(cn->tcpCFlags&(cn->reversed==1)?0x02:0x01)?Y:N); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ statefull_logging.cc: In function 'void print_output_schema(outputFileHandle*, char*, int)': statefull_logging.cc:967:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if(x>0) ^~ statefull_logging.cc:968:37: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' fH->write(LOG,strlen(LOG)); bzero(LOG,MAXENTRYLEN); ^~~~~ c++ -Wall -pipe -Wno-narrowing -Wno-restrict -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -O2 -fno-strict-aliasing -c help.cc -o help.o c++ -Wall -lpcap -L/usr/lib/libpcap.so -pipe -Wno-narrowing -Wno-restrict -Wno-format-overflow -Wno-stringop-truncation -Wno-stringop-overflow -O2 -fno-strict-aliasing -o sancp sancp.o misc_functs.o check_packet.o statefull_logging.o build_acl.o apply_rule.o decode.o pcap_functions.o pcapFileHandle.o fileHandle.o MemoryPool.o permissions.o outputFileHandle.o help.o SUCCEEDED 00:00:17 ------------------------------------------------------------------------------- -- Phase: run-depends ------------------------------------------------------------------------------- SUCCEEDED 00:00:00 ------------------------------------------------------------------------------- -- Phase: stage ------------------------------------------------------------------------------- ===> Staging for sancp-1.6.1_6 ===> Generating temporary packing list ===> Creating groups. ===> Creating users install -s -m 555 /construction/security/sancp/sancp-1.6.1-stable/sancp /construction/security/sancp/stage/usr/local/bin install -m 0644 /construction/security/sancp/sancp-1.6.1-stable/etc/sancp/sancp.conf /construction/security/sancp/stage/usr/local/etc/sancp.conf.sample /bin/mkdir -p /construction/security/sancp/stage/var/log/sancp install -m 0644 /construction/security/sancp/sancp-1.6.1-stable/docs/CHANGES /construction/security/sancp/sancp-1.6.1-stable/docs/INSTALL /construction/security/sancp/sancp-1.6.1-stable/docs/ISSUES /construction/security/sancp/sancp-1.6.1-stable/docs/README /construction/security/sancp/sancp-1.6.1-stable/docs/SETUP /construction/security/sancp/sancp-1.6.1-stable/docs/fields.LIST /construction/security/sancp/stage/usr/local/share/doc/sancp ====> Compressing man pages (compress-man) ===> Staging rc.d startup script(s) ====> Running Q/A tests (stage-qa) Warning: You have disabled the licenses framework with DISABLE_LICENSES, unable to run checks SUCCEEDED 00:00:01 ------------------------------------------------------------------------------- -- Phase: check-plist ------------------------------------------------------------------------------- ====> Checking for pkg-plist issues (check-plist) ===> Parsing plist ===> Checking for items in STAGEDIR missing from pkg-plist ===> Checking for items in pkg-plist which are not in STAGEDIR ===> No pkg-plist issues found (check-plist) SUCCEEDED 00:00:00 ------------------------------------------------------------------------------- -- Phase: package ------------------------------------------------------------------------------- ===> Building package for sancp-1.6.1_6 file sizes/checksums [9]: 0% file sizes/checksums [9]: 100% packing files [9]: 0% packing files [9]: 100% packing directories [1]: 0% packing directories [1]: 100% SUCCEEDED 00:00:00 TOTAL TIME 00:00:20