+ 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/tf-4.0s1nb9/work.log
+ su pbulk -c '"$@"' make /opt/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/tf-4.0s1nb9/work.log
=> Bootstrap dependency digest>=20211023: found digest-20220214
WARNING: [license.mk] Every package should define a LICENSE.
===> Building for tf-4.0s1nb9
Configuring TinyFugue version 4.0 stable 1

TF binary will be installed as     /opt/pkg/bin/tf-40s1
    with a symbolic link:          /opt/pkg/bin/tf
Library, help, and utilities:      /opt/pkg/lib/tf-40s1-lib/
Default mail directory:            /usr/mail/
Man page will be installed in      /opt/pkg/share/man/man1/tf.1 in nroff format

To change these locations type "n" now and edit the unix/Config file.


Will compile with: gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -I/opt/pkg/include/ncurses
Preprocessor: cpp
Ah ha, gcc is GNU C gcc (GCC) 13.3.0
Copyright (C) 2023 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Right on, your system is POSIX.
Found <stdlib.h>.
Found <string.h>.
Found <memory.h>.
Found <sys/select.h>.
Found <locale.h>.
Found <netinet/in.h>.
Found <arpa/inet.h>.
Found <netdb.h>.
Found <pwd.h>.
Found <zlib.h>.
Found <stdarg.h>.
Testing for library symbols...
Found bcopy.
Found bsearch.
Found bzero.
Found connect.
Found fileno.
Found getcwd.
Did not find gethostbyname, but that's ok.
Found getpwnam.
Found gettimeofday.
Found getwd.
Did not find h_errno, but that's ok.
Did not find hstrerror, but that's ok.
Found index.
Found kill.
Found memcpy.
Found memset.
Found raise.
Found setlocale.
Found sigaction.
Found srand.
Found srandom.
Found strcasecmp.
Found strchr.
Did not find strcmpi, but that's ok.
Found strcspn.
Found strerror.
Found strftime.
Did not find stricmp, but that's ok.
Found strstr.
Found strtod.
Found strtol.
Found tzset.
Found waitpid.
Testing case conversion...
./tfconfig[645]: .//home/pbulk/build/net/tinyfugue/work/tf-40s1/unix/tfconfig.out: not found [No such file or directory]
Case conversion is broken, I'll have to use my own.
Testing type of signal handlers...
test.c:7:1: warning: return type defaults to 'int' [-Wimplicit-int]
    7 | main() { exit(0); }
      | ^~~~
Signal handlers return void, as they should.
Testing for time_t...
time() returns time_t, as it should.
Creating linker test...
Will link with -lnsl for gethostbyname().

WARNING:  Can't link with term library.

Will use hardcoded terminal codes: HARDCODE TERM_vt100
Will link with -lm math library.
Using <termios.h>.
cd ./src; { /opt/pkg/bin/bmake all 2>&1; echo; cat exitmsg; } |  { tee -a ../Build.log || cat; }
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/opt/pkg/include/ncurses -c command.c
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/opt/pkg/include/ncurses -c dstring.c
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/opt/pkg/include/ncurses -c expand.c
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/opt/pkg/include/ncurses -c expr.c
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/opt/pkg/include/ncurses -c help.c
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/opt/pkg/include/ncurses -c history.c
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/opt/pkg/include/ncurses -c keyboard.c
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/opt/pkg/include/ncurses -c macro.c
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/opt/pkg/include/ncurses -c main.c
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/opt/pkg/include/ncurses -c malloc.c
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/opt/pkg/include/ncurses -c mccp.c
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/opt/pkg/include/ncurses -c output.c
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/opt/pkg/include/ncurses -c process.c
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/opt/pkg/include/ncurses -c search.c
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/opt/pkg/include/ncurses -c signals.c
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/opt/pkg/include/ncurses -c socket.c
socket.c: In function 'sockidle':
socket.c:622:8: warning: type of 'dir' defaults to 'int' [-Wimplicit-int]
  622 | TIME_T sockidle(name, dir)
      |        ^~~~~~~~
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/opt/pkg/include/ncurses -c tfio.c
tfio.c: In function 'tfgetS':
tfio.c:719:9: warning: implicit declaration of function 'main_loop' [-Wimplicit-function-declaration]
  719 |         main_loop();
      |         ^~~~~~~~~
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/opt/pkg/include/ncurses -c tty.c
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/opt/pkg/include/ncurses -c util.c
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/opt/pkg/include/ncurses -c variable.c
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/opt/pkg/include/ncurses -c world.c
cd ./regexp;  make CC='gcc' CFLAGS='-O' O=o regexp.o >err 2>&1 ||  { cat err; rm err; exit 1; }
rm regexp/err
mv regexp/regexp.o .
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -I/opt/pkg/include/ncurses -lz -L/opt/pkg/lib -Wl,-R/opt/pkg/lib -lintl -liconv -o tf command.o dstring.o expand.o expr.o help.o history.o keyboard.o  macro.o main.o malloc.o mccp.o output.o process.o search.o signals.o  socket.o tfio.o tty.o util.o variable.o world.o  regexp.o  -lm -lnsl
Undefined			first referenced
 symbol  			    in file
recv                                socket.o
send                                socket.o
__xnet_connect                      socket.o
getservbyname                       socket.o
__xnet_socket                       socket.o
__xnet_getsockopt                   socket.o
ld: fatal: symbol referencing errors. No output written to tf
collect2: error: ld returned 1 exit status
*** Error code 1

Stop.
bmake[1]: stopped in /home/pbulk/build/net/tinyfugue/work/tf-40s1/src

cat: cannot open exitmsg: No such file or directory