+ 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/dvtm-0.15/work.log
+ su pbulk -c '"$@"' make /opt/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/dvtm-0.15/work.log
=> Bootstrap dependency digest>=20211023: found digest-20220214
===> Building for dvtm-0.15
cleaning
dvtm build options:
CFLAGS   = -pipe -fno-aggressive-loop-optimizations -pipe -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -I/opt/pkg/include/ncurses -std=c99 -I. -DVERSION="0.15" -DNDEBUG -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=700 -D_XOPEN_SOURCE_EXTENDED
LDFLAGS  = -L/opt/pkg/lib -Wl,-R/opt/pkg/lib -lc -lutil -lcurses
CC       = gcc
cp config.def.h config.h
CC dvtm.c
dvtm.c: In function 'resize_screen':
dvtm.c:734:17: error: storage size of 'ws' isn't known
  734 |  struct winsize ws;
      |                 ^~
dvtm.c:736:6: warning: implicit declaration of function 'ioctl' [-Wimplicit-function-declaration]
  736 |  if (ioctl(0, TIOCGWINSZ, &ws) == -1) {
      |      ^~~~~
dvtm.c:736:15: error: 'TIOCGWINSZ' undeclared (first use in this function)
  736 |  if (ioctl(0, TIOCGWINSZ, &ws) == -1) {
      |               ^~~~~~~~~~
dvtm.c:736:15: note: each undeclared identifier is reported only once for each function it appears in
dvtm.c: In function 'parse_args':
dvtm.c:1705:5: warning: implicit declaration of function 'setenv'; did you mean 'getenv'? [-Wimplicit-function-declaration]
 1705 |     setenv("DVTM_CMD_FIFO", fifo, 1);
      |     ^~~~~~
      |     getenv
dvtm.c: In function 'main':
dvtm.c:1772:7: warning: implicit declaration of function 'pselect'; did you mean 'select'? [-Wimplicit-function-declaration]
 1772 |   r = pselect(nfds + 1, &rd, NULL, NULL, NULL, &emptyset);
      |       ^~~~~~~
      |       select
*** [dvtm.o] Error code 1

bmake: stopped in /home/pbulk/build/misc/dvtm/work/dvtm-0.15
1 error

bmake: stopped in /home/pbulk/build/misc/dvtm/work/dvtm-0.15
*** Error code 2

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

Stop.
bmake: stopped in /data/jenkins/workspace/pkgsrc-upstream-trunk/misc/dvtm