+ 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/hanterm-3.1.6nb6/work.log
+ su pbulk -c '"$@"' make /opt/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/hanterm-3.1.6nb6/work.log
=> Bootstrap dependency digest>=20211023: found digest-20220214
WARNING: [license.mk] Every package should define a LICENSE.
===> Building for hanterm-3.1.6nb6
rm -f main.o
gcc -c -pipe -O2 -msave-args -fno-aggressive-loop-optimizations  -I/opt/pkg/include -DNO_ASM     -I/opt/pkg/include    -Dsun -DSVR4 -D__EXTENSIONS__ -D__amd64      -DALLOWLOGFILEONOFF -DUTMP -DUSE_TTY_GROUP                    -DOSMAJORVERSION=5                   -DOSMINORVERSION=11 -DENV_HANGUL_KEYBOARD_TYPE main.c
main.c:144:16: error: redefinition of 'struct termios'
  144 | #define termio termios
      |                ^~~~~~~
In file included from /usr/include/termios.h:29,
                 from main.c:66:
/usr/include/sys/termios.h:88:8: note: originally defined here
   88 | struct termios {
      |        ^~~~~~~
main.c: In function 'main':
main.c:1192:27: warning: passing argument 1 of 'XtSetErrorHandler' makes '__attribute__((noreturn))' qualified function pointer from unqualified [-Wdiscarded-qualifiers]
 1192 |         XtSetErrorHandler(xt_error);
      |                           ^~~~~~~~
In file included from /home/pbulk/build/x11/hanterm/work/.buildlink/include/X11/IntrinsicP.h:51,
                 from ptyx.h:31,
                 from main.c:52:
/home/pbulk/build/x11/hanterm/work/.buildlink/include/X11/Intrinsic.h:1789:5: note: expected '__attribute__((noreturn)) void (*)(char *)' but argument is of type 'void (*)()'
 1789 |     XtErrorHandler      /* handler */ _X_NORETURN
main.c:1525:17: warning: implicit declaration of function 'Error'; did you mean 'xerror'? [-Wimplicit-function-declaration]
 1525 |                 Error();
      |                 ^~~~~
      |                 xerror
main.c:1558:13: warning: implicit declaration of function 'VTRun' [-Wimplicit-function-declaration]
 1558 |             VTRun();
      |             ^~~~~
main.c: In function 'spawn':
main.c:2017:29: warning: implicit declaration of function 'SysError'; did you mean 'HsSysError'? [-Wimplicit-function-declaration]
 2017 |                             SysError(ERROR_OPDEVTTY);
      |                             ^~~~~~~~
      |                             HsSysError
main.c:2089:9: warning: implicit declaration of function 'VTInit' [-Wimplicit-function-declaration]
 2089 |         VTInit();               /* realize now so know window size for tty driver */
      |         ^~~~~~
main.c: In function 'reapchild':
main.c:3333:13: warning: implicit declaration of function 'Cleanup' [-Wimplicit-function-declaration]
 3333 |             Cleanup (0);
      |             ^~~~~~~
*** [main.o] Error code 1

bmake: stopped in /home/pbulk/build/x11/hanterm/work/hanterm-3.1.6
1 error

bmake: stopped in /home/pbulk/build/x11/hanterm/work/hanterm-3.1.6
*** Error code 2

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

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