+ 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/srm-1.2.15/work.log
+ su pbulk -c '"$@"' make /opt/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/srm-1.2.15/work.log
=> Bootstrap dependency digest>=20211023: found digest-20220214
===> Building for srm-1.2.15
/opt/pkg/bin/bmake  all-recursive
Making all in lib
gcc -DHAVE_CONFIG_H -I. -I..      -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -DNDEBUG -MT snprintf.o -MD -MP -MF .deps/snprintf.Tpo -c -o snprintf.o snprintf.c
mv -f .deps/snprintf.Tpo .deps/snprintf.Po
gcc -DHAVE_CONFIG_H -I. -I..      -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -DNDEBUG -MT getopt1.o -MD -MP -MF .deps/getopt1.Tpo -c -o getopt1.o getopt1.c
mv -f .deps/getopt1.Tpo .deps/getopt1.Po
gcc -DHAVE_CONFIG_H -I. -I..      -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -DNDEBUG -MT getopt.o -MD -MP -MF .deps/getopt.Tpo -c -o getopt.o getopt.c
mv -f .deps/getopt.Tpo .deps/getopt.Po
rm -f libsrm.a
ar cru libsrm.a snprintf.o getopt1.o  getopt.o 
ranlib libsrm.a
Making all in src
gcc -DHAVE_CONFIG_H -I. -I..  -I../lib   -Wall -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -DNDEBUG -MT error.o -MD -MP -MF .deps/error.Tpo -c -o error.o error.c
mv -f .deps/error.Tpo .deps/error.Po
gcc -DHAVE_CONFIG_H -I. -I..  -I../lib   -Wall -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -DNDEBUG -MT main.o -MD -MP -MF .deps/main.Tpo -c -o main.o main.c
main.c: In function 'main':
main.c:127:20: warning: implicit declaration of function 'alloca' [-Wimplicit-function-declaration]
  127 |   trees = (char**) alloca(((argc-optind)+1) * sizeof(char*));
      |                    ^~~~~~
main.c:127:20: warning: incompatible implicit declaration of built-in function 'alloca' [-Wbuiltin-declaration-mismatch]
mv -f .deps/main.Tpo .deps/main.Po
gcc -DHAVE_CONFIG_H -I. -I..  -I../lib   -Wall -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -DNDEBUG -MT random.o -MD -MP -MF .deps/random.Tpo -c -o random.o random.c
mv -f .deps/random.Tpo .deps/random.Po
gcc -DHAVE_CONFIG_H -I. -I..  -I../lib   -Wall -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -DNDEBUG -MT rename_unlink.o -MD -MP -MF .deps/rename_unlink.Tpo -c -o rename_unlink.o rename_unlink.c
rename_unlink.c: In function 'rename_unlink':
rename_unlink.c:77:28: warning: implicit declaration of function 'alloca' [-Wimplicit-function-declaration]
   77 |   if ( (new_name = (char *)alloca(new_name_size)) == NULL ) {
      |                            ^~~~~~
rename_unlink.c:77:28: warning: incompatible implicit declaration of built-in function 'alloca' [-Wbuiltin-declaration-mismatch]
mv -f .deps/rename_unlink.Tpo .deps/rename_unlink.Po
gcc -DHAVE_CONFIG_H -I. -I..  -I../lib   -Wall -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -DNDEBUG -MT sunlink.o -MD -MP -MF .deps/sunlink.Tpo -c -o sunlink.o sunlink.c
sunlink.c: In function 'sunlink':
sunlink.c:121:3: error: unknown type name 'sighandler_t'; did you mean 'sa_handler'?
  121 |   sighandler_t usr2=signal(SIGUSR2, sigint_handler);
      |   ^~~~~~~~~~~~
      |   sa_handler
sunlink.c:121:21: warning: initialization of 'int' from 'void (*)(int)' makes integer from pointer without a cast [-Wint-conversion]
  121 |   sighandler_t usr2=signal(SIGUSR2, sigint_handler);
      |                     ^~~~~~
sunlink.c:124:3: error: unknown type name 'sighandler_t'; did you mean 'sa_handler'?
  124 |   sighandler_t info=signal(SIGINFO, sigint_handler);
      |   ^~~~~~~~~~~~
      |   sa_handler
sunlink.c:124:21: warning: initialization of 'int' from 'void (*)(int)' makes integer from pointer without a cast [-Wint-conversion]
  124 |   sighandler_t info=signal(SIGINFO, sigint_handler);
      |                     ^~~~~~
sunlink.c:127:3: error: unknown type name 'sighandler_t'; did you mean 'sa_handler'?
  127 |   sighandler_t pipe=signal(SIGPIPE, SIG_IGN);
      |   ^~~~~~~~~~~~
      |   sa_handler
sunlink.c:127:21: warning: initialization of 'int' from 'void (*)(int)' makes integer from pointer without a cast [-Wint-conversion]
  127 |   sighandler_t pipe=signal(SIGPIPE, SIG_IGN);
      |                     ^~~~~~
sunlink.c:133:19: warning: passing argument 2 of 'signal' makes pointer from integer without a cast [-Wint-conversion]
  133 |   signal(SIGPIPE, pipe);
      |                   ^~~~
      |                   |
      |                   int
In file included from /usr/include/signal.h:42,
                 from sunlink.c:104:
/usr/include/iso/signal_iso.h:63:27: note: expected 'void (*)(int)' but argument is of type 'int'
   63 | extern void (*signal(int, void (*)(int)))(int);
      |                           ^~~~~~~~~~~~~
sunlink.c:136:19: warning: passing argument 2 of 'signal' makes pointer from integer without a cast [-Wint-conversion]
  136 |   signal(SIGINFO, info);
      |                   ^~~~
      |                   |
      |                   int
/usr/include/iso/signal_iso.h:63:27: note: expected 'void (*)(int)' but argument is of type 'int'
   63 | extern void (*signal(int, void (*)(int)))(int);
      |                           ^~~~~~~~~~~~~
sunlink.c:139:19: warning: passing argument 2 of 'signal' makes pointer from integer without a cast [-Wint-conversion]
  139 |   signal(SIGUSR2, usr2);
      |                   ^~~~
      |                   |
      |                   int
/usr/include/iso/signal_iso.h:63:27: note: expected 'void (*)(int)' but argument is of type 'int'
   63 | extern void (*signal(int, void (*)(int)))(int);
      |                           ^~~~~~~~~~~~~
sunlink.c: In function 'overwrite_selector':
sunlink.c:454:39: warning: implicit declaration of function 'alloca' [-Wimplicit-function-declaration]
  454 |   if( (srm->buffer = (unsigned char *)alloca(srm->buffer_size)) == NULL )
      |                                       ^~~~~~
sunlink.c:454:39: warning: incompatible implicit declaration of built-in function 'alloca' [-Wbuiltin-declaration-mismatch]
sunlink.c: In function 'sunlink_impl':
sunlink.c:844:19: error: storage size of 'fs_stats' isn't known
  844 |     struct statfs fs_stats;
      |                   ^~~~~~~~
sunlink.c:845:9: warning: implicit declaration of function 'fstatfs'; did you mean 'fstatvfs'? [-Wimplicit-function-declaration]
  845 |     if (fstatfs(srm.fd, &fs_stats) < 0 && errno != ENOSYS)
      |         ^~~~~~~
      |         fstatvfs
sunlink.c:859:2: error: #error Please define your platform.
  859 | #error Please define your platform.
      |  ^~~~~
sunlink.c:844:19: warning: unused variable 'fs_stats' [-Wunused-variable]
  844 |     struct statfs fs_stats;
      |                   ^~~~~~~~
*** [sunlink.o] Error code 1

bmake[2]: stopped in /home/pbulk/build/security/srm/work/srm-1.2.15/src
1 error

bmake[2]: stopped in /home/pbulk/build/security/srm/work/srm-1.2.15/src
*** [all-recursive] Error code 1

bmake[1]: stopped in /home/pbulk/build/security/srm/work/srm-1.2.15
1 error

bmake[1]: stopped in /home/pbulk/build/security/srm/work/srm-1.2.15
*** [all] Error code 2

bmake: stopped in /home/pbulk/build/security/srm/work/srm-1.2.15
1 error

bmake: stopped in /home/pbulk/build/security/srm/work/srm-1.2.15
*** Error code 2

Stop.
bmake[1]: stopped in /data/jenkins/workspace/pkgsrc-upstream-bulktest/security/srm
*** Error code 1

Stop.
bmake: stopped in /data/jenkins/workspace/pkgsrc-upstream-bulktest/security/srm