+ 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/mg-20240709/work.log
+ su pbulk -c '"$@"' make /opt/local/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/mg-20240709/work.log
===> Building for mg-20240709
Package libbsd-overlay was not found in the pkg-config search path.
Perhaps you should add the directory containing `libbsd-overlay.pc'
to the PKG_CONFIG_PATH environment variable
Package 'libbsd-overlay' not found
Package libbsd-overlay was not found in the pkg-config search path.
Perhaps you should add the directory containing `libbsd-overlay.pc'
to the PKG_CONFIG_PATH environment variable
Package 'libbsd-overlay' not found
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/local/include/ncurses -I/opt/local/include -I/usr/include -g -Wall -Wno-strict-aliasing -Wno-deprecated-declarations -DREGEX -D_GNU_SOURCE  -DHAVE_PTY_H -c autoexec.c
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/local/include/ncurses -I/opt/local/include -I/usr/include -g -Wall -Wno-strict-aliasing -Wno-deprecated-declarations -DREGEX -D_GNU_SOURCE  -DHAVE_PTY_H -c basic.c
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/local/include/ncurses -I/opt/local/include -I/usr/include -g -Wall -Wno-strict-aliasing -Wno-deprecated-declarations -DREGEX -D_GNU_SOURCE  -DHAVE_PTY_H -c bell.c
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/local/include/ncurses -I/opt/local/include -I/usr/include -g -Wall -Wno-strict-aliasing -Wno-deprecated-declarations -DREGEX -D_GNU_SOURCE  -DHAVE_PTY_H -c buffer.c
buffer.c: In function 'bnew':
buffer.c:615:9: warning: implicit declaration of function 'bzero' [-Wimplicit-function-declaration]
  615 |         bzero(&bp->b_fi, sizeof(bp->b_fi));
      |         ^~~~~
buffer.c:615:9: warning: incompatible implicit declaration of built-in function 'bzero' [-Wbuiltin-declaration-mismatch]
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/local/include/ncurses -I/opt/local/include -I/usr/include -g -Wall -Wno-strict-aliasing -Wno-deprecated-declarations -DREGEX -D_GNU_SOURCE  -DHAVE_PTY_H -c cinfo.c
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/local/include/ncurses -I/opt/local/include -I/usr/include -g -Wall -Wno-strict-aliasing -Wno-deprecated-declarations -DREGEX -D_GNU_SOURCE  -DHAVE_PTY_H -c dir.c
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/local/include/ncurses -I/opt/local/include -I/usr/include -g -Wall -Wno-strict-aliasing -Wno-deprecated-declarations -DREGEX -D_GNU_SOURCE  -DHAVE_PTY_H -c display.c
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/local/include/ncurses -I/opt/local/include -I/usr/include -g -Wall -Wno-strict-aliasing -Wno-deprecated-declarations -DREGEX -D_GNU_SOURCE  -DHAVE_PTY_H -c echo.c
display.c: In function 'ucopy':
display.c:653:9: warning: implicit declaration of function 'bcopy' [-Wimplicit-function-declaration]
  653 |         bcopy(vvp->v_text, pvp->v_text, ncol);
      |         ^~~~~
display.c:653:9: warning: incompatible implicit declaration of built-in function 'bcopy' [-Wbuiltin-declaration-mismatch]
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/local/include/ncurses -I/opt/local/include -I/usr/include -g -Wall -Wno-strict-aliasing -Wno-deprecated-declarations -DREGEX -D_GNU_SOURCE  -DHAVE_PTY_H -c extend.c
echo.c: In function 'veread':
echo.c:210:17: warning: implicit declaration of function 'bcopy' [-Wimplicit-function-declaration]
  210 |                 bcopy(maclcur->l_text, buf, maclcur->l_used);
      |                 ^~~~~
echo.c:210:17: warning: incompatible implicit declaration of built-in function 'bcopy' [-Wbuiltin-declaration-mismatch]
echo.c:397:33: warning: incompatible implicit declaration of built-in function 'bcopy' [-Wbuiltin-declaration-mismatch]
  397 |                                 bcopy(buf, lp->l_text, cpos);
      |                                 ^~~~~
extend.c: In function 'excline':
extend.c:752:25: warning: implicit declaration of function 'bcopy' [-Wimplicit-function-declaration]
  752 |                         bcopy(argp, ltext(lp), (int)(line - argp));
      |                         ^~~~~
extend.c:752:25: warning: incompatible implicit declaration of built-in function 'bcopy' [-Wbuiltin-declaration-mismatch]
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/local/include/ncurses -I/opt/local/include -I/usr/include -g -Wall -Wno-strict-aliasing -Wno-deprecated-declarations -DREGEX -D_GNU_SOURCE  -DHAVE_PTY_H -c file.c
file.c: In function 'insertfile':
file.c:387:25: warning: implicit declaration of function 'bcopy' [-Wimplicit-function-declaration]
  387 |                         bcopy(line, &ltext(lp1)[0], nbytes);
      |                         ^~~~~
file.c:387:25: warning: incompatible implicit declaration of built-in function 'bcopy' [-Wbuiltin-declaration-mismatch]
file.c: In function 'filewrite':
file.c:540:9: warning: implicit declaration of function 'bzero' [-Wimplicit-function-declaration]
  540 |         bzero(&curbp->b_fi, sizeof(curbp->b_fi));
      |         ^~~~~
file.c:540:9: warning: incompatible implicit declaration of built-in function 'bzero' [-Wbuiltin-declaration-mismatch]
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/local/include/ncurses -I/opt/local/include -I/usr/include -g -Wall -Wno-strict-aliasing -Wno-deprecated-declarations -DREGEX -D_GNU_SOURCE  -DHAVE_PTY_H -c fileio.c
fileio.c: In function 'make_file_list':
fileio.c:535:25: error: 'struct dirent' has no member named 'd_type'
  535 |                 if (dent->d_type == DT_DIR) {
      |                         ^~
fileio.c:535:37: error: 'DT_DIR' undeclared (first use in this function)
  535 |                 if (dent->d_type == DT_DIR) {
      |                                     ^~~~~~
fileio.c:535:37: note: each undeclared identifier is reported only once for each function it appears in
fileio.c:537:32: error: 'struct dirent' has no member named 'd_type'
  537 |                 } else if (dent->d_type == DT_LNK ||
      |                                ^~
fileio.c:537:44: error: 'DT_LNK' undeclared (first use in this function)
  537 |                 } else if (dent->d_type == DT_LNK ||
      |                                            ^~~~~~
fileio.c:538:33: error: 'struct dirent' has no member named 'd_type'
  538 |                             dent->d_type == DT_UNKNOWN) {
      |                                 ^~
fileio.c:538:45: error: 'DT_UNKNOWN' undeclared (first use in this function)
  538 |                             dent->d_type == DT_UNKNOWN) {
      |                                             ^~~~~~~~~~
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/local/include/ncurses -I/opt/local/include -I/usr/include -g -Wall -Wno-strict-aliasing -Wno-deprecated-declarations -DREGEX -D_GNU_SOURCE  -DHAVE_PTY_H -c funmap.c
gmake: *** [GNUmakefile:73: fileio.o] Error 1
gmake: *** Waiting for unfinished jobs....
*** Error code 2

Stop.
bmake[1]: stopped making "all" in /data/jenkins/workspace/pkgsrc-2024Q4-x86_64/editors/mg
*** Error code 1

Stop.
bmake: stopped making "all" in /data/jenkins/workspace/pkgsrc-2024Q4-x86_64/editors/mg