=> Bootstrap dependency digest>=20010302: found digest-20160304 ===> Building for dnscap-141 cc -Wall -O2 -march=i586 -I/usr/pkg/include -c dnscap.c dnscap.c:1373:12: error: use of undeclared identifier 'ETHERTYPE_IP' etype = ETHERTYPE_IP; ^ dnscap.c:1390:12: error: use of undeclared identifier 'ETHERTYPE_IP' etype = ETHERTYPE_IP; ^ dnscap.c:1402:12: error: use of undeclared identifier 'ETHERTYPE_IP' etype = ETHERTYPE_IP; ^ dnscap.c:1415:13: error: use of undeclared identifier 'ETHER_HDR_LEN' if (len < ETHER_HDR_LEN) ^ dnscap.c:1418:22: error: incomplete definition of type 'struct ether_header' etype = ntohs(ether->ether_type); ~~~~~^ /usr/include/sys/endian.h:126:44: note: expanded from macro 'ntohs' #define ntohs(x) bswap16(__CAST(uint16_t, (x))) ^ /usr/include/sys/cdefs.h:584:36: note: expanded from macro '__CAST' #define __CAST(__dt, __st) ((__dt)(__st)) ^ /usr/include/sys/bswap.h:72:41: note: expanded from macro 'bswap16' __CAST(uint16_t, __builtin_constant_p((x)) ? \ ^ /usr/include/sys/cdefs.h:584:36: note: expanded from macro '__CAST' #define __CAST(__dt, __st) ((__dt)(__st)) ^ dnscap.c:1413:16: note: forward declaration of 'struct ether_header' const struct ether_header *ether; ^ dnscap.c:1418:22: error: incomplete definition of type 'struct ether_header' etype = ntohs(ether->ether_type); ~~~~~^ /usr/include/sys/endian.h:126:44: note: expanded from macro 'ntohs' #define ntohs(x) bswap16(__CAST(uint16_t, (x))) ^ /usr/include/sys/cdefs.h:584:36: note: expanded from macro '__CAST' #define __CAST(__dt, __st) ((__dt)(__st)) ^ /usr/include/sys/bswap.h:73:28: note: expanded from macro 'bswap16' __byte_swap_u16_constant(x) : __BYTE_SWAP_U16_VARIABLE(x)) ^ /usr/include/sys/bswap.h:60:6: note: expanded from macro '__byte_swap_u16_constant' ((((x) & 0xff00) >> 8) | \ ^ /usr/include/sys/cdefs.h:584:36: note: expanded from macro '__CAST' #define __CAST(__dt, __st) ((__dt)(__st)) ^ /usr/include/sys/cdefs.h:584:36: note: expanded from macro '__CAST' #define __CAST(__dt, __st) ((__dt)(__st)) ^ dnscap.c:1413:16: note: forward declaration of 'struct ether_header' const struct ether_header *ether; ^ dnscap.c:1418:22: error: incomplete definition of type 'struct ether_header' etype = ntohs(ether->ether_type); ~~~~~^ /usr/include/sys/endian.h:126:44: note: expanded from macro 'ntohs' #define ntohs(x) bswap16(__CAST(uint16_t, (x))) ^ /usr/include/sys/cdefs.h:584:36: note: expanded from macro '__CAST' #define __CAST(__dt, __st) ((__dt)(__st)) ^ /usr/include/sys/bswap.h:73:28: note: expanded from macro 'bswap16' __byte_swap_u16_constant(x) : __BYTE_SWAP_U16_VARIABLE(x)) ^ /usr/include/sys/bswap.h:61:6: note: expanded from macro '__byte_swap_u16_constant' (((x) & 0x00ff) << 8)))) ^ /usr/include/sys/cdefs.h:584:36: note: expanded from macro '__CAST' #define __CAST(__dt, __st) ((__dt)(__st)) ^ /usr/include/sys/cdefs.h:584:36: note: expanded from macro '__CAST' #define __CAST(__dt, __st) ((__dt)(__st)) ^ dnscap.c:1413:16: note: forward declaration of 'struct ether_header' const struct ether_header *ether; ^ dnscap.c:1418:22: error: incomplete definition of type 'struct ether_header' etype = ntohs(ether->ether_type); ~~~~~^ /usr/include/sys/endian.h:126:44: note: expanded from macro 'ntohs' #define ntohs(x) bswap16(__CAST(uint16_t, (x))) ^ /usr/include/sys/cdefs.h:584:36: note: expanded from macro '__CAST' #define __CAST(__dt, __st) ((__dt)(__st)) ^ /usr/include/sys/bswap.h:73:58: note: expanded from macro 'bswap16' __byte_swap_u16_constant(x) : __BYTE_SWAP_U16_VARIABLE(x)) ^ /usr/include/sys/cdefs.h:584:36: note: expanded from macro '__CAST' #define __CAST(__dt, __st) ((__dt)(__st)) ^ dnscap.c:1413:16: note: forward declaration of 'struct ether_header' const struct ether_header *ether; ^ dnscap.c:1419:10: error: use of undeclared identifier 'ETHER_HDR_LEN' pkt += ETHER_HDR_LEN; ^ dnscap.c:1420:10: error: use of undeclared identifier 'ETHER_HDR_LEN' len -= ETHER_HDR_LEN; ^ dnscap.c:1476:7: error: use of undeclared identifier 'ETHERTYPE_IP' case ETHERTYPE_IP: ^ dnscap.c:2204:6: warning: explicitly assigning value of variable of type 'int' to itself [-Wself-assign] x = x; ~ ^ ~ 1 warning and 11 errors generated. *** Error code 1 Stop. bmake: stopped in /usr/pkgsrc/work/net/dnscap/work/dnscap-141 *** Error code 1 Stop. bmake[1]: stopped in /usr/pkgsrc/net/dnscap *** Error code 1 Stop. bmake: stopped in /usr/pkgsrc/net/dnscap