Compiling NRPE-2.0 under SCO Openserver 5
Hans Blaauw
H.Blaauw at solweb.nl
Mon Oct 25 15:36:47 CEST 2004
Dear all,
I tried to compile NRPE under SCO Openserver 5 but got the following
errors. Anybody any idea what is going wrong and/or missing ?
Many thanks in advance
Hans Blaauw
The errors:
cd ./src/; make ; cd ..
gcc -g -O2 -DHAVE_CONFIG_H -o nrpe nrpe.c utils.c -lnsl
-lsocket
In file included from nrpe.c:21:
../common/common.h:64: parse error before `int16_t'
../common/common.h:64: warning: no semicolon at end of struct or union
../common/common.h:65: warning: data definition has no type or storage
class
../common/common.h:67: parse error before `result_code'
../common/common.h:67: warning: data definition has no type or storage
class
../common/common.h:69: parse error before `}'
../common/common.h:69: warning: data definition has no type or storage
class
nrpe.c:47: parse error before `*'
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 `handle_connection':
nrpe.c:695: `packet' undeclared (first use in this function)
nrpe.c:695: parse error before `receive_packet'
nrpe.c:750: `receive_packet' undeclared (first use in this function)
nrpe.c:900: `send_packet' undeclared (first use in this function)
nrpe.c:906: `int16_t' undeclared (first use in this function)
nrpe.c:906: parse error before `htons'
nrpe.c:907: parse error before `htons'
nrpe.c:908: parse error before `htons'
nrpe.c: At top level:
nrpe.c:1261: parse error before `*'
nrpe.c: In function `validate_request':
nrpe.c:1274: `pkt' undeclared (first use in this function)
nrpe.c:1276: `packet' undeclared (first use in this function)
In file included from utils.c:32:
../common/common.h:64: parse error before `int16_t'
../common/common.h:64: warning: no semicolon at end of struct or union
../common/common.h:65: warning: data definition has no type or storage
class
../common/common.h:67: parse error before `result_code'
../common/common.h:67: warning: data definition has no type or storage
class
../common/common.h:69: parse error before `}'
../common/common.h:69: warning: data definition has no type or storage
class
*** Error code 1 (bu21)
*** Error code 1 (bu21)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20041025/3e4f024f/attachment.html>
More information about the Users
mailing list