Problems building NRPE 2.12 on HPUX 11.23 PA-RISC

Frost, Mark {PBG} mark.frost1 at pepsi.com
Wed Apr 2 17:24:21 CEST 2008


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=/usr/local/nagios --enable-command-args
--with-ssl-lib=/usr/lib --with-ssl-inc=/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: $? = 0
	configure:6537: test -z
	                         || test ! -s conftest.err
	configure:6540: $? = 0
	configure:6543: test -s conftest.o
	configure:6546: $? = 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=LOG_AUTHPRIV;
	        else if(!strcmp(varvalue,"ftp"))
	                log_facility=LOG_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

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace




More information about the Developers mailing list