+ 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/xst-0.9.0nb1/work.log
+ su pbulk -c '"$@"' make /opt/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/xst-0.9.0nb1/work.log
=> Bootstrap dependency digest>=20211023: found digest-20220214
===> Building for xst-0.9.0nb1
st build options:
CFLAGS  = -I/opt/pkg/include  -I/opt/pkg/include -I/opt/pkg/include/freetype2 -I/opt/pkg/include/libpng16  -I/opt/pkg/include/freetype2 -I/opt/pkg/include/libpng16 -I/opt/pkg/include -DVERSION="0.9" -D_XOPEN_SOURCE=600 -I/opt/pkg/include -I/opt/pkg/include/freetype2 -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -I/opt/pkg/include/freetype2
LDFLAGS = -L/opt/pkg/lib -lm -lrt -lX11 -lutil -lXft -lXrender -Wl,-R/opt/pkg/lib -L/opt/pkg/lib -lfontconfig -lfreetype  -L/opt/pkg/lib -lfreetype -L/opt/pkg/lib -Wl,-R/opt/pkg/lib -lintl -liconv
CC      = gcc
cp config.def.h config.h
gcc -I/opt/pkg/include  `pkg-config --cflags fontconfig`  `pkg-config --cflags freetype2` -DVERSION=\"0.9\" -D_XOPEN_SOURCE=600 -I/opt/pkg/include -I/opt/pkg/include/freetype2 -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -I/opt/pkg/include/freetype2 -c st.c
st.c: In function 'ttynew':
st.c:795:13: warning: implicit declaration of function 'openpty'; did you mean 'open'? [-Wimplicit-function-declaration]
  795 |         if (openpty(&m, &s, NULL, NULL, NULL) < 0)
      |             ^~~~~~~
      |             open
st.c:809:21: warning: implicit declaration of function 'ioctl' [-Wimplicit-function-declaration]
  809 |                 if (ioctl(s, TIOCSCTTY, NULL) < 0)
      |                     ^~~~~
st.c:809:30: error: 'TIOCSCTTY' undeclared (first use in this function)
  809 |                 if (ioctl(s, TIOCSCTTY, NULL) < 0)
      |                              ^~~~~~~~~
st.c:809:30: note: each undeclared identifier is reported only once for each function it appears in
st.c: In function 'ttyresize':
st.c:949:24: error: storage size of 'w' isn't known
  949 |         struct winsize w;
      |                        ^
st.c:955:26: error: 'TIOCSWINSZ' undeclared (first use in this function)
  955 |         if (ioctl(cmdfd, TIOCSWINSZ, &w) < 0)
      |                          ^~~~~~~~~~
*** Error code 1

Stop.
bmake: stopped in /home/pbulk/build/x11/xst/work/xst-0.9.0
*** Error code 1

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

Stop.
bmake: stopped in /data/jenkins/workspace/pkgsrc-upstream-bulktest/x11/xst