[Nagios-devel] Problems building NRPE 2.12 on HPUX 11.23 PA-RISC

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Guest

[Nagios-devel] Problems building NRPE 2.12 on HPUX 11.23 PA-RISC

Post by Guest »


I had some difficulties building NRPE 2.12 on HPUX 11.23 PA-RISC which I
thought I'd enumerate here. I've managed to get around them (in
not-so-elegant ways), but I didn't want to be the only one who knew
about the issues.

Note that this is using /usr/bin/cc that comes with HPUX 11.23.

1) When running configure using the following:

./configure --prefix=3D/usr/local/nagios --enable-command-args
--with-ssl-lib=3D/usr/lib --with-ssl-inc=3D/usr --enable-ssl

I'll get:

checking for SSL headers... SSL headers found in /usr
checking for SSL libraries... configure: error: Cannot find ssl
libraries

config.log shows the following:

configure:6527: cc -c -g conftest.c >&5
cc: "conftest.c", line 63: warning 526: Pointer implicitly
converted to integral value in
assignment.
cc: "conftest.c", line 63: warning 563: Argument #3 is not the
correct type.
cc: "conftest.c", line 63: warning 526: Pointer implicitly
converted to integral value in
assignment.
cc: "conftest.c", line 63: warning 563: Argument #4 is not the
correct type.
configure:6533: $? =3D 0
configure:6537: test -z
|| test ! -s conftest.err
configure:6540: $? =3D 0
configure:6543: test -s conftest.o
configure:6546: $? =3D 0
configure:6551: result: size_t
configure:6627: checking for SSL headers
configure:6668: checking for SSL libraries
configure:6680: error: Cannot find ssl libraries


My craptacular workaround was to ignore the test and assume it worked.
Obviously, not a good long-term solution, but it got me past it.

Note that I have this same issue when building on HPUX 11.23 for
Itanium.

2) Next step. When doing a "make", I get:

$ make
cd ./src/; make ; cd ..
cc -g -I/usr/include/openssl -I/usr/include
-DHAVE_CONFIG_H -c ./snprintf.c
cc -g -I/usr/include/openssl -I/usr/include
-DHAVE_CONFIG_H -o nrpe nrpe.c utils.c -L/usr/freeware/lib/openssl
-lssl -lcrypto -lnsl -lwrap ./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:
*** Error exit code 1

Stop.
*** Error exit code 1

Stop.

Looks like the code around line 619 in src/nrpe.c assumes that because
we have syslog.h, that we must define LOG_AUTHPRIV and LOG_FTP (which
HPUX's does not, apparently). My workaround was to comment this chunk
of code out:

/* else if(!strcmp(varvalue,"authpriv"))
log_facility=3DLOG_AUTHPRIV;
else if(!strcmp(varvalue,"ftp"))
log_facility=3DLOG_FTP; */

At this point, it compiles, but with a warning:

cc -g -I/usr/include/openssl -I/usr/include -DHAVE_CONFIG_H -o
nrpe nrpe.c utils.c -L/usr/freeware/lib/openssl -lssl -lcrypto -lnsl
-lwrap ./snprintf.o
nrpe.c:
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.



I've built NRPE on HPUX (PA-RISC) this way in the past and it has seemed
to function perfectly and it's working fine now. I just thought I'd
share my experiences.

I'm sure there are clean/proper ways to handle this, but perhaps there
aren't a lot of people building on HPUX 11.23 and reporting their
experiences.

Thanks

Mark





This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
Locked