=> Bootstrap dependency digest>=20010302: found digest-20160304 ===> Building for moreutils-0.62 /usr/pkg/bin/gmake -C is_utf8/ clang -O2 -Wl,-R/usr/pkg/lib ifdata.c -o ifdata clang -O2 -Wl,-R/usr/pkg/lib ifne.c -o ifne gmake[1]: Entering directory '/var/pkgsrc/work/misc/moreutils/work/moreutils-0.62/is_utf8' gcc -O3 -Wextra -Wall -ansi -Wstrict-prototypes -c -o main.o main.c ifdata.c:100:59: error: no member named 's6_addr16' in 'struct in6_addr' print_quad_ipv6(((struct sockaddr_in6*)adr)->sin6_addr.s6_addr16); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ifdata.c:118:35: warning: declaration of 'struct ifreq' will not be visible outside of this function [-Wvisibility] struct ifreq *req, int *ioctl_errno, ^ ifdata.c:124:13: error: incomplete definition of type 'struct ifreq' strncpy(req->ifr_name, ifname, IFNAMSIZ); ~~~^ ifdata.c:118:35: note: forward declaration of 'struct ifreq' struct ifreq *req, int *ioctl_errno, ^ ifdata.c:124:33: error: use of undeclared identifier 'IFNAMSIZ' strncpy(req->ifr_name, ifname, IFNAMSIZ); ^ ifdata.c:125:5: error: incomplete definition of type 'struct ifreq' req->ifr_name[IFNAMSIZ - 1] = 0; ~~~^ ifdata.c:118:35: note: forward declaration of 'struct ifreq' struct ifreq *req, int *ioctl_errno, ^ ifdata.c:125:16: error: use of undeclared identifier 'IFNAMSIZ' req->ifr_name[IFNAMSIZ - 1] = 0; ^ ifdata.c:149:15: error: variable has incomplete type 'struct ifreq' struct ifreq r; ^ ifdata.c:149:9: note: forward declaration of 'struct ifreq' struct ifreq r; ^ ifdata.c:150:33: error: invalid application of 'sizeof' to an incomplete type 'struct ifreq' return !do_socket_ioctl(iface, SIOCGIFFLAGS, &r, NULL, PRINT_NO_ERROR); ^~~~~~~~~~~~ /usr/include/sys/sockio.h:59:22: note: expanded from macro 'SIOCGIFFLAGS' #define SIOCGIFFLAGS _IOWR('i', 17, struct ifreq) /* get ifnet flags */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/sys/ioccom.h:61:48: note: expanded from macro '_IOWR' #define _IOWR(g,n,t) _IOC(IOC_INOUT, (g), (n), sizeof(t)) ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ /usr/include/sys/ioccom.h:55:16: note: expanded from macro '_IOC' ((inout) | (((len) & IOCPARM_MASK) << 16) | ((group) << 8) | (num))) ^~~ ifdata.c:149:9: note: forward declaration of 'struct ifreq' struct ifreq r; ^ ifdata.c:204:65: warning: declaration of 'struct ifreq' will not be visible outside of this function [-Wvisibility] static struct sockaddr *if_addr_value(const char *iface, struct ifreq *r, ^ ifdata.c:208:38: warning: incompatible pointer types passing 'struct ifreq *' to parameter of type 'struct ifreq *' [-Wincompatible-pointer-types] if (do_socket_ioctl(iface, request, r, &e, PRINT_NO_ERROR)) { ^ ifdata.c:118:42: note: passing argument to parameter 'req' here struct ifreq *req, int *ioctl_errno, ^ ifdata.c:210:13: error: incomplete definition of type 'struct ifreq' return &r->ifr_addr; ~^ ifdata.c:204:65: note: forward declaration of 'struct ifreq' static struct sockaddr *if_addr_value(const char *iface, struct ifreq *r, ^ ifdata.c:213:11: error: incomplete definition of type 'struct ifreq' return &r->ifr_addr; ~^ ifdata.c:204:65: note: forward declaration of 'struct ifreq' static struct sockaddr *if_addr_value(const char *iface, struct ifreq *r, ^ ifdata.c:216:52: warning: declaration of 'struct ifreq' will not be visible outside of this function [-Wvisibility] struct sockaddr *if_addr(const char *iface, struct ifreq *r) { ^ ifdata.c:217:33: error: invalid application of 'sizeof' to an incomplete type 'struct ifreq' return if_addr_value(iface, r, SIOCGIFADDR); ^~~~~~~~~~~ /usr/include/sys/sockio.h:54:21: note: expanded from macro 'SIOCGIFADDR' #define SIOCGIFADDR _IOWR('i', 33, struct ifreq) /* get ifnet address */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/sys/ioccom.h:61:48: note: expanded from macro '_IOWR' #define _IOWR(g,n,t) _IOC(IOC_INOUT, (g), (n), sizeof(t)) ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ /usr/include/sys/ioccom.h:55:16: note: expanded from macro '_IOC' ((inout) | (((len) & IOCPARM_MASK) << 16) | ((group) << 8) | (num))) ^~~ ifdata.c:216:52: note: forward declaration of 'struct ifreq' struct sockaddr *if_addr(const char *iface, struct ifreq *r) { ^ ifdata.c:220:52: warning: declaration of 'struct ifreq' will not be visible outside of this function [-Wvisibility] struct sockaddr *if_mask(const char *iface, struct ifreq *r) { ^ ifdata.c:221:33: error: invalid application of 'sizeof' to an incomplete type 'struct ifreq' return if_addr_value(iface, r, SIOCGIFNETMASK); ^~~~~~~~~~~~~~ /usr/include/sys/sockio.h:66:24: note: expanded from macro 'SIOCGIFNETMASK' #define SIOCGIFNETMASK _IOWR('i', 37, struct ifreq) /* get net addr mask */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/sys/ioccom.h:61:48: note: expanded from macro '_IOWR' #define _IOWR(g,n,t) _IOC(IOC_INOUT, (g), (n), sizeof(t)) ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ /usr/include/sys/ioccom.h:55:16: note: expanded from macro '_IOC' ((inout) | (((len) & IOCPARM_MASK) << 16) | ((group) << 8) | (num))) ^~~ ifdata.c:220:52: note: forward declaration of 'struct ifreq' struct sockaddr *if_mask(const char *iface, struct ifreq *r) { ^ ifdata.c:224:53: warning: declaration of 'struct ifreq' will not be visible outside of this function [-Wvisibility] struct sockaddr *if_bcast(const char *iface, struct ifreq *r) { ^ ifdata.c:225:33: error: invalid application of 'sizeof' to an incomplete type 'struct ifreq' return if_addr_value(iface, r, SIOCGIFBRDADDR); ^~~~~~~~~~~~~~ /usr/include/sys/sockio.h:61:24: note: expanded from macro 'SIOCGIFBRDADDR' #define SIOCGIFBRDADDR _IOWR('i', 35, struct ifreq) /* get broadcast addr */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/sys/ioccom.h:61:48: note: expanded from macro '_IOWR' #define _IOWR(g,n,t) _IOC(IOC_INOUT, (g), (n), sizeof(t)) ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ /usr/include/sys/ioccom.h:55:16: note: expanded from macro '_IOC' ((inout) | (((len) & IOCPARM_MASK) << 16) | ((group) << 8) | (num))) ^~~ ifdata.c:224:53: note: forward declaration of 'struct ifreq' struct sockaddr *if_bcast(const char *iface, struct ifreq *r) { ^ ifdata.c:230:22: error: variable has incomplete type 'struct ifreq' static struct ifreq req; ^ ifdata.c:230:16: note: forward declaration of 'struct ifreq' static struct ifreq req; ^ ifdata.c:246:22: error: variable has incomplete type 'struct ifreq' static struct ifreq req; ^ ifdata.c:246:16: note: forward declaration of 'struct ifreq' static struct ifreq req; ^ ifdata.c:248:29: error: invalid application of 'sizeof' to an incomplete type 'struct ifreq' if (do_socket_ioctl(iface, SIOCGIFMTU, &req, NULL, PRINT_ERROR)) ^~~~~~~~~~ /usr/include/sys/sockio.h:87:20: note: expanded from macro 'SIOCGIFMTU' #define SIOCGIFMTU _IOWR('i', 51, struct ifreq) /* get IF mtu */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/sys/ioccom.h:61:48: note: expanded from macro '_IOWR' #define _IOWR(g,n,t) _IOC(IOC_INOUT, (g), (n), sizeof(t)) ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ /usr/include/sys/ioccom.h:55:16: note: expanded from macro '_IOC' ((inout) | (((len) & IOCPARM_MASK) << 16) | ((group) << 8) | (num))) ^~~ ifdata.c:246:16: note: forward declaration of 'struct ifreq' static struct ifreq req; ^ ifdata.c:386:22: error: variable has incomplete type 'struct ifreq' static struct ifreq req; ^ ifdata.c:386:16: note: forward declaration of 'struct ifreq' static struct ifreq req; ^ 6 warnings and 16 errors generated. : recipe for target 'ifdata' failed gmake: *** [ifdata] Error 1 gmake: *** Waiting for unfinished jobs.... gcc -O3 -Wextra -Wall -ansi -Wstrict-prototypes -c -o is_utf8.o is_utf8.c gcc -O3 -Wextra -Wall -ansi -Wstrict-prototypes -Wl,-R/usr/pkg/lib -o isutf8 main.o is_utf8.o gmake[1]: Leaving directory '/var/pkgsrc/work/misc/moreutils/work/moreutils-0.62/is_utf8' cp is_utf8/isutf8 . *** Error code 2 Stop. bmake[1]: stopped in /usr/pkgsrc/misc/moreutils *** Error code 1 Stop. bmake: stopped in /usr/pkgsrc/misc/moreutils