Compiling on Solaris 8 OK.
Can the configure script find the problem ?
cd ./src/; make ; cd ..
make[1]: Entering directory `/home/brunken/nrpe/nrpe-
2.0/src'
gcc -g -O2 -DHAVE_CONFIG_H -o nrpe nrpe.c
utils.c -lnsl -lsocket
nrpe.c: In function
`wait_for_connections':
nrpe.c:520: error: `socklen_t' undeclared (first use in
this function)
nrpe.c:520: error: (Each undeclared identifier is
reported only once
nrpe.c:520: error: for each function it appears
in.)
nrpe.c:520: error: parse error
before "addrlen"
nrpe.c:619: error: `addrlen' undeclared (first use in
this function)
make[1]: *** [nrpe] Error
1
Read this for more info to modify the configure script.
http://www.net.princeton.edu/software/dhcpd/RELEASE_
NOTES.txt
"In PU patch 3, code for defining
CONFIG_SOCKARGLENTYPE based on whether
the type socklen_t was defined was added to
configure and config.h.in,
but was never added to configure.in. If
CONFIG_SOCKARGLENTYPE
was not defined, defs.h would typedef socklen_t to
an int.
Now the check for the socklen_t type is integrated in
configure.in;
if socklen_t is not defined, it is defined (by config.h)
as an
unsigned int."
Workaround:
Add the following Line in nrpe.c
#define socklen_t int