+ 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/dhisd-5.5/work.log
+ su pbulk -c '"$@"' make /opt/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
gcc -O3 -Wall -Wstrict-prototypes -Wpointer-arith  -Wno-sign-compare -Wno-traditional -Wreturn-type -Wswitch -Wshadow  -Wwrite-strings -Wextra -funsigned-char -I. -I/opt/pkg/include -I/opt/pkg/include -c qrc.c
gcc -O3 -Wall -Wstrict-prototypes -Wpointer-arith  -Wno-sign-compare -Wno-traditional -Wreturn-type -Wswitch -Wshadow  -Wwrite-strings -Wextra -funsigned-char -I. -I/opt/pkg/include -I/opt/pkg/include -c misc.c
gcc -O3 -Wall -Wstrict-prototypes -Wpointer-arith  -Wno-sign-compare -Wno-traditional -Wreturn-type -Wswitch -Wshadow  -Wwrite-strings -Wextra -funsigned-char -I. -I/opt/pkg/include -I/opt/pkg/include -c nsupdate.c
gcc -O3 -Wall -Wstrict-prototypes -Wpointer-arith  -Wno-sign-compare -Wno-traditional -Wreturn-type -Wswitch -Wshadow  -Wwrite-strings -Wextra -funsigned-char -I. -I/opt/pkg/include -I/opt/pkg/include -c ddb.c
gcc -O3 -Wall -Wstrict-prototypes -Wpointer-arith  -Wno-sign-compare -Wno-traditional -Wreturn-type -Wswitch -Wshadow  -Wwrite-strings -Wextra -funsigned-char -I. -I/opt/pkg/include -I/opt/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]
  157 |  case(AUTH_SX): { auth_sendx_t *p2; p2=(auth_sendx_t *)p;
      |                                 ^~
gcc -O3 -Wall -Wstrict-prototypes -Wpointer-arith  -Wno-sign-compare -Wno-traditional -Wreturn-type -Wswitch -Wshadow  -Wwrite-strings -Wextra -funsigned-char -I. -I/opt/pkg/include -I/opt/pkg/include -c online.c
gcc -O3 -Wall -Wstrict-prototypes -Wpointer-arith  -Wno-sign-compare -Wno-traditional -Wreturn-type -Wswitch -Wshadow  -Wwrite-strings -Wextra -funsigned-char -I. -I/opt/pkg/include -c main.c
main.c: In function 'main':
main.c:218:13: warning: this statement may fall through [-Wimplicit-fallthrough=]
  218 |  case('h'): usage(argv[0]);
      |             ^~~~~~~~~~~~~~
main.c:219:2: note: here
  219 |  case('c'):  strcpy(conf_file,optarg);break;
      |  ^~~~
gcc -O3 -Wall -Wstrict-prototypes -Wpointer-arith  -Wno-sign-compare -Wno-traditional -Wreturn-type -Wswitch -Wshadow  -Wwrite-strings -Wextra -funsigned-char -I. -I/opt/pkg/include -c genkeys.c
gcc -lsocket -lnsl -L/opt/pkg/lib -Wl,-R/opt/pkg/lib -o dhisd qrc.o misc.o nsupdate.o ddb.o network.o online.o -lgmp main.o
Undefined			first referenced
 symbol  			    in file
optreset                            main.o
ld: fatal: symbol referencing errors. No output written to dhisd
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-upstream-trunk/net/dhisd
*** Error code 1

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