+ 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 ---
--- rdnss/rdnssd.o ---
--- tracert6 ---
  ALIAS    tracert6
--- rdnss/rdnssd.o ---
  CC       rdnss/rdnssd.o
--- rdnss/icmp.o ---
  CC       rdnss/icmp.o
--- rdnss/netlink.o ---
  CC       rdnss/netlink.o
--- dnssort ---
  SED      dnssort
--- merge-hook ---
  SED      merge-hook
--- tcpspray6 ---
  ALIAS    tcpspray6
--- addr2name ---
  ALIAS    addr2name
--- compat/dummy.o ---
  CC       compat/dummy.o
--- doc/rdnssd.8 ---
--- rdnss/icmp.o ---
rdnss/icmp.c: In function 'icmp_recv':
rdnss/icmp.c:50:59: warning: implicit declaration of function 'CMSG_SPACE' [-Wimplicit-function-declaration]
   50 |                 uint8_t buf[65536 - sizeof (icmp6)], cbuf[CMSG_SPACE (sizeof (int))];
      |                                                           ^~~~~~~~~~
rdnss/icmp.c:53:39: warning: initialization of 'char *' from incompatible pointer type 'struct nd_router_advert *' [-Wincompatible-pointer-types]
   53 |                         { .iov_base = &icmp6, .iov_len = sizeof (icmp6) },
      |                                       ^
rdnss/icmp.c:53:39: note: (near initialization for 'iov[0].iov_base')
rdnss/icmp.c:63:26: error: 'struct msghdr' has no member named 'msg_control'
   63 |                         .msg_control = cbuf,
      |                          ^~~~~~~~~~~
rdnss/icmp.c:63:40: warning: initialization of 'struct iovec *' from incompatible pointer type 'uint8_t *' {aka 'unsigned char *'} [-Wincompatible-pointer-types]
   63 |                         .msg_control = cbuf,
      |                                        ^~~~
rdnss/icmp.c:63:40: note: (near initialization for 'msg.msg_iov')
rdnss/icmp.c:64:26: error: 'struct msghdr' has no member named 'msg_controllen'
   64 |                         .msg_controllen = sizeof (cbuf)
      |                          ^~~~~~~~~~~~~~
rdnss/icmp.c:71:25: error: 'struct msghdr' has no member named 'msg_flags'
   71 |                  || (msg.msg_flags & (MSG_TRUNC | MSG_CTRUNC)) /* truncated packet */
      |                         ^
rdnss/icmp.c:76:45: warning: implicit declaration of function 'CMSG_FIRSTHDR' [-Wimplicit-function-declaration]
   76 |                 for (struct cmsghdr *cmsg = CMSG_FIRSTHDR (&msg);
      |                                             ^~~~~~~~~~~~~
rdnss/icmp.c:76:45: warning: initialization of 'struct cmsghdr *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
rdnss/icmp.c:76:17: error: declaration of non-variable 'CMSG_FIRSTHDR' in 'for' loop initial declaration
   76 |                 for (struct cmsghdr *cmsg = CMSG_FIRSTHDR (&msg);
      |                 ^~~
rdnss/icmp.c:78:29: warning: implicit declaration of function 'CMSG_NXTHDR' [-Wimplicit-function-declaration]
   78 |                      cmsg = CMSG_NXTHDR (&msg, cmsg))
      |                             ^~~~~~~~~~~
rdnss/icmp.c:78:27: warning: assignment to 'struct cmsghdr *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
   78 |                      cmsg = CMSG_NXTHDR (&msg, cmsg))
      |                           ^
rdnss/icmp.c:82:45: warning: implicit declaration of function 'CMSG_DATA' [-Wimplicit-function-declaration]
   82 |                          && (255 != *(int *)CMSG_DATA (cmsg)))  /* illegal hop limit */
      |                                             ^~~~~~~~~
rdnss/icmp.c:82:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
   82 |                          && (255 != *(int *)CMSG_DATA (cmsg)))  /* illegal hop limit */
      |                                      ^
--- doc/rdnssd.8 ---
  SED      doc/rdnssd.8
--- src/addrinfo.o ---
--- rdnss/icmp.o ---
*** [rdnss/icmp.o] Error code 1

bmake[2]: stopped making "all-am" in /home/pbulk/build/net/tcptraceroute6/work/ndisc6-1.0.4
--- src/addrinfo.o ---
  CC       src/addrinfo.o
--- rdnss/rdnssd.o ---
rdnss/rdnssd.c: In function 'main':
rdnss/rdnssd.c:855:28: error: 'LOG_PERROR' undeclared (first use in this function); did you mean 'SO_ERROR'?
  855 |         openlog ("rdnssd", LOG_PERROR | LOG_PID, LOG_DAEMON);
      |                            ^~~~~~~~~~
      |                            SO_ERROR
rdnss/rdnssd.c:855:28: note: each undeclared identifier is reported only once for each function it appears in
*** [rdnss/rdnssd.o] Error code 1

bmake[2]: stopped making "all-am" in /home/pbulk/build/net/tcptraceroute6/work/ndisc6-1.0.4
bmake[2]: 2 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