Compile NRPE 2.14 on HP-UX 11.31 IA64 server

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
BWAlder
Posts: 5
Joined: Fri Aug 16, 2013 3:13 pm

Compile NRPE 2.14 on HP-UX 11.31 IA64 server

Post by BWAlder »

Can anyone provide me with some help on compiling NRPE 2.14 on an HP-UX 11.31 IA64 server? I've checked the web and followed the suggestions offered by 'Cyrus doing tye blog thing' and the build notes from MyOxide, but am having some compile errors not shown anywhere else. The details are shown below.

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.

==============================================================================================================
User avatar
lmiltchev
Former Nagios Staff
Posts: 13587
Joined: Mon May 23, 2011 12:15 pm

Re: Compile NRPE 2.14 on HP-UX 11.31 IA64 server

Post by lmiltchev »

What happens if you try to compile with ssl?
./configure --prefix=/opt/nagios --oldincludedir=/usr/include --enable-ssl --enable-command-args --with-ssl-lib=/opt/openssl/lib/hpux32 --with-ssl-inc=/opt/openssl/include
Be sure to check out our Knowledgebase for helpful articles and solutions!
BWAlder
Posts: 5
Joined: Fri Aug 16, 2013 3:13 pm

Re: Compile NRPE 2.14 on HP-UX 11.31 IA64 server

Post by BWAlder »

Sorry. Ignore previous post. When I use the '--enabkle-ssl' I get the following.

Code: Select all

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
checking for SSL headers... SSL headers found in /opt/openssl/include/..
checking for SSL libraries... ./configure[7517]: ==: A test command parameter is not valid.
SSL libraries found in /opt/openssl/lib/hpux32

*** Generating DH Parameters for SSL/TLS ***
Generating DH parameters, 512 bit long safe prime, generator 2
This is going to take a long time
.......++*++*++*++*++*++*
unable to write 'random state'
checking for Kerberos include files... could not find include files
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 -I/opt/openssl/include/openssl -DHAVE_CONFIG_H -I ../include -I ./../include -o nrpe ./nrpe.c ./utils.c ./acl.c -L/opt/openssl/lib/hpux32  -lssl -lcrypto -lnsl -lwrap ./snprintf.o -liberty
In file included from /usr/include/time.h:12:0,
                 from /usr/include/openssl/asn1.h:62,
                 from /opt/openssl/include/openssl/rsa.h:62,
                 from ../include/config.h:240,
                 from ./nrpe.c:27:
/usr/include/sys/_time.h:56:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'extern'
In file included from /usr/include/time.h:12:0,
                 from /usr/include/openssl/asn1.h:62,
                 from /opt/openssl/include/openssl/rsa.h:62,
                 from ../include/config.h:240,
                 from ./nrpe.c:27:
/usr/include/sys/_time.h:173:19: error: expected ')' before 'int'
/usr/include/sys/_time.h:178:1: error: unknown type name '_END_EXT_CDECL'
In file included from /usr/include/openssl/asn1.h:62:0,
                 from /opt/openssl/include/openssl/rsa.h:62,
                 from ../include/config.h:240,
                 from ./nrpe.c:27:
/usr/include/time.h:59:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'extern'
In file included from /usr/include/openssl/bio.h:67:0,
                 from /usr/include/openssl/asn1.h:65,
                 from /opt/openssl/include/openssl/rsa.h:62,
                 from ../include/config.h:240,
                 from ./nrpe.c:27:
/opt/hp-gcc-4.7.1/bin/../lib/gcc/ia64-hp-hpux11.23/4.7.1/include/stdarg.h:102:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'typedef'
In file included from /usr/include/openssl/asn1.h:65:0,
                 from /opt/openssl/include/openssl/rsa.h:62,
                 from ../include/config.h:240,
                 from ./nrpe.c:27:
/usr/include/openssl/bio.h:697:47: error: unknown type name 'va_list'
/usr/include/openssl/bio.h:701:60: error: unknown type name 'va_list'
./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 *'
In file included from /usr/include/time.h:12:0,
                 from /usr/include/openssl/asn1.h:62,
                 from /opt/openssl/include/openssl/rsa.h:62,
                 from ./../include/config.h:240,
                 from ./../include/common.h:24,
                 from ./utils.c:32:
/usr/include/sys/_time.h:56:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'extern'
In file included from /usr/include/time.h:12:0,
                 from /usr/include/openssl/asn1.h:62,
                 from /opt/openssl/include/openssl/rsa.h:62,
                 from ./../include/config.h:240,
                 from ./../include/common.h:24,
                 from ./utils.c:32:
/usr/include/sys/_time.h:173:19: error: expected ')' before 'int'
/usr/include/sys/_time.h:178:1: error: unknown type name '_END_EXT_CDECL'
In file included from /usr/include/openssl/asn1.h:62:0,
                 from /opt/openssl/include/openssl/rsa.h:62,
                 from ./../include/config.h:240,
                 from ./../include/common.h:24,
                 from ./utils.c:32:
/usr/include/time.h:59:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'extern'
In file included from /usr/include/openssl/bio.h:67:0,
                 from /usr/include/openssl/asn1.h:65,
                 from /opt/openssl/include/openssl/rsa.h:62,
                 from ./../include/config.h:240,
                 from ./../include/common.h:24,
                 from ./utils.c:32:
/opt/hp-gcc-4.7.1/bin/../lib/gcc/ia64-hp-hpux11.23/4.7.1/include/stdarg.h:102:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'typedef'
In file included from /usr/include/openssl/asn1.h:65:0,
                 from /opt/openssl/include/openssl/rsa.h:62,
                 from ./../include/config.h:240,
                 from ./../include/common.h:24,
                 from ./utils.c:32:
/usr/include/openssl/bio.h:697:47: error: unknown type name 'va_list'
/usr/include/openssl/bio.h:701:60: error: unknown type name 'va_list'
./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.
Last edited by slansing on Tue Aug 20, 2013 9:25 am, edited 1 time in total.
Reason: Please use "CODE" wraps as it saves a ton of space.
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Compile NRPE 2.14 on HP-UX 11.31 IA64 server

Post by sreinhardt »

It seems that you are missing a few build dependencies, specifically:

arpa/inet.h
netinet/in.h

Also some issues with time.h and openssl/bio.h and openssl/asn1.h. Can you verify that all of these files and make\gcc are the HP-UX 11 installs and not 10, that seems to be a common issues regarding these errors.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
BWAlder
Posts: 5
Joined: Fri Aug 16, 2013 3:13 pm

Re: Compile NRPE 2.14 on HP-UX 11.31 IA64 server

Post by BWAlder »

Near as I can tell, all the files you mentioned are part of the original OS install

# gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/opt/hp-gcc-4.7.1/bin/../libexec/gcc/ia64-hp-hpux11.23/4.7.1/lto-wrapper
Target: ia64-hp-hpux11.23
Configured with: /home2/knmar/gcc/binutils_2.2_tar_gcc_4.7.1_tar_bld/gcc_src/configure --host=ia64-hp-hpux11.23 --target=ia64-hp-hpux11.23 --build=ia64-hp-hpux11.23 --prefix=/home2/knmar/gcc/binutils_2.2_tar_gcc_4.7.1_tar_bld/ia64-hp-hpux11.23/install/opt/hp-gcc --with-gnu-as --without-gnu-ld --enable-threads=posix --enable-languages=c,c++ --with-gmp=/proj/opensrc/be/ia64-hp-hpux11.23 --with-mpfr=/proj/opensrc/be/ia64-hp-hpux11.23 SED=/usr/bin/sed
Thread model: posix
gcc version 4.7.1 (GCC)

# file /usr/bin/make
/usr/bin/make: ELF-32 executable object file - IA64

Update on the GCC. Turns out a colleague downloaded and installed it from the HP AllianceOne site, so it should still be good.
Last edited by slansing on Tue Aug 20, 2013 3:15 pm, edited 1 time in total.
Reason: Please edit your previous post to add information/questions if you are the last poster.
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Compile NRPE 2.14 on HP-UX 11.31 IA64 server

Post by sreinhardt »

Do we find those files in /usr/include?

Code: Select all

ls -lva /usr/includearpa/inet.h
ls -lva /usr/includenetinet/in.h
ls -lva /usr/includeopenssl/asn1.h
ls -lva /usr/includeopenssl/bio.h
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
BWAlder
Posts: 5
Joined: Fri Aug 16, 2013 3:13 pm

Re: Compile NRPE 2.14 on HP-UX 11.31 IA64 server

Post by BWAlder »

Yes, they are all there.

I found a kluge way of getting it to work. Not pretty, but it seems to work

First, I went back to nrpe-2.13

I added the following lines to nrpe.c to get rid of the compile errors. Note: some warnings still exist.

Code: Select all

/* Add syslog facilities that are missing in HPUX */
#define LOG_AUTHPRIV (10<<3) /* security/authorization messages (private) */
#define LOG_FTP (11<<3) /* ftp daemon */
/* Adding variable missing in libwrap */
int rfc931_timeout=15;

typedef long           blksize_t;
#include <sys/types.h>
#include <sys/stat.h>
I compiled it using the following command.

Code: Select all

PATH="$(cat /etc/PATH):/usr/local/bin" ./configure --prefix=/opt/nagios  --oldincludedir=/usr/include --disable-ssl --enable-command-args
I then copied the nrpe and check_nrpe binaries into place and tested it, and it worked.

Please note! It will only compile successfully for the “—disable-ssl” option. Enabling SSL causes more compile errors, but I know there is a depot version with SSl enabled out there and it does work.

Also, it will not compile with nrpe-2.14. It generates errors that say ‘SSL’ is not defined, even with the ‘—disable-ssl’ option.

Thanks to everyone who helped.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Compile NRPE 2.14 on HP-UX 11.31 IA64 server

Post by slansing »

Oh excellent news! What version of NRPE did you end up compiling?
BWAlder
Posts: 5
Joined: Fri Aug 16, 2013 3:13 pm

Re: Compile NRPE 2.14 on HP-UX 11.31 IA64 server

Post by BWAlder »

I ended up using 2.13
Locked