=> Building security/sancp Started : Saturday, 9 MAR 2019 at 08:52:11 UTC Platform: 5.5-DEVELOPMENT DragonFly v5.5.0.192.g15ae7f0-DEVELOPMENT #34: Tue Feb 19 09:07:07 PST 2019 root@pkgbox64.dragonflybsd.org:/usr/obj/usr/src/sys/X86_64_GENERIC x86_64 -------------------------------------------------- -- Environment -------------------------------------------------- UNAME_r=5.5-SYNTH UNAME_m=x86_64 UNAME_p=x86_64 UNAME_v=DragonFly 5.5-SYNTH UNAME_s=DragonFly PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin SSL_NO_VERIFY_PEER=1 TERM=dumb PKG_CACHEDIR=/var/cache/pkg8 PKG_DBDIR=/var/db/pkg8 PORTSDIR=/xports LANG=C HOME=/root USER=root -------------------------------------------------- -- Options -------------------------------------------------- ===> The following configuration options are available for sancp-1.6.1_6: DOCS=on: Build and/or install documentation ===> Use 'make config' to modify these settings -------------------------------------------------- -- CONFIGURE_ENV -------------------------------------------------- XDG_DATA_HOME=/construction/security/sancp XDG_CONFIG_HOME=/construction/security/sancp HOME=/construction/security/sancp TMPDIR="/tmp" PATH=/construction/security/sancp/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin SHELL=/bin/sh CONFIG_SHELL=/bin/sh CCVER=gcc80 -------------------------------------------------- -- CONFIGURE_ARGS -------------------------------------------------- -------------------------------------------------- -- MAKE_ENV -------------------------------------------------- XDG_DATA_HOME=/construction/security/sancp XDG_CONFIG_HOME=/construction/security/sancp HOME=/construction/security/sancp TMPDIR="/tmp" PATH=/construction/security/sancp/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin NO_PIE=yes MK_DEBUG_FILES=no MK_KERNEL_SYMBOLS=no SHELL=/bin/sh NO_LINT=YES CCVER=gcc80 PREFIX=/usr/local LOCALBASE=/usr/local NOPROFILE=1 CC="cc" CFLAGS="-Wno-narrowing -O2 -fno-strict-aliasing " CPP="cpp" CPPFLAGS="" LDFLAGS=" " LIBS="" CXX="c++" CXXFLAGS=" -Wno-narrowing -O2 -fno-strict-aliasing " MANPREFIX="/usr/local" 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" -------------------------------------------------- -- MAKE_ARGS -------------------------------------------------- CFLAGS=" -Wno-narrowing -O2 -fno-strict-aliasing " LFLAGS=" " DESTDIR=/construction/security/sancp/stage -------------------------------------------------- -- PLIST_SUB -------------------------------------------------- PORTDOCS="" OSREL=5.5 PREFIX=%D LOCALBASE=/usr/local RESETPREFIX=/usr/local LIB32DIR=lib PROFILE="@comment " DOCSDIR="share/doc/sancp" EXAMPLESDIR="share/examples/sancp" DATADIR="share/sancp" WWWDIR="www/sancp" ETCDIR="etc/sancp" -------------------------------------------------- -- SUB_LIST -------------------------------------------------- PREFIX=/usr/local LOCALBASE=/usr/local DATADIR=/usr/local/share/sancp DOCSDIR=/usr/local/share/doc/sancp EXAMPLESDIR=/usr/local/share/examples/sancp WWWDIR=/usr/local/www/sancp ETCDIR=/usr/local/etc/sancp -------------------------------------------------- -- /etc/make.conf -------------------------------------------------- SYNTHPROFILE=Release-BE USE_PACKAGE_DEPENDS_ONLY=yes PACKAGE_BUILDING=yes BATCH=yes PKG_CREATE_VERBOSE=yes PORTSDIR=/xports DISTDIR=/distfiles WRKDIRPREFIX=/construction PORT_DBDIR=/options PACKAGES=/packages MAKE_JOBS_NUMBER_LIMIT=5 LICENSES_ACCEPTED= NONE HAVE_COMPAT_IA32_KERN= CONFIGURE_MAX_CMD_LEN=262144 _PERL5_FROM_BIN=5.28.1 _ALTCCVERSION_921dbbb2=none _OBJC_ALTCCVERSION_921dbbb2=none _SMP_CPUS=8 UID=0 ARCH=x86_64 OPSYS=DragonFly DFLYVERSION=500500 OSVERSION=9999999 OSREL=5.5 _OSRELEASE=5.5-SYNTH PYTHONBASE=/usr/local _PKG_CHECKED=1 -------------------------------------------------------------------------------- -- Phase: check-sanity -------------------------------------------------------------------------------- ===> License QPLv1 accepted by the user -------------------------------------------------------------------------------- -- Phase: pkg-depends -------------------------------------------------------------------------------- ===> sancp-1.6.1_6 depends on file: /usr/local/sbin/pkg - not found ===> Installing existing package /packages/All/pkg-1.10.5_5.txz Installing pkg-1.10.5_5... Extracting pkg-1.10.5_5: .......... done ===> sancp-1.6.1_6 depends on file: /usr/local/sbin/pkg - found ===> Returning to build of sancp-1.6.1_6 -------------------------------------------------------------------------------- -- Phase: fetch-depends -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- Phase: fetch -------------------------------------------------------------------------------- ===> License QPLv1 accepted by the user ===> Fetching all distfiles required by sancp-1.6.1_6 for building -------------------------------------------------------------------------------- -- Phase: checksum -------------------------------------------------------------------------------- ===> License QPLv1 accepted by the user ===> Fetching all distfiles required by sancp-1.6.1_6 for building => SHA256 Checksum OK for sancp-1.6.1-stable.tar.gz. -------------------------------------------------------------------------------- -- Phase: extract-depends -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- Phase: extract -------------------------------------------------------------------------------- ===> License QPLv1 accepted by the user ===> Fetching all distfiles required by sancp-1.6.1_6 for building ===> Extracting for sancp-1.6.1_6 ===> License QPLv1 accepted by the user ===> Fetching all distfiles required by sancp-1.6.1_6 for building => SHA256 Checksum OK for sancp-1.6.1-stable.tar.gz. -------------------------------------------------------------------------------- -- Phase: patch-depends -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- Phase: patch -------------------------------------------------------------------------------- ===> Patching for sancp-1.6.1_6 ===> Applying ports patches for sancp-1.6.1_6 -------------------------------------------------------------------------------- -- Phase: build-depends -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- Phase: lib-depends -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- Phase: configure -------------------------------------------------------------------------------- ===> Configuring for sancp-1.6.1_6 -------------------------------------------------------------------------------- -- Phase: build -------------------------------------------------------------------------------- ===> Building for sancp-1.6.1_6 --- bsd --- --- final --- c++ -Wall -Wno-narrowing -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; ^~~ build_acl.cc: In function 'void print_acl(int)': build_acl.cc:2257:12: warning: passing argument 1 to restrict-qualified parameter aliases with argument 3 [-Wrestrict] sprintf(LOG,"%s %s ",LOG,ptok); ^~~ ~~~ build_acl.cc:2265:14: warning: passing argument 1 to restrict-qualified parameter aliases with argument 3 [-Wrestrict] sprintf(ptok,"%s-%d",ptok,tmp_port->h_port); ^~~~ ~~~~ build_acl.cc:2271:13: warning: passing argument 1 to restrict-qualified parameter aliases with argument 3 [-Wrestrict] sprintf(LOG,"%s%s",LOG,ptok); ^~~ ~~~ build_acl.cc:2317:15: warning: passing argument 1 to restrict-qualified parameter aliases with argument 3 [-Wrestrict] sprintf(ptok,"%s/%d",ptok,cidr); ^~~~ ~~~~ build_acl.cc:2319:15: warning: passing argument 1 to restrict-qualified parameter aliases with argument 3 [-Wrestrict] sprintf(ptok,"%s/%s",ptok,inet_ntoa(*(struct in_addr*) &tmpptr->s_mask)); ^~~~ ~~~~ build_acl.cc:2347:15: warning: passing argument 1 to restrict-qualified parameter aliases with argument 3 [-Wrestrict] sprintf(ptok,"%s/%d",ptok,cidr); ^~~~ ~~~~ build_acl.cc:2349:15: warning: passing argument 1 to restrict-qualified parameter aliases with argument 3 [-Wrestrict] sprintf(ptok,"%s/%s",ptok,inet_ntoa(*(struct in_addr*) &tmpptr->d_mask)); ^~~~ ~~~~ build_acl.cc:2369:12: warning: passing argument 1 to restrict-qualified parameter aliases with argument 3 [-Wrestrict] sprintf(ptok,"%s-%d",ptok,tmpptr->proto_h); ^~~~ ~~~~ build_acl.cc:2388:12: warning: passing argument 1 to restrict-qualified parameter aliases with argument 3 [-Wrestrict] sprintf(ptok,"%s-%d",ptok,tmpptr->s_port_h); ^~~~ ~~~~ build_acl.cc:2407:12: warning: passing argument 1 to restrict-qualified parameter aliases with argument 3 [-Wrestrict] sprintf(ptok,"%s-%d",ptok,tmpptr->d_port_h); ^~~~ ~~~~ build_acl.cc:2464:12: warning: passing argument 1 to restrict-qualified parameter aliases with argument 3 [-Wrestrict] sprintf(LOG,"%s filename=%s",LOG,tmpptr->fH->getFileName()); ^~~ ~~~ build_acl.cc:2466:12: warning: passing argument 1 to restrict-qualified parameter aliases with argument 3 [-Wrestrict] sprintf(LOG,"%s tsfilename=%s",LOG,tmpptr->fH->getFileName()); ^~~ ~~~ build_acl.cc:2483:12: warning: passing argument 1 to restrict-qualified parameter aliases with argument 3 [-Wrestrict] sprintf(LOG,"%s, limit=%llu",LOG,(long long unsigned)tmpptr->limit); ^~~ ~~~ build_acl.cc:2486:12: warning: passing argument 1 to restrict-qualified parameter aliases with argument 3 [-Wrestrict] sprintf(LOG,"%s, timeout=%d",LOG,tmpptr->timeout); ^~~ ~~~ build_acl.cc:2489:12: warning: passing argument 1 to restrict-qualified parameter aliases with argument 3 [-Wrestrict] sprintf(LOG,"%s, tcplag=%d",LOG,tmpptr->tcplag); ^~~ ~~~ build_acl.cc:2499:12: warning: passing argument 1 to restrict-qualified parameter aliases with argument 3 [-Wrestrict] sprintf(LOG,"%s, rid=%s",LOG,ptok); ^~~ ~~~ build_acl.cc:2510:12: warning: passing argument 1 to restrict-qualified parameter aliases with argument 3 [-Wrestrict] sprintf(LOG,"%s, rgid=%s",LOG,ptok); ^~~ ~~~ build_acl.cc:2521:12: warning: passing argument 1 to restrict-qualified parameter aliases with argument 3 [-Wrestrict] sprintf(LOG,"%s, zone=%s",LOG,ptok); ^~~ ~~~ build_acl.cc:2532:12: warning: passing argument 1 to restrict-qualified parameter aliases with argument 3 [-Wrestrict] sprintf(LOG,"%s, node=%s",LOG,ptok); ^~~ ~~~ build_acl.cc:2543:12: warning: passing argument 1 to restrict-qualified parameter aliases with argument 3 [-Wrestrict] sprintf(LOG,"%s, status=%s",LOG,ptok); ^~~ ~~~ build_acl.cc:2550:11: warning: passing argument 1 to restrict-qualified parameter aliases with argument 3 [-Wrestrict] sprintf(LOG,"%s # Matches: %d\n",LOG,tmpptr->ctr); ^~~ ~~~ build_acl.cc: In function 'void parse_default(char*, char*)': build_acl.cc:924:18: warning: 'char* strncpy(char*, const char*, size_t)' output truncated before terminating nul copying 5 bytes from a string of the same length [-Wstringop-truncation] strncpy(gVars.stats_fname,STATS_FNAME,strlen(STATS_FNAME)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ build_acl.cc:993:18: warning: 'char* strncpy(char*, const char*, size_t)' output truncated before terminating nul copying 4 bytes from a string of the same length [-Wstringop-truncation] strncpy(gVars.pcap_fname,PCAP_FNAME,strlen(PCAP_FNAME)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ build_acl.cc:1057:18: warning: 'char* strncpy(char*, const char*, size_t)' output truncated before terminating nul copying 8 bytes from a string of the same length [-Wstringop-truncation] strncpy(gVars.realtime_fname,REALTIME_FNAME,strlen(REALTIME_FNAME)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ build_acl.cc: In function 'void print_acl(int)': build_acl.cc:2297:11: warning: 'char* strncpy(char*, const char*, size_t)' output truncated before terminating nul copying 3 bytes from a string of the same length [-Wstringop-truncation] strncpy(ptok,"any",sizeof(char)*strlen("any")); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ build_acl.cc:2327:11: warning: 'char* strncpy(char*, const char*, size_t)' output truncated before terminating nul copying 3 bytes from a string of the same length [-Wstringop-truncation] strncpy(ptok,"any",sizeof(char)*strlen("any")); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ build_acl.cc:2357:11: warning: 'char* strncpy(char*, const char*, size_t)' output truncated before terminating nul copying 3 bytes from a string of the same length [-Wstringop-truncation] strncpy(ptok,"any",sizeof(char)*strlen("any")); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ build_acl.cc:2376:11: warning: 'char* strncpy(char*, const char*, size_t)' output truncated before terminating nul copying 3 bytes from a string of the same length [-Wstringop-truncation] strncpy(ptok,"any",sizeof(char)*strlen("any")); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ build_acl.cc:2395:11: warning: 'char* strncpy(char*, const char*, size_t)' output truncated before terminating nul copying 3 bytes from a string of the same length [-Wstringop-truncation] strncpy(ptok,"any",sizeof(char)*strlen("any")); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ build_acl.cc:2414:11: warning: 'char* strncpy(char*, const char*, size_t)' output truncated before terminating nul copying 3 bytes from a string of the same length [-Wstringop-truncation] strncpy(ptok,"any",sizeof(char)*strlen("any")); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ build_acl.cc: In function 'void parse_default(char*, char*)': build_acl.cc:1079:32: warning: 'char* strncpy(char*, const char*, size_t)' output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation] strncpy(gVars.realtime_fname,tmp,strlen(tmp)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ build_acl.cc:1098:32: warning: 'char* strncpy(char*, const char*, size_t)' output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation] strncpy(gVars.realtime_fname,tmp,strlen(tmp)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ build_acl.cc:1014:18: warning: 'char* strncpy(char*, const char*, size_t)' output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation] strncpy(gVars.pcap_fname,tmp,strlen(tmp)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ build_acl.cc:1031:18: warning: 'char* strncpy(char*, const char*, size_t)' output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation] strncpy(gVars.pcap_fname,tmp,strlen(tmp)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ build_acl.cc:945:32: warning: 'char* strncpy(char*, const char*, size_t)' output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation] strncpy(gVars.stats_fname,tmp,strlen(tmp)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ build_acl.cc:964:32: warning: 'char* strncpy(char*, const char*, size_t)' output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation] strncpy(gVars.stats_fname,tmp,strlen(tmp)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ build_acl.cc:903:10: warning: 'char* strncpy(char*, const char*, size_t)' output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation] strncpy(gVars.bpf_filter,rules,strlen(rules)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ build_acl.cc: In function 'void parse_var(char*, char*)': build_acl.cc:1207:12: warning: 'char* strncpy(char*, const char*, size_t)' output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation] strncpy(n_var->key,tok,sizeof(char)*strlen(tok)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ build_acl.cc:1220:13: warning: 'char* strncpy(char*, const char*, size_t)' output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation] strncpy(n_var->value,tok,sizeof(char)*strlen(tok)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ build_acl.cc: In function 'void parse_known_ports(char*, vars*, char*)': build_acl.cc:1319:15: warning: 'char* strncpy(char*, const char*, size_t)' output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation] strncpy(ptok,tmp,sizeof(char)*strlen(tmp)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ build_acl.cc:1338:16: warning: 'char* strncpy(char*, const char*, size_t)' output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation] strncpy(ptok,tmp,sizeof(char)*strlen(tmp)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ build_acl.cc: In function 'void parse_connection_rule(char*, vars*, char*)': build_acl.cc:1443:15: warning: 'char* strncpy(char*, const char*, size_t)' output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation] strncpy(ptok,tmp,sizeof(char)*strlen(tmp)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ build_acl.cc:1490:15: warning: 'char* strncpy(char*, const char*, size_t)' output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation] strncpy(ptok,tmp,sizeof(char)*strlen(tmp)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ build_acl.cc:1546:15: warning: 'char* strncpy(char*, const char*, size_t)' output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation] strncpy(ptok,tmp,sizeof(char)*strlen(tmp)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ build_acl.cc:1600:15: warning: 'char* strncpy(char*, const char*, size_t)' output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation] strncpy(ptok,tmp,sizeof(char)*strlen(tmp)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ build_acl.cc:1649:15: warning: 'char* strncpy(char*, const char*, size_t)' output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation] strncpy(ptok,tmp,sizeof(char)*strlen(tmp)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ build_acl.cc:1701:15: warning: 'char* strncpy(char*, const char*, size_t)' output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation] strncpy(ptok,tmp,sizeof(char)*strlen(tmp)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ build_acl.cc:1850:16: warning: 'char* strncpy(char*, const char*, size_t)' output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation] strncpy(ptok,tok,sizeof(char)*strlen(tok)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ build_acl.cc:1825:16: warning: 'char* strncpy(char*, const char*, size_t)' output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation] strncpy(ptok,tok,sizeof(char)*strlen(tok)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ build_acl.cc:1800:16: warning: 'char* strncpy(char*, const char*, size_t)' output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation] strncpy(ptok,tok,sizeof(char)*strlen(tok)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ build_acl.cc:1775:16: warning: 'char* strncpy(char*, const char*, size_t)' output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation] strncpy(ptok,tok,sizeof(char)*strlen(tok)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ build_acl.cc:1750:16: warning: 'char* strncpy(char*, const char*, size_t)' output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation] strncpy(ptok,tok,sizeof(char)*strlen(tok)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ build_acl.cc: In function 'void print_acl(int)': build_acl.cc:2257:16: warning: '%s' directive writing up to 255 bytes into a region of size between 0 and 1023 [-Wformat-overflow=] sprintf(LOG,"%s %s ",LOG,ptok); ^~~~~~~~ ~~~~ build_acl.cc:2257:11: note: 'sprintf' output between 3 and 1281 bytes into a destination of size 1024 sprintf(LOG,"%s %s ",LOG,ptok); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ build_acl.cc:2265:19: warning: '%d' directive writing between 1 and 10 bytes into a region of size between 0 and 255 [-Wformat-overflow=] sprintf(ptok,"%s-%d",ptok,tmp_port->h_port); ^~~~~~~ build_acl.cc:2265:19: note: directive argument in the range [0, 2147483647] build_acl.cc:2265:13: note: 'sprintf' output between 3 and 267 bytes into a destination of size 256 sprintf(ptok,"%s-%d",ptok,tmp_port->h_port); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ build_acl.cc:2271:17: warning: '%s' directive writing up to 255 bytes into a region of size between 1 and 1024 [-Wformat-overflow=] sprintf(LOG,"%s%s",LOG,ptok); ^~~~~~ ~~~~ build_acl.cc:2271:12: note: 'sprintf' output between 1 and 1279 bytes into a destination of size 1024 sprintf(LOG,"%s%s",LOG,ptok); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~ build_acl.cc:2319:20: warning: 'sprintf' may write a terminating nul past the end of the destination [-Wformat-overflow=] sprintf(ptok,"%s/%s",ptok,inet_ntoa(*(struct in_addr*) &tmpptr->s_mask)); ^~~~~~~ build_acl.cc:2319:14: note: 'sprintf' output 2 or more bytes (assuming 257) into a destination of size 256 sprintf(ptok,"%s/%s",ptok,inet_ntoa(*(struct in_addr*) &tmpptr->s_mask)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ build_acl.cc:2317:20: warning: '%d' directive writing between 1 and 10 bytes into a region of size between 0 and 255 [-Wformat-overflow=] sprintf(ptok,"%s/%d",ptok,cidr); ^~~~~~~ build_acl.cc:2317:20: note: directive argument in the range [0, 2147483647] build_acl.cc:2317:14: note: 'sprintf' output between 3 and 267 bytes into a destination of size 256 sprintf(ptok,"%s/%d",ptok,cidr); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ build_acl.cc:2349:20: warning: 'sprintf' may write a terminating nul past the end of the destination [-Wformat-overflow=] sprintf(ptok,"%s/%s",ptok,inet_ntoa(*(struct in_addr*) &tmpptr->d_mask)); ^~~~~~~ build_acl.cc:2349:14: note: 'sprintf' output 2 or more bytes (assuming 257) into a destination of size 256 sprintf(ptok,"%s/%s",ptok,inet_ntoa(*(struct in_addr*) &tmpptr->d_mask)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ build_acl.cc:2347:20: warning: '%d' directive writing between 1 and 10 bytes into a region of size between 0 and 255 [-Wformat-overflow=] sprintf(ptok,"%s/%d",ptok,cidr); ^~~~~~~ build_acl.cc:2347:20: note: directive argument in the range [0, 2147483647] build_acl.cc:2347:14: note: 'sprintf' output between 3 and 267 bytes into a destination of size 256 sprintf(ptok,"%s/%d",ptok,cidr); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ build_acl.cc:2369:17: warning: '%d' directive writing between 1 and 10 bytes into a region of size between 0 and 255 [-Wformat-overflow=] sprintf(ptok,"%s-%d",ptok,tmpptr->proto_h); ^~~~~~~ build_acl.cc:2369:17: note: directive argument in the range [0, 2147483647] build_acl.cc:2369:11: note: 'sprintf' output between 3 and 267 bytes into a destination of size 256 sprintf(ptok,"%s-%d",ptok,tmpptr->proto_h); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ build_acl.cc:2388:17: warning: '%d' directive writing between 1 and 10 bytes into a region of size between 0 and 255 [-Wformat-overflow=] sprintf(ptok,"%s-%d",ptok,tmpptr->s_port_h); ^~~~~~~ build_acl.cc:2388:17: note: directive argument in the range [0, 2147483647] build_acl.cc:2388:11: note: 'sprintf' output between 3 and 267 bytes into a destination of size 256 sprintf(ptok,"%s-%d",ptok,tmpptr->s_port_h); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ build_acl.cc:2407:17: warning: '%d' directive writing between 1 and 10 bytes into a region of size between 0 and 255 [-Wformat-overflow=] sprintf(ptok,"%s-%d",ptok,tmpptr->d_port_h); ^~~~~~~ build_acl.cc:2407:17: note: directive argument in the range [0, 2147483647] build_acl.cc:2407:11: note: 'sprintf' output between 3 and 267 bytes into a destination of size 256 sprintf(ptok,"%s-%d",ptok,tmpptr->d_port_h); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ build_acl.cc:2464:16: warning: ' filename=' directive writing 10 bytes into a region of size between 1 and 1024 [-Wformat-overflow=] sprintf(LOG,"%s filename=%s",LOG,tmpptr->fH->getFileName()); ^~~~~~~~~~~~~~~~ build_acl.cc:2464:11: note: 'sprintf' output 11 or more bytes (assuming 1034) into a destination of size 1024 sprintf(LOG,"%s filename=%s",LOG,tmpptr->fH->getFileName()); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ build_acl.cc:2466:16: warning: ' tsfilename=' directive writing 12 bytes into a region of size between 1 and 1024 [-Wformat-overflow=] sprintf(LOG,"%s tsfilename=%s",LOG,tmpptr->fH->getFileName()); ^~~~~~~~~~~~~~~~~~ build_acl.cc:2466:11: note: 'sprintf' output 13 or more bytes (assuming 1036) into a destination of size 1024 sprintf(LOG,"%s tsfilename=%s",LOG,tmpptr->fH->getFileName()); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ build_acl.cc:2483:16: warning: ', limit=' directive writing 8 bytes into a region of size between 1 and 1024 [-Wformat-overflow=] sprintf(LOG,"%s, limit=%llu",LOG,(long long unsigned)tmpptr->limit); ^~~~~~~~~~~~~~~~ build_acl.cc:2483:11: note: 'sprintf' output between 10 and 1052 bytes into a destination of size 1024 sprintf(LOG,"%s, limit=%llu",LOG,(long long unsigned)tmpptr->limit); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ build_acl.cc:2486:16: warning: ', timeout=' directive writing 10 bytes into a region of size between 1 and 1024 [-Wformat-overflow=] sprintf(LOG,"%s, timeout=%d",LOG,tmpptr->timeout); ^~~~~~~~~~~~~~~~ build_acl.cc:2486:16: note: directive argument in the range [0, 2147483647] build_acl.cc:2486:11: note: 'sprintf' output between 12 and 1044 bytes into a destination of size 1024 sprintf(LOG,"%s, timeout=%d",LOG,tmpptr->timeout); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ build_acl.cc:2489:16: warning: ', tcplag=' directive writing 9 bytes into a region of size between 1 and 1024 [-Wformat-overflow=] sprintf(LOG,"%s, tcplag=%d",LOG,tmpptr->tcplag); ^~~~~~~~~~~~~~~ build_acl.cc:2489:16: note: directive argument in the range [0, 2147483647] build_acl.cc:2489:11: note: 'sprintf' output between 11 and 1043 bytes into a destination of size 1024 sprintf(LOG,"%s, tcplag=%d",LOG,tmpptr->tcplag); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ build_acl.cc:2499:16: warning: ', rid=' directive writing 6 bytes into a region of size between 1 and 1024 [-Wformat-overflow=] sprintf(LOG,"%s, rid=%s",LOG,ptok); ^~~~~~~~~~~~ build_acl.cc:2499:11: note: 'sprintf' output between 7 and 1285 bytes into a destination of size 1024 sprintf(LOG,"%s, rid=%s",LOG,ptok); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ build_acl.cc:2510:16: warning: ', rgid=' directive writing 7 bytes into a region of size between 1 and 1024 [-Wformat-overflow=] sprintf(LOG,"%s, rgid=%s",LOG,ptok); ^~~~~~~~~~~~~ build_acl.cc:2510:11: note: 'sprintf' output between 8 and 1286 bytes into a destination of size 1024 sprintf(LOG,"%s, rgid=%s",LOG,ptok); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ build_acl.cc:2521:16: warning: ', zone=' directive writing 7 bytes into a region of size between 1 and 1024 [-Wformat-overflow=] sprintf(LOG,"%s, zone=%s",LOG,ptok); ^~~~~~~~~~~~~ build_acl.cc:2521:11: note: 'sprintf' output between 8 and 1286 bytes into a destination of size 1024 sprintf(LOG,"%s, zone=%s",LOG,ptok); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ build_acl.cc:2532:16: warning: ', node=' directive writing 7 bytes into a region of size between 1 and 1024 [-Wformat-overflow=] sprintf(LOG,"%s, node=%s",LOG,ptok); ^~~~~~~~~~~~~ build_acl.cc:2532:11: note: 'sprintf' output between 8 and 1286 bytes into a destination of size 1024 sprintf(LOG,"%s, node=%s",LOG,ptok); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ build_acl.cc:2543:16: warning: ', status=' directive writing 9 bytes into a region of size between 1 and 1024 [-Wformat-overflow=] sprintf(LOG,"%s, status=%s",LOG,ptok); ^~~~~~~~~~~~~~~ build_acl.cc:2543:11: note: 'sprintf' output between 10 and 1288 bytes into a destination of size 1024 sprintf(LOG,"%s, status=%s",LOG,ptok); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ build_acl.cc:2550:15: warning: ' # Matches: ' directive writing 12 bytes into a region of size between 1 and 1024 [-Wformat-overflow=] sprintf(LOG,"%s # Matches: %d\n",LOG,tmpptr->ctr); ^~~~~~~~~~~~~~~~~~~~ build_acl.cc:2550:15: note: using the range [-2147483648, 2147483647] for directive argument build_acl.cc:2550:10: note: 'sprintf' output between 15 and 1048 bytes into a destination of size 1024 sprintf(LOG,"%s # Matches: %d\n",LOG,tmpptr->ctr); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ build_acl.cc:2255:12: warning: 'char* strncpy(char*, const char*, size_t)' output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation] strncpy(ptok,tmp,sizeof(char)*strlen(tmp)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ build_acl.cc:2269:13: warning: 'char* strncpy(char*, const char*, size_t)' output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation] strncpy(ptok,tmp,sizeof(char)*strlen(tmp)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ build_acl.cc:2294:11: warning: 'char* strncpy(char*, const char*, size_t)' output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation] strncpy(ptok,tmp,sizeof(char)*strlen(tmp)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ build_acl.cc:2324:11: warning: 'char* strncpy(char*, const char*, size_t)' output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation] strncpy(ptok,tmp,sizeof(char)*strlen(tmp)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ build_acl.cc:2354:11: warning: 'char* strncpy(char*, const char*, size_t)' output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation] strncpy(ptok,tmp,sizeof(char)*strlen(tmp)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ build_acl.cc:2373:11: warning: 'char* strncpy(char*, const char*, size_t)' output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation] strncpy(ptok,tmp,sizeof(char)*strlen(tmp)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ build_acl.cc:2392:11: warning: 'char* strncpy(char*, const char*, size_t)' output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation] strncpy(ptok,tmp,sizeof(char)*strlen(tmp)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ build_acl.cc:2411:11: warning: 'char* strncpy(char*, const char*, size_t)' output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation] strncpy(ptok,tmp,sizeof(char)*strlen(tmp)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ build_acl.cc:2497:12: warning: 'char* strncpy(char*, const char*, size_t)' output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation] strncpy(ptok,tmp,sizeof(char)*strlen(tmp)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ build_acl.cc:2508:12: warning: 'char* strncpy(char*, const char*, size_t)' output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation] strncpy(ptok,tmp,sizeof(char)*strlen(tmp)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ build_acl.cc:2519:12: warning: 'char* strncpy(char*, const char*, size_t)' output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation] strncpy(ptok,tmp,sizeof(char)*strlen(tmp)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ build_acl.cc:2530:12: warning: 'char* strncpy(char*, const char*, size_t)' output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation] strncpy(ptok,tmp,sizeof(char)*strlen(tmp)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ build_acl.cc:2541:12: warning: 'char* strncpy(char*, const char*, size_t)' output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation] strncpy(ptok,tmp,sizeof(char)*strlen(tmp)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ build_acl.cc: In function 'void set_bpf_filter(char*)': build_acl.cc:2593:16: warning: 'char* strncpy(char*, const char*, size_t)' output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation] strncpy(gVars.bpf_fname,argv,strlen(argv)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ build_acl.cc: In function 'void parse_args(int, char**)': build_acl.cc:393:19: warning: 'char* strncpy(char*, const char*, size_t)' output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation] strncpy(gVars.bpf_filter,argv[ctr],strlen(argv[ctr])); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ build_acl.cc:361:19: warning: 'char* strncpy(char*, const char*, size_t)' output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation] strncpy(gVars.bpf_filter,argv[ctr],strlen(argv[ctr])); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ c++ -Wall -Wno-narrowing -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 -Wno-narrowing -O2 -fno-strict-aliasing -c outputFileHandle.cc -o outputFileHandle.o c++ -Wall -Wno-narrowing -O2 -fno-strict-aliasing -c apply_rule.cc -o apply_rule.o c++ -Wall -Wno-narrowing -O2 -fno-strict-aliasing -c decode.cc -o decode.o c++ -Wall -Wno-narrowing -O2 -fno-strict-aliasing -c fileHandle.cc -o fileHandle.o In function 'void fileHandle::setFileName(const char*)', inlined from 'void fileHandle::setFileName(const char*)': fileHandle.cc:36:17: warning: 'char* strncpy(char*, const char*, size_t)' output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation] strncpy(filename,newfilename,strlen(newfilename)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ c++ -Wall -Wno-narrowing -O2 -fno-strict-aliasing -c MemoryPool.cc -o MemoryPool.o c++ -Wall -Wno-narrowing -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 -Wno-narrowing -O2 -fno-strict-aliasing -c sancp.cc -o sancp.o sancp.cc: In function 'int main(int, char**)': sancp.cc:179:9: warning: 'char* strncpy(char*, const char*, size_t)' output truncated before terminating nul copying 4 bytes from a string of the same length [-Wstringop-truncation] strncpy(gVars.pcap_fname,PCAP_FNAME,strlen(PCAP_FNAME)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sancp.cc:184:9: warning: 'char* strncpy(char*, const char*, size_t)' output truncated before terminating nul copying 5 bytes from a string of the same length [-Wstringop-truncation] strncpy(gVars.stats_fname,STATS_FNAME,strlen(STATS_FNAME)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sancp.cc:189:9: warning: 'char* strncpy(char*, const char*, size_t)' output truncated before terminating nul copying 8 bytes from a string of the same length [-Wstringop-truncation] strncpy(gVars.realtime_fname,REALTIME_FNAME,strlen(REALTIME_FNAME)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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 -Wno-narrowing -O2 -fno-strict-aliasing -c pcap_functions.c -o pcap_functions.o c++ -Wall -Wno-narrowing -O2 -fno-strict-aliasing -c permissions.cc -o permissions.o c++ -Wall -Wno-narrowing -O2 -fno-strict-aliasing -c check_packet.cc -o check_packet.o c++ -Wall -Wno-narrowing -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 -Wno-narrowing -O2 -fno-strict-aliasing -c help.cc -o help.o c++ -Wall -lpcap -L/usr/lib/libpcap.so -Wno-narrowing -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 -------------------------------------------------------------------------------- -- Phase: run-depends -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- 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) -------------------------------------------------------------------------------- -- Phase: package -------------------------------------------------------------------------------- ===> Building package for sancp-1.6.1_6 file sizes/checksums [12]: . done packing files [12]: . done packing directories [1]: . done -------------------------------------------------- -- Termination -------------------------------------------------- Finished: Saturday, 9 MAR 2019 at 08:52:26 UTC Duration: 00:00:15