=> Bootstrap dependency digest>=20010302: found digest-20190127 WARNING: [license.mk] Every package should define a LICENSE. ===> Skipping vulnerability checks. WARNING: No /opt/pkg/pkgdb/pkg-vulnerabilities file found. WARNING: To fix run: `/opt/pkg/sbin/pkg_admin -K /opt/pkg/pkgdb fetch-pkg-vulnerabilities'. ===> Building for flodo-5.0 cd /opt/work/net/flodo/work/flodo-v5 && clang -O2 -I/usr/include -L/usr/lib -L/opt/pkg/lib -o flodo flodo.c hash.c local_mac.c -lpcap flodo.c:154:23: error: field has incomplete type 'struct ether_header' struct ether_header ether; ^ flodo.c:154:10: note: forward declaration of 'struct ether_header' struct ether_header ether; ^ flodo.c:278:26: error: invalid application of 'sizeof' to an incomplete type 'const struct ether_header' if (header->len < sizeof(*ether)) { ^~~~~~~~ flodo.c:154:10: note: forward declaration of 'struct ether_header' struct ether_header ether; ^ flodo.c:283:33: error: incomplete definition of type 'struct ether_header' a.outbound = is_local_mac(ether->ether_shost); ~~~~~^ flodo.c:154:10: note: forward declaration of 'struct ether_header' struct ether_header ether; ^ flodo.c:291:22: error: incomplete definition of type 'struct ether_header' switch (ntohs(ether->ether_type)) { ~~~~~^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_endian.h:132:46: note: expanded from macro 'ntohs' #define ntohs(x) __DARWIN_OSSwapInt16(x) ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/libkern/_OSByteOrder.h:85:40: note: expanded from macro '__DARWIN_OSSwapInt16' ((__uint16_t)(__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt16(x) : _OSSwapInt16(x))) ^ flodo.c:154:10: note: forward declaration of 'struct ether_header' struct ether_header ether; ^ flodo.c:291:22: error: incomplete definition of type 'struct ether_header' switch (ntohs(ether->ether_type)) { ~~~~~^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_endian.h:132:46: note: expanded from macro 'ntohs' #define ntohs(x) __DARWIN_OSSwapInt16(x) ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/libkern/_OSByteOrder.h:85:71: note: expanded from macro '__DARWIN_OSSwapInt16' ((__uint16_t)(__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt16(x) : _OSSwapInt16(x))) ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/libkern/_OSByteOrder.h:44:34: note: expanded from macro '__DARWIN_OSSwapConstInt16' ((__uint16_t)((((__uint16_t)(x) & 0xff00U) >> 8) | \ ^ flodo.c:154:10: note: forward declaration of 'struct ether_header' struct ether_header ether; ^ flodo.c:291:22: error: incomplete definition of type 'struct ether_header' switch (ntohs(ether->ether_type)) { ~~~~~^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_endian.h:132:46: note: expanded from macro 'ntohs' #define ntohs(x) __DARWIN_OSSwapInt16(x) ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/libkern/_OSByteOrder.h:85:71: note: expanded from macro '__DARWIN_OSSwapInt16' ((__uint16_t)(__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt16(x) : _OSSwapInt16(x))) ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/libkern/_OSByteOrder.h:45:25: note: expanded from macro '__DARWIN_OSSwapConstInt16' (((__uint16_t)(x) & 0x00ffU) << 8))) ^ flodo.c:154:10: note: forward declaration of 'struct ether_header' struct ether_header ether; ^ flodo.c:291:22: error: incomplete definition of type 'struct ether_header' switch (ntohs(ether->ether_type)) { ~~~~~^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_endian.h:132:46: note: expanded from macro 'ntohs' #define ntohs(x) __DARWIN_OSSwapInt16(x) ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/libkern/_OSByteOrder.h:85:89: note: expanded from macro '__DARWIN_OSSwapInt16' ((__uint16_t)(__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt16(x) : _OSSwapInt16(x))) ^ flodo.c:154:10: note: forward declaration of 'struct ether_header' struct ether_header ether; ^ flodo.c:294:40: error: invalid application of 'sizeof' to an incomplete type 'const struct ether_header' (const struct ip *)(packet + sizeof(*ether)), ^~~~~~~~ flodo.c:154:10: note: forward declaration of 'struct ether_header' struct ether_header ether; ^ flodo.c:295:25: error: invalid application of 'sizeof' to an incomplete type 'const struct ether_header' header->len - sizeof(*ether)) == 0) ^~~~~~~~ flodo.c:154:10: note: forward declaration of 'struct ether_header' struct ether_header ether; ^ flodo.c:567:9: warning: 'pcap_lookupdev' is deprecated: use 'pcap_findalldevs' and use the first device [-Wdeprecated-declarations] dev = pcap_lookupdev(errbuf); ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/pcap/pcap.h:332:1: note: 'pcap_lookupdev' has been explicitly marked deprecated here PCAP_DEPRECATED(pcap_lookupdev, "use 'pcap_findalldevs' and use the first device"); ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/pcap/funcattrs.h:227:53: note: expanded from macro 'PCAP_DEPRECATED' #define PCAP_DEPRECATED(func, msg) __attribute__((deprecated(msg))) ^ flodo.c:292:8: error: use of undeclared identifier 'ETHERTYPE_IP' case ETHERTYPE_IP: ^ 1 warning and 10 errors generated. *** Error code 1 Stop. bmake[1]: stopped in /opt/pkgsrc/net/flodo *** Error code 1 Stop. bmake: stopped in /opt/pkgsrc/net/flodo