[Nagiosplug-devel] Current compile problem: check_icmp (Was: Solaris 9 vs. check_dhc p (today's CVS))

Andreas Ericsson ae at op5.se
Thu Dec 23 05:12:01 CET 2004


Voon, Ton wrote:
> Apologies (brain not fully in gear yet). The check_dhcp problem was on
> Sol2.6, to do with socklen_t not being defined. I've got a fix for that
> which I've committed.
> 
> I then got an error in check_icmp's compile, to do with undefined symbols:
> 
> Undefined                       first referenced
>  symbol                             in file
> socket                              check_icmp.o
> getprotobyname                      check_icmp.o
> sendto                              check_icmp.o
> recvfrom                            check_icmp.o
> 
> This was fixed by amending plugins/Makefile.am (Lynne Lawrence - 1087171) to
> load in the NETLIBS, but then I got this:
> 
> gcc  -g -O2  -L. -o check_icmp  check_icmp.o netutils.o utils.o
> ../lib/libnagiosplug.a ../lib/libcoreutils.a getaddrinfo.o gethostbyname.o
> -lnsl -lsocket -lresolv ../intl/libintl.a  -lgen -lnsl  
> ld: warning: symbol `end_time' has differing sizes:
>         (file check_icmp.o value=0x8; file utils.o value=0x4);
>         check_icmp.o definition taken
> ld: fatal: symbol `usage' is multiply-defined:
>         (file check_icmp.o and file utils.o);
> ld: warning: symbol `start_time' has differing sizes:
>         (file check_icmp.o value=0x8; file utils.o value=0x4);
>         check_icmp.o definition taken
> ld: fatal: File processing errors. No output written to check_icmp
> 
> which is due to check_icmp redefining functions/variables that already exist
> in utils.c. Could change the plugins/Makefile.am to load in just the
> netutils.o, but check_icmp should stick to our framework of using utils.o.
> Can Andreas sort this one out?
> 

Naturally. It would be easier if I could have cvs write access to 
check_icmp.c.

> Ton
> 
> -----Original Message-----
> From: Stanley Hopcroft [mailto:Stanley.Hopcroft at IPAustralia.Gov.AU] 
> Sent: 23 December 2004 08:51
> To: Voon, Ton
> Cc: 'hmann at itgroundwork.com'; nagiosplug-devel at lists.sourceforge.net
> Subject: Re: [Nagiosplug-devel] Solaris 9 vs. check_dhcp (today's CVS)
> 
> 
> Dear Folks,
> 
> 
> On Thu, Dec 23, 2004 at 08:10:26AM -0000, Voon, Ton wrote:
> 
>>I've had build problems on check_dhcp when building on sf.net's Sol 
>>compile server, but I've been ignoring them because I don't know 
>>anything about it.
>>
> 
> 
> I thought it built Ok on the CF Sol (can't recall which vers)
> 
> Will try again.
> 
> The code base seems tight (it's Ethans) and works without SEGV on 
> FreeBSD. The only platform dependent code is related to getting the 
> interface MAC address (to set in the discover packet).
> 
> Unfortch this plugin _must_ be setuid root so it's hard to test on other 
> peoples servers (CF for example).
> 
> Yours sincerely.
>  
> 

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




More information about the Devel mailing list