+ 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/adplay-1.8.1nb6/work.log
+ su pbulk -c '"$@"' make /opt/local/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/adplay-1.8.1nb6/work.log
=> Bootstrap dependency digest>=20211023: found digest-20220214
===> Building for adplay-1.8.1nb6
Making all in src
/opt/local/bin/bmake  all-am
g++ -DHAVE_CONFIG_H -I.   -I/opt/local/include -I/opt/local/include/libbinio     -DADPLUG_DATA_DIR=\"/opt/local/com/adplug\" -I/usr/include -I/opt/local/include  -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/usr/include -I/opt/local/include -MT adplay.o -MD -MP -MF .deps/adplay.Tpo -c -o adplay.o adplay.cc
adplay.cc: In function 'int decode_switches(int, char**)':
adplay.cc:217:14: error: 'no_argument' was not declared in this scope
  217 |     {"8bit", no_argument, NULL, '8'},           // 8-bit replay
      |              ^~~~~~~~~~~
adplay.cc:219:14: error: 'required_argument' was not declared in this scope
  219 |     {"freq", required_argument, NULL, 'f'},     // set frequency
      |              ^~~~~~~~~~~~~~~~~
adplay.cc:216:23: error: elements of array 'const decode_switches(int, char**)::option long_options []' have incomplete type
  216 |   struct option const long_options[] = {
      |                       ^~~~~~~~~~~~
adplay.cc:216:23: error: storage size of 'long_options' isn't known
adplay.cc:240:15: error: 'getopt_long' was not declared in this scope
  240 |   while ((c = getopt_long(argc, argv, "8f:b:d:irms:ohVe:O:D:qv",
      |               ^~~~~~~~~~~
*** [adplay.o] Error code 1

bmake[2]: stopped in /home/pbulk/build/audio/adplay/work/adplay-1.8.1/src
1 error

bmake[2]: stopped in /home/pbulk/build/audio/adplay/work/adplay-1.8.1/src
*** [all] Error code 2

bmake[1]: stopped in /home/pbulk/build/audio/adplay/work/adplay-1.8.1/src
1 error

bmake[1]: stopped in /home/pbulk/build/audio/adplay/work/adplay-1.8.1/src
*** [all-recursive] Error code 1

bmake: stopped in /home/pbulk/build/audio/adplay/work/adplay-1.8.1
1 error

bmake: stopped in /home/pbulk/build/audio/adplay/work/adplay-1.8.1
*** Error code 2

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

Stop.
bmake: stopped in /data/jenkins/workspace/pkgsrc-2022Q4-x86_64/audio/adplay