We are currently planning to install the latest version of Nagios Core (v4.2.2) in one of our servers. However upon, executing make all command, we encountered the error below.
/applications/nagios>make all
cd ./base && make
cc -qlanglvl=extc89 -Wall -I.. -g -DHAVE_CONFIG_H -DNSCORE -c -o nagios.o nagios.c
cc: 1501-210 command option Wall contains an incorrect subargument
make: The error code from the last command is 40.
Stop.
make: The error code from the last command is 2.
Stop.
Would you kindly help us with this? Thanks in advance.