SUMMARY: Still, Problem compiling NRPE on Tru64 UNIX

Kannberg, Andy Andy.Kannberg at isc.politie.nl
Wed Jan 25 10:40:25 CET 2006


 
Hi,
 
Lots of thanks to Örjan Petersson, who gave me a link to www.altinity.org
<http://www.altinity.org> , where I found a version of NRPE ,. based om
NRPE2.0 which supports Tru64 (And IRIX, for who is interested).
And on january 23rd, Ethan release NRPE 2.3. This version also support Tru64
support, which ( I think ) comes from the guys of Altinity.
 
Anyway, thanks to all to make this work for me (And probably lots of others)
 
best regards,
Andy
 

-----Original Message-----
From: Kannberg, Andy [mailto:Andy.Kannberg at isc.politie.nl]
Sent: maandag 23 januari 2006 11:11
To: 'nagios-users at lists.sourceforge.net'
Subject: [Nagios-users] Still, Problem compiling NRPE on Tru64 UNIX



Hello all, 

I've asked this also 2 weeks ago, but got little response....So I am trying
it again.... 

I am trying to compile NRPE on Tru64 UNIX for two weeks now, but I'm still
running into problems. 
I've searched throught the archives and forums to get a solution, but to no
avail. I've tried to compile NRPE on the standard client we want to monitor,

but the make all exits with these errors: 

root at itiu76> make 
cd ./src/; make ; cd .. 
cc -g -I/usr/local/ssl/include/openssl -I/usr/local/ssl/include
-DHAVE_CONFIG_H -o nrpe nrpe.c utils.c -L/usr/local/ssl/lib  -lssl -lcrypto

nrpe.c: 
cc: Error: nrpe.c, line 1445: In the initializer for long_options, an
array's element type is incomplete, which precludes its initialization.
(incompelinit)

                {"inetd", no_argument, 0, 'i'}, 
----------------^ 
utils.c: 
*** Exit 1 
Stop. 
*** Exit 1 
Stop. 

When I check the output of configure, I notice that there are several
options that output 'no': 

. 
. 
checking whether the C compiler (cc  ) is a cross-compiler... no 
. 
. 
. 
. 
. 
checking for stdint.h... no 
checking for uint32_t... no 
checking for u_int32_t... no 
checking for int32_t... no 
checking for main in -lnsl... no 
checking for socket in -lsocket... no 


I've tried to remove the lines in the source files which cause the error,
but this results in even more errors. 

Then, I've tried to compile it in our development environment, with gcc,
with these results: 

./configure says: 

checking whether the C compiler (gcc  ) is a cross-compiler... no 
checking for uint32_t... no 
checking for u_int32_t... no 
checking for int32_t... no 
checking for main in -lnsl... no 
checking for socket in -lsocket... no 

The rest of the options all output 'yes' 

make all: 

root at itiu54-1> make all 
cd ./src/; make ; cd .. 
gcc -g -O2 -I/usr/ssl/include/openssl -I/usr/ssl/include -DHAVE_CONFIG_H -o
nrpe nrpe.c utils.c -L/usr/ssl/lib  -lssl -lcrypto

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:520: `socklen_t' undeclared (first use in this function) 
nrpe.c:520: (Each undeclared identifier is reported only once 
nrpe.c:520: for each function it appears in.) 
nrpe.c:520: parse error before "addrlen" 
nrpe.c:619: `addrlen' undeclared (first use in this function) 
nrpe.c: In function `process_arguments': 
nrpe.c:1442: elements of array `long_options' have incomplete type 
nrpe.c:1443: warning: excess elements in struct initializer 
nrpe.c:1443: warning: (near initialization for `long_options[0]') 
nrpe.c:1443: `required_argument' undeclared (first use in this function) 
nrpe.c:1443: warning: excess elements in struct initializer 
nrpe.c:1443: warning: (near initialization for `long_options[0]') 
nrpe.c:1443: warning: excess elements in struct initializer 
nrpe.c:1443: warning: (near initialization for `long_options[0]') 
nrpe.c:1443: warning: excess elements in struct initializer 
nrpe.c:1443: warning: (near initialization for `long_options[0]') 
nrpe.c:1444: warning: excess elements in struct initializer 
nrpe.c:1444: warning: (near initialization for `long_options[1]') 
nrpe.c:1444: `no_argument' undeclared (first use in this function) 
nrpe.c:1444: warning: excess elements in struct initializer 
nrpe.c:1444: warning: (near initialization for `long_options[1]') 
nrpe.c:1444: warning: excess elements in struct initializer 
nrpe.c:1444: warning: (near initialization for `long_options[1]') 
nrpe.c:1444: warning: excess elements in struct initializer 
nrpe.c:1444: warning: (near initialization for `long_options[1]') 
nrpe.c:1445: warning: excess elements in struct initializer 
nrpe.c:1445: warning: (near initialization for `long_options[2]') 
nrpe.c:1445: warning: excess elements in struct initializer 
nrpe.c:1445: warning: (near initialization for `long_options[2]') 
nrpe.c:1445: warning: excess elements in struct initializer 
nrpe.c:1445: warning: (near initialization for `long_options[2]') 
nrpe.c:1445: warning: excess elements in struct initializer 
nrpe.c:1445: warning: (near initialization for `long_options[2]') 
nrpe.c:1446: warning: excess elements in struct initializer 
nrpe.c:1446: warning: (near initialization for `long_options[3]') 
nrpe.c:1446: warning: excess elements in struct initializer 
nrpe.c:1446: warning: (near initialization for `long_options[3]') 
nrpe.c:1446: warning: excess elements in struct initializer 
nrpe.c:1446: warning: (near initialization for `long_options[3]') 
nrpe.c:1446: warning: excess elements in struct initializer 
nrpe.c:1446: warning: (near initialization for `long_options[3]') 
nrpe.c:1447: warning: excess elements in struct initializer 
nrpe.c:1447: warning: (near initialization for `long_options[4]') 
nrpe.c:1447: warning: excess elements in struct initializer 
nrpe.c:1447: warning: (near initialization for `long_options[4]') 
nrpe.c:1447: warning: excess elements in struct initializer 
nrpe.c:1447: warning: (near initialization for `long_options[4]') 
nrpe.c:1447: warning: excess elements in struct initializer 
nrpe.c:1447: warning: (near initialization for `long_options[4]') 
nrpe.c:1448: warning: excess elements in struct initializer 
nrpe.c:1448: warning: (near initialization for `long_options[5]') 
nrpe.c:1448: warning: excess elements in struct initializer 
nrpe.c:1448: warning: (near initialization for `long_options[5]') 
nrpe.c:1448: warning: excess elements in struct initializer 
nrpe.c:1448: warning: (near initialization for `long_options[5]') 
nrpe.c:1448: warning: excess elements in struct initializer 
nrpe.c:1448: warning: (near initialization for `long_options[5]') 
nrpe.c:1449: warning: excess elements in struct initializer 
nrpe.c:1449: warning: (near initialization for `long_options[6]') 
nrpe.c:1449: warning: excess elements in struct initializer 
nrpe.c:1449: warning: (near initialization for `long_options[6]') 
nrpe.c:1449: warning: excess elements in struct initializer 
nrpe.c:1449: warning: (near initialization for `long_options[6]') 
nrpe.c:1449: warning: excess elements in struct initializer 
nrpe.c:1449: warning: (near initialization for `long_options[6]') 
nrpe.c:1442: storage size of `long_options' isn't known 
*** Exit 1 
Stop. 
*** Exit 1 
Stop. 


I don't know how to proceed. I hope that someone can help me with this
problem. 

TIA, 

Andy Kannberg 


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20060125/4618ce76/attachment.html>


More information about the Users mailing list