[Nagiosplug-help] Compiling NRPE on Solaris 10

kevin at roundsphere.com kevin at roundsphere.com
Wed Mar 12 22:47:19 CET 2008


I am having difficulty compiling the latest version of NRPE (2.12) on
Solaris 10.  I had to add the ssl library directives because configure
couldn't find them.  After that the configure completed successfully, but
now make dies.

$ ./configure --with-ssl=/usr/sfw/ --with-ssl-lib=/usr/sfw/lib/

## --------- ##
## Platform. ##
## --------- ##

hostname = solaris10temp
uname -m = i86pc
uname -r = 5.10
uname -s = SunOS
uname -v = Generic_127112-10

/usr/bin/uname -p = i386
/bin/uname -X     = System = SunOS
Node = solaris10temp
Release = 5.10
KernelID = Generic_127112-10
Machine = i86pc

When I run `make all` I get:

cd ./src/; make ; cd ..
gcc -g -O2 -I/usr/sfw//include/openssl -I/usr/sfw//include -DHAVE_CONFIG_H 
-c  snprintf.c
gcc -g -O2 -I/usr/sfw//include/openssl -I/usr/sfw//include -DHAVE_CONFIG_H
-o nrpe nrpe.c utils.c -L/usr/sfw/lib/  -lssl -lcrypto -lnsl -lsocket 
./snprintf.o 
nrpe.c: In function `get_log_facility':
nrpe.c:617: error: `LOG_AUTHPRIV' undeclared (first use in this function)
nrpe.c:617: error: (Each undeclared identifier is reported only once
nrpe.c:617: error: for each function it appears in.)
nrpe.c:619: error: `LOG_FTP' undeclared (first use in this function)
*** Error code 1
make: Fatal error: Command failed for target `nrpe'
Current working directory /usr/local/src/nrpe-2.12/src
*** Error code 1
make: Fatal error: Command failed for target `all'

I found a posting on this on the German forum, where the "fix" for it was
to comment out the offending code:

http://www.nagios-portal.de/wbb/index.php?page=Thread&threadID=8605

Since this error was also on Solaris 10 with NRPE 2.11, I wonder if this
was caused by the addition of --with-log-facility in 2.11?  I have also
found postings where people compiled NRPE successfully on Solaris 10 in Oct
2007, just before 2.11 was released.

Is there another compile time option I should be using or is it a bug? 
Should I be posting this to the nagiosplug-devel ML?

Thanks,

Kevin





More information about the Help mailing list