[Nagiosplug-help] Failing to compile nrpe against OpenSSL on HP-UX

Thomas Guyot-Sionnest dermoth at aei.ca
Fri Aug 29 00:04:32 CEST 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 28/08/08 10:22 AM, Ralph.Grothe at itdz-berlin.de wrote:
> Hi Nagiosi,
> 
> I am desperately try to compile an nrpe with TLS/SSL support on one of our 
> PARISC2.0 HP-UX B.11.11 boxes.

Does it even compile without ssl? beside the configure bug, it looks
like your problem isn't SSL

> After that change the configure completed and I could run make where I am currently stuck here:
> 
> # make
> cd ./src/; /usr/local/bin/gmake ; cd ..
> gmake[1]: Entering directory `/usr/local/src/nrpe-2.12/src'
> /opt/ansic/bin/cc -g -I/opt/openssl/include/openssl -I/opt/openssl/include -DHAVE_CONFIG_H -o nrpe nrpe.c utils.c -L/opt/openssl/lib  -lssl -lcrypto -lnsl  ./snprintf.o 
> nrpe.c:
> cc: "nrpe.c", line 617: error 1588: "LOG_AUTHPRIV" undefined.
> cc: "nrpe.c", line 619: error 1588: "LOG_FTP" undefined.
> cc: "nrpe.c", line 852: warning 604: Pointers are not assignment-compatible.
> cc: "nrpe.c", line 852: warning 563: Argument #3 is not the correct type.
> utils.c:
> gmake[1]: *** [nrpe] Error 1
> gmake[1]: Leaving directory `/usr/local/src/nrpe-2.12/src'
> 
> [...]
> 
> This is the line with the incorrect type of 3rd arg function call:
> 
> # sed -n 852p src/nrpe.c
>                                 rc=getpeername(new_sd,&addr,&addrlen);
> 

The problem isn't the type (it's only a warning), it's two
syslog-related constants that aren't defined.

You might want to grep your system headers for "LOG_AUTHPRIV" and
"LOG_FTP" and add any missing include to nrpe.c. If you can't find them,
try searching for substitute LOG_ macros (make sure it's syslog-related)
and replace them in nrpe.c. Last resort would be removing everything
syslog-related from the source (you won't have logging).

- --
Thomas
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFItyDw6dZ+Kt5BchYRAgNcAJ9+2IgmtmdJ4LU+VsdLRKWsIcFOUQCfUtNB
YVyBh1RbOmC+YmxMOjM4uqs=
=cQI2
-----END PGP SIGNATURE-----




More information about the Help mailing list