[Nagiosplug-devel] 1.4.0-alpha3 check_dhcp build failure on HP-UX 10.20 and 11.00

Andreas Ericsson ae at op5.se
Fri Dec 17 14:34:01 CET 2004


C. Bensend wrote:
> Hey folks,
> 
>    A couple of fellows have asked me to provide an HP-UX build of the
> 1.4x series, so I fired off a few this afternoon.
> 
>    On both HP-UX 10.20 (using gcc 2.95.2) and HP-UX 11.00 (using gcc ),
> the plugins fail to build with the following:
> 
> (apologies for any horrific line wrap action)
> 

All the errors below stem from one plugin. Try
make -i >& make-output
and see what errors and warnings it comes up with. It's more than just a 
little likely that most of the plugins will build properly, but it would 
help a great deal if you could provide build output for all the plugins 
(so all non-portable issues can be fixed at once).

> 
> Making all in plugins
> gmake[2]: Entering directory
> `/tmp_mnt/home/benny/temp/nagios-plugins-1.4.0-alpha3/plugins'
> source='check_dhcp.c' object='check_dhcp.o' libtool=no \
> depfile='.deps/check_dhcp.Po' tmpdepfile='.deps/check_dhcp.TPo' \
> depmode=gcc /bin/sh ../depcomp \
> gcc -DLOCALEDIR=\"/usr/local/nagios/share/locale\" -DHAVE_CONFIG_H -I. -I.
> -I.. -I.. -I../lib -I../intl     -g -O2 -c check_dhcp.c
> check_dhcp.c:125: parse error before `u_int8_t'
> check_dhcp.c:125: warning: no semicolon at end of struct or union
> check_dhcp.c:126: warning: data definition has no type or storage class
> check_dhcp.c:127: parse error before `hlen'
> check_dhcp.c:127: warning: data definition has no type or storage class
> check_dhcp.c:128: parse error before `hops'
> check_dhcp.c:128: warning: data definition has no type or storage class
> check_dhcp.c:129: parse error before `xid'
> check_dhcp.c:129: warning: data definition has no type or storage class
> check_dhcp.c:130: parse error before `secs'
> check_dhcp.c:130: warning: data definition has no type or storage class
> check_dhcp.c:131: parse error before `flags'
> check_dhcp.c:131: warning: data definition has no type or storage class
> check_dhcp.c:140: parse error before `}'
> check_dhcp.c:140: warning: data definition has no type or storage class
> check_dhcp.c:146: parse error before `u_int32_t'
> check_dhcp.c:146: warning: no semicolon at end of struct or union
> check_dhcp.c:147: warning: data definition has no type or storage class
> check_dhcp.c:148: parse error before `rebinding_time'
> check_dhcp.c:148: warning: data definition has no type or storage class
> check_dhcp.c:150: parse error before `}'
> check_dhcp.c:150: warning: data definition has no type or storage class
> check_dhcp.c:192: parse error before `packet_xid'
> check_dhcp.c:192: warning: data definition has no type or storage class
> check_dhcp.c:194: parse error before `dhcp_lease_time'
> check_dhcp.c:194: warning: data definition has no type or storage class
> check_dhcp.c:195: parse error before `dhcp_renewal_time'
> check_dhcp.c:195: warning: data definition has no type or storage class
> check_dhcp.c:196: parse error before `dhcp_rebinding_time'
> check_dhcp.c:196: warning: data definition has no type or storage class
> check_dhcp.c:200: parse error before `*'
> check_dhcp.c:200: warning: data definition has no type or storage class
> check_dhcp.c:226: parse error before `dhcp_packet'
> check_dhcp.c: In function `send_dhcp_discover':
> check_dhcp.c:388: `dhcp_packet' undeclared (first use in this function)
> check_dhcp.c:388: (Each undeclared identifier is reported only once
> check_dhcp.c:388: for each function it appears in.)
> check_dhcp.c:388: parse error before `discover_packet'
> check_dhcp.c:393: `discover_packet' undeclared (first use in this function)
> check_dhcp.c: In function `get_dhcp_offer':
> check_dhcp.c:473: `dhcp_packet' undeclared (first use in this function)
> check_dhcp.c:473: parse error before `offer_packet'
> check_dhcp.c:495: `offer_packet' undeclared (first use in this function)
> check_dhcp.c: In function `receive_dhcp_packet':
> check_dhcp.c:593: `socklen_t' undeclared (first use in this function)
> check_dhcp.c:593: parse error before `address_size'
> check_dhcp.c:616: `address_size' undeclared (first use in this function)
> check_dhcp.c: At top level:
> check_dhcp.c:745: parse error before `dhcp_packet'
> check_dhcp.c: In function `add_dhcp_offer':
> check_dhcp.c:746: `new_offer' undeclared (first use in this function)
> check_dhcp.c:747: parse error before `int'
> check_dhcp.c:752: `offer_packet' undeclared (first use in this function)
> check_dhcp.c:756: `x' undeclared (first use in this function)
> check_dhcp.c:763: `option_type' undeclared (first use in this function)
> check_dhcp.c:766: `option_length' undeclared (first use in this function)
> check_dhcp.c:773: `u_int32_t' undeclared (first use in this function)
> check_dhcp.c:773: parse error before `)'
> check_dhcp.c:775: parse error before `)'
> check_dhcp.c:777: parse error before `)'
> check_dhcp.c:781: `y' undeclared (first use in this function)
> check_dhcp.c:798: parse error before `)'
> check_dhcp.c:804: `source' undeclared (first use in this function)
> check_dhcp.c: In function `free_dhcp_offer_list':
> check_dhcp.c:828: `this_offer' undeclared (first use in this function)
> check_dhcp.c:829: `next_offer' undeclared (first use in this function)
> check_dhcp.c: In function `get_results':
> check_dhcp.c:858: `temp_offer' undeclared (first use in this function)
> check_dhcp.c:859: parse error before `*'
> check_dhcp.c:861: `u_int32_t' undeclared (first use in this function)
> check_dhcp.c:869: `temp_server' undeclared (first use in this function)
> check_dhcp.c:874: `max_lease_time' undeclared (first use in this function)
> check_dhcp.c:909: `result' undeclared (first use in this function)
> gmake[2]: *** [check_dhcp.o] Error 1
> gmake[2]: Leaving directory
> `/tmp_mnt/home/benny/temp/nagios-plugins-1.4.0-alpha3/plugins'
> gmake[1]: *** [all-recursive] Error 1
> gmake[1]: Leaving directory
> `/tmp_mnt/home/benny/temp/nagios-plugins-1.4.0-alpha3'
> gmake: *** [all] Error 2
> 
> 
>    I am absolutely able to test a new version of check_dhcp.c, or
> patches, or whatever.
> 
> Thanks!
> 
> Benny
> 
> 

-- 
Andreas Ericsson                   andreas.ericsson at op5.se
OP5 AB                             www.op5.se
Lead Developer




More information about the Devel mailing list