+ 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/abduco-0.6/work.log
+ su pbulk -c '"$@"' make /opt/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/abduco-0.6/work.log
=> Bootstrap dependency digest>=20211023: found digest-20220214
===> Building for abduco-0.6
cleaning
abduco build options:
CFLAGS   = -pipe -fno-aggressive-loop-optimizations -pipe -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -std=c99 -pedantic -Wall -I. -DVERSION="0.6" -DNDEBUG -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=700
LDFLAGS  = -Wl,-R/opt/pkg/lib -lc -lutil
CC       = gcc
cp config.def.h config.h
CC abduco.c
In file included from abduco.c:59:
forkpty-sunos.c:29:68: warning: 'struct winsize' declared inside parameter list will not be visible outside of this definition or declaration
   29 | pid_t forkpty(int *master, char *name, struct termios *tio, struct winsize *ws)
      |                                                                    ^~~~~~~
forkpty-sunos.c: In function 'forkpty':
forkpty-sunos.c:45:3: warning: implicit declaration of function 'strlcpy'; did you mean 'strncpy'? [-Wimplicit-function-declaration]
   45 |   strlcpy(name, path, TTY_NAME_MAX);
      |   ^~~~~~~
      |   strncpy
forkpty-sunos.c:26:22: error: 'TTYNAME_MAX' undeclared (first use in this function); did you mean 'TTY_NAME_MAX'?
   26 | #define TTY_NAME_MAX TTYNAME_MAX
      |                      ^~~~~~~~~~~
forkpty-sunos.c:45:23: note: in expansion of macro 'TTY_NAME_MAX'
   45 |   strlcpy(name, path, TTY_NAME_MAX);
      |                       ^~~~~~~~~~~~
forkpty-sunos.c:26:22: note: each undeclared identifier is reported only once for each function it appears in
   26 | #define TTY_NAME_MAX TTYNAME_MAX
      |                      ^~~~~~~~~~~
forkpty-sunos.c:45:23: note: in expansion of macro 'TTY_NAME_MAX'
   45 |   strlcpy(name, path, TTY_NAME_MAX);
      |                       ^~~~~~~~~~~~
forkpty-sunos.c:68:20: error: 'TIOCSWINSZ' undeclared (first use in this function)
   68 |   if (ioctl(slave, TIOCSWINSZ, ws) == -1)
      |                    ^~~~~~~~~~
abduco.c: At top level:
abduco.c:78:18: error: field 'ws' has incomplete type
   78 |   struct winsize ws;
      |                  ^~
abduco.c:107:17: error: field 'winsize' has incomplete type
  107 |  struct winsize winsize;
      |                 ^~~~~~~
In file included from abduco.c:200:
client.c: In function 'client_setup_terminal':
client.c:43:16: error: 'VLNEXT' undeclared (first use in this function)
   43 |  cur_term.c_cc[VLNEXT] = _POSIX_VDISABLE;
      |                ^~~~~~
client.c: In function 'client_mainloop':
client.c:77:19: error: storage size of 'ws' isn't known
   77 |    struct winsize ws;
      |                   ^~
client.c:78:28: error: 'TIOCGWINSZ' undeclared (first use in this function)
   78 |    if (ioctl(STDIN_FILENO, TIOCGWINSZ, &ws) != -1) {
      |                            ^~~~~~~~~~
client.c:77:19: warning: unused variable 'ws' [-Wunused-variable]
   77 |    struct winsize ws;
      |                   ^~
In file included from abduco.c:201:
server.c: In function 'server_mainloop':
server.c:227:25: error: 'TIOCSWINSZ' undeclared (first use in this function)
  227 |       ioctl(server.pty, TIOCSWINSZ, &client_packet.u.ws);
      |                         ^~~~~~~~~~
abduco.c: In function 'list_session':
abduco.c:545:10: warning: implicit declaration of function 'scandir' [-Wimplicit-function-declaration]
  545 |  int n = scandir(sockaddr.sun_path, &namelist, session_filter, session_comparator);
      |          ^~~~~~~
abduco.c: In function 'main':
abduco.c:638:26: error: 'TIOCGWINSZ' undeclared (first use in this function)
  638 |  if (ioctl(STDIN_FILENO, TIOCGWINSZ, &server.winsize) == -1) {
      |                          ^~~~~~~~~~
*** [abduco.o] Error code 1

bmake: stopped in /home/pbulk/build/misc/abduco/work/abduco-0.6
1 error

bmake: stopped in /home/pbulk/build/misc/abduco/work/abduco-0.6
*** Error code 2

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

Stop.
bmake: stopped in /data/jenkins/workspace/pkgsrc-upstream-trunk/misc/abduco