Q: NRPE 2.0 compile problems Solaris 2.6

Voon, Ton Ton.Voon at egg.com
Tue Dec 2 16:29:56 CET 2003


Thomas,

The fix for this is to add:
 #define socklen_t int

in nrpe.c just after #define NASTY_METACHARS. It should be fixed in CVS.

Ton

> -----Original Message-----
> From: Thomas Löfstrand [mailto:thomas.lofstrand at gp.se] 
> Sent: Monday, December 01, 2003 11:10 PM
> To: nagios-users at lists.sourceforge.net
> Subject: [Nagios-users] Q: NRPE 2.0 compile problems Solaris 2.6
> 
> 
> Hi,
> 
> I'm having trouble compiling NRPE 2.0 on a Solaris 2.6 box.
> 
> I get this when I do: make all
> 
> 
> gpspux08(ksh)> make all
> cd ./src/; make ; cd ..
> gcc -g -O2 -I/opt/dist/pkg/sparc/5.6/openssl-0.9.7a/include/openssl 
> -I/opt/dist/pkg/sparc/5.6/openssl-0.9.7a/include 
> -DHAVE_CONFIG_H -o nrpe 
> nrpe.c utils.c -L/opt/dist/pkg/sparc/5.6/openssl-0.9.7a/lib  -lssl 
> -lcrypto -lnsl -lsocket
> nrpe.c: In function `wait_for_connections':
> nrpe.c:520: `socklen_t' undeclared (first use in this function)
> nrpe.c:520: (Each undeclared identifier is reported only once
> nrpe.c:520: for each function it appears in.)
> nrpe.c:520: parse error before `addrlen'
> nrpe.c:619: `addrlen' undeclared (first use in this function)
> *** Error code 1
> make: Fatal error: Command failed for target `nrpe'
> Current working directory 
> /opt/utils/development/other/nagios/5.6/nrpe-2.0/src
> *** Error code 1
> make: Fatal error: Command failed for target `all'
> 
> gpspux08(ksh)> 
> 
> Can anyone please help?
> 
> Regards,
> Thomas
> 
> 
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by: SF.net Giveback Program.
> Does SourceForge.net help you be more productive?  Does it
> help you create better code?  SHARE THE LOVE, and help us help
> YOU!  Click Here: http://sourceforge.net/donate/
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS 
> when reporting any issue. 
> ::: Messages without supporting info will risk being sent to /dev/null
> 


This private and confidential e-mail has been sent to you by Egg.
The Egg group of companies includes Egg Banking plc
(registered no. 2999842), Egg Financial Products Ltd (registered
no. 3319027) and Egg Investments Ltd (registered no. 3403963) which
carries out investment business on behalf of Egg and is regulated
by the Financial Services Authority.  
Registered in England and Wales. Registered offices: 1 Waterhouse Square,
138-142 Holborn, London EC1N 2NA.
If you are not the intended recipient of this e-mail and have
received it in error, please notify the sender by replying with
'received in error' as the subject and then delete it from your
mailbox.



-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list