Problems building NRPE 2.12 on HPUX 11.23 Itanium

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


As a followup/addendum to my previous message, I thought I'd add some
comments on issues I've had building NRPE 2.12 on HPUX 11.23 for
Itanium.

The issues are the same as with building NRPE 2.12 on HPUX 11.23 PA-RISC
with one notable exception.  I've had this issue since NRPE 2.6.

Assuming I've made the changes I referenced in my message regarding
building on 11.23 PA-RISC, I would then get the following after doing a
"make".


	$ make all
	        cd ./src/; make ; cd ..
	        cc -g -I/usr/include/openssl -I/usr/include
-DHAVE_CONFIG_H -c ./snprintf.c
	(Bundled) cc: warning 922: "-g" is unsupported in the bundled
compiler, ignored.
	        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
	(Bundled) cc: warning 922: "-g" is unsupported in the bundled
compiler, ignored.
	nrpe.c:
	Warning 942: "nrpe.c", line 852 # Types 'int *' and 'unsigned
long *' are not
	    assignment-compatible.
	
rc=getpeername(new_sd,&addr,&addrlen);
	
^
	utils.c:
	ld: (Warning) Unsatisfied symbol "rfc931_timeout" in file
/usr/lib/hpux32/libwrap.so
	1 warnings.
	        cc -g -I/usr/include/openssl -I/usr/include
-DHAVE_CONFIG_H -o check_nrpe check_nrpe.c utils.c
-L/usr/freeware/lib/openssl  -lssl -lcrypto -lnsl
	(Bundled) cc: warning 922: "-g" is unsupported in the bundled
compiler, ignored.
	check_nrpe.c:
	utils.c:

	*** Compile finished ***

(This particular Itanium box also has HP's gcc on it, but it still
chokes on the missing rfc931_timeout).

This missing "rfc931_timeout" caused me some frustration.  I could not
find it anywhere on this platform.

Ultimately, my workaround (again, somewhat clunky, but it works) was to
grab this function from the latest tcp_wrappers code I could find
(tcp_wrappers 7.6) and add it to this directory.  I now have an
'rfc931.c' in my nrpe-2.12/src directory.

I then modified src/Makefile (manually, after running 'configure') as
follows to get it to build:

	$ diff ../src.old/Makefile Makefile
	12c12
	< CFLAGS=-g -I/usr/include/openssl -I/usr/include
-DHAVE_CONFIG_H
	---
	> CFLAGS=-g -I/usr/include/openssl -I/usr/include
-DHAVE_CONFIG_H -DRFC931_TIMEOUT=10
	36,37c36,39
	< nrpe: nrpe.c utils.c $(SRC_INCLUDE)/nrpe.h
$(SRC_INCLUDE)/utils.h $(SRC_INCLUDE)/common.h $(SRC_INCLUDE)/config.h
$(SNPRINTF_O)
	<       $(CC) $(CFLAGS) -o $@ nrpe.c utils.c $(LDFLAGS)
$(SOCKETLIBS) $(LIBWRAPLIBS) $(SNPRINTF_O) $(OTHERLIBS)
	---
	> rfc931.o:
	>
	> nrpe: nrpe.c utils.c $(SRC_INCLUDE)/nrpe.h
$(SRC_INCLUDE)/utils.h $(SRC_INCLUDE)/common.h $(SRC_INCLUDE)/config.h
$(SNPRINTF_O) rfc931.o
	>       $(CC) $(CFLAGS) -o $@ nrpe.c utils.c $(LDFLAGS)
$(SOCKETLIBS) $(LIBWRAPLIBS) $(SNPRINTF_O) $(OTHERLIBS) rfc931.o

When compiling, I still get similar warnings as with PA-RISC:

	$ make
	        cd ./src/; make ; cd ..
	        cc -g -I/usr/include/openssl -I/usr/include
-DHAVE_CONFIG_H -DRFC931_TIMEOUT=10 -c ./snprintf.c
	(Bundled) cc: warning 922: "-g" is unsupported in the bundled
compiler, ignored.
	        cc -g -I/usr/include/openssl -I/usr/include
-DHAVE_CONFIG_H -DRFC931_TIMEOUT=10 -o nrpe nrpe.c utils.c
-L/usr/freeware/lib/openssl  -lssl -lcrypto -lnsl -lwrap ./snprintf.o
rfc931.o
	(Bundled) cc: warning 922: "-g" is unsupported in the bundled
compiler, ignored.
	nrpe.c:
	Warning 942: "nrpe.c", line 852 # Types 'int *' and 'unsigned
long *' are not
	    assignment-compatible.
	
rc=getpeername(new_sd,&addr,&addrlen);
	
^
	utils.c:
	        cc -g -I/usr/include/openssl -I/usr/include
-DHAVE_CONFIG_H -DRFC931_TIMEOUT=10 -o check_nrpe check_nrpe.c utils.c
-L/usr/freeware/lib/openssl  -lssl -lcrypto -lnsl
	(Bundled) cc: warning 922: "-g" is unsupported in the bundled
compiler, ignored.
	check_nrpe.c:
	utils.c:

	*** Compile finished ***


But the resulting nrpe binaries does work perfectly as far as I can see.
Wanted to pass this info along.

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