+ 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/xf86-input-keyboard-2.1.0/work.log
+ su pbulk -c '"$@"' make /opt/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/xf86-input-keyboard-2.1.0/work.log
===> Building for xf86-input-keyboard-2.1.0
/opt/pkg/bin/gmake  all-recursive
gmake[1]: Entering directory '/home/pbulk/build/x11/xf86-input-keyboard/work/xf86-input-keyboard-2.1.0'
Making all in src
gmake[2]: Entering directory '/home/pbulk/build/x11/xf86-input-keyboard/work/xf86-input-keyboard-2.1.0/src'
  CC       sun_kbd.lo
  CC       kbd.lo
  CC       sun_kbdMap.lo
In file included from /home/pbulk/build/x11/xf86-input-keyboard/work/.buildlink/include/xorg/xf86_OSlib.h:143,
                 from sun_kbd.c:55:
/usr/include/sys/fbio.h:263:35: error: 'NBBY' undeclared here (not in a function)
  263 |         unsigned int    wi_values[NBBY*sizeof (int)]; /* the attr values */
      |                                   ^~~~
sun_kbd.c: In function 'sunKbdSetLeds':
sun_kbd.c:76:17: error: implicit declaration of function 'ioctl' [-Werror=implicit-function-declaration]
   76 |     SYSCALL(i = ioctl(pInfo->fd, KIOCSLED, &setleds));
      |                 ^~~~~
/home/pbulk/build/x11/xf86-input-keyboard/work/.buildlink/include/xorg/xf86_OSlib.h:350:31: note: in definition of macro 'SYSCALL'
  350 | #define SYSCALL(call) while(((call) == -1) && (errno == EINTR))
      |                               ^~~~
sun_kbd.c:76:17: warning: nested extern declaration of 'ioctl' [-Wnested-externs]
   76 |     SYSCALL(i = ioctl(pInfo->fd, KIOCSLED, &setleds));
      |                 ^~~~~
/home/pbulk/build/x11/xf86-input-keyboard/work/.buildlink/include/xorg/xf86_OSlib.h:350:31: note: in definition of macro 'SYSCALL'
  350 | #define SYSCALL(call) while(((call) == -1) && (errno == EINTR))
      |                               ^~~~
cc1: some warnings being treated as errors
gmake[2]: *** [Makefile:503: sun_kbd.lo] Error 1
gmake[2]: *** Waiting for unfinished jobs....
gmake[2]: Leaving directory '/home/pbulk/build/x11/xf86-input-keyboard/work/xf86-input-keyboard-2.1.0/src'
gmake[1]: *** [Makefile:448: all-recursive] Error 1
gmake[1]: Leaving directory '/home/pbulk/build/x11/xf86-input-keyboard/work/xf86-input-keyboard-2.1.0'
gmake: *** [Makefile:380: all] Error 2
*** Error code 2

Stop.
bmake[1]: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/x11/xf86-input-keyboard
*** Error code 1

Stop.
bmake: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/x11/xf86-input-keyboard