[Nagiosplug-devel] Current compile problem: check_icmp (Was: Solaris 9 vs. check_dhc p (today's CVS))
Voon, Ton
Ton.Voon at egg.com
Thu Dec 23 01:39:01 CET 2004
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?
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.
--
Stanley Hopcroft
IP Australia
Ph: (02) 6283 3189 Fax: (02) 6281 1353
PO Box 200 Woden ACT 2606
http://www.ipaustralia.gov.au
-----------------------------------------
This private and confidential e-mail has been sent to you by Egg. The Egg
group of companies includes Egg Banking plc registered no. 2999842), Egg
Financial Products Ltd (registered no. 3319027) and Egg Investments Ltd
(registered no. 3403963) which is authorised and regulated by the Financial
Services Authority. Egg Investments Ltd. is entered in the FSA register
under number 190518. Registered in England and Wales. Registered
offices: 1 Waterhouse Square, 138-142 Holborn, London EC1N 2NA. If you
are not the intended recipient of this e-mail and have received it in
error, please notify the sender by replying with 'received in error' as the
subject and then delete it from your mailbox.
More information about the Devel
mailing list