+ case "${usergroup_phase}" in
+ local run_cmd
+ run_cmd=run_su
+ shift
+ run_su /usr/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/batchftp-1.02nb1/work.log
+ su pbulk -c '"$@"' make /usr/pkg/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
--- batchftp.o ---
cc -pipe -O2    -c batchftp.c
batchftp.c: In function 'start_ftp':
batchftp.c:758:2: warning: 'sigsetmask' is deprecated (declared at /usr/include/signal.h:200) [-Wdeprecated-declarations]
  sigsetmask(0);                          /* do not block any signals */
  ^
batchftp.c:806:4: error: too many arguments to function 'setpgrp'
    pg_flag = setpgrp(pid, pid);                      /* make child group leader so that parent won't be killed */
    ^
In file included from batchftp.c:71:0:
/usr/include/unistd.h:672:12: note: declared here
 extern int setpgrp (void) __THROW;
            ^
batchftp.c: In function 'main':
batchftp.c:151:8: warning: ignoring return value of 'getcwd', declared with attribute warn_unused_result [-Wunused-result]
  getcwd(home_dir,sizeof(home_dir));
        ^
batchftp.c: In function 'assign_args':
batchftp.c:680:8: warning: ignoring return value of 'system', declared with attribute warn_unused_result [-Wunused-result]
  system(cmd_buf);                                        /*make copy of inputfile; append pid to filename */
        ^
batchftp.c: In function 'check_ftp':
batchftp.c:930:8: warning: ignoring return value of 'system', declared with attribute warn_unused_result [-Wunused-result]
  system(linebuf);
        ^
*** [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-el7-trunk-x86_64/net/batchftp
*** Error code 1

Stop.
bmake: stopped in /data/jenkins/workspace/pkgsrc-el7-trunk-x86_64/net/batchftp