+ 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/nagios-nsca-2.9.1nb10/work.log
+ su pbulk -c '"$@"' make /usr/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/nagios-nsca-2.9.1nb10/work.log
=> Bootstrap dependency digest>=20211023: found digest-20220214
WARNING: [license.mk] Every package should define a LICENSE.
===> Building for nagios-nsca-2.9.1nb10
cd ./src/; /bin/make all ; cd ..
make[1]: Entering directory '/home/pbulk/build/net/nagios-nsca/work/nsca-2.9.1/src'
cc -pipe -O2 -I/usr/pkg/include -DHAVE_LIBMCRYPT -I/usr/pkg/include -DHAVE_CONFIG_H -o nsca ./nsca.c ./netutils.c ./utils.c -Wl,-zrelro -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lmcrypt   
cc -pipe -O2 -I/usr/pkg/include -DHAVE_LIBMCRYPT -I/usr/pkg/include -DHAVE_CONFIG_H -o send_nsca ./send_nsca.c ./netutils.c ./utils.c -Wl,-zrelro -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lmcrypt  
./nsca.c: In function 'read_config_file':
./nsca.c:479:29: warning: implicit declaration of function 'asprintf'; did you mean 'vsprintf'? [-Wimplicit-function-declaration]
  479 |                             asprintf(&checkresult_test,"%s/nsca.test.%i",check_result_path,getpid());
      |                             ^~~~~~~~
      |                             vsprintf
./nsca.c: In function 'main':
./nsca.c:153:17: warning: ignoring return value of 'getcwd' declared with attribute 'warn_unused_result' [-Wunused-result]
  153 |                 getcwd(config_file,sizeof(config_file));
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./nsca.c: In function 'write_pid_file':
./nsca.c:1447:17: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result]
 1447 |                 write(fd,pbuf,strlen(pbuf));
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~
./nsca.c:1448:17: warning: ignoring return value of 'fchown' declared with attribute 'warn_unused_result' [-Wunused-result]
 1448 |                 fchown(fd,usr,grp);
      |                 ^~~~~~~~~~~~~~~~~~
In file included from /usr/include/fcntl.h:342,
                 from ./../include/config.h:134,
                 from ./../include/common.h:24,
                 from ./nsca.c:19:
In function 'open',
    inlined from 'read_config_file.constprop' at ./nsca.c:480:49:
/usr/include/bits/fcntl2.h:50:11: error: call to '__open_missing_mode' declared with attribute error: open with O_CREAT or O_TMPFILE in second argument needs 3 arguments
   50 |           __open_missing_mode ();
      |           ^~~~~~~~~~~~~~~~~~~~~~
make[1]: *** [Makefile:24: nsca] Error 1
make[1]: Leaving directory '/home/pbulk/build/net/nagios-nsca/work/nsca-2.9.1/src'

*** Compile finished ***

If the compile finished without any errors, you should
find client and server binaries in the src/ subdirectory.

Read the README file for more information on installing
the binaries, creating configuration files, and using
the server and client.