+ 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/batchftp-1.02nb1/work.log
+ su pbulk -c '"$@"' make /opt/local/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/batchftp-1.02nb1/work.log
=> Bootstrap dependency digest>=20211023: found digest-20220214
WARNING: [license.mk] Every package should define a LICENSE.
===> Building for batchftp-1.02nb1
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/local/include -I/usr/include   -I/opt/local/include -I/usr/include -c batchftp.c
batchftp.c: In function 'get_rhost':
batchftp.c:277:9: warning: implicit declaration of function 'bzero' [-Wimplicit-function-declaration]
  277 |         bzero((char *)&in, sizeof(in));
      |         ^~~~~
batchftp.c:277:9: warning: incompatible implicit declaration of built-in function 'bzero' [-Wbuiltin-declaration-mismatch]
batchftp.c:278:9: warning: implicit declaration of function 'bcopy' [-Wimplicit-function-declaration]
  278 |         bcopy(hp->h_addr, (char *)&in, hp -> h_length);         /* copy Internet address into structure for ASCII conversion */
      |         ^~~~~
batchftp.c:278:9: warning: incompatible implicit declaration of built-in function 'bcopy' [-Wbuiltin-declaration-mismatch]
batchftp.c: In function 'start_ftp':
batchftp.c:758:9: warning: implicit declaration of function 'sigsetmask'; did you mean 'sigstack'? [-Wimplicit-function-declaration]
  758 |         sigsetmask(0);                          /* do not block any signals */
      |         ^~~~~~~~~~
      |         sigstack
batchftp.c:806:35: error: too many arguments to function 'setpgrp'
  806 |                         pg_flag = setpgrp(pid, pid);                      /* make child group leader so that parent won't be killed */
      |                                   ^~~~~~~
In file included from batchftp.c:71:
/usr/include/unistd.h:506:14: note: declared here
  506 | extern pid_t setpgrp(void);
      |              ^~~~~~~
*** [batchftp.o] Error code 1

bmake: stopped in /home/pbulk/build/net/batchftp/work
1 error

bmake: stopped in /home/pbulk/build/net/batchftp/work
*** Error code 2

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

Stop.
bmake: stopped in /data/jenkins/workspace/pkgsrc-2022Q4-x86_64/net/batchftp