+ 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.8.4.1/work.log
+ su pbulk -c '"$@"' make /opt/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/xst-0.8.4.1/work.log
=> Bootstrap dependency digest>=20211023: found digest-20220214
===> Building for xst-0.8.4.1
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 -I/opt/pkg/include/libpng16  -DVERSION="0.8.4" -D_XOPEN_SOURCE=600 -I/opt/pkg/include -I/opt/pkg/include/freetype2 -pipe -fno-aggressive-loop-optimizations -pipe -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -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
CC      = gcc
cp config.def.h config.h
gcc -I/opt/pkg/include  `pkg-config --cflags fontconfig`  `pkg-config --cflags freetype2` -DVERSION=\"0.8.4\" -D_XOPEN_SOURCE=600 -I/opt/pkg/include -I/opt/pkg/include/freetype2 -pipe -fno-aggressive-loop-optimizations -pipe -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -I/opt/pkg/include/freetype2 -c st.c
st.c: In function 'ttynew':
st.c:792:6: warning: implicit declaration of function 'openpty'; did you mean 'open'? [-Wimplicit-function-declaration]
  792 |  if (openpty(&m, &s, NULL, NULL, NULL) < 0)
      |      ^~~~~~~
      |      open
st.c:805:7: warning: implicit declaration of function 'ioctl' [-Wimplicit-function-declaration]
  805 |   if (ioctl(s, TIOCSCTTY, NULL) < 0)
      |       ^~~~~
st.c:805:16: error: 'TIOCSCTTY' undeclared (first use in this function)
  805 |   if (ioctl(s, TIOCSCTTY, NULL) < 0)
      |                ^~~~~~~~~
st.c:805:16: note: each undeclared identifier is reported only once for each function it appears in
st.c: In function 'ttyresize':
st.c:945:17: error: storage size of 'w' isn't known
  945 |  struct winsize w;
      |                 ^
st.c:951:19: error: 'TIOCSWINSZ' undeclared (first use in this function)
  951 |  if (ioctl(cmdfd, TIOCSWINSZ, &w) < 0)
      |                   ^~~~~~~~~~
*** Error code 1

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

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

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