Page 1 of 1

Error Make Sunstudio12

Posted: Thu Sep 15, 2011 1:13 pm
by M4tth
Hi,

I've problem compiling Nagios 3.3.1 on Solaris 10 x86.

The ./configure command works fine but when I try to "make", the command return the following error:

Code: Select all

nagios@myhost:/appli/nagios/Nagios_Stuffs/nagios> make nagios
cd ./base && make
cc -Wall -g -DHAVE_CONFIG_H -DNSCORE  -c  broker.c
cc: -W option with unknown program all
*** Error code 1
make: Fatal error: Command failed for target `broker.o'
Current working directory /appli/nagios/Nagios_Stuffs/nagios/base
*** Error code 1
make: Fatal error: Command failed for target `nagios' 
I 've seen that the problem may come from the Sunstudio 12' s compiler which doesn't support the -W option.
I must use that compiler. Have you any clue about how to bypass that problem?