+ case "${usergroup_phase}" in
+ local run_cmd
+ run_cmd=run_su
+ shift
+ run_su /opt/local/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/ucspi-udp-0.88.1/work.log
+ su pbulk -c '"$@"' make /opt/local/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/ucspi-udp-0.88.1/work.log
=> Bootstrap dependency digest>=20211023: found digest-20211023
===> Building for ucspi-udp-0.88.1
( cat warn-auto.sh;  echo 'main="$1"; shift';  echo exec "`head -1 conf-ld`"  '-o "$main" "$main".o ${1+"$@"}'  ) > load
chmod 755 load
( cat warn-auto.sh;  echo exec "`head -1 conf-cc`" '-c ${1+"$@"}'  ) > compile
chmod 755 compile
cat warn-auto.sh choose.sh  | sed s}HOME}"`head -1 conf-home`"}g  > choose
chmod 755 choose
( cat warn-auto.sh;  echo CC=\'`head -1 conf-cc`\';  echo LD=\'`head -1 conf-ld`\';  cat find-systype.sh;  ) | sh > systype
cat warn-auto.sh udpcat.sh  | sed s}HOME}"`head -1 conf-home`"}g  > udpcat
chmod 755 udpcat
cat warn-auto.sh rts.sh  | sed s}HOME}"`head -1 conf-home`"}g  > rts
chmod 755 rts
./compile alloc.c
alloc.c:3:14: warning: conflicting types for built-in function 'malloc'; expected 'void *(long unsigned int)' [-Wbuiltin-declaration-mismatch]
    3 | extern char *malloc();
      |              ^~~~~~
alloc.c:3:1: note: 'malloc' is declared in header '<stdlib.h>'
    2 | #include "error.h"
  +++ |+#include <stdlib.h>
    3 | extern char *malloc();
./compile alloc_re.c
./compile auto-str.c
auto-str.c:8:6: warning: conflicting types for built-in function 'puts'; expected 'int(const char *)' [-Wbuiltin-declaration-mismatch]
    8 | void puts(char *s)
      |      ^~~~
auto-str.c:4:1: note: 'puts' is declared in header '<stdio.h>'
    3 | #include "exit.h"
  +++ |+#include <stdio.h>
    4 | 
auto-str.c:13:1: warning: return type defaults to 'int' [-Wimplicit-int]
   13 | main(int argc,char **argv)
      | ^~~~
./compile buffer.c
./compile buffer_0.c
./compile buffer_1.c
./compile buffer_2.c
./compile buffer_copy.c
./compile buffer_get.c
./compile buffer_put.c
./compile byte_chr.c
./compile byte_copy.c
./compile byte_cr.c
./compile byte_diff.c
./compile byte_rchr.c
./compile byte_zero.c
./compile case_diffb.c
./compile case_diffs.c
./compile chkshsgr.c
chkshsgr.c:3:1: warning: return type defaults to 'int' [-Wimplicit-int]
    3 | main()
      | ^~~~
chkshsgr.c: In function 'main':
chkshsgr.c:8:7: warning: implicit declaration of function 'getgroups' [-Wimplicit-function-declaration]
    8 |   if (getgroups(1,x) == 0) if (setgroups(1,x) == -1) _exit(1);
      |       ^~~~~~~~~
chkshsgr.c:8:32: warning: implicit declaration of function 'setgroups' [-Wimplicit-function-declaration]
    8 |   if (getgroups(1,x) == 0) if (setgroups(1,x) == -1) _exit(1);
      |                                ^~~~~~~~~
./compile env.c
./compile error.c
./compile error_str.c
./compile fd_copy.c
fd_copy.c: In function 'fd_copy':
fd_copy.c:8:3: warning: implicit declaration of function 'close' [-Wimplicit-function-declaration]
    8 |   close(to);
      |   ^~~~~
./compile fd_move.c
fd_move.c: In function 'fd_move':
fd_move.c:7:3: warning: implicit declaration of function 'close' [-Wimplicit-function-declaration]
    7 |   close(from);
      |   ^~~~~
./compile fmt_ulong.c
./compile getln.c
./compile getln2.c
./compile hier.c
hier.c: In function 'hier':
hier.c:5:3: warning: implicit declaration of function 'h' [-Wimplicit-function-declaration]
    5 |   h(auto_home,-1,-1,02755);
      |   ^
hier.c:6:3: warning: implicit declaration of function 'd' [-Wimplicit-function-declaration]
    6 |   d(auto_home,"bin",-1,-1,02755);
      |   ^
hier.c:8:3: warning: implicit declaration of function 'c' [-Wimplicit-function-declaration]
    8 |   c(auto_home,"bin","udplisten",-1,-1,0755);
      |   ^
./compile install.c
install.c: In function 'h':
install.c:20:7: warning: implicit declaration of function 'mkdir' [-Wimplicit-function-declaration]
   20 |   if (mkdir(home,0700) == -1)
      |       ^~~~~
install.c:23:7: warning: implicit declaration of function 'chown' [-Wimplicit-function-declaration]
   23 |   if (chown(home,uid,gid) == -1)
      |       ^~~~~
install.c:25:7: warning: implicit declaration of function 'chmod' [-Wimplicit-function-declaration]
   25 |   if (chmod(home,mode) == -1)
      |       ^~~~~
install.c: In function 'd':
install.c:36:7: warning: implicit declaration of function 'chdir' [-Wimplicit-function-declaration]
   36 |   if (chdir(home) == -1)
      |       ^~~~~
install.c: In function 'c':
install.c:63:7: warning: implicit declaration of function 'fchdir' [-Wimplicit-function-declaration]
   63 |   if (fchdir(fdsourcedir) == -1)
      |       ^~~~~~
install.c:88:3: warning: implicit declaration of function 'close' [-Wimplicit-function-declaration]
   88 |   close(fdin);
      |   ^~~~~
install.c:91:7: warning: implicit declaration of function 'fsync' [-Wimplicit-function-declaration]
   91 |   if (fsync(fdout) == -1)
      |       ^~~~~
install.c: At top level:
install.c:140:1: warning: return type defaults to 'int' [-Wimplicit-int]
  140 | main()
      | ^~~~
install.c: In function 'main':
install.c:146:3: warning: implicit declaration of function 'umask' [-Wimplicit-function-declaration]
  146 |   umask(077);
      |   ^~~~~
./compile instcheck.c
instcheck.c: In function 'd':
instcheck.c:59:7: warning: implicit declaration of function 'chdir' [-Wimplicit-function-declaration]
   59 |   if (chdir(home) == -1)
      |       ^~~~~
instcheck.c: At top level:
instcheck.c:104:1: warning: return type defaults to 'int' [-Wimplicit-int]
  104 | main()
      | ^~~~
./compile ip4_fmt.c
./compile ip4_scan.c
./compile ndelay_off.c
./compile ndelay_on.c
./compile open_read.c
./compile open_trunc.c
./compile open_write.c
./compile openreadclose.c
./compile pathexec_env.c
./compile pathexec_run.c
pathexec_run.c: In function 'pathexec_run':
pathexec_run.c:16:5: warning: implicit declaration of function 'execve' [-Wimplicit-function-declaration]
   16 |     execve(file,argv,envp);
      |     ^~~~~~
./compile readclose.c
readclose.c: In function 'readclose_append':
readclose.c:9:44: warning: implicit declaration of function 'close' [-Wimplicit-function-declaration]
    9 |     if (!stralloc_readyplus(sa,bufsize)) { close(fd); return -1; }
      |                                            ^~~~~
./compile scan_ulong.c
./compile seek_set.c
seek_set.c: In function 'seek_set':
seek_set.c:7:7: warning: implicit declaration of function 'lseek' [-Wimplicit-function-declaration]
    7 | { if (lseek(fd,(off_t) pos,SET) == -1) return -1; return 0; }
      |       ^~~~~
./compile sgetopt.c
./compile sig.c
( ( ./compile trylsock.c &&  ./load trylsock -lsocket -lnsl ) >/dev/null 2>&1  && echo -lsocket -lnsl || exit 0 ) > socket.lib
rm -f trylsock.o trylsock
./compile socket_accept.c
./compile socket_bind.c
./compile socket_conn.c
./compile socket_delay.c
./compile socket_listen.c
./compile socket_local.c
./compile socket_opts.c
./compile socket_remote.c
./compile socket_tcp.c
socket_tcp.c: In function 'socket_tcp':
socket_tcp.c:14:29: warning: implicit declaration of function 'close' [-Wimplicit-function-declaration]
   14 |   if (ndelay_on(s) == -1) { close(s); return -1; }
      |                             ^~~~~
./compile socket_udp.c
socket_udp.c: In function 'socket_udp':
socket_udp.c:14:29: warning: implicit declaration of function 'close' [-Wimplicit-function-declaration]
   14 |   if (ndelay_on(s) == -1) { close(s); return -1; }
      |                             ^~~~~
./compile str_chr.c
./compile str_diff.c
./compile str_len.c
./compile str_start.c
./compile stralloc_cat.c
./compile stralloc_catb.c
./compile stralloc_cats.c
./compile stralloc_copy.c
./compile stralloc_eady.c
./compile stralloc_opyb.c
./compile stralloc_opys.c
./compile stralloc_pend.c
./compile strerr_die.c
./compile strerr_sys.c
./compile subgetopt.c
./compile udprulescheck.c
udprulescheck.c: In function 'found':
udprulescheck.c:19:2: warning: implicit declaration of function '_exit' [-Wimplicit-function-declaration]
   19 |  _exit(0);
      |  ^~~~~
udprulescheck.c:19:2: warning: incompatible implicit declaration of built-in function '_exit'
udprulescheck.c:31:3: warning: incompatible implicit declaration of built-in function '_exit'
   31 |   _exit(0);
      |   ^~~~~
udprulescheck.c: At top level:
udprulescheck.c:34:1: warning: return type defaults to 'int' [-Wimplicit-int]
   34 | main(int argc,char **argv)
      | ^~~~
udprulescheck.c: In function 'main':
udprulescheck.c:51:8: warning: implicit declaration of function 'open_read' [-Wimplicit-function-declaration]
   51 |   fd = open_read(fnrules);
      |        ^~~~~~~~~
udprulescheck.c:56:3: warning: incompatible implicit declaration of built-in function '_exit'
   56 |   _exit(0);
      |   ^~~~~
./compile udppipe.c
udppipe.c: In function 'main':
udppipe.c:17:21: warning: implicit declaration of function 'scan_ulong' [-Wimplicit-function-declaration]
   17 |           case 't': scan_ulong(optarg,&timeout);
      |                     ^~~~~~~~~~
udppipe.c:30:12: warning: implicit declaration of function 'fork' [-Wimplicit-function-declaration]
   30 |     switch(fork()) {
      |            ^~~~
udppipe.c:32:13: warning: implicit declaration of function 'close' [-Wimplicit-function-declaration]
   32 |             close(fd[0]);
      |             ^~~~~
udppipe.c:33:18: warning: implicit declaration of function 'fd_move' [-Wimplicit-function-declaration]
   33 |             if ((fd_move(0,fd[1]) == -1) || (fd_copy(1,0) == -1))
      |                  ^~~~~~~
udppipe.c:33:46: warning: implicit declaration of function 'fd_copy' [-Wimplicit-function-declaration]
   33 |             if ((fd_move(0,fd[1]) == -1) || (fd_copy(1,0) == -1))
      |                                              ^~~~~~~
udppipe.c:53:26: warning: implicit declaration of function 'read'; did you mean 'readv'? [-Wimplicit-function-declaration]
   53 |             int nbytes = read(fd[0],buf,sizeof(buf));
      |                          ^~~~
      |                          readv
udppipe.c:59:27: warning: implicit declaration of function 'write'; did you mean 'writev'? [-Wimplicit-function-declaration]
   59 |             if (nbytes>0) write(fd[0],buf,nbytes);
      |                           ^~~~~
      |                           writev
./compile uint16_pack.c
./compile uint16_unpack.c
( ( ./compile tryulong32.c && ./load tryulong32 &&  ./tryulong32 ) >/dev/null 2>&1  && cat uint32.h2 || cat uint32.h1 ) > uint32.h
rm -f tryulong32.o tryulong32
./choose cl trysgact hassgact.h1 hassgact.h2 > hassgact.h
./choose cl trysgprm hassgprm.h1 hassgprm.h2 > hassgprm.h
./choose cl trywaitp haswaitp.h1 haswaitp.h2 > haswaitp.h
./choose clr trypoll iopause.h1 iopause.h2 > iopause.h
./choose c trysysel select.h1 select.h2 > select.h
./choose clr tryulong64 uint64.h1 uint64.h2 > uint64.h
( cat warn-auto.sh;  echo 'main="$1"; shift';  echo 'rm -f "$main"';  echo 'ar cr "$main" ${1+"$@"}';  case "`cat systype`" in  sunos-5.*) ;;  unix_sv*) ;;  irix64-*) ;;  irix-*) ;;  dgux-*) ;;  hp-ux-*) ;;  sco*) ;;  *) echo 'ranlib "$main"' ;;  esac  ) > makelib
chmod 755 makelib
./load chkshsgr
./compile cdb.c
./compile cdb_hash.c
./compile cdb_make.c
./compile rules.c
./compile udprules.c
udprules.c: In function 'getnum':
udprules.c:50:15: warning: implicit declaration of function 'scan_ulong' [-Wimplicit-function-declaration]
   50 |   if (sanum.s[scan_ulong(sanum.s,u)]) die_bad();
      |               ^~~~~~~~~~
udprules.c: At top level:
udprules.c:90:1: warning: return type defaults to 'int' [-Wimplicit-int]
   90 | main(int argc,char **argv)
      | ^~~~
udprules.c: In function 'main':
udprules.c:104:8: warning: implicit declaration of function 'open_trunc' [-Wimplicit-function-declaration]
  104 |   fd = open_trunc(fntemp);
      |        ^~~~~~~~~~
udprules.c:169:7: warning: implicit declaration of function 'fsync' [-Wimplicit-function-declaration]
  169 |   if (fsync(fd) == -1) die_write();
      |       ^~~~~
udprules.c:170:7: warning: implicit declaration of function 'close' [-Wimplicit-function-declaration]
  170 |   if (close(fd) == -1) die_write(); /* NFS stupidity */
      |       ^~~~~
udprules.c:171:7: warning: implicit declaration of function 'rename' [-Wimplicit-function-declaration]
  171 |   if (rename(fntemp,fn))
      |       ^~~~~~
./compile uint32_pack.c
./compile uint32_unpack.c
./compile sig_catch.c
./compile sig_block.c
./compile sig_pause.c
./compile wait_nohang.c
./compile wait_pid.c
./compile dns_dfd.c
./compile dns_domain.c
./compile dns_dtda.c
./compile dns_ip.c
./compile dns_ipq.c
./compile dns_name.c
./compile dns_nd.c
./compile dns_packet.c
./compile dns_random.c
dns_random.c: In function 'dns_random_init':
dns_random.c:46:11: warning: implicit declaration of function 'getpid' [-Wimplicit-function-declaration]
   46 |   in[8] = getpid();
      |           ^~~~~~
dns_random.c:47:11: warning: implicit declaration of function 'getppid' [-Wimplicit-function-declaration]
   47 |   in[9] = getppid();
      |           ^~~~~~~
./compile dns_rcip.c
./compile dns_rcrw.c
dns_rcrw.c: In function 'init':
dns_rcrw.c:92:7: warning: implicit declaration of function 'gethostname' [-Wimplicit-function-declaration]
   92 |   if (gethostname(host,sizeof host) == -1) return -1;
      |       ^~~~~~~~~~~
./compile dns_resolve.c
./compile dns_sortip.c
./compile dns_transmit.c
dns_transmit.c: In function 'socketfree':
dns_transmit.c:70:3: warning: implicit declaration of function 'close' [-Wimplicit-function-declaration]
   70 |   close(d->s1 - 1);
      |   ^~~~~
dns_transmit.c: In function 'thisudp':
dns_transmit.c:113:15: warning: implicit declaration of function 'send' [-Wimplicit-function-declaration]
  113 |           if (send(d->s1 - 1,d->query + 2,d->querylen - 2,0) == d->querylen - 2) {
      |               ^~~~
dns_transmit.c: In function 'dns_transmit_get':
dns_transmit.c:261:9: warning: implicit declaration of function 'recv' [-Wimplicit-function-declaration]
  261 |     r = recv(fd,udpbuf,sizeof udpbuf,0);
      |         ^~~~
./compile dns_txt.c
./compile iopause.c
./compile recordio.c
recordio.c: In function 'doit':
recordio.c:103:9: warning: implicit declaration of function 'close' [-Wimplicit-function-declaration]
  103 |         close(fdleft);
      |         ^~~~~
recordio.c: At top level:
recordio.c:144:1: warning: return type defaults to 'int' [-Wimplicit-int]
  144 | main(int argc,char **argv,char **envp)
      | ^~~~
recordio.c: In function 'main':
recordio.c:149:21: warning: implicit declaration of function 'getpid' [-Wimplicit-function-declaration]
  149 |   pid[fmt_ulong(pid,getpid())] = 0;
      |                     ^~~~~~
recordio.c:154:7: warning: implicit declaration of function 'pipe' [-Wimplicit-function-declaration]
  154 |   if (pipe(piin) == -1)
      |       ^~~~
recordio.c:159:10: warning: implicit declaration of function 'fork' [-Wimplicit-function-declaration]
  159 |   switch(fork()) {
      |          ^~~~
recordio.c:171:7: warning: implicit declaration of function 'fd_move' [-Wimplicit-function-declaration]
  171 |   if (fd_move(0,piin[0]) == -1)
      |       ^~~~~~~
./compile remoteinfo.c
remoteinfo.c: In function 'mywrite':
remoteinfo.c:27:10: warning: implicit declaration of function 'write'; did you mean 'mywrite'? [-Wimplicit-function-declaration]
   27 |   return write(fd,buf,len);
      |          ^~~~~
      |          mywrite
remoteinfo.c: In function 'myread':
remoteinfo.c:45:10: warning: implicit declaration of function 'read'; did you mean 'myread'? [-Wimplicit-function-declaration]
   45 |   return read(fd,buf,len);
      |          ^~~~
      |          myread
remoteinfo.c: In function 'remoteinfo':
remoteinfo.c:96:3: warning: implicit declaration of function 'close' [-Wimplicit-function-declaration]
   96 |   close(s);
      |   ^~~~~
./compile tai_pack.c
./compile taia_add.c
./compile taia_approx.c
./compile taia_frac.c
./compile taia_less.c
./compile taia_now.c
./compile taia_pack.c
./compile taia_sub.c
./compile taia_uint.c
./compile timeoutconn.c
./compile udpconnect.c
udpconnect.c:75:1: warning: return type defaults to 'int' [-Wimplicit-int]
   75 | main(int argc,char **argv)
      | ^~~~
udpconnect.c: In function 'main':
udpconnect.c:108:21: warning: implicit declaration of function 'env_get' [-Wimplicit-function-declaration]
  108 |       case 'U': x = env_get("UID"); if (x) scan_ulong(x,&uid);
      |                     ^~~~~~~
udpconnect.c:108:19: warning: assignment to 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  108 |       case 'U': x = env_get("UID"); if (x) scan_ulong(x,&uid);
      |                   ^
udpconnect.c:109:19: warning: assignment to 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  109 |                 x = env_get("GID"); if (x) scan_ulong(x,&gid); break;
      |                   ^
udpconnect.c:121:3: warning: implicit declaration of function 'close' [-Wimplicit-function-declaration]
  121 |   close(fd);
      |   ^~~~~
udpconnect.c:205:16: warning: implicit declaration of function 'prot_gid' [-Wimplicit-function-declaration]
  205 |   if (gid) if (prot_gid(gid) == -1)
      |                ^~~~~~~~
udpconnect.c:207:16: warning: implicit declaration of function 'prot_uid' [-Wimplicit-function-declaration]
  207 |   if (uid) if (prot_uid(uid) == -1)
      |                ^~~~~~~~
udpconnect.c:210:3: warning: implicit declaration of function 'ndelay_off' [-Wimplicit-function-declaration]
  210 |   ndelay_off(s);
      |   ^~~~~~~~~~
./compile udplisten.c
In file included from udplisten.c:22:
sgetopt.h:5:16: error: conflicting types for 'sgetoptmine'
    5 | #define getopt sgetoptmine
      |                ^~~~~~~~~~~
In file included from udplisten.c:22:
sgetopt.h:17:12: note: previous declaration of 'sgetoptmine' was here
   17 | extern int sgetoptmine(int,char **,char *);
      |            ^~~~~~~~~~~
udplisten.c: In function 'doit':
udplisten.c:145:29: warning: implicit declaration of function 'getpid' [-Wimplicit-function-declaration]
  145 |     strnum[fmt_ulong(strnum,getpid())] = 0;
      |                             ^~~~~~
udplisten.c:150:5: warning: implicit declaration of function 'socket_ipoptionskill' [-Wimplicit-function-declaration]
  150 |     socket_ipoptionskill(t);
      |     ^~~~~~~~~~~~~~~~~~~~
udplisten.c:210:7: warning: implicit declaration of function 'close'; did you mean 'pclose'? [-Wimplicit-function-declaration]
  210 |       close(fdrules);
      |       ^~~~~
      |       pclose
udplisten.c: At top level:
udplisten.c:315:1: warning: return type defaults to 'int' [-Wimplicit-int]
  315 | main(int argc,char **argv)
      | ^~~~
udplisten.c: In function 'main':
udplisten.c:439:16: warning: implicit declaration of function 'fork' [-Wimplicit-function-declaration]
  439 |         switch(fork()) {
      |                ^~~~
*** [udplisten.o] Error code 1

bmake: stopped in /home/pbulk/build/net/ucspi-udp/work/tsi-ucspi-udp-ea972137e1da3189237aecc954bff2377398cb36
1 error

bmake: stopped in /home/pbulk/build/net/ucspi-udp/work/tsi-ucspi-udp-ea972137e1da3189237aecc954bff2377398cb36
*** Error code 2

Stop.
bmake[1]: stopped in /data/jenkins/workspace/pkgsrc-2021Q4-x86_64/net/ucspi-udp
*** Error code 1

Stop.
bmake: stopped in /data/jenkins/workspace/pkgsrc-2021Q4-x86_64/net/ucspi-udp