Compiling NRPE-2.0 under SCO Openserver 5

Steve Garcia sgarcia at bak.rr.com
Mon Oct 25 23:52:39 CEST 2004


I ran into this exact problem (today) trying to compile NRPE on Digital 
Unix.

The problem appeared to be that int16_t is not defined on Digital Unix.

I added:

typedef short int16_t;

to the common/config.h file, and that problem went away.  Then it 
complained about socklen_t, and I added:

typedef u_int32_t socklen_t;

to the same file and that problem went away.  Then it complained about 
the struct option long_options[] and now I'm back to trying to get 
netsaint_statd to behave.

Jan Scholten wrote:
> I think the licences for Linux are missing ;-)
> 
> SCNR!
> 
> Did you do a ./configure ?
> 
> 
> README says:
> ./configure
> make all
> 
> Jan
> 
>> 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)
>>
>>
> 
> 
> 



-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
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