Error Make Sunstudio12

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
M4tth
Posts: 1
Joined: Thu Sep 15, 2011 12:53 pm

Error Make Sunstudio12

Post 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?
Locked