+ 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/mtscan-20050129nb1/work.log
+ su pbulk -c '"$@"' make /opt/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/mtscan-20050129nb1/work.log
WARNING: [license.mk] Every package should define a LICENSE.
===> Building for mtscan-20050129nb1
cd /home/pbulk/build/sysutils/mtscan/work/mtscan-20050129 && gcc  -pipe -O2 -msave-args -fno-aggressive-loop-optimizations  -I/opt/pkg/include/ncurses  -DMTIO   -I/opt/pkg/include/ncurses -o mtscan mtscan.c	    -L/opt/pkg/lib -Wl,-R/opt/pkg/lib -lncurses
mtscan.c: In function 'main':
mtscan.c:164:14: warning: implicit declaration of function 'open'; did you mean 'popen'? [-Wimplicit-function-declaration]
  164 |         mt = open(tape, O_RDONLY, 0);
      |              ^~~~
      |              popen
mtscan.c:164:25: error: 'O_RDONLY' undeclared (first use in this function)
  164 |         mt = open(tape, O_RDONLY, 0);
      |                         ^~~~~~~~
mtscan.c:164:25: note: each undeclared identifier is reported only once for each function it appears in
mtscan.c:171:17: warning: implicit declaration of function 'bzero' [-Wimplicit-function-declaration]
  171 |                 bzero(&mtop, sizeof(mtop));
      |                 ^~~~~
mtscan.c:171:17: warning: incompatible implicit declaration of built-in function 'bzero' [-Wbuiltin-declaration-mismatch]
mtscan.c:173:20: warning: implicit declaration of function 'ioctl' [-Wimplicit-function-declaration]
  173 |                 if(ioctl(mt, MTIOCTOP, &mtop) < 0) {
      |                    ^~~~~
mtscan.c:179:17: warning: incompatible implicit declaration of built-in function 'bzero' [-Wbuiltin-declaration-mismatch]
  179 |                 bzero(&mtop, sizeof(mtop));
      |                 ^~~~~
mtscan.c:198:21: warning: implicit declaration of function 'read'; did you mean 'fread'? [-Wimplicit-function-declaration]
  198 |                 n = read(mt, buf, buflen);
      |                     ^~~~
      |                     fread
mtscan.c:261:17: warning: incompatible implicit declaration of built-in function 'bzero' [-Wbuiltin-declaration-mismatch]
  261 |                 bzero(&mtop, sizeof(mtop));
      |                 ^~~~~
mtscan.c:269:17: warning: incompatible implicit declaration of built-in function 'bzero' [-Wbuiltin-declaration-mismatch]
  269 |                 bzero(&mtop, sizeof(mtop));
      |                 ^~~~~
mtscan.c:279:25: warning: incompatible implicit declaration of built-in function 'bzero' [-Wbuiltin-declaration-mismatch]
  279 |                         bzero(&mtop, sizeof(mtop));
      |                         ^~~~~
*** Error code 1

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

Stop.
bmake: stopped in /data/jenkins/workspace/pkgsrc-upstream-bulktest/sysutils/mtscan