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

Stop.
bmake: stopped in /home/pbulk/build/x11/st-term/work/st-0.9
*** Error code 1

Stop.
bmake[1]: stopped in /data/jenkins/workspace/pkgsrc-2022Q4-x86_64/x11/st-term
*** Error code 1

Stop.
bmake: stopped in /data/jenkins/workspace/pkgsrc-2022Q4-x86_64/x11/st-term