=> Bootstrap dependency digest>=20010302: found digest-20121220 ===> Building for chksniff-0.2 cd ./src; make; cd ../ cc -O2 -march=i586 -I../include -c chksniff.c chksniff.c:23:18: error: variable has incomplete type 'struct ifconf' struct ifconf ifc; ^ chksniff.c:23:9: note: forward declaration of 'struct ifconf' struct ifconf ifc; ^ chksniff.c:32:7: warning: implicitly declaring library function 'strcmp' with type 'int (const char *, const char *)' if (strcmp(argv[1], "-h") || strcmp(argv[1], "-v")) { ^ chksniff.c:32:7: note: please include the header or explicitly provide a declaration for 'strcmp' chksniff.c:60:16: error: invalid application of 'sizeof' to an incomplete type 'struct ifconf' if (ioctl(fd, SIOCGIFCONF, &ifc) != 0) { ^~~~~~~~~~~ /usr/include/sys/sockio.h:63:21: note: expanded from macro 'SIOCGIFCONF' #define SIOCGIFCONF _IOWR('i', 38, struct ifconf) /* get ifnet list */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/sys/ioccom.h:89:48: note: expanded from macro '_IOWR' #define _IOWR(g,n,t) _IOC(IOC_INOUT, (g), (n), sizeof(t)) ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ /usr/include/sys/ioccom.h:83:19: note: expanded from macro '_IOC' ((inout) | (((len) & IOCPARM_MASK) << IOCPARM_SHIFT) | \ ^ chksniff.c:23:9: note: forward declaration of 'struct ifconf' struct ifconf ifc; ^ chksniff.c:66:20: error: invalid application of 'sizeof' to an incomplete type 'struct ifreq' n = ifc.ifc_len / sizeof(struct ifreq); ^ ~~~~~~~~~~~~~~ chksniff.c:22:9: note: forward declaration of 'struct ifreq' struct ifreq *ifr = NULL; ^ chksniff.c:70:17: error: invalid application of 'sizeof' to an incomplete type 'struct ifreq' if (ioctl(fd, SIOCGIFFLAGS, &ifr[i]) != 0) { ^~~~~~~~~~~~ /usr/include/sys/sockio.h:58:22: note: expanded from macro 'SIOCGIFFLAGS' #define SIOCGIFFLAGS _IOWR('i', 17, struct ifreq) /* get ifnet flags */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/sys/ioccom.h:89:48: note: expanded from macro '_IOWR' #define _IOWR(g,n,t) _IOC(IOC_INOUT, (g), (n), sizeof(t)) ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ /usr/include/sys/ioccom.h:83:19: note: expanded from macro '_IOC' ((inout) | (((len) & IOCPARM_MASK) << IOCPARM_SHIFT) | \ ^ chksniff.c:22:9: note: forward declaration of 'struct ifreq' struct ifreq *ifr = NULL; ^ chksniff.c:73:12: error: subscript of pointer to incomplete type 'struct ifreq' if (!(ifr[i].ifr_flags & IFF_UP)) { ~~~^ chksniff.c:22:9: note: forward declaration of 'struct ifreq' struct ifreq *ifr = NULL; ^ chksniff.c:76:11: error: subscript of pointer to incomplete type 'struct ifreq' if ((ifr[i].ifr_flags & IFF_PROMISC)) { ~~~^ chksniff.c:22:9: note: forward declaration of 'struct ifreq' struct ifreq *ifr = NULL; ^ chksniff.c:76:27: error: use of undeclared identifier 'IFF_PROMISC' if ((ifr[i].ifr_flags & IFF_PROMISC)) { ^ chksniff.c:79:17: error: invalid application of 'sizeof' to an incomplete type 'struct ifreq' if (ioctl(fd, SIOCGIFADDR, &ifr[i]) != 0) { ^~~~~~~~~~~ /usr/include/sys/sockio.h:52:21: note: expanded from macro 'SIOCGIFADDR' #define SIOCGIFADDR _IOWR('i', 33, struct ifreq) /* get ifnet address */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/sys/ioccom.h:89:48: note: expanded from macro '_IOWR' #define _IOWR(g,n,t) _IOC(IOC_INOUT, (g), (n), sizeof(t)) ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ /usr/include/sys/ioccom.h:83:19: note: expanded from macro '_IOC' ((inout) | (((len) & IOCPARM_MASK) << IOCPARM_SHIFT) | \ ^ chksniff.c:22:9: note: forward declaration of 'struct ifreq' struct ifreq *ifr = NULL; ^ chksniff.c:82:14: error: subscript of pointer to incomplete type 'struct ifreq' iname = ifr[i].ifr_name; ~~~^ chksniff.c:22:9: note: forward declaration of 'struct ifreq' struct ifreq *ifr = NULL; ^ chksniff.c:83:32: warning: implicit declaration of function 'inet_ntoa' is invalid in C99 [-Wimplicit-function-declaration] printf("%s [%s]: %s", iname, inet_ntoa((*(struct sockaddr_in *) & ifr[i].ifr_addr).sin_addr), promisc ? "promisc\n" : "normal\n"); ^ chksniff.c:83:72: error: subscript of pointer to incomplete type 'struct ifreq' printf("%s [%s]: %s", iname, inet_ntoa((*(struct sockaddr_in *) & ifr[i].ifr_addr).sin_addr), promisc ? "promisc\n" : "normal\n"); ~~~^ chksniff.c:22:9: note: forward declaration of 'struct ifreq' struct ifreq *ifr = NULL; ^ 2 warnings and 10 errors generated. *** Error code 1 Stop. make: stopped in /usr/pkgsrc/work/net/chksniff/work/chksniff-0.2/src => Unwrapping files-to-be-installed.