Solution: nrpe compile problem solaris 2.6

Mark Snyder Mark.Snyder at worldgaming.com
Tue Sep 9 18:44:13 CEST 2003


>  -----Original Message-----
> 
> Having problems compiling and running make all. 
> 	nrpe 		2.0b5
> 	openssl 	0.9.7b
> 	solaris 		2.6
> Can anyone shed some light on this problem?
> 
> make all
> cd ./src/; make ; cd ..
> make[1]: Entering directory `/usr/local/nrpe-2.0b5/src'
> gcc -g -O2 -I/usr/local/ssl/include -I/usr/local/ssl/include/openssl -DHAVE_CONFIG_H -L/usr/local/ssl/lib  -lssl -lcrypto -o nrpe -lnsl -lsocket nrpe.c utils.c
> 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)
> make[1]: *** [nrpe] Error 1
> make[1]: Leaving directory `/usr/local/nrpe-2.0b5/src'
> 
> *** Compile finished ***
> 
> 
	-------------------------- 


	To solve this problem I added the following line to config.h after running ./configuration

	#define socklen_t size_t


	Mark





-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
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