我正在尝试使用Cygwin在Windows机器(Windows Server 2012 R2)上安装Nagios,但是尝试从终端中的nagios文件夹编译make all命令时,我总是收到错误消息。有人知道这个错误是什么意思吗?
$make all
cd ./base && make
make[1]: Entering directory '/nagios-4.4.2/base'
gcc -Wall -I.. -g -02 -DCYGWIN -DHAVE_CONFIG_H -DNSCORE -c -o utils.o util.c
utils.c: In function 'setup_sighandler':
utils.c:1639:24: error: 'SA_NOCLD_WAIT' undeclared <first use in this function>;
did you mean 'SA_NOCLDSTOP'?
sig_action.sa_flags = SA_NOCLDWAIT;
SA_NOCDLSTOP
utils.c:1639:24: note: each undeclared identifier is reported only once for each function
it appears in
make[1]: *** [<builtin>: utils.o] Error 1
make[1]: Leaving directory '/nagios-4.4.2/base'
make: *** [Makefile:88: all] Error 2