=> Bootstrap dependency digest>=20010302: found digest-20121220 ===> Building for wmnet-1.06nb5 cc -O2 -march=i586 -I/usr/X11R7/include -I/usr/pkg/include -I /usr/X11R7/include -I/usr/X11R7/include -c wmnet.c wmnet.c:252:19: error: variable has incomplete type 'struct ifreq' struct ifreq ifr; ^ wmnet.c:252:13: note: forward declaration of 'struct ifreq' struct ifreq ifr; ^ wmnet.c:253:36: error: use of undeclared identifier 'IFNAMSIZ' strncpy(ifr.ifr_name, optarg, IFNAMSIZ ); ^ wmnet.c:254:19: error: use of undeclared identifier 'IFNAMSIZ' ifr.ifr_name[IFNAMSIZ-1] = 0; ^ wmnet.c:255:69: error: invalid application of 'sizeof' to an incomplete type 'struct ifreq' if ((fds = socket(AF_INET, SOCK_DGRAM, 0)) == -1 || ioctl(fds, SIOCGIFFLAGS, &ifr) == -1 ) { ^~~~~~~~~~~~ /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) | \ ^ wmnet.c:252:13: note: forward declaration of 'struct ifreq' struct ifreq ifr; ^ wmnet.c:259:27: error: use of undeclared identifier 'IFF_PROMISC' if ((ifr.ifr_flags & IFF_PROMISC) != 0) { /* Is promiscuous mode not already unset? */ ^ wmnet.c:260:25: error: use of undeclared identifier 'IFF_PROMISC' ifr.ifr_flags &= ~IFF_PROMISC; ^ wmnet.c:264:21: error: invalid application of 'sizeof' to an incomplete type 'struct ifreq' if(ioctl(fds, SIOCSIFFLAGS, &ifr) != 0) { ^~~~~~~~~~~~ /usr/include/sys/sockio.h:57:23: note: expanded from macro 'SIOCSIFFLAGS' #define SIOCSIFFLAGS _IOW('i', 16, struct ifreq) /* set ifnet flags */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/sys/ioccom.h:87:44: note: expanded from macro '_IOW' #define _IOW(g,n,t) _IOC(IOC_IN, (g), (n), sizeof(t)) ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ /usr/include/sys/ioccom.h:83:19: note: expanded from macro '_IOC' ((inout) | (((len) & IOCPARM_MASK) << IOCPARM_SHIFT) | \ ^ wmnet.c:252:13: note: forward declaration of 'struct ifreq' struct ifreq ifr; ^ wmnet.c:275:19: error: variable has incomplete type 'struct ifreq' struct ifreq ifr; ^ wmnet.c:275:13: note: forward declaration of 'struct ifreq' struct ifreq ifr; ^ wmnet.c:276:36: error: use of undeclared identifier 'IFNAMSIZ' strncpy(ifr.ifr_name, optarg, IFNAMSIZ ); ^ wmnet.c:277:19: error: use of undeclared identifier 'IFNAMSIZ' ifr.ifr_name[IFNAMSIZ-1] = 0; ^ wmnet.c:278:69: error: invalid application of 'sizeof' to an incomplete type 'struct ifreq' if ((fds = socket(AF_INET, SOCK_DGRAM, 0)) == -1 || ioctl(fds, SIOCGIFFLAGS, &ifr) == -1 ) { ^~~~~~~~~~~~ /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) | \ ^ wmnet.c:275:13: note: forward declaration of 'struct ifreq' struct ifreq ifr; ^ wmnet.c:282:27: error: use of undeclared identifier 'IFF_PROMISC' if ((ifr.ifr_flags & IFF_PROMISC) == 0) { /* Is promiscuous mode not already set? */ ^ wmnet.c:283:24: error: use of undeclared identifier 'IFF_PROMISC' ifr.ifr_flags |= IFF_PROMISC; ^ wmnet.c:287:21: error: invalid application of 'sizeof' to an incomplete type 'struct ifreq' if(ioctl(fds, SIOCSIFFLAGS, &ifr) != 0) { ^~~~~~~~~~~~ /usr/include/sys/sockio.h:57:23: note: expanded from macro 'SIOCSIFFLAGS' #define SIOCSIFFLAGS _IOW('i', 16, struct ifreq) /* set ifnet flags */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/sys/ioccom.h:87:44: note: expanded from macro '_IOW' #define _IOW(g,n,t) _IOC(IOC_IN, (g), (n), sizeof(t)) ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ /usr/include/sys/ioccom.h:83:19: note: expanded from macro '_IOC' ((inout) | (((len) & IOCPARM_MASK) << IOCPARM_SHIFT) | \ ^ wmnet.c:275:13: note: forward declaration of 'struct ifreq' struct ifreq ifr; ^ wmnet.c:467:55: warning: passing 'unsigned char [18]' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if ((arrow = XCreateBitmapFromData(dpy, root_window, arrow_bits, arrow_width, arrow_height)) == None) { ^~~~~~~~~~ /usr/pkgsrc/work/net/wmnet/work/.x11-buildlink/include/X11/Xlib.h:1607:29: note: passing argument to parameter here _Xconst char* /* data */, ^ 1 warning and 14 errors generated. *** Error code 1 Stop. bmake: stopped in /usr/pkgsrc/work/net/wmnet/work/wmnet-1.06 *** Error code 1 Stop. bmake[1]: stopped in /usr/pkgsrc/net/wmnet *** Error code 1 Stop. bmake: stopped in /usr/pkgsrc/net/wmnet