compilation is failing on itanium hpux 11.31

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
nagiosuser1000
Posts: 29
Joined: Thu Apr 25, 2019 2:04 pm

compilation is failing on itanium hpux 11.31

Post by nagiosuser1000 »

checking for perl... /usr/bin/perl
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating nrpe.spec
config.status: creating uninstall
config.status: creating sample-config/nrpe.cfg
config.status: creating startup/bsd-init
config.status: creating startup/debian-init
config.status: creating startup/default-init
config.status: creating startup/default-inetd
config.status: creating startup/default-service
config.status: creating startup/default-socket
config.status: creating startup/default-socket-svc
config.status: creating startup/default-xinetd
config.status: creating startup/mac-init.plist
config.status: creating startup/mac-inetd.plist
config.status: creating startup/newbsd-init
config.status: creating startup/openbsd-init
config.status: creating startup/openrc-conf
config.status: creating startup/openrc-init
config.status: creating startup/solaris-init.xml
config.status: creating startup/solaris-inetd.xml
config.status: creating startup/tmpfile.conf
config.status: creating startup/upstart-init
config.status: creating startup/rh-upstart-init
config.status: creating include/common.h
config.status: creating include/config.h



*** Configuration summary for nrpe 3.2.1 2017-09-01 ***:

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
or type 'make' to get a list of make options.

[root:/nfs/downloads/nagios/hpux/11.31/ia/nrpe-nrpe-3.2.1]make all
cd ./src/; make
cc -I/usr/include -I/usr/include/openssl -DHAVE_CONFIG_H -I ../include -I ./../include -o nrpe ./nrpe.c ./utils.c ./acl.c -L/opt/openssl/lib/hpux64 -Wl,+allowdups -lssl -lcrypto -lnsl -lwrap ./snprintf.o
./nrpe.c:
"./nrpe.c", line 1336: warning #2167-D: argument of type "socklen_t *" is
incompatible with parameter of type "int *"
new_sd = accept(listen_socks, (struct sockaddr *)&from, &fromlen);
^

"./nrpe.c", line 1397: warning #4232-D: conversion from "struct sockaddr *" to
a more strictly aligned type "struct sockaddr_in *" may cause
misaligned access
ptr = &((struct sockaddr_in *) ai->ai_addr)->sin_addr;
^

"./nrpe.c", line 1514: warning #2167-D: argument of type "socklen_t *" is
incompatible with parameter of type "int *"
rc = getpeername(sock, (struct sockaddr *)&addr, &addrlen);
^

./utils.c:
./acl.c:
"./acl.c", line 558: warning #4232-D: conversion from "struct sockaddr *" to a
more strictly aligned type "struct sockaddr_in *" may cause
misaligned access
addr = (struct sockaddr_in*)(ai->ai_addr);
^

ld: Unable to load shared library "/opt/langtools/lib/hpux64/libu2comp.so"
Fatal error.
*** Error exit code 1

Stop.
*** Error exit code 1

Stop.
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: compilation is failing on itanium hpux 11.31

Post by benjaminsmith »

Hello,

Currently, we do not have much support history for customers using NRPE on HP-UX 11. I did some research on the error you're getting, specifically,
ld: Unable to load shared library "/opt/langtools/lib/hpux64/libu2comp.so"
Fatal error.
And there are a number of references (see this), and it looks like the system is missing the C development bundle/packages from IBM.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
nagiosuser1000
Posts: 29
Joined: Thu Apr 25, 2019 2:04 pm

Re: compilation is failing on itanium hpux 11.31

Post by nagiosuser1000 »

Thanks for the reply. Now getting different error.

./configure --enable-ssl
checking for a BSD-compatible install... build-aux/install-sh -c
checking what the operating system is ... hp-ux
checking what the distribution type is ... hp-ux
checking what init system is being used ... unknown
checking what inetd is being used ... inetd
checking for which paths to use ... default
checking for which init file to use ... unknown
checking for which inetd files to use ... default-inetd
checking for gcc... no
checking for cc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... no
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking whether make sets $(MAKE)... yes
checking how to run the C preprocessor... cc -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... yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
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) yes
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... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
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) yes
checking paths.h usability... no
checking paths.h presence... no
checking for paths.h... no
checking for an ANSI C-conforming const... yes
checking whether struct tm is in sys/time.h or time.h... 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 struct sockaddr_storage... yes
checking for seteuid... 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... no
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 strtok_r... yes
checking for initgroups... yes
checking for closesocket... no
checking for sigaction... yes
checking for scandir... yes
checking for socklen_t... yes
checking for type of socket size... size_t
checking for Kerberos include files... found Kerberos include files in /usr/include
checking for pkg-config... no
checking for SSL headers... found in /usr/include/openssl
checking for SSL libraries... found in /opt/openssl/lib/hpux64
checking whether compiling and linking against SSL works... yes
checking for openssl... /bin/openssl

*** Generating DH Parameters for SSL/TLS ***
Generating DH parameters, 2048 bit long safe prime, generator 2
This is going to take a long time
......................................+.....................................+............................................................+........................................................................................................................................................................................................+..................................................................................................................................................+...........................................+.........................................+............................................................................................+............................................................................+..........+..................................................................................................+..................................+...........................................+.+.......+..........+...............................................................................................................................................+.............+.................+............................................................................+.............................................................................................................................+.............................................+..................................................+..................................................................................................................................................+..................................................................................................................+.......................................................................................................................................................................+................+...+................................+..+..............................+.............................+...........................................................................+.+......................................................................................................................+............+.........................................................+................................................+................................+...................................................................+.............................................................+..........................................................................+........+.+............................................................................................................................................................................................+..................................................................................................................................................+...+......................................+...............................+...........................................................+....+.....................................................................................................................................................................................................................................+....................................................................................+..........................................................................+..........................................................................................................................+.............................................+.............................................................+...................................................................................................................+..................+............+...................+................+...........................................+.....................................................................+.....................................................................+.+.........................................+..+.........................................................................................................................................+.......................................+.....................................................................................................................................................................................................................................................................................+..........................+....+................................................................................................+........................................................................................................................................+..........................................................................................................................+.......+................++*++*
checking for perl... /usr/bin/perl
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating nrpe.spec
config.status: creating uninstall
config.status: creating sample-config/nrpe.cfg
config.status: creating startup/bsd-init
config.status: creating startup/debian-init
config.status: creating startup/default-init
config.status: creating startup/default-inetd
config.status: creating startup/default-service
config.status: creating startup/default-socket
config.status: creating startup/default-socket-svc
config.status: creating startup/default-xinetd
config.status: creating startup/mac-init.plist
config.status: creating startup/mac-inetd.plist
config.status: creating startup/newbsd-init
config.status: creating startup/openbsd-init
config.status: creating startup/openrc-conf
config.status: creating startup/openrc-init
config.status: creating startup/solaris-init.xml
config.status: creating startup/solaris-inetd.xml
config.status: creating startup/tmpfile.conf
config.status: creating startup/upstart-init
config.status: creating startup/rh-upstart-init
config.status: creating include/common.h
config.status: creating include/config.h
config.status: include/config.h is unchanged


*** Configuration summary for nrpe 3.2.1 2017-09-01 ***:

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
or type 'make' to get a list of make options.

[root:/nfs/downloads/nagios/hpux/11.31/ia/nrpe-nrpe-3.2.1]make all
cd ./src/; make
cc -g -I/usr/include -I/usr/include/openssl -DHAVE_CONFIG_H -I ../include -I ./../include -o nrpe ./nrpe.c ./utils.c ./acl.c -L/opt/openssl/lib/hpux64 -Wl,+allowdups -lssl -lcrypto -lnsl -lwrap ./snprintf.o
./nrpe.c:
"./nrpe.c", line 854: warning #2223-D: function "parse_allowed_hosts" declared
implicitly
parse_allowed_hosts(allowed_hosts);
^

"./nrpe.c", line 856: warning #2223-D: function "show_acl_lists" declared
implicitly
show_acl_lists();
^

"./nrpe.c", line 1336: warning #2167-D: argument of type "socklen_t *" is
incompatible with parameter of type "int *"
new_sd = accept(listen_socks, (struct sockaddr *)&from, &fromlen);
^

"./nrpe.c", line 1397: warning #4232-D: conversion from "struct sockaddr *" to
a more strictly aligned type "struct sockaddr_in *" may cause
misaligned access
ptr = &((struct sockaddr_in *) ai->ai_addr)->sin_addr;
^

"./nrpe.c", line 1514: warning #2167-D: argument of type "socklen_t *" is
incompatible with parameter of type "int *"
rc = getpeername(sock, (struct sockaddr *)&addr, &addrlen);
^

"./nrpe.c", line 1566: warning #2223-D: function "is_an_allowed_host" declared
implicitly
if (!is_an_allowed_host(AF_INET, (void *)&(nptr->sin_addr))) {
^

"./nrpe.c", line 1595: warning #2223-D: function "is_an_allowed_host" declared
implicitly
if (!is_an_allowed_host(AF_INET6, (void *)&(nptr6->sin6_addr))) {
^

"./nrpe.c", line 1619: warning #2223-D: function "fromhost" declared implicitly
fromhost(&req);
^

"./nrpe.c", line 1623: warning #2223-D: function "refuse" declared implicitly
refuse(&req); /* refuse the connection */
^

./utils.c:
./acl.c:
"./acl.c", line 558: warning #4232-D: conversion from "struct sockaddr *" to a
more strictly aligned type "struct sockaddr_in *" may cause
misaligned access
addr = (struct sockaddr_in*)(ai->ai_addr);
^

ld: Mismatched ABI (not an ELF file) for ./snprintf.o
Fatal error.
*** Error exit code 1

Stop.
*** Error exit code 1

Stop.
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: compilation is failing on itanium hpux 11.31

Post by benjaminsmith »

Hi @nagiosuser1000,

What changes did you make to the server before re-compiling? It did go further this time but looking over the logs, it looks like the server is still missing part of the standard C library. Can you try to re-install the C developer tools and try again?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
nagiosuser1000
Posts: 29
Joined: Thu Apr 25, 2019 2:04 pm

Re: compilation is failing on itanium hpux 11.31

Post by nagiosuser1000 »

Thanks a lot for the reply.

Compilation worked on HP 9000 version 11.31.

We are trying to compile on Itanium server version 11.31.

Following bundles are installed.
B9007AA C.11.31.09 HP C/aC++ Developer's Bundle
HP-ACC-Link C.11.31.03 HP aCC_link Bundle
HP-Caliper-PERF C.11.31.06 HP Caliper Bundle
HP-WDB-DEBUGGER C.11.31.06 HP DEBUGGER Bundle
make 4.2.1 make
nagiosuser1000
Posts: 29
Joined: Thu Apr 25, 2019 2:04 pm

Re: compilation is failing on itanium hpux 11.31

Post by nagiosuser1000 »

It works now.

make clean - took care of the problem

Thanks a lot
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: compilation is failing on itanium hpux 11.31

Post by benjaminsmith »

Hi @nagiosuser1000,

Happy to hear you got it working. And thanks posting the required bundles for installation.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked