+ 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/; /usr/pkg/bin/gmake all ; cd .. gmake[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] asprintf(&checkresult_test,"%s/nsca.test.%i",check_result_path,getpid()); ^~~~~~~~ vsprintf ./nsca.c: In function 'main': ./nsca.c:153:3: warning: ignoring return value of 'getcwd', declared with attribute warn_unused_result [-Wunused-result] getcwd(config_file,sizeof(config_file)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./nsca.c: In function 'write_pid_file': ./nsca.c:1447:3: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] write(fd,pbuf,strlen(pbuf)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ./nsca.c:1448:3: warning: ignoring return value of 'fchown', declared with attribute warn_unused_result [-Wunused-result] fchown(fd,usr,grp); ^~~~~~~~~~~~~~~~~~ In file included from /usr/include/fcntl.h:328, 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:4: 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 (); ^~~~~~~~~~~~~~~~~~~~~~ gmake[1]: *** [Makefile:24: nsca] Error 1 gmake[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.