nrpe-2.5 and solaris 2.6
Gerhard Lausser
Gerhard.Lausser at consol.de
Fri Mar 24 12:57:24 CET 2006
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 SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
More information about the Developers
mailing list