+ case "${usergroup_phase}" in
+ local run_cmd
+ run_cmd=run_su
+ shift
+ run_su /usr/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/tcx-19940124/work.log
+ su pbulk -c '"$@"' make /usr/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/tcx-19940124/work.log
=> Bootstrap dependency digest>=20211023: found digest-20220214
WARNING: [license.mk] Every package should define a LICENSE.
===> Building for tcx-19940124
--- tcx ---
--- untcx ---
--- tcx ---
cc -pipe -O2 -o tcx tcx.c 
--- untcx ---
cc -pipe -O2 -o untcx untcx.c 
untcx.c: In function 'check_tcxd_mode':
untcx.c:418:2: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result]
  (void)write(lkfd, spid, strlen(spid));
  ^
--- tcx ---
/tmp/ccCQncKe.o: In function `main':
tcx.c:(.text.startup+0xd6): undefined reference to `strlcpy'
tcx.c:(.text.startup+0xfa): undefined reference to `strlcat'
tcx.c:(.text.startup+0x11c): undefined reference to `strlcat'
collect2: error: ld returned 1 exit status
*** [tcx] Error code 1

bmake: stopped in /home/pbulk/build/sysutils/tcx/work/tcx
--- untcx ---
In file included from /usr/include/fcntl.h:306:0,
                 from config.h:175,
                 from untcx.c:20:
In function 'open',
    inlined from 'untcx_and_exec_nfs' at untcx.c:912:5:
/usr/include/bits/fcntl2.h:50:24: error: call to '__open_missing_mode' declared with attribute error: open with O_CREAT or O_TMPFILE in second argument needs 3 arguments
    __open_missing_mode ();
                        ^
In function 'open',
    inlined from 'just_untcx' at untcx.c:1032:4:
/usr/include/bits/fcntl2.h:50:24: error: call to '__open_missing_mode' declared with attribute error: open with O_CREAT or O_TMPFILE in second argument needs 3 arguments
    __open_missing_mode ();
                        ^
*** [untcx] Error code 1

bmake: stopped in /home/pbulk/build/sysutils/tcx/work/tcx
2 errors

bmake: stopped in /home/pbulk/build/sysutils/tcx/work/tcx
*** Error code 2

Stop.
bmake[1]: stopped in /data/jenkins/workspace/pkgsrc-el7-trunk-x86_64/sysutils/tcx
*** Error code 1

Stop.
bmake: stopped in /data/jenkins/workspace/pkgsrc-el7-trunk-x86_64/sysutils/tcx