+ 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/tio-1.40/work.log
+ su pbulk -c '"$@"' make /opt/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/tio-1.40/work.log
=> Bootstrap dependency digest>=20211023: found digest-20220214
===> Building for tio-1.40
cd /home/pbulk/build/comms/tio/work/tio-1.40 && cd . && /usr/bin/env CMAKE=false USETOOLS=no CC=gcc CFLAGS=-pipe\ -fno-aggressive-loop-optimizations\ -pipe\ -fno-aggressive-loop-optimizations\ -D_FORTIFY_SOURCE=2\ -I/opt/pkg/include CPPFLAGS=-I/opt/pkg/include CXX=g++ CXXFLAGS=-pipe\ -fno-aggressive-loop-optimizations\ -pipe\ -fno-aggressive-loop-optimizations\ -D_FORTIFY_SOURCE=2\ -I/opt/pkg/include COMPILER_RPATH_FLAG=-Wl,-R F77=gfortran FC=gfortran FFLAGS=-O LANG=C LC_ALL=C LC_COLLATE=C LC_CTYPE=C LC_MESSAGES=C LC_MONETARY=C LC_NUMERIC=C LC_TIME=C LDFLAGS=-L/opt/pkg/lib\ -Wl,-R/opt/pkg/lib LINKER_RPATH_FLAG=-R PATH=/home/pbulk/build/comms/tio/work/.cwrapper/bin:/home/pbulk/build/comms/tio/work/.buildlink/bin:/home/pbulk/build/comms/tio/work/.gcc/bin:/home/pbulk/build/comms/tio/work/.tools/bin:/opt/pkg/bin:/sbin:/usr/sbin:/usr/bin:/opt/tools/bin:/opt/pkg/bin:/opt/pkg/bin PREFIX=/opt/pkg MAKELEVEL=0 CONFIG_SITE= PKG_SYSCONFDIR=/etc/opt/pkg CXXCPP=cpp HOME=/home/pbulk/build/comms/tio/work/.home CWRAPPERS_CONFIG_DIR=/home/pbulk/build/comms/tio/work/.cwrapper/config CPP=cpp LOCALBASE=/opt/pkg X11BASE=/opt/pkg PKGMANDIR=share/man PKGINFODIR=info PKGGNUDIR=gnu/ MAKECONF=/dev/null OBJECT_FMT=ELF USETOOLS=no BSD_INSTALL_PROGRAM=/opt/pkg/bin/bsdinstall\ -c\ -s\ -o\ pbulk\ -g\ pbulk\ -m\ 755 BSD_INSTALL_SCRIPT=/opt/pkg/bin/bsdinstall\ -c\ -o\ pbulk\ -g\ pbulk\ -m\ 755 BSD_INSTALL_LIB=/opt/pkg/bin/bsdinstall\ -c\ -o\ pbulk\ -g\ pbulk\ -m\ 755 BSD_INSTALL_DATA=/opt/pkg/bin/bsdinstall\ -c\ -o\ pbulk\ -g\ pbulk\ -m\ 644 BSD_INSTALL_MAN=/opt/pkg/bin/bsdinstall\ -c\ -o\ pbulk\ -g\ pbulk\ -m\ 644 BSD_INSTALL=/opt/pkg/bin/bsdinstall BSD_INSTALL_PROGRAM_DIR=/opt/pkg/bin/bsdinstall\ -d\ -o\ pbulk\ -g\ pbulk\ -m\ 755 BSD_INSTALL_SCRIPT_DIR=/opt/pkg/bin/bsdinstall\ -d\ -o\ pbulk\ -g\ pbulk\ -m\ 755 BSD_INSTALL_LIB_DIR=/opt/pkg/bin/bsdinstall\ -d\ -o\ pbulk\ -g\ pbulk\ -m\ 755 BSD_INSTALL_DATA_DIR=/opt/pkg/bin/bsdinstall\ -d\ -o\ pbulk\ -g\ pbulk\ -m\ 755 BSD_INSTALL_MAN_DIR=/opt/pkg/bin/bsdinstall\ -d\ -o\ pbulk\ -g\ pbulk\ -m\ 755 BSD_INSTALL_GAME=/opt/pkg/bin/bsdinstall\ -c\ -s\ -o\ pbulk\ -g\ pbulk\ -m\ 2555 BSD_INSTALL_GAME_DATA=/opt/pkg/bin/bsdinstall\ -c\ -o\ pbulk\ -g\ pbulk\ -m\ 664 BSD_INSTALL_GAME_DIR=/opt/pkg/bin/bsdinstall\ -d\ -o\ pbulk\ -g\ pbulk\ -m\ 775 INSTALL_INFO= MAKEINFO=/home/pbulk/build/comms/tio/work/.tools/bin/makeinfo FLEX= BISON= ITSTOOL=/home/pbulk/build/comms/tio/work/.tools/bin/itstool GDBUS_CODEGEN=/home/pbulk/build/comms/tio/work/.tools/bin/gdbus-codegen PKG_CONFIG=/home/pbulk/build/comms/tio/work/.tools/bin/pkg-config PKG_CONFIG_LIBDIR=/home/pbulk/build/comms/tio/work/.buildlink/lib/amd64/pkgconfig:/home/pbulk/build/comms/tio/work/.buildlink/lib/pkgconfig:/home/pbulk/build/comms/tio/work/.buildlink/share/pkgconfig PKG_CONFIG_LOG=/home/pbulk/build/comms/tio/work/.pkg-config.log PKG_CONFIG_PATH= CWRAPPERS_CONFIG_DIR=/home/pbulk/build/comms/tio/work/.cwrapper/config ninja -j 1 -C output
ninja: Entering directory `output'
[1/11] Compiling C object src/tio.p/error.c.o
[2/11] Compiling C object src/tio.p/log.c.o
[3/11] Compiling C object src/tio.p/main.c.o
[4/11] Compiling C object src/tio.p/options.c.o
[5/11] Compiling C object src/tio.p/misc.c.o
[6/11] Compiling C object src/tio.p/tty.c.o
../src/tty.c: In function 'tty_wait_for_device':
../src/tty.c:598:17: warning: implicit declaration of function 'MAX' [-Wimplicit-function-declaration]
  598 |         maxfd = MAX(STDIN_FILENO, socket_add_fds(&rdfs, false));
      |                 ^~~
[7/11] Compiling C object src/tio.p/print.c.o
[8/11] Compiling C object src/tio.p/configfile.c.o
[9/11] Compiling C object src/tio.p/signals.c.o
[10/11] Compiling C object src/tio.p/socket.c.o
../src/socket.c: In function 'socket_configure':
../src/socket.c:90:9: warning: implicit declaration of function 'strncmp' [-Wimplicit-function-declaration]
   90 |     if (strncmp(option.socket, "unix:", 5) == 0)
      |         ^~~~~~~
../src/socket.c:90:41: warning: 'strncmp' argument 3 type is 'int' where 'long unsigned int' is expected in a call to built-in function declared without prototype [-Wbuiltin-declaration-mismatch]
   90 |     if (strncmp(option.socket, "unix:", 5) == 0)
      |                                         ^
<built-in>: note: built-in 'strncmp' declared here
../src/socket.c:107:41: warning: 'strncmp' argument 3 type is 'int' where 'long unsigned int' is expected in a call to built-in function declared without prototype [-Wbuiltin-declaration-mismatch]
  107 |     if (strncmp(option.socket, "inet:", 5) == 0)
      |                                         ^
<built-in>: note: built-in 'strncmp' declared here
../src/socket.c:120:42: warning: 'strncmp' argument 3 type is 'int' where 'long unsigned int' is expected in a call to built-in function declared without prototype [-Wbuiltin-declaration-mismatch]
  120 |     if (strncmp(option.socket, "inet6:", 6) == 0)
      |                                          ^
<built-in>: note: built-in 'strncmp' declared here
../src/socket.c:145:13: warning: implicit declaration of function 'strncpy' [-Wimplicit-function-declaration]
  145 |             strncpy(sockaddr_unix.sun_path, socket_filename(), sizeof(sockaddr_unix.sun_path) - 1);
      |             ^~~~~~~
../src/socket.c:145:13: warning: incompatible implicit declaration of built-in function 'strncpy'
../src/socket.c:35:1: note: include '<string.h>' or provide a declaration of 'strncpy'
   34 | #include <unistd.h>
  +++ |+#include <string.h>
   35 | 
In file included from ../src/socket.c:25:
../src/socket.c:176:54: warning: implicit declaration of function 'strerror'; did you mean 'perror'? [-Wimplicit-function-declaration]
  176 |         error_printf("Failed to create socket (%s)", strerror(errno));
      |                                                      ^~~~~~~~
../src/print.h:89:39: note: in definition of macro 'error_printf'
   89 |   snprintf(error[0], 1000, format, ## args);
      |                                       ^~~~
../src/socket.c:176:22: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'int' [-Wformat=]
  176 |         error_printf("Failed to create socket (%s)", strerror(errno));
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  ~~~~~~~~~~~~~~~
      |                                                      |
      |                                                      int
../src/print.h:89:28: note: in definition of macro 'error_printf'
   89 |   snprintf(error[0], 1000, format, ## args);
      |                            ^~~~~~
../src/socket.c:176:49: note: format string is defined here
  176 |         error_printf("Failed to create socket (%s)", strerror(errno));
      |                                                ~^
      |                                                 |
      |                                                 char *
      |                                                %d
In file included from ../src/socket.c:25:
../src/socket.c:183:22: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'int' [-Wformat=]
  183 |         error_printf("Failed to bind to socket (%s)", strerror(errno));
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  ~~~~~~~~~~~~~~~
      |                                                       |
      |                                                       int
../src/print.h:89:28: note: in definition of macro 'error_printf'
   89 |   snprintf(error[0], 1000, format, ## args);
      |                            ^~~~~~
../src/socket.c:183:50: note: format string is defined here
  183 |         error_printf("Failed to bind to socket (%s)", strerror(errno));
      |                                                 ~^
      |                                                  |
      |                                                  char *
      |                                                 %d
In file included from ../src/socket.c:25:
../src/socket.c:190:22: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'int' [-Wformat=]
  190 |         error_printf("Failed to listen on socket (%s)", strerror(errno));
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  ~~~~~~~~~~~~~~~
      |                                                         |
      |                                                         int
../src/print.h:89:28: note: in definition of macro 'error_printf'
   89 |   snprintf(error[0], 1000, format, ## args);
      |                            ^~~~~~
../src/socket.c:190:52: note: format string is defined here
  190 |         error_printf("Failed to listen on socket (%s)", strerror(errno));
      |                                                   ~^
      |                                                    |
      |                                                    char *
      |                                                   %d
../src/socket.c:194:5: warning: implicit declaration of function 'memset' [-Wimplicit-function-declaration]
  194 |     memset(clientfds, -1, sizeof(clientfds));
      |     ^~~~~~
../src/socket.c:194:5: warning: incompatible implicit declaration of built-in function 'memset'
../src/socket.c:194:5: note: include '<string.h>' or provide a declaration of 'memset'
In file included from ../src/socket.c:25:
../src/socket.c: In function 'socket_write':
../src/socket.c:220:37: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'int' [-Wformat=]
  220 |                 error_printf_silent("Failed to write to socket (%s)", strerror(errno));
      |                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  ~~~~~~~~~~~~~~~
      |                                                                       |
      |                                                                       int
../src/print.h:92:28: note: in definition of macro 'error_printf_silent'
   92 |   snprintf(error[1], 1000, format, ## args);
      |                            ^~~~~~
../src/socket.c:220:66: note: format string is defined here
  220 |                 error_printf_silent("Failed to write to socket (%s)", strerror(errno));
      |                                                                 ~^
      |                                                                  |
      |                                                                  char *
      |                                                                 %d
../src/socket.c: In function 'socket_add_fds':
../src/socket.c:244:25: warning: implicit declaration of function 'MAX' [-Wimplicit-function-declaration]
  244 |                 maxfd = MAX(maxfd, clientfds[i]);
      |                         ^~~
In file included from ../src/socket.c:25:
../src/socket.c: In function 'socket_handle_input':
../src/socket.c:291:37: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'int' [-Wformat=]
  291 |                 error_printf_silent("Failed to read from socket (%s)", strerror(errno));
      |                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  ~~~~~~~~~~~~~~~
      |                                                                        |
      |                                                                        int
../src/print.h:92:28: note: in definition of macro 'error_printf_silent'
   92 |   snprintf(error[1], 1000, format, ## args);
      |                            ^~~~~~
../src/socket.c:291:67: note: format string is defined here
  291 |                 error_printf_silent("Failed to read from socket (%s)", strerror(errno));
      |                                                                  ~^
      |                                                                   |
      |                                                                   char *
      |                                                                  %d
[11/11] Linking target src/tio
FAILED: src/tio 
gcc  -o src/tio src/tio.p/error.c.o src/tio.p/log.c.o src/tio.p/main.c.o src/tio.p/options.c.o src/tio.p/misc.c.o src/tio.p/tty.c.o src/tio.p/print.c.o src/tio.p/configfile.c.o src/tio.p/signals.c.o src/tio.p/socket.c.o -L/opt/pkg/lib -I/opt/pkg/include -z defs -Wl,-R/opt/pkg/lib -pipe -fno-aggressive-loop-optimizations -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -Wl,-R/opt/pkg/lib -Wl,--start-group /opt/pkg/lib/libinih.so -Wl,--end-group
Undefined			first referenced
 symbol  			    in file
MAX                                 src/tio.p/tty.c.o
bind                                src/tio.p/socket.c.o
accept                              src/tio.p/socket.c.o
listen                              src/tio.p/socket.c.o
socket                              src/tio.p/socket.c.o
in6addr_any                         src/tio.p/socket.c.o
ld: fatal: symbol referencing errors. No output written to src/tio
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
*** Error code 1

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

Stop.
bmake: stopped in /data/jenkins/workspace/pkgsrc-upstream-trunk/comms/tio