+ 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 -fno-aggressive-loop-optimizations -pipe -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -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:7: warning: implicit declaration of function 'open'; did you mean 'popen'? [-Wimplicit-function-declaration]
  164 |  mt = open(tape, O_RDONLY, 0);
      |       ^~~~
      |       popen
mtscan.c:164:18: error: 'O_RDONLY' undeclared (first use in this function)
  164 |  mt = open(tape, O_RDONLY, 0);
      |                  ^~~~~~~~
mtscan.c:164:18: note: each undeclared identifier is reported only once for each function it appears in
mtscan.c:171:3: warning: implicit declaration of function 'bzero' [-Wimplicit-function-declaration]
  171 |   bzero(&mtop, sizeof(mtop));
      |   ^~~~~
mtscan.c:171:3: warning: incompatible implicit declaration of built-in function 'bzero'
mtscan.c:173:6: warning: implicit declaration of function 'ioctl' [-Wimplicit-function-declaration]
  173 |   if(ioctl(mt, MTIOCTOP, &mtop) < 0) {
      |      ^~~~~
mtscan.c:179:3: warning: incompatible implicit declaration of built-in function 'bzero'
  179 |   bzero(&mtop, sizeof(mtop));
      |   ^~~~~
mtscan.c:198:7: warning: implicit declaration of function 'read'; did you mean 'fread'? [-Wimplicit-function-declaration]
  198 |   n = read(mt, buf, buflen);
      |       ^~~~
      |       fread
mtscan.c:261:3: warning: incompatible implicit declaration of built-in function 'bzero'
  261 |   bzero(&mtop, sizeof(mtop));
      |   ^~~~~
mtscan.c:269:3: warning: incompatible implicit declaration of built-in function 'bzero'
  269 |   bzero(&mtop, sizeof(mtop));
      |   ^~~~~
mtscan.c:279:4: warning: incompatible implicit declaration of built-in function 'bzero'
  279 |    bzero(&mtop, sizeof(mtop));
      |    ^~~~~
*** Error code 1

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

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