+ 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/dhisd-5.5/work.log
+ su pbulk -c '"$@"' make /usr/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/dhisd-5.5/work.log
=> Bootstrap dependency digest>=20211023: found digest-20220214
===> Building for dhisd-5.5
--- qrc.o ---
--- misc.o ---
--- qrc.o ---
gcc -O3 -Wall -Wstrict-prototypes -Wpointer-arith  -Wno-sign-compare -Wno-traditional -Wreturn-type -Wswitch -Wshadow  -Wwrite-strings -Wextra -funsigned-char -I. -I/usr/pkg/include -I/usr/pkg/include -c qrc.c
--- misc.o ---
gcc -O3 -Wall -Wstrict-prototypes -Wpointer-arith  -Wno-sign-compare -Wno-traditional -Wreturn-type -Wswitch -Wshadow  -Wwrite-strings -Wextra -funsigned-char -I. -I/usr/pkg/include -I/usr/pkg/include -c misc.c
--- nsupdate.o ---
gcc -O3 -Wall -Wstrict-prototypes -Wpointer-arith  -Wno-sign-compare -Wno-traditional -Wreturn-type -Wswitch -Wshadow  -Wwrite-strings -Wextra -funsigned-char -I. -I/usr/pkg/include -I/usr/pkg/include -c nsupdate.c
--- ddb.o ---
gcc -O3 -Wall -Wstrict-prototypes -Wpointer-arith  -Wno-sign-compare -Wno-traditional -Wreturn-type -Wswitch -Wshadow  -Wwrite-strings -Wextra -funsigned-char -I. -I/usr/pkg/include -I/usr/pkg/include -c ddb.c
--- nsupdate.o ---
nsupdate.c: In function 'dns_update':
nsupdate.c:59:7: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result]
  write(fildes[1],str,strlen(str)+1);
       ^
--- network.o ---
gcc -O3 -Wall -Wstrict-prototypes -Wpointer-arith  -Wno-sign-compare -Wno-traditional -Wreturn-type -Wswitch -Wshadow  -Wwrite-strings -Wextra -funsigned-char -I. -I/usr/pkg/include -I/usr/pkg/include -c network.c
network.c: In function 'convert_message':
network.c:157:33: warning: variable 'p2' set but not used [-Wunused-but-set-variable]
  case(AUTH_SX): { auth_sendx_t *p2; p2=(auth_sendx_t *)p;
                                 ^
--- online.o ---
gcc -O3 -Wall -Wstrict-prototypes -Wpointer-arith  -Wno-sign-compare -Wno-traditional -Wreturn-type -Wswitch -Wshadow  -Wwrite-strings -Wextra -funsigned-char -I. -I/usr/pkg/include -I/usr/pkg/include -c online.c
online.c: In function 'fork_cmd':
online.c:348:23: warning: ignoring return value of 'system', declared with attribute warn_unused_result [-Wunused-result]
                 system(line);
                       ^
--- main.o ---
gcc -O3 -Wall -Wstrict-prototypes -Wpointer-arith  -Wno-sign-compare -Wno-traditional -Wreturn-type -Wswitch -Wshadow  -Wwrite-strings -Wextra -funsigned-char -I. -I/usr/pkg/include -c main.c
--- genkeys.o ---
gcc -O3 -Wall -Wstrict-prototypes -Wpointer-arith  -Wno-sign-compare -Wno-traditional -Wreturn-type -Wswitch -Wshadow  -Wwrite-strings -Wextra -funsigned-char -I. -I/usr/pkg/include -c genkeys.c
--- dhisd ---
gcc -Wl,-zrelro -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -o dhisd qrc.o misc.o nsupdate.o ddb.o network.o online.o -lgmp main.o
--- dhisgenkeys ---
gcc -Wl,-zrelro -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -o dhisgenkeys qrc.o -lgmp genkeys.o
--- dhisd ---
main.o: In function `main':
main.c:(.text.startup+0xf8): undefined reference to `optreset'
collect2: error: ld returned 1 exit status
*** [dhisd] Error code 1

bmake: stopped in /home/pbulk/build/net/dhisd/work/dhisd-5.5
1 error

bmake: stopped in /home/pbulk/build/net/dhisd/work/dhisd-5.5
*** Error code 2

Stop.
bmake[1]: stopped in /data/jenkins/workspace/pkgsrc-el7-trunk-x86_64/net/dhisd
*** Error code 1

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