+ 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/moria-5.5.2nb6/work.log
+ su pbulk -c '"$@"' make /opt/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/moria-5.5.2nb6/work.log
=> Bootstrap dependency digest>=20211023: found digest-20220214
WARNING: [license.mk] Every package should define a LICENSE.
===> Building for moria-5.5.2nb6
cc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include/ncurses -Dunix -DLIBDIR=\"/opt/pkg/share/games/moria\" -DMORIA_TOP=\"/var/opt/pkg/games/moria.scores\" -c main.c
main.c:113:5: error: conflicting types for 'getuid'
  113 | int getuid(), getgid();
      |     ^~~~~~
In file included from config.h:21,
                 from main.c:63:
/usr/include/unistd.h:388:14: note: previous declaration of 'getuid' was here
  388 | extern uid_t getuid(void);
      |              ^~~~~~
main.c:113:15: error: conflicting types for 'getgid'
  113 | int getuid(), getgid();
      |               ^~~~~~
In file included from config.h:21,
                 from main.c:63:
/usr/include/unistd.h:338:14: note: previous declaration of 'getgid' was here
  338 | extern gid_t getgid(void);
      |              ^~~~~~
*** [main.o] Error code 1

bmake: stopped in /home/pbulk/build/games/moria/work/umoria
1 error

bmake: stopped in /home/pbulk/build/games/moria/work/umoria
*** Error code 2

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

Stop.
bmake: stopped in /data/jenkins/workspace/pkgsrc-upstream-bulktest/games/moria