AW: AW: [Nagiosplug-help] Problems with check_icmp

Andreas Ericsson ae at op5.se
Fri Mar 18 12:48:12 CET 2005


Lutz Rethberg wrote:
> OS: SunOS 5.9, V:Nagios 2.0b1
> 
> It is a little step to success - can you help me again :)  ?
> 
> root at triebisch # gcc -lnsl -lsocket check_icmp.o -o check_icmp
> Undefined                       first referenced
>  symbol                             in file
> hstrerror                           check_icmp.o
> inet_aton                           check_icmp.o
> ld: fatal: Symbol referencing errors. No output written to check_icmp
> collect2: ld returned 1 exit status
> 

Sorry for my absence. I successfully attempted to land a car on its roof 
and that particular stunt earned me a three day checkup under the 
supervision of a bunch of friendly folks dressed all in white.

Anyways.
gcc -lnsl -lsocket -lresolv check_icmp.o check_icmp
should work. Other than that, perhaps you need to upgrade your 
libraries? I haven't ever heard of inet_aton(3) not being present when 
inet_ntoa(3) is. They're both from the BSD 4.3 specification.

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




More information about the Help mailing list