Building nrpe 2.03b on hp-ux 11

Ralf Mellis testrm at kisters.com
Wed May 7 17:56:28 CEST 2003


Hi all,

currently I'm trying to build nagios plugins 1.3 and nrpe 2.03b on my 
hp-ux 11.00 server (I created a posting a few days ago and got an answer 
with a hint for a link to precompiled versions, but there was only the 
nrpe 1.8, which not fits my needs).

I have updated my hp-ux box with the following components from 
"hpux.asknet.de":

gcc 3.2
make 3.80
texinfo 4.2
m4-1.4
libiconv 1.8
autoconf 2.57
automake 1.7.4
flex 2.5.4
bison 1.875
gawk 3.1.2
perl 5.8.0

Configuring and building the plugins 1.3 now works fine (yippie), but
compiling the nrpe 2.03b does not succeed at all. After configuring
it (without errors), I do a "gmake all" and then :-((

********* snip ***********
# gmake all
cd ./src/; gmake ; cd ..
gmake[1]: Entering directory `/data/sys/sw/nrpe-2.0b3/src'
/usr/local/bin/gcc -g -O2 -I/usr/local/include/openssl -
DHAVE_CONFIG_H -L/usr/local/lib  -lssl -lcrypto -o nrpe -lnsl nrpe.c
utils.c
In file included from ../common/common.h:24,
                  from nrpe.c:21:
../common/config.h:54: syntax error before "typedef"
In file included from /usr/include/strings.h:14,
                  from ../common/config.h:74,
                  from ../common/common.h:24,
                  from nrpe.c:21:
/usr/local/lib/gcc-lib/hppa2.0n-hp-hpux11.00/3.2/include/string.h:60:
syntax error before "extern"
In file included from nrpe.c:21:
../common/common.h:66: parse error before "u_int32_t"
../common/common.h:66: warning: no semicolon at end of struct or
union
../common/common.h:69: parse error before '}' token
../common/common.h:69: warning: data definition has no type or
storage class
In file included from nrpe.c:22:
../common/config.h:54: syntax error before "typedef"
In file included from nrpe.c:23:
nrpe.h:31: syntax error before "typedef"
In file included from utils.h:35,
                  from nrpe.c:24:
../common/config.h:54: syntax error before "typedef"
In file included from nrpe.c:24:
utils.h:38: syntax error before "void"
nrpe.c:47: parse error before '*' token
nrpe.c: In function `wait_for_connections':
nrpe.c:619: warning: passing arg 3 of `getpeername' from incompatible
pointer type
nrpe.c: In function `handle_connection':
nrpe.c:692: `u_int32_t' undeclared (first use in this function)
nrpe.c:692: (Each undeclared identifier is reported only once
nrpe.c:692: for each function it appears in.)
nrpe.c:692: parse error before "calculated_crc32"
nrpe.c:694: parse error before "receive_packet"
nrpe.c:749: `receive_packet' undeclared (first use in this function)
nrpe.c:899: `send_packet' undeclared (first use in this function)
nrpe.c:912: parse error before numeric constant
nrpe.c:913: `calculated_crc32' undeclared (first use in this
function)
nrpe.c: At top level:
nrpe.c:1258: parse error before '*' token
nrpe.c: In function `validate_request':
nrpe.c:1259: `u_int32_t' undeclared (first use in this function)
nrpe.c:1259: parse error before "packet_crc32"
nrpe.c:1271: `packet_crc32' undeclared (first use in this function)
nrpe.c:1271: `pkt' undeclared (first use in this function)
nrpe.c:1273: `calculated_crc32' undeclared (first use in this
function)
nrpe.c: In function `process_macros':
nrpe.c:1378: warning: assignment makes pointer from integer without a
cast
nrpe.c:1378: warning: assignment makes pointer from integer without a
cast
In file included from ../common/common.h:24,
                  from utils.c:32:
../common/config.h:54: syntax error before "typedef"
In file included from /usr/include/strings.h:14,
                  from ../common/config.h:74,
                  from ../common/common.h:24,
                  from utils.c:32:
/usr/local/lib/gcc-lib/hppa2.0n-hp-hpux11.00/3.2/include/string.h:60:
syntax error before "extern"
In file included from utils.c:32:
../common/common.h:66: parse error before "u_int32_t"
../common/common.h:66: warning: no semicolon at end of struct or
union
../common/common.h:69: parse error before '}' token
../common/common.h:69: warning: data definition has no type or
storage class
In file included from utils.h:35,
                  from utils.c:33:
../common/config.h:54: syntax error before "typedef"
In file included from utils.c:33:
utils.h:38: syntax error before "void"
gmake[1]: *** [nrpe] Error 1
gmake[1]: Leaving directory `/data/sys/sw/nrpe-2.0b3/src'
**************** snap ***********************

I have builded nrpe on several different linux boxes without any
problems, but hp-ux seems to be my waterloo...

Any help appreciated...
If there are any compiler flags which solve the problems let me know.

Regards



-- 
Ralf Mellis
Abt. DV/ORG
Kisters Maschinenbau GmbH
Germany
47533 Kleve
Boschstr. 1-3
Tel. +49(0)2821-503-0
Fax  +49(0)2821-26110




-------------------------------------------------------
Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara
The only event dedicated to issues related to Linux enterprise solutions
www.enterpriselinuxforum.com

_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list