Problem compiling nagios 2.3.1

Masopust, Christian christian.masopust at siemens.com
Tue May 16 21:59:56 CEST 2006


yes, simply include <limits.h> and it works.

christian

--
"I sense much NT in you, NT leads to Blue Screen. 
Blue Screen leads to downtime, downtime leads to suffering. NT is the path to the darkside." 

- Unknown Unix Jedi  

> -----Original Message-----
> From: nagios-devel-admin at lists.sourceforge.net 
> [mailto:nagios-devel-admin at lists.sourceforge.net] On Behalf 
> Of Ethan Galstad
> Sent: Tuesday, May 16, 2006 9:50 PM
> To: Nagios-Devel
> Subject: Re: [Nagios-devel] Problem compiling nagios 2.3.1
> 
> The configure script should find and include <sys/types.h> for 
> compilation.  Solaris has some definitions that only allow for this 
> header file to be used for compiling kernel stuff?  Nice.  
> Anyone have 
> an idea of how to get around this for Solaris?
> 
> Masopust, Christian wrote:
> > Same here for Solaris 8.  I found the declaration of INT_MAX
> > in /usr/include/sys/types.h but it's only enabled for compiling
> > kernel or kernel-modules...
> > 
> > which value to set INT_MAX??
> > 
> > christian
> > 
> > --
> > "I sense much NT in you, NT leads to Blue Screen. 
> > Blue Screen leads to downtime, downtime leads to suffering. 
> NT is the path to the darkside." 
> > 
> > - Unknown Unix Jedi  
> > 
> >> -----Original Message-----
> >> From: nagios-devel-admin at lists.sourceforge.net 
> >> [mailto:nagios-devel-admin at lists.sourceforge.net] On Behalf 
> >> Of Andrea Gabellini
> >> Sent: Tuesday, May 16, 2006 9:58 AM
> >> To: nagios-devel at lists.sourceforge.net
> >> Subject: [Nagios-devel] Problem compiling nagios 2.3.1
> >>
> >> Hi,
> >>
> >> I'm compiling nagios 2.3.1 but I get this error:
> >>
> >> make[1]: Entering directory `/temp/SERVER/nagios-2.3.1/cgi'
> >> gcc -g -O2  -fno-strict-aliasing -pipe -I/usr/local/include 
> >> -D_LARGEFILE_SOURCE 
> >> -D_FILE_OFFSET_BITS=64  
> >> -I/usr/local/lib/perl5/5.8.6/i86pc-solaris/CORE  
> >> -DHAVE_CONFIG_H -DNSCGI 
> >> -c -o getcgi.o getcgi.c
> >> getcgi.c: In function `getcgivars':
> >> getcgi.c:174: error: `INT_MAX' undeclared (first use in 
> this function)
> >> getcgi.c:174: error: (Each undeclared identifier is 
> reported only once
> >> getcgi.c:174: error: for each function it appears in.)
> >> make[1]: *** [getcgi.o] Error 1
> >> make[1]: Leaving directory `/temp/SERVER/nagios-2.3.1/cgi'
> >> make: *** [all] Error 2
> >>
> >> Looking the code the declaration of INT_MAX is missing.
> >>
> >> Andrea
> >>
> 
> 
> Ethan Galstad,
> Nagios Developer
> ---
> Email: nagios at nagios.org
> Website: http://www.nagios.org
> 
> 
> -------------------------------------------------------
> Using Tomcat but need to do more? Need to support web 
> services, security?
> Get stuff done quickly with pre-integrated technology to make 
> your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on 
> Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&
> dat=121642
> _______________________________________________
> Nagios-devel mailing list
> Nagios-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-devel
> 


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0709&bid&3057&dat1642




More information about the Developers mailing list