Hi,
i just tried to compile the cvs version of nrpe on a solaris 2.6 machine.
Here is what i had to modify:
in include/common.h
#define INET6_ADDRSTRLEN 46
extern const char *inet_ntop(int, const void *, char *, size_t);
in src/Makefile
SOCKETLIBS= -lnsl -lsocket -lresolv
This is needed by the DNS lookup code in the reintegrated is_an_allowed_host
subroutine. Solaris2.6 has no IPv6 support, so there is no such define of
INET6_ADDRSTRLEN. The function inet_ntop exists in Sol2.6, but it is hidden
in libresolv.so. That's why we need to add our own prototype and link with
libresolv.
I'm a bit busy, so i cannot deliver a patch (to configure.in i suggest)
before next week. So if someone is interested...
Greetings from Munich,
Gerhard
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]