Thanks,
Barry
=========================================================================================================
Code: Select all
# gcc --version
gcc (GCC) 4.7.1
OpenSSL version 0.9.8
nrpe-2.14
# uname -a
HP-UX server_name B.11.31 U ia64 4028668401 unlimited-user license
==========================================================================================================
PATH="$(cat /etc/PATH):/usr/local/bin" ./configure --prefix=/opt/nagios --oldincludedir=/usr/include --disable-ssl --enable-command-args --with-ssl-lib=/opt/openssl/lib/hpux32 --with-ssl-inc=/opt/openssl/include
checking for a BSD-compatible install... ./install-sh -c
checking build system type... ia64-hp-hpux11.31
checking host system type... ia64-hp-hpux11.31
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... unsupported
checking whether make sets $(MAKE)... yes
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking whether time.h and sys/time.h may both be included... no
checking for sys/wait.h that is POSIX.1 compatible... yes
checking for sys/types.h... yes
checking for sys/stat.h... no
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... no
checking for stdint.h... yes
checking for unistd.h... yes
checking ctype.h usability... yes
checking ctype.h presence... yes
checking for ctype.h... yes
checking dirent.h usability... yes
checking dirent.h presence... yes
checking for dirent.h... yes
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking getopt.h usability... no
checking getopt.h presence... no
checking for getopt.h... no
checking grp.h usability... yes
checking grp.h presence... yes
checking for grp.h... yes
checking for inttypes.h... (cached) no
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking pwd.h usability... yes
checking pwd.h presence... yes
checking for pwd.h... yes
checking signal.h usability... yes
checking signal.h presence... yes
checking for signal.h... yes
checking for stdint.h... (cached) yes
checking for strings.h... (cached) yes
checking for string.h... (cached) yes
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking tcpd.h usability... yes
checking tcpd.h presence... yes
checking for tcpd.h... yes
checking for unistd.h... (cached) yes
checking arpa/inet.h usability... no
checking arpa/inet.h presence... yes
configure: WARNING: arpa/inet.h: present but cannot be compiled
configure: WARNING: arpa/inet.h: check for missing prerequisite headers?
configure: WARNING: arpa/inet.h: see the Autoconf documentation
configure: WARNING: arpa/inet.h: section "Present But Cannot Be Compiled"
configure: WARNING: arpa/inet.h: proceeding with the preprocessor's result
configure: WARNING: arpa/inet.h: in the future, the compiler will take precedence
configure: WARNING: ## ------------------------------------------------- ##
configure: WARNING: ## Report this to nagios-users@lists.sourceforge.net ##
configure: WARNING: ## ------------------------------------------------- ##
checking for arpa/inet.h... yes
checking netinet/in.h usability... no
checking netinet/in.h presence... yes
configure: WARNING: netinet/in.h: present but cannot be compiled
configure: WARNING: netinet/in.h: check for missing prerequisite headers?
configure: WARNING: netinet/in.h: see the Autoconf documentation
configure: WARNING: netinet/in.h: section "Present But Cannot Be Compiled"
configure: WARNING: netinet/in.h: proceeding with the preprocessor's result
configure: WARNING: netinet/in.h: in the future, the compiler will take precedence
configure: WARNING: ## ------------------------------------------------- ##
configure: WARNING: ## Report this to nagios-users@lists.sourceforge.net ##
configure: WARNING: ## ------------------------------------------------- ##
checking for netinet/in.h... yes
checking socket.h usability... no
checking socket.h presence... no
checking for socket.h... no
checking for sys/types.h... (cached) yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking sys/resource.h usability... yes
checking sys/resource.h presence... yes
checking for sys/resource.h... yes
checking for sys/wait.h... (cached) yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking for sys/stat.h... (cached) no
checking for an ANSI C-conforming const... yes
checking whether struct tm is in sys/time.h or time.h... sys/time.h
checking for mode_t... yes
checking for pid_t... yes
checking for size_t... yes
checking return type of signal handlers... void
checking for uid_t in sys/types.h... yes
checking type of array argument to getgroups... gid_t
checking size of int... 4
checking size of short... 2
checking size of long... 4
checking for uint32_t... yes
checking for u_int32_t... no
checking for int32_t... yes
checking for va_copy... yes
checking for vsnprintf... yes
checking for snprintf... yes
checking for asprintf... no
checking for vasprintf... no
checking for C99 vsnprintf... no
checking for getopt_long... no
checking for getopt_long in -liberty... yes
checking for main in -lnsl... yes
checking for socket in -lsocket... no
checking for main in -lwrap... yes
checking for strdup... yes
checking for strstr... yes
checking for strtoul... yes
checking for initgroups... yes
checking for closesocket... no
checking for socklen_t... yes
checking for type of socket size... size_t
uname: illegal option -- p
usage: uname [-amnrsvil] [-S nodename]
checking for perl... /usr/bin/perl
configure: creating ./config.status
config.status: creating Makefile
config.status: creating subst
config.status: creating src/Makefile
config.status: creating package/solaris/Makefile
config.status: creating init-script
config.status: creating init-script.debian
config.status: creating init-script.suse
config.status: creating nrpe.spec
config.status: creating sample-config/nrpe.cfg
config.status: creating sample-config/nrpe.xinetd
config.status: creating include/config.h
config.status: include/config.h is unchanged
*** Configuration summary for nrpe 2.14 12-21-2012 ***:
General Options:
-------------------------
NRPE port: 5666
NRPE user: nagios
NRPE group: nagios
Nagios user: nagios
Nagios group: nagios
Review the options above for accuracy. If they look okay,
type 'make all' to compile the NRPE daemon and client.
================================================================================================================================
# make all
cd ./src/; make ; cd ..
gcc -g -O2 -DHAVE_CONFIG_H -I ../include -I ./../include -o nrpe ./nrpe.c ./utils.c ./acl.c -lnsl -lwrap ./snprintf.o -liberty
./nrpe.c:60:2: error: unknown type name 'SSL'
./nrpe.c:100:29: error: unknown type name 'SSL'
./nrpe.c: In function 'read_config_dir':
./nrpe.c:626:14: error: storage size of 'buf' isn't known
./nrpe.c: In function 'wait_for_connections':
./nrpe.c:951:5: warning: passing argument 3 of 'getpeername' from incompatible pointer type [enabled by default]
In file included from ../include/config.h:187:0,
from ./nrpe.c:27:
/opt/hp-gcc-4.7.1/bin/../lib/gcc/ia64-hp-hpux11.23/4.7.1/include-fixed/sys/socket.h:746:15: note: expected 'int *' but argument is of
type 'socklen_t *'
./nrpe.c: At top level:
./nrpe.c:1681:29: error: unknown type name 'SSL'
./acl.c: In function 'parse_allowed_hosts':
./acl.c:418:6: warning: assignment makes pointer from integer without a cast [enabled by default]
./acl.c:428:7: warning: assignment makes pointer from integer without a cast [enabled by default]
*** Error exit code 1
Stop.
*** Error exit code 1
Stop.
Stop.
==============================================================================================================