+ 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.2nb7/work.log
+ su pbulk -c '"$@"' make /opt/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/moria-5.5.2nb7/work.log
WARNING: [license.mk] Every package should define a LICENSE.
===> Building for moria-5.5.2nb7
--- main.o ---
--- misc1.o ---
--- misc2.o ---
--- misc3.o ---
--- main.o ---
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
--- misc1.o ---
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 misc1.c
--- misc2.o ---
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 misc2.c
--- misc3.o ---
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 misc3.c
--- misc4.o ---
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 misc4.c
--- store1.o ---
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 store1.c
--- files.o ---
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 files.c
--- io.o ---
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 io.c
--- create.o ---
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 create.c
--- io.o ---
io.c: In function 'suspend':
io.c:251:17: error: storage size of 'tbuf' isn't known
  251 |   struct sgttyb tbuf;
      |                 ^~~~
io.c:252:18: error: storage size of 'lcbuf' isn't known
  252 |   struct ltchars lcbuf;
      |                  ^~~~~
io.c:253:17: error: storage size of 'cbuf' isn't known
  253 |   struct tchars cbuf;
      |                 ^~~~
io.c:258:19: error: 'TIOCGETP' undeclared (first use in this function); did you mean 'LIOCGETP'?
  258 |   (void) ioctl(0, TIOCGETP, (char *)&tbuf);
      |                   ^~~~~~~~
      |                   LIOCGETP
io.c:258:19: note: each undeclared identifier is reported only once for each function it appears in
io.c:259:19: error: 'TIOCGETC' undeclared (first use in this function); did you mean 'DIOCGETC'?
  259 |   (void) ioctl(0, TIOCGETC, (char *)&cbuf);
      |                   ^~~~~~~~
      |                   DIOCGETC
io.c:260:19: error: 'TIOCGLTC' undeclared (first use in this function); did you mean 'DIOCGETC'?
  260 |   (void) ioctl(0, TIOCGLTC, (char *)&lcbuf);
      |                   ^~~~~~~~
      |                   DIOCGETC
io.c:267:19: error: 'TIOCSETP' undeclared (first use in this function); did you mean 'LIOCSETP'?
  267 |   (void) ioctl(0, TIOCSETP, (char *)&tbuf);
      |                   ^~~~~~~~
      |                   LIOCSETP
io.c:268:19: error: 'TIOCSETC' undeclared (first use in this function); did you mean 'LIOCSETP'?
  268 |   (void) ioctl(0, TIOCSETC, (char *)&cbuf);
      |                   ^~~~~~~~
      |                   LIOCSETP
io.c:269:19: error: 'TIOCSLTC' undeclared (first use in this function)
  269 |   (void) ioctl(0, TIOCSLTC, (char *)&lcbuf);
      |                   ^~~~~~~~
io.c: In function 'init_curses':
io.c:308:19: error: 'TIOCGLTC' undeclared (first use in this function); did you mean 'DIOCGETC'?
  308 |   (void) ioctl(0, TIOCGLTC, (char *)&save_special_chars);
      |                   ^~~~~~~~
      |                   DIOCGETC
io.c:309:19: error: 'TIOCGETP' undeclared (first use in this function); did you mean 'LIOCGETP'?
  309 |   (void) ioctl(0, TIOCGETP, (char *)&save_ttyb);
      |                   ^~~~~~~~
      |                   LIOCGETP
io.c:310:19: error: 'TIOCGETC' undeclared (first use in this function); did you mean 'DIOCGETC'?
  310 |   (void) ioctl(0, TIOCGETC, (char *)&save_tchars);
      |                   ^~~~~~~~
      |                   DIOCGETC
io.c:344:27: warning: passing argument 2 of 'signal' from incompatible pointer type [-Wincompatible-pointer-types]
  344 |   (void) signal (SIGTSTP, suspend);
      |                           ^~~~~~~
      |                           |
      |                           int (*)()
In file included from /usr/include/signal.h:42,
                 from io.c:82:
/usr/include/iso/signal_iso.h:63:27: note: expected 'void (*)(int)' but argument is of type 'int (*)()'
   63 | extern void (*signal(int, void (*)(int)))(int);
      |                           ^~~~~~~~~~~~~
io.c: In function 'moriaterm':
io.c:401:18: error: storage size of 'lbuf' isn't known
  401 |   struct ltchars lbuf;
      |                  ^~~~
io.c:402:17: error: storage size of 'buf' isn't known
  402 |   struct tchars buf;
      |                 ^~~
io.c:452:19: error: 'TIOCGLTC' undeclared (first use in this function); did you mean 'DIOCGETC'?
  452 |   (void) ioctl(0, TIOCGLTC, (char *)&lbuf);
      |                   ^~~~~~~~
      |                   DIOCGETC
io.c:459:19: error: 'TIOCSLTC' undeclared (first use in this function)
  459 |   (void) ioctl(0, TIOCSLTC, (char *)&lbuf);
      |                   ^~~~~~~~
io.c:461:20: error: 'TIOCGETC' undeclared (first use in this function); did you mean 'DIOCGETC'?
  461 |   (void) ioctl (0, TIOCGETC, (char *)&buf);
      |                    ^~~~~~~~
      |                    DIOCGETC
io.c:468:19: error: 'TIOCSETC' undeclared (first use in this function); did you mean 'LIOCSETP'?
  468 |   (void) ioctl(0, TIOCSETC, (char *)&buf);
      |                   ^~~~~~~~
      |                   LIOCSETP
io.c: In function 'restore_term':
io.c:568:19: error: 'TIOCSLTC' undeclared (first use in this function)
  568 |   (void) ioctl(0, TIOCSLTC, (char *)&save_special_chars);
      |                   ^~~~~~~~
io.c:569:19: error: 'TIOCSETP' undeclared (first use in this function); did you mean 'LIOCSETP'?
  569 |   (void) ioctl(0, TIOCSETP, (char *)&save_ttyb);
      |                   ^~~~~~~~
      |                   LIOCSETP
io.c:570:19: error: 'TIOCSETC' undeclared (first use in this function); did you mean 'LIOCSETP'?
  570 |   (void) ioctl(0, TIOCSETC, (char *)&save_tchars);
      |                   ^~~~~~~~
      |                   LIOCSETP
io.c: In function 'shell_out':
io.c:665:17: error: storage size of 'tbuf' isn't known
  665 |   struct sgttyb tbuf;
      |                 ^~~~
io.c:666:18: error: storage size of 'lcbuf' isn't known
  666 |   struct ltchars lcbuf;
      |                  ^~~~~
io.c:667:17: error: storage size of 'cbuf' isn't known
  667 |   struct tchars cbuf;
      |                 ^~~~
io.c:698:19: error: 'TIOCGETP' undeclared (first use in this function); did you mean 'LIOCGETP'?
  698 |   (void) ioctl(0, TIOCGETP, (char *)&tbuf);
      |                   ^~~~~~~~
      |                   LIOCGETP
io.c:699:19: error: 'TIOCGETC' undeclared (first use in this function); did you mean 'DIOCGETC'?
  699 |   (void) ioctl(0, TIOCGETC, (char *)&cbuf);
      |                   ^~~~~~~~
      |                   DIOCGETC
io.c:700:19: error: 'TIOCGLTC' undeclared (first use in this function); did you mean 'DIOCGETC'?
  700 |   (void) ioctl(0, TIOCGLTC, (char *)&lcbuf);
      |                   ^~~~~~~~
      |                   DIOCGETC
io.c:701:19: error: 'TIOCLGET' undeclared (first use in this function)
  701 |   (void) ioctl(0, TIOCLGET, (char *)&lbuf);
      |                   ^~~~~~~~
io.c:740:23: error: 'TIOCSLTC' undeclared (first use in this function)
  740 |       (void) ioctl(0, TIOCSLTC, (char *)&save_special_chars);
      |                       ^~~~~~~~
io.c:741:23: error: 'TIOCSETP' undeclared (first use in this function); did you mean 'LIOCSETP'?
  741 |       (void) ioctl(0, TIOCSETP, (char *)&save_ttyb);
      |                       ^~~~~~~~
      |                       LIOCSETP
io.c:742:23: error: 'TIOCSETC' undeclared (first use in this function); did you mean 'LIOCSETP'?
  742 |       (void) ioctl(0, TIOCSETC, (char *)&save_tchars);
      |                       ^~~~~~~~
      |                       LIOCSETP
io.c:743:23: error: 'TIOCLSET' undeclared (first use in this function)
  743 |       (void) ioctl(0, TIOCLSET, (char *)&save_local_chars);
      |                       ^~~~~~~~
io.c:772:15: warning: passing argument 1 of 'wait' from incompatible pointer type [-Wincompatible-pointer-types]
  772 |   (void) wait((union wait *) 0);
      |               ^~~~~~~~~~~~~~~~
      |               |
      |               union wait *
In file included from io.c:124:
/usr/include/sys/wait.h:98:19: note: expected 'int *' but argument is of type 'union wait *'
   98 | extern pid_t wait(int *);
      |                   ^~~~~
io.c: At top level:
io.c:217:23: error: storage size of 'save_special_chars' isn't known
  217 | static struct ltchars save_special_chars;
      |                       ^~~~~~~~~~~~~~~~~~
io.c:218:22: error: storage size of 'save_ttyb' isn't known
  218 | static struct sgttyb save_ttyb;
      |                      ^~~~~~~~~
io.c:219:22: error: storage size of 'save_tchars' isn't known
  219 | static struct tchars save_tchars;
      |                      ^~~~~~~~~~~
*** [io.o] Error code 1

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

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

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

Stop.
bmake: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/games/moria