+ case "${usergroup_phase}" in + local run_cmd + run_cmd=run_su + shift + run_su /opt/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/tcptraceroute6-1.0.4/work.log + su pbulk -c '"$@"' make /opt/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/tcptraceroute6-1.0.4/work.log ===> Building for tcptraceroute6-1.0.4 --- all --- /opt/pkg/bin/bmake all-recursive --- all-recursive --- Making all in po --- src/.dirstamp --- --- src/.deps/.dirstamp --- --- rdnss/.dirstamp --- --- rdnss/.deps/.dirstamp --- --- compat/.dirstamp --- --- compat/.deps/.dirstamp --- --- tracert6 --- --- src/addrinfo.o --- --- tracert6 --- ALIAS tracert6 --- src/addrinfo.o --- CC src/addrinfo.o --- src/ndisc.o --- --- src/rdisc6-ndisc.o --- --- src/ndisc.o --- CC src/ndisc.o --- src/rdisc6-ndisc.o --- CC src/rdisc6-ndisc.o --- src/traceroute.o --- CC src/traceroute.o --- src/rdisc6-ndisc.o --- src/ndisc.c: In function 'parseadv': src/ndisc.c:535:39: error: 'ND_RA_FLAG_HOME_AGENT' undeclared (first use in this function); did you mean 'ND_RA_FLAG_MANAGED'? 535 | gettext ((v & ND_RA_FLAG_HOME_AGENT) ? N_ ("Yes") : N_("No"))); | ^~~~~~~~~~~~~~~~~~~~~ | ND_RA_FLAG_MANAGED src/ndisc.c:535:39: note: each undeclared identifier is reported only once for each function it appears in src/ndisc.c: In function 'recvfromLL': src/ndisc.c:630:19: warning: implicit declaration of function 'CMSG_SPACE' [-Wimplicit-function-declaration] 630 | char cbuf[CMSG_SPACE (sizeof (int))]; | ^~~~~~~~~~ src/ndisc.c:642:18: error: 'struct msghdr' has no member named 'msg_control' 642 | .msg_control = cbuf, | ^~~~~~~~~~~ src/ndisc.c:643:18: error: 'struct msghdr' has no member named 'msg_controllen' 643 | .msg_controllen = sizeof (cbuf) | ^~~~~~~~~~~~~~ src/ndisc.c:651:37: warning: implicit declaration of function 'CMSG_FIRSTHDR' [-Wimplicit-function-declaration] 651 | for (struct cmsghdr *cmsg = CMSG_FIRSTHDR (&hdr); | ^~~~~~~~~~~~~ src/ndisc.c:651:37: warning: initialization of 'struct cmsghdr *' from 'int' makes pointer from integer without a cast [-Wint-conversion] src/ndisc.c:651:9: error: declaration of non-variable 'CMSG_FIRSTHDR' in 'for' loop initial declaration 651 | for (struct cmsghdr *cmsg = CMSG_FIRSTHDR (&hdr); | ^~~ --- src/ndisc.o --- src/ndisc.c: In function 'recvfromLL': --- src/rdisc6-ndisc.o --- src/ndisc.c:653:21: warning: implicit declaration of function 'CMSG_NXTHDR' [-Wimplicit-function-declaration] 653 | cmsg = CMSG_NXTHDR (&hdr, cmsg)) | ^~~~~~~~~~~ src/ndisc.c:653:19: warning: assignment to 'struct cmsghdr *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 653 | cmsg = CMSG_NXTHDR (&hdr, cmsg)) | ^ --- src/ndisc.o --- src/ndisc.c:630:19: warning: implicit declaration of function 'CMSG_SPACE' [-Wimplicit-function-declaration] 630 | char cbuf[CMSG_SPACE (sizeof (int))]; | ^~~~~~~~~~ src/ndisc.c:642:18: error: 'struct msghdr' has no member named 'msg_control' 642 | .msg_control = cbuf, | ^~~~~~~~~~~ src/ndisc.c:643:18: error: 'struct msghdr' has no member named 'msg_controllen' 643 | .msg_controllen = sizeof (cbuf) | ^~~~~~~~~~~~~~ src/ndisc.c:651:37: warning: implicit declaration of function 'CMSG_FIRSTHDR' [-Wimplicit-function-declaration] 651 | for (struct cmsghdr *cmsg = CMSG_FIRSTHDR (&hdr); | ^~~~~~~~~~~~~ src/ndisc.c:651:37: warning: initialization of 'struct cmsghdr *' from 'int' makes pointer from integer without a cast [-Wint-conversion] src/ndisc.c:651:9: error: declaration of non-variable 'CMSG_FIRSTHDR' in 'for' loop initial declaration 651 | for (struct cmsghdr *cmsg = CMSG_FIRSTHDR (&hdr); | ^~~ --- src/rdisc6-ndisc.o --- src/ndisc.c:658:44: warning: implicit declaration of function 'CMSG_DATA' [-Wimplicit-function-declaration] 658 | if (255 != *(int *)CMSG_DATA (cmsg)) | ^~~~~~~~~ src/ndisc.c:658:37: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 658 | if (255 != *(int *)CMSG_DATA (cmsg)) | ^ --- src/ndisc.o --- src/ndisc.c:653:21: warning: implicit declaration of function 'CMSG_NXTHDR' [-Wimplicit-function-declaration] 653 | cmsg = CMSG_NXTHDR (&hdr, cmsg)) | ^~~~~~~~~~~ src/ndisc.c:653:19: warning: assignment to 'struct cmsghdr *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 653 | cmsg = CMSG_NXTHDR (&hdr, cmsg)) | ^ src/ndisc.c:658:44: warning: implicit declaration of function 'CMSG_DATA' [-Wimplicit-function-declaration] 658 | if (255 != *(int *)CMSG_DATA (cmsg)) | ^~~~~~~~~ src/ndisc.c:658:37: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 658 | if (255 != *(int *)CMSG_DATA (cmsg)) | ^ --- src/traceroute.o --- src/traceroute.c: In function 'send_payload': src/traceroute.c:115:19: warning: implicit declaration of function 'CMSG_SPACE' [-Wimplicit-function-declaration] 115 | char cbuf[CMSG_SPACE (sizeof (int))]; | ^~~~~~~~~~ src/traceroute.c:127:18: error: 'struct msghdr' has no member named 'msg_control' 127 | .msg_control = cbuf, | ^~~~~~~~~~~ src/traceroute.c:128:18: error: 'struct msghdr' has no member named 'msg_controllen' 128 | .msg_controllen = sizeof (cbuf) | ^~~~~~~~~~~~~~ src/traceroute.c:131:32: warning: implicit declaration of function 'CMSG_FIRSTHDR' [-Wimplicit-function-declaration] 131 | struct cmsghdr *cmsg = CMSG_FIRSTHDR (&hdr); | ^~~~~~~~~~~~~ src/traceroute.c:131:32: warning: initialization of 'struct cmsghdr *' from 'int' makes pointer from integer without a cast [-Wint-conversion] src/traceroute.c:134:26: warning: implicit declaration of function 'CMSG_LEN' [-Wimplicit-function-declaration] 134 | cmsg->cmsg_len = CMSG_LEN (sizeof (hlim)); | ^~~~~~~~ src/traceroute.c:136:17: warning: implicit declaration of function 'CMSG_DATA' [-Wimplicit-function-declaration] 136 | memcpy (CMSG_DATA (cmsg), &hlim, sizeof (hlim)); | ^~~~~~~~~ src/traceroute.c:136:17: warning: passing argument 1 of 'memcpy' makes pointer from integer without a cast [-Wint-conversion] 136 | memcpy (CMSG_DATA (cmsg), &hlim, sizeof (hlim)); | ^~~~~~~~~~~~~~~~ | | | int In file included from /usr/include/string.h:34, from ./include/gettext.h:184, from src/traceroute.c:24: /usr/include/iso/string_iso.h:70:21: note: expected 'void * restrict' but argument is of type 'int' 70 | extern void *memcpy(void *_RESTRICT_KYWD, const void *_RESTRICT_KYWD, size_t); | ^ src/traceroute.c: In function 'recv_payload': src/traceroute.c:164:18: error: 'struct msghdr' has no member named 'msg_control' 164 | .msg_control = cbuf, | ^~~~~~~~~~~ src/traceroute.c:165:18: error: 'struct msghdr' has no member named 'msg_controllen' 165 | .msg_controllen = sizeof (cbuf) | ^~~~~~~~~~~~~~ src/traceroute.c:173:37: warning: initialization of 'struct cmsghdr *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 173 | for (struct cmsghdr *cmsg = CMSG_FIRSTHDR (&hdr); | ^~~~~~~~~~~~~ src/traceroute.c:173:9: error: declaration of non-variable 'CMSG_FIRSTHDR' in 'for' loop initial declaration 173 | for (struct cmsghdr *cmsg = CMSG_FIRSTHDR (&hdr); | ^~~ src/traceroute.c:175:21: warning: implicit declaration of function 'CMSG_NXTHDR' [-Wimplicit-function-declaration] 175 | cmsg = CMSG_NXTHDR (&hdr, cmsg)) | ^~~~~~~~~~~ src/traceroute.c:175:19: warning: assignment to 'struct cmsghdr *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 175 | cmsg = CMSG_NXTHDR (&hdr, cmsg)) | ^ src/traceroute.c:178:39: warning: passing argument 2 of 'memcpy' makes pointer from integer without a cast [-Wint-conversion] 178 | memcpy (hlim, CMSG_DATA (cmsg), sizeof (*hlim)); | ^~~~~~~~~~~~~~~~ | | | int /usr/include/iso/string_iso.h:70:43: note: expected 'const void * restrict' but argument is of type 'int' 70 | extern void *memcpy(void *_RESTRICT_KYWD, const void *_RESTRICT_KYWD, size_t); | ^ src/traceroute.c: In function 'traceroute': src/traceroute.c:1018:36: error: array type has incomplete element type 'struct sock_filter' 1018 | struct sock_filter f[10], *pc = f; | ^ src/traceroute.c:1019:24: error: variable 'sfp' has initializer but incomplete type 1019 | struct sock_fprog sfp = { | ^~~~~~~~~~ src/traceroute.c:1020:26: error: 'struct sock_fprog' has no member named 'len' 1020 | .len = sizeof (f) / sizeof (f[0]), | ^~~ src/traceroute.c:1020:32: warning: excess elements in struct initializer 1020 | .len = sizeof (f) / sizeof (f[0]), | ^~~~~~ src/traceroute.c:1020:32: note: (near initialization for 'sfp') src/traceroute.c:1021:26: error: 'struct sock_fprog' has no member named 'filter' 1021 | .filter = f, | ^~~~~~ src/traceroute.c:1021:35: warning: excess elements in struct initializer 1021 | .filter = f, | ^ src/traceroute.c:1021:35: note: (near initialization for 'sfp') src/traceroute.c:1019:35: error: storage size of 'sfp' isn't known 1019 | struct sock_fprog sfp = { | ^~~ src/traceroute.c:1027:27: error: invalid use of undefined type 'struct sock_filter' 1027 | pc->code = BPF_LD + BPF_W + BPF_ABS; | ^~ src/traceroute.c:1027:36: error: 'BPF_LD' undeclared (first use in this function) 1027 | pc->code = BPF_LD + BPF_W + BPF_ABS; | ^~~~~~ src/traceroute.c:1027:36: note: each undeclared identifier is reported only once for each function it appears in --- src/ndisc.o --- *** [src/ndisc.o] Error code 1 bmake[2]: stopped making "all-am" in /home/pbulk/build/net/tcptraceroute6/work/ndisc6-1.0.4 --- src/traceroute.o --- src/traceroute.c:1027:45: error: 'BPF_W' undeclared (first use in this function) 1027 | pc->code = BPF_LD + BPF_W + BPF_ABS; | ^~~~~ --- src/rdisc6-ndisc.o --- *** [src/rdisc6-ndisc.o] Error code 1 bmake[2]: stopped making "all-am" in /home/pbulk/build/net/tcptraceroute6/work/ndisc6-1.0.4 --- src/traceroute.o --- src/traceroute.c:1027:53: error: 'BPF_ABS' undeclared (first use in this function); did you mean 'PF_NBS'? 1027 | pc->code = BPF_LD + BPF_W + BPF_ABS; | ^~~~~~~ | PF_NBS src/traceroute.c:1028:27: error: invalid use of undefined type 'struct sock_filter' 1028 | pc->jt = pc->jf = 0; | ^~ src/traceroute.c:1028:36: error: invalid use of undefined type 'struct sock_filter' 1028 | pc->jt = pc->jf = 0; | ^~ src/traceroute.c:1029:27: error: invalid use of undefined type 'struct sock_filter' 1029 | pc->k = 8 + 24 + (i * 4); | ^~ src/traceroute.c:1030:27: error: increment of pointer to an incomplete type 'struct sock_filter' 1030 | pc++; | ^~ src/traceroute.c:1033:27: error: invalid use of undefined type 'struct sock_filter' 1033 | pc->code = BPF_JMP + BPF_JEQ + BPF_K; | ^~ src/traceroute.c:1033:36: error: 'BPF_JMP' undeclared (first use in this function) 1033 | pc->code = BPF_JMP + BPF_JEQ + BPF_K; | ^~~~~~~ src/traceroute.c:1033:46: error: 'BPF_JEQ' undeclared (first use in this function) 1033 | pc->code = BPF_JMP + BPF_JEQ + BPF_K; | ^~~~~~~ src/traceroute.c:1033:56: error: 'BPF_K' undeclared (first use in this function) 1033 | pc->code = BPF_JMP + BPF_JEQ + BPF_K; | ^~~~~ src/traceroute.c:1034:27: error: invalid use of undefined type 'struct sock_filter' 1034 | pc->jt = 0; | ^~ src/traceroute.c:1035:27: error: invalid use of undefined type 'struct sock_filter' 1035 | pc->jf = f + (sizeof (f) / sizeof (f[0])) - (pc + 2); | ^~ src/traceroute.c:1035:73: error: invalid use of undefined type 'struct sock_filter' 1035 | pc->jf = f + (sizeof (f) / sizeof (f[0])) - (pc + 2); | ^ src/traceroute.c:1036:27: error: invalid use of undefined type 'struct sock_filter' 1036 | pc->k = ntohl (dst.sin6_addr.s6_addr32[i]); | ^~ src/traceroute.c:1036:53: error: 'struct in6_addr' has no member named 's6_addr32' 1036 | pc->k = ntohl (dst.sin6_addr.s6_addr32[i]); | ^ src/traceroute.c:1037:27: error: increment of pointer to an incomplete type 'struct sock_filter' 1037 | pc++; | ^~ src/traceroute.c:1041:19: error: invalid use of undefined type 'struct sock_filter' 1041 | pc->code = BPF_RET + BPF_K; | ^~ src/traceroute.c:1041:28: error: 'BPF_RET' undeclared (first use in this function) 1041 | pc->code = BPF_RET + BPF_K; | ^~~~~~~ src/traceroute.c:1042:19: error: invalid use of undefined type 'struct sock_filter' 1042 | pc->jt = pc->jf = 0; | ^~ src/traceroute.c:1042:28: error: invalid use of undefined type 'struct sock_filter' 1042 | pc->jt = pc->jf = 0; | ^~ src/traceroute.c:1043:19: error: invalid use of undefined type 'struct sock_filter' 1043 | pc->k = ~0U; | ^~ src/traceroute.c:1044:19: error: increment of pointer to an incomplete type 'struct sock_filter' 1044 | pc++; | ^~ src/traceroute.c:1047:19: error: invalid use of undefined type 'struct sock_filter' 1047 | pc->code = BPF_RET + BPF_K; | ^~ src/traceroute.c:1048:19: error: invalid use of undefined type 'struct sock_filter' 1048 | pc->jt = pc->jf = pc->k = 0; | ^~ src/traceroute.c:1048:28: error: invalid use of undefined type 'struct sock_filter' 1048 | pc->jt = pc->jf = pc->k = 0; | ^~ src/traceroute.c:1048:37: error: invalid use of undefined type 'struct sock_filter' 1048 | pc->jt = pc->jf = pc->k = 0; | ^~ In file included from src/traceroute.c:33: src/traceroute.c:1050:26: error: increment of pointer to an incomplete type 'struct sock_filter' 1050 | assert ((++pc - f) == (sizeof (f) / sizeof (f[0]))); | ^~ *** [src/traceroute.o] Error code 1 bmake[2]: stopped making "all-am" in /home/pbulk/build/net/tcptraceroute6/work/ndisc6-1.0.4 bmake[2]: 3 errors bmake[2]: stopped making "all-am" in /home/pbulk/build/net/tcptraceroute6/work/ndisc6-1.0.4 bmake[1]: stopped making "all-recursive" in /home/pbulk/build/net/tcptraceroute6/work/ndisc6-1.0.4 bmake: stopped making "all" in /home/pbulk/build/net/tcptraceroute6/work/ndisc6-1.0.4 *** Error code 2 Stop. bmake[1]: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/net/tcptraceroute6 *** Error code 1 Stop. bmake: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/net/tcptraceroute6