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

Stanley Hopcroft Stanley.Hopcroft at IPAustralia.Gov.AU
Fri Dec 17 14:27:00 CET 2004


Dear Sir,

I am writing to thank you for your letter and say,

On Fri, Dec 17, 2004 at 02:53:46PM -0600, 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)
>

  (looks ok to me). 
> 
> 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 is an important plugin __but__ 

1 even if you did get it to compile on HP-UX, it would _not_ work on 
that platform since the code to get the MAC address is very system 
dependent, and I simply don't know how to do so on HP-UX (AIX is the 
same).

The check would fail with an 'unsupported arch' at runtime if it 
compiled.

The only platforms I _think_ should work are 

. Linux

. Solaris 9

. FreeBSD

2 the cross platform issues are also exaggerated by Sun and HP 
apparently using different names for integer vars of fixed length (8, 
16, 32 etc in unsigned and signed).

Have a look at the dreadfull things the code does to make Sol compile.

If you can find what names it uses for these ints (/sys/*int.h ?), that 
would be helpful. Send to me.

What another (strange Perl) check_dhcp plugin does is lie about the MAC 
address; it doesn't check the lease of _this_ host but that the DHCP 
server can provide a lease back to the requester.

Would this be a better approach for the less common archs (AIX, HP-UX, 
[OS-X should be *BSD so may be Ok] ?

3 Any chance of brief shell/ssh access on an HP-UX ?

> 
> 
>    I am absolutely able to test a new version of check_dhcp.c, or
> patches, or whatever.
> 
> Thanks!
> 
> Benny
> 
>

Yours sincerely. 

-- 
Stanley Hopcroft

Network specialist, IT Infrastructure
IP Australia
Ph: (02) 6283 3189  Fax: (02) 6281 1353
PO Box 200 Woden  ACT 2606
http://www.ipaustralia.gov.au
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: disclaimer.txt
URL: <https://www.monitoring-plugins.org/archive/devel/attachments/20041217/81619775/attachment.txt>


More information about the Devel mailing list