=> Building security/ipguard Started : Saturday, 9 MAR 2019 at 08:14:24 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 ipguard-1.04_2: DOCS=on: Build and/or install documentation ===> Use 'make config' to modify these settings -------------------------------------------------- -- CONFIGURE_ENV -------------------------------------------------- XDG_DATA_HOME=/construction/security/ipguard XDG_CONFIG_HOME=/construction/security/ipguard HOME=/construction/security/ipguard TMPDIR="/tmp" PATH=/construction/security/ipguard/.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/ipguard XDG_CONFIG_HOME=/construction/security/ipguard HOME=/construction/security/ipguard TMPDIR="/tmp" PATH=/construction/security/ipguard/.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="-pipe -O2 -fno-strict-aliasing " CPP="cpp" CPPFLAGS="" LDFLAGS=" " LIBS="" CXX="c++" CXXFLAGS=" -pipe -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 -------------------------------------------------- DESTDIR=/construction/security/ipguard/stage -------------------------------------------------- -- PLIST_SUB -------------------------------------------------- PORTDOCS="" OSREL=5.5 PREFIX=%D LOCALBASE=/usr/local RESETPREFIX=/usr/local LIB32DIR=lib PROFILE="@comment " DOCSDIR="share/doc/ipguard" EXAMPLESDIR="share/examples/ipguard" DATADIR="share/ipguard" WWWDIR="www/ipguard" ETCDIR="etc/ipguard" -------------------------------------------------- -- SUB_LIST -------------------------------------------------- PREFIX=/usr/local LOCALBASE=/usr/local DATADIR=/usr/local/share/ipguard DOCSDIR=/usr/local/share/doc/ipguard EXAMPLESDIR=/usr/local/share/examples/ipguard WWWDIR=/usr/local/www/ipguard ETCDIR=/usr/local/etc/ipguard -------------------------------------------------- -- /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 BSD2CLAUSE accepted by the user -------------------------------------------------------------------------------- -- Phase: pkg-depends -------------------------------------------------------------------------------- ===> ipguard-1.04_2 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 ===> ipguard-1.04_2 depends on file: /usr/local/sbin/pkg - found ===> Returning to build of ipguard-1.04_2 -------------------------------------------------------------------------------- -- Phase: fetch-depends -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- Phase: fetch -------------------------------------------------------------------------------- ===> License BSD2CLAUSE accepted by the user ===> Fetching all distfiles required by ipguard-1.04_2 for building -------------------------------------------------------------------------------- -- Phase: checksum -------------------------------------------------------------------------------- ===> License BSD2CLAUSE accepted by the user ===> Fetching all distfiles required by ipguard-1.04_2 for building => SHA256 Checksum OK for ipguard-1.04.tar.gz. -------------------------------------------------------------------------------- -- Phase: extract-depends -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- Phase: extract -------------------------------------------------------------------------------- ===> License BSD2CLAUSE accepted by the user ===> Fetching all distfiles required by ipguard-1.04_2 for building ===> Extracting for ipguard-1.04_2 => SHA256 Checksum OK for ipguard-1.04.tar.gz. -------------------------------------------------------------------------------- -- Phase: patch-depends -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- Phase: patch -------------------------------------------------------------------------------- ===> Patching for ipguard-1.04_2 ===> Applying ports patches for ipguard-1.04_2 -------------------------------------------------------------------------------- -- Phase: build-depends -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- Phase: lib-depends -------------------------------------------------------------------------------- ===> ipguard-1.04_2 depends on shared library: libnet.so - not found ===> Installing existing package /packages/All/libnet-1.1.6_5,1.txz Installing libnet-1.1.6_5,1... Extracting libnet-1.1.6_5,1: .......... done ===> ipguard-1.04_2 depends on shared library: libnet.so - found (/usr/local/lib/libnet.so) ===> Returning to build of ipguard-1.04_2 -------------------------------------------------------------------------------- -- Phase: configure -------------------------------------------------------------------------------- ===> Configuring for ipguard-1.04_2 -------------------------------------------------------------------------------- -- Phase: build -------------------------------------------------------------------------------- ===> Building for ipguard-1.04_2 --- start --- --- ethers.o --- --- ipguard.o --- --- packet.o --- --- system.o --- --- start --- Making ipguard INCLUDES=-I/usr/local/include LIBS=-L/usr/local/lib -lnet -lpcap -L/usr/local/lib DEFINES=-DLIBNET_LIL_ENDIAN CFLAGS=-pipe -O2 -fno-strict-aliasing -g -Wall -DETHERS='/etc/ethers' --- ethers.o --- Compiling ethers.c --- ipguard.o --- Compiling ipguard.c --- packet.o --- Compiling packet.c --- system.o --- Compiling system.c --- packet.o --- In file included from /usr/local/include/libnet.h:119, from packet.c:50: /usr/local/include/./libnet/libnet-headers.h:510: warning: "ETHERTYPE_IPV6" redefined #define ETHERTYPE_IPV6 0x86dd /* IPv6 protocol */ In file included from /usr/include/netinet/if_ether.h:38, from packet.c:43: /usr/include/net/ethernet.h:321: note: this is the location of the previous definition #define ETHERTYPE_IPV6 0x86DD /* IP protocol version 6 */ packet.c: In function 'pair_add': packet.c:192:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (verbose) log_str(WARNING, "Invalid MAC:", mac); return; ^~ packet.c:192:61: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' if (verbose) log_str(WARNING, "Invalid MAC:", mac); return; ^~~~~~ packet.c:195:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (verbose) log_str(WARNING, "Host unknown:", ip); return; ^~ packet.c:195:61: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' if (verbose) log_str(WARNING, "Host unknown:", ip); return; ^~~~~~ --- ipguard.o --- ipguard.c: In function 'main': ipguard.c:128:20: warning: 'strncpy' output truncated before terminating nul copying 3 bytes from a string of the same length [-Wstringop-truncation] if (!pcapf[0]) strncpy(pcapf, "arp", 3); ^~~~~~~~~~~~~~~~~~~~~~~~ ipguard.c:129:39: warning: 'strncat' specified bound 8 equals source length [-Wstringop-overflow=] else { pcapf[PCAPFSIZ-10] = '\0'; strncat(pcapf, " and arp", 8); } ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ipguard.c:122:26: warning: 'strncpy' specified bound 16 equals destination size [-Wstringop-truncation] if (argc > optind) { strncpy(iface, argv[optind], IFNAMSIZ); } ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ipguard.c:102:23: warning: 'strncpy' specified bound 16 equals destination size [-Wstringop-truncation] case 's': strncpy(suser, optarg, MAXLOGNAME); break; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ipguard.c:99:23: warning: 'strncpy' specified bound 1024 equals destination size [-Wstringop-truncation] case 'p': strncpy(pid_name, optarg, PATH_MAX); break; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ipguard.c:100:23: warning: 'strncpy' specified bound 18 equals destination size [-Wstringop-truncation] case 'm': strncpy(fmac, optarg, 18); break; ^~~~~~~~~~~~~~~~~~~~~~~~~ ipguard.c:98:23: warning: 'strncpy' specified bound 1024 equals destination size [-Wstringop-truncation] case 'l': strncpy(log_name, optarg, PATH_MAX); break; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ipguard.c:97:23: warning: 'strncpy' specified bound 1024 equals destination size [-Wstringop-truncation] case 'e': strncpy(ethers_name, optarg, PATH_MAX); break; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ipguard.c:101:23: warning: 'strncpy' specified bound 128 equals destination size [-Wstringop-truncation] case 'c': strncpy(pcapf, optarg, PCAPFSIZ); break; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --- ethers.o --- ethers.c: In function 'ethers_init': ethers.c:79:34: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 121 [-Wformat-truncation=] snprintf(s, 128, "fclose(%s):", ethers_name); ^~ ~~~~~~~~~~~ ethers.c:79:9: note: 'snprintf' output between 10 and 1033 bytes into a destination of size 128 snprintf(s, 128, "fclose(%s):", ethers_name); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ethers.c:42:33: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 122 [-Wformat-truncation=] snprintf(s, 128, "fopen(%s):", ethers_name); ^~ ~~~~~~~~~~~ ethers.c:42:9: note: 'snprintf' output between 9 and 1032 bytes into a destination of size 128 snprintf(s, 128, "fopen(%s):", ethers_name); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ethers.c:71:90: warning: 'strncpy' output may be truncated copying 64 bytes from a string of length 127 [-Wstringop-truncation] if (strchr(mac, '.')) { strncpy(str, mac, ADDR_LEN); strncpy(mac, ip, ADDR_LEN); strncpy(ip, str, ADDR_LEN); } ^~~~~~~~~~~~~~~~~~~~~~~~~~ --- packet.o --- packet.c: In function 'pair_dump': packet.c:225:9: warning: 'strncpy' specified bound 16 equals destination size [-Wstringop-truncation] strncpy(ntoasw, inet_ntoa(p->mask), 16); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ packet.c: In function 'packet_init': packet.c:261:40: warning: '%s' directive output may be truncated writing up to 127 bytes into a region of size 115 [-Wformat-truncation=] snprintf(s, 128, "pcap_compile(%s):", pcapf); ^~ ~~~~~ packet.c:261:9: note: 'snprintf' output between 16 and 143 bytes into a destination of size 128 snprintf(s, 128, "pcap_compile(%s):", pcapf); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ packet.c:248:5: warning: 'strncpy' specified bound 16 equals destination size [-Wstringop-truncation] strncpy(ifname, iface, IFNAMSIZ); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ packet.c: In function 'packet_check': packet.c:341:13: warning: 'strncpy' specified bound 16 equals destination size [-Wstringop-truncation] strncpy(ntoasw, inet_ntoa(tp_addr), 16); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ packet.c:349:13: warning: 'strncpy' specified bound 16 equals destination size [-Wstringop-truncation] strncpy(ntoasw, inet_ntoa(tp_addr), 16); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ packet.c:357:13: warning: 'strncpy' specified bound 16 equals destination size [-Wstringop-truncation] strncpy(ntoasw, inet_ntoa(tp_addr), 16); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ packet.c:457:13: warning: 'strncpy' specified bound 16 equals destination size [-Wstringop-truncation] strncpy(ntoasw, inet_ntoa(tp_addr), 16); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ packet.c:466:13: warning: 'strncpy' specified bound 16 equals destination size [-Wstringop-truncation] strncpy(ntoasw, inet_ntoa(tp_addr), 16); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ packet.c:447:13: warning: 'strncpy' specified bound 16 equals destination size [-Wstringop-truncation] strncpy(ntoasw, inet_ntoa(tp_addr), 16); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ packet.c:476:13: warning: 'strncpy' specified bound 16 equals destination size [-Wstringop-truncation] strncpy(ntoasw, inet_ntoa(tp_addr), 16); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ packet.c:486:13: warning: 'strncpy' specified bound 16 equals destination size [-Wstringop-truncation] strncpy(ntoasw, inet_ntoa(tp_addr), 16); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ packet.c:496:5: warning: 'strncpy' specified bound 16 equals destination size [-Wstringop-truncation] strncpy(ntoasw, inet_ntoa(tp_addr), 16); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --- system.o --- system.c: In function 'pid_unlink': system.c:180:34: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 121 [-Wformat-truncation=] snprintf(s, 128, "unlink(%s):", pid_name); ^~ ~~~~~~~~ system.c:180:9: note: 'snprintf' output between 10 and 1033 bytes into a destination of size 128 snprintf(s, 128, "unlink(%s):", pid_name); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ system.c: In function 'pid_check': system.c:144:37: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 122 [-Wformat-truncation=] snprintf(s, 128, "fopen(%s):", pid_name); ^~ ~~~~~~~~ system.c:144:13: note: 'snprintf' output between 9 and 1032 bytes into a destination of size 128 snprintf(s, 128, "fopen(%s):", pid_name); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ system.c:160:52: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 42 [-Wformat-truncation=] snprintf(s, 64, "Wrong pid file found: %s", pid_name); ^~ ~~~~~~~~ system.c:160:13: note: 'snprintf' output between 23 and 1046 bytes into a destination of size 64 snprintf(s, 64, "Wrong pid file found: %s", pid_name); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ system.c:138:36: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 123 [-Wformat-truncation=] snprintf(s, 128, "stat(%s):", pid_name); ^~ ~~~~~~~~ system.c:138:13: note: 'snprintf' output between 8 and 1031 bytes into a destination of size 128 snprintf(s, 128, "stat(%s):", pid_name); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ system.c: In function 'pid_creat': system.c:170:33: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 122 [-Wformat-truncation=] snprintf(s, 128, "fopen(%s):", pid_name); ^~ ~~~~~~~~ system.c:170:9: note: 'snprintf' output between 9 and 1032 bytes into a destination of size 128 snprintf(s, 128, "fopen(%s):", pid_name); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ system.c: In function 'ethers_stat': system.c:297:32: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 123 [-Wformat-truncation=] snprintf(s, 128, "stat(%s):", ethers_name); ^~ ~~~~~~~~~~~ system.c:297:9: note: 'snprintf' output between 8 and 1031 bytes into a destination of size 128 snprintf(s, 128, "stat(%s):", ethers_name); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --- ipguard --- Linking ipguard -------------------------------------------------------------------------------- -- Phase: run-depends -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- Phase: stage -------------------------------------------------------------------------------- ===> Staging for ipguard-1.04_2 ===> Generating temporary packing list Making ipguard INCLUDES=-I/usr/local/include LIBS=-L/usr/local/lib -lnet -lpcap -L/usr/local/lib DEFINES=-DLIBNET_LIL_ENDIAN CFLAGS=-pipe -O2 -fno-strict-aliasing -g -Wall -DETHERS='/etc/ethers' mkdir -p -m 755 /construction/security/ipguard/stage/usr/local/sbin install -s -m 755 ipguard /construction/security/ipguard/stage/usr/local/sbin/ipguard mkdir -p -m 755 /construction/security/ipguard/stage/usr/local/man/man8 install -m 644 doc/ipguard.8 /construction/security/ipguard/stage/usr/local/man/man8/ipguard.8 install -m 0644 /construction/security/ipguard/ipguard-1.04/doc/COPYRIGHT /construction/security/ipguard/ipguard-1.04/doc/NEWS /construction/security/ipguard/ipguard-1.04/doc/README /construction/security/ipguard/ipguard-1.04/doc/README.tcpdump /construction/security/ipguard/ipguard-1.04/doc/README.log /construction/security/ipguard/ipguard-1.04/doc/ethers.sample /construction/security/ipguard/ipguard-1.04/doc/rfc826.txt /construction/security/ipguard/stage/usr/local/share/doc/ipguard ====> Compressing man pages (compress-man) ===> Staging rc.d startup script(s) -------------------------------------------------------------------------------- -- Phase: package -------------------------------------------------------------------------------- ===> Building package for ipguard-1.04_2 file sizes/checksums [13]: . done packing files [13]: . done packing directories [0]: . done -------------------------------------------------- -- Termination -------------------------------------------------- Finished: Saturday, 9 MAR 2019 at 08:14:31 UTC Duration: 00:00:07