Compiling nrpe on hp-ux 11.0

Hoevenaar, Jeff JHoevenaar at GAIC.COM
Tue May 27 19:14:24 CEST 2003


Thanks.  I got the configure to run with a different version of perl.
But now the "make all" fails.  Do I need to use some specific options
with the "configure".

Jeff

make all
        cd ./src/; make ; cd ..
        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.3/include/string.h:60:
syntax error before "extern"
In file included from nrpe.c:21:
../common/common.h:66: syntax error before "u_int32_t"
../common/common.h:66: warning: no semicolon at end of struct or union
../common/common.h:69: syntax 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: syntax error before '*' token
nrpe.c: In function `main':
nrpe.c:198: warning: assignment makes pointer from integer without a
cast
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: syntax error before "calculated_crc32"
nrpe.c:694: syntax 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: syntax error before numeric constant
nrpe.c:913: `calculated_crc32' undeclared (first use in this function)
nrpe.c: At top level:
nrpe.c:1258: syntax error before '*' token
nrpe.c: In function `validate_request':
nrpe.c:1259: `u_int32_t' undeclared (first use in this function)
nrpe.c:1259: syntax 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.3/include/string.h:60:
syntax error before "extern"
In file included from utils.c:32:
../common/common.h:66: syntax error before "u_int32_t"
../common/common.h:66: warning: no semicolon at end of struct or union
../common/common.h:69: syntax 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"
*** Error exit code 1

Stop.
*** Error exit code 1

Stop.

-----Original Message-----
From: C. Bensend [mailto:benny at bennyvision.com] 
Sent: Tuesday, May 27, 2003 12:30 PM
To: nagios-users at lists.sourceforge.net
Subject: Re: [Nagios-users] Compiling nrpe on hp-ux 11.0


On Tue, May 27, 2003 at 11:50:35AM -0400, Hoevenaar, Jeff wrote:
> I am trying to compile the nrpe program on a HP-UX 11.0 server. Has 
> anyone had any luck with this?  It seems to compile fine on a linux 
> server.

You can try the version I built:

http://www.bennyvision.com/projects/nagios/index.php

No guarantees - I don't use it personally, so the testing
I've done is very minimal.

Benny


-- 

God is dead and I don't feel all too well either.... -- Ralph Moonen


-------------------------------------------------------
This SF.net email is sponsored by: ObjectStore.
If flattening out C++ or Java code to make your application fit in a
relational database is painful, don't do it! Check out ObjectStore. Now
part of Progress Software. http://www.objectstore.net/sourceforge
_______________________________________________
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


**********************************************************************
The content of this email message and any attachments are confidential and may be legally privileged, intended solely for the addressee. If you are not the intended recipient, be advised that any use, dissemination, distribution, or copying of this e-mail is strictly prohibited. If you receive this message in error, please notify the sender immediately by reply email and destroy the message and its attachments.
**********************************************************************



-------------------------------------------------------
This SF.net email is sponsored by: ObjectStore.
If flattening out C++ or Java code to make your application fit in a
relational database is painful, don't do it! Check out ObjectStore.
Now part of Progress Software. http://www.objectstore.net/sourceforge
_______________________________________________
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