+ 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/netcat-openbsd-20131208/work.log
+ su pbulk -c '"$@"' make /opt/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/netcat-openbsd-20131208/work.log
=> Bootstrap dependency digest>=20211023: found digest-20220214
===> Building for netcat-openbsd-20131208
gcc -o nc -Wl,-R/opt/pkg/lib -lresolv netcat.c atomicio.c socks.c strtonum.c readpassphrase.c
netcat.c: In function 'main':
netcat.c:301:61: warning: comparison between pointer and integer
  301 |                         if (mkstemp(unix_dg_tmp_socket_buf) == NULL)
      |                                                             ^~
netcat.c: In function 'unix_bind':
netcat.c:497:28: error: expected identifier or '(' before numeric constant
  497 |         struct sockaddr_un sun;
      |                            ^~~
netcat.c:505:16: error: lvalue required as unary '&' operand
  505 |         memset(&sun, 0, sizeof(struct sockaddr_un));
      |                ^
netcat.c:506:12: error: request for member 'sun_family' in something not a structure or union
  506 |         sun.sun_family = AF_UNIX;
      |            ^
netcat.c:508:24: error: request for member 'sun_path' in something not a structure or union
  508 |         if (strlcpy(sun.sun_path, path, sizeof(sun.sun_path)) >=
      |                        ^
netcat.c:508:51: error: request for member 'sun_path' in something not a structure or union
  508 |         if (strlcpy(sun.sun_path, path, sizeof(sun.sun_path)) >=
      |                                                   ^
netcat.c:509:23: error: request for member 'sun_path' in something not a structure or union
  509 |             sizeof(sun.sun_path)) {
      |                       ^
netcat.c:515:40: error: lvalue required as unary '&' operand
  515 |         if (bind(s, (struct sockaddr *)&sun, SUN_LEN(&sun)) < 0) {
      |                                        ^
In file included from /usr/include/sys/socket_impl.h:56,
                 from /usr/include/sys/socket.h:52,
                 from netcat.c:35:
netcat.c:515:54: error: lvalue required as unary '&' operand
  515 |         if (bind(s, (struct sockaddr *)&sun, SUN_LEN(&sun)) < 0) {
      |                                                      ^
netcat.c: In function 'unix_connect':
netcat.c:529:28: error: expected identifier or '(' before numeric constant
  529 |         struct sockaddr_un sun;
      |                            ^~~
netcat.c:541:16: error: lvalue required as unary '&' operand
  541 |         memset(&sun, 0, sizeof(struct sockaddr_un));
      |                ^
netcat.c:542:12: error: request for member 'sun_family' in something not a structure or union
  542 |         sun.sun_family = AF_UNIX;
      |            ^
netcat.c:544:24: error: request for member 'sun_path' in something not a structure or union
  544 |         if (strlcpy(sun.sun_path, path, sizeof(sun.sun_path)) >=
      |                        ^
netcat.c:544:51: error: request for member 'sun_path' in something not a structure or union
  544 |         if (strlcpy(sun.sun_path, path, sizeof(sun.sun_path)) >=
      |                                                   ^
netcat.c:545:23: error: request for member 'sun_path' in something not a structure or union
  545 |             sizeof(sun.sun_path)) {
      |                       ^
netcat.c:550:43: error: lvalue required as unary '&' operand
  550 |         if (connect(s, (struct sockaddr *)&sun, SUN_LEN(&sun)) < 0) {
      |                                           ^
netcat.c:550:57: error: lvalue required as unary '&' operand
  550 |         if (connect(s, (struct sockaddr *)&sun, SUN_LEN(&sun)) < 0) {
      |                                                         ^
netcat.c: In function 'local_listen':
netcat.c:713:49: error: 'SO_REUSEPORT' undeclared (first use in this function); did you mean 'SO_REUSEADDR'?
  713 |                 ret = setsockopt(s, SOL_SOCKET, SO_REUSEPORT, &x, sizeof(x));
      |                                                 ^~~~~~~~~~~~
      |                                                 SO_REUSEADDR
netcat.c:713:49: note: each undeclared identifier is reported only once for each function it appears in
netcat.c: In function 'fdpass':
netcat.c:813:26: warning: implicit declaration of function 'CMSG_SPACE' [-Wimplicit-function-declaration]
  813 |                 char buf[CMSG_SPACE(sizeof(int))];
      |                          ^~~~~~~~~~
netcat.c:825:9: warning: implicit declaration of function 'bzero' [-Wimplicit-function-declaration]
  825 |         bzero(&mh, sizeof(mh));
      |         ^~~~~
netcat.c:825:9: warning: incompatible implicit declaration of built-in function 'bzero' [-Wbuiltin-declaration-mismatch]
netcat.c:830:11: error: 'struct msghdr' has no member named 'msg_control'
  830 |         mh.msg_control = (caddr_t)&cmsgbuf.buf;
      |           ^
netcat.c:831:11: error: 'struct msghdr' has no member named 'msg_controllen'
  831 |         mh.msg_controllen = sizeof(cmsgbuf.buf);
      |           ^
netcat.c:832:16: warning: implicit declaration of function 'CMSG_FIRSTHDR' [-Wimplicit-function-declaration]
  832 |         cmsg = CMSG_FIRSTHDR(&mh);
      |                ^~~~~~~~~~~~~
netcat.c:832:14: warning: assignment to 'struct cmsghdr *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  832 |         cmsg = CMSG_FIRSTHDR(&mh);
      |              ^
netcat.c:833:26: warning: implicit declaration of function 'CMSG_LEN' [-Wimplicit-function-declaration]
  833 |         cmsg->cmsg_len = CMSG_LEN(sizeof(int));
      |                          ^~~~~~~~
netcat.c:836:17: warning: implicit declaration of function 'CMSG_DATA' [-Wimplicit-function-declaration]
  836 |         *(int *)CMSG_DATA(cmsg) = nfd;
      |                 ^~~~~~~~~
netcat.c:836:10: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  836 |         *(int *)CMSG_DATA(cmsg) = nfd;
      |          ^
netcat.c: In function 'set_common_sockopts':
netcat.c:982:48: error: 'TCP_MD5SIG' undeclared (first use in this function); did you mean 'TCP_MAXSEG'?
  982 |                 if (setsockopt(s, IPPROTO_TCP, TCP_MD5SIG,
      |                                                ^~~~~~~~~~
      |                                                TCP_MAXSEG
netcat.c: In function 'map_tos':
netcat.c:1022:41: error: 'IPTOS_DSCP_AF11' undeclared (first use in this function)
 1022 |                 { "af11",               IPTOS_DSCP_AF11 },
      |                                         ^~~~~~~~~~~~~~~
netcat.c:1023:41: error: 'IPTOS_DSCP_AF12' undeclared (first use in this function)
 1023 |                 { "af12",               IPTOS_DSCP_AF12 },
      |                                         ^~~~~~~~~~~~~~~
netcat.c:1024:41: error: 'IPTOS_DSCP_AF13' undeclared (first use in this function)
 1024 |                 { "af13",               IPTOS_DSCP_AF13 },
      |                                         ^~~~~~~~~~~~~~~
netcat.c:1025:41: error: 'IPTOS_DSCP_AF21' undeclared (first use in this function)
 1025 |                 { "af21",               IPTOS_DSCP_AF21 },
      |                                         ^~~~~~~~~~~~~~~
netcat.c:1026:41: error: 'IPTOS_DSCP_AF22' undeclared (first use in this function)
 1026 |                 { "af22",               IPTOS_DSCP_AF22 },
      |                                         ^~~~~~~~~~~~~~~
netcat.c:1027:41: error: 'IPTOS_DSCP_AF23' undeclared (first use in this function)
 1027 |                 { "af23",               IPTOS_DSCP_AF23 },
      |                                         ^~~~~~~~~~~~~~~
netcat.c:1028:41: error: 'IPTOS_DSCP_AF31' undeclared (first use in this function)
 1028 |                 { "af31",               IPTOS_DSCP_AF31 },
      |                                         ^~~~~~~~~~~~~~~
netcat.c:1029:41: error: 'IPTOS_DSCP_AF32' undeclared (first use in this function)
 1029 |                 { "af32",               IPTOS_DSCP_AF32 },
      |                                         ^~~~~~~~~~~~~~~
netcat.c:1030:41: error: 'IPTOS_DSCP_AF33' undeclared (first use in this function)
 1030 |                 { "af33",               IPTOS_DSCP_AF33 },
      |                                         ^~~~~~~~~~~~~~~
netcat.c:1031:41: error: 'IPTOS_DSCP_AF41' undeclared (first use in this function)
 1031 |                 { "af41",               IPTOS_DSCP_AF41 },
      |                                         ^~~~~~~~~~~~~~~
netcat.c:1032:41: error: 'IPTOS_DSCP_AF42' undeclared (first use in this function)
 1032 |                 { "af42",               IPTOS_DSCP_AF42 },
      |                                         ^~~~~~~~~~~~~~~
netcat.c:1033:41: error: 'IPTOS_DSCP_AF43' undeclared (first use in this function)
 1033 |                 { "af43",               IPTOS_DSCP_AF43 },
      |                                         ^~~~~~~~~~~~~~~
netcat.c:1035:41: error: 'IPTOS_DSCP_CS0' undeclared (first use in this function)
 1035 |                 { "cs0",                IPTOS_DSCP_CS0 },
      |                                         ^~~~~~~~~~~~~~
netcat.c:1036:41: error: 'IPTOS_DSCP_CS1' undeclared (first use in this function)
 1036 |                 { "cs1",                IPTOS_DSCP_CS1 },
      |                                         ^~~~~~~~~~~~~~
netcat.c:1037:41: error: 'IPTOS_DSCP_CS2' undeclared (first use in this function)
 1037 |                 { "cs2",                IPTOS_DSCP_CS2 },
      |                                         ^~~~~~~~~~~~~~
netcat.c:1038:41: error: 'IPTOS_DSCP_CS3' undeclared (first use in this function)
 1038 |                 { "cs3",                IPTOS_DSCP_CS3 },
      |                                         ^~~~~~~~~~~~~~
netcat.c:1039:41: error: 'IPTOS_DSCP_CS4' undeclared (first use in this function)
 1039 |                 { "cs4",                IPTOS_DSCP_CS4 },
      |                                         ^~~~~~~~~~~~~~
netcat.c:1040:41: error: 'IPTOS_DSCP_CS5' undeclared (first use in this function)
 1040 |                 { "cs5",                IPTOS_DSCP_CS5 },
      |                                         ^~~~~~~~~~~~~~
netcat.c:1041:41: error: 'IPTOS_DSCP_CS6' undeclared (first use in this function)
 1041 |                 { "cs6",                IPTOS_DSCP_CS6 },
      |                                         ^~~~~~~~~~~~~~
netcat.c:1042:41: error: 'IPTOS_DSCP_CS7' undeclared (first use in this function)
 1042 |                 { "cs7",                IPTOS_DSCP_CS7 },
      |                                         ^~~~~~~~~~~~~~
netcat.c:1043:41: error: 'IPTOS_DSCP_EF' undeclared (first use in this function); did you mean 'IPTOS_CE'?
 1043 |                 { "ef",                 IPTOS_DSCP_EF },
      |                                         ^~~~~~~~~~~~~
      |                                         IPTOS_CE
In file included from socks.c:41:
readpassphrase.h:34:10: fatal error: sys/cdefs.h: No such file or directory
   34 | #include <sys/cdefs.h>
      |          ^~~~~~~~~~~~~
compilation terminated.
In file included from readpassphrase.c:33:
readpassphrase.h:34:10: fatal error: sys/cdefs.h: No such file or directory
   34 | #include <sys/cdefs.h>
      |          ^~~~~~~~~~~~~
compilation terminated.
*** [all] Error code 1

bmake: stopped in /home/pbulk/build/net/netcat-openbsd/work/netcat-openbsd-126d9bbdca6afb45d9c2d38e4313d2a1a59e35e9
1 error

bmake: stopped in /home/pbulk/build/net/netcat-openbsd/work/netcat-openbsd-126d9bbdca6afb45d9c2d38e4313d2a1a59e35e9
*** Error code 2

Stop.
bmake[1]: stopped in /data/jenkins/workspace/pkgsrc-upstream-trunk/net/netcat-openbsd
*** Error code 1

Stop.
bmake: stopped in /data/jenkins/workspace/pkgsrc-upstream-trunk/net/netcat-openbsd