[Nagiosplug-help] RE: Compiling check_icmp.c on Solaris 8 (Rancier, Jeff)

Meg Denham Meg.Denham at alphawest.com.au
Thu May 12 20:32:16 CEST 2005


>Date: Thu, 12 May 2005 23:48:35 +0200
>From: Andreas Ericsson <ae at op5.se>
>To: "'Nagios-Plugin-List (nagiosplug-help at lists.sourceforge.net)'" <nagiosplug-help at lists.sourceforge.net>
>Subject: Re: [Nagiosplug-help] Compiling check_icmp.c on Solaris 8

>Rancier, Jeff wrote:
>> Hello,
>> 
>> Are there any new updates for this?  
>> 

>http://oss.op5.se/nagios/check_icmp-2005-03-30.tar.gz
>Download, unpack and run 'make'.
>You'll have to copy the resulting binary to the plugins directory manually.

  You may still have trouble with this.  If it fails at the link stage, cut off the last part of the command (the part after the ||) and rerun it to link with the correct libraries.

>> 
>> Here's my system:	SunOS jrsun 5.8 Generic_108528-17 sun4u sparc
>> SUNW,Sun-Blade-100
>> Here's my error:
>> 
>> 93) jrsun:/export/home/jrancier/tmp/nagios-plugins-1.4/nagios-plugins-1.4>
>> make
>> make  all-recursive
>> Making all in intl
>> Making all in lib
>> make  all-am
>> Making all in plugins
>> gcc  -g -O2  -L. -o check_icmp  check_icmp.o  ../intl/libintl.a -liconv
>> -lgen -lsocket
>> Undefined                       first referenced
>>  symbol                             in file
>> gethostbyname                       check_icmp.o  (symbol belongs to
>> implicit dependency /usr/lib/libnsl.so.1)
>> h_errno                             check_icmp.o  (symbol belongs to
>> implicit dependency /usr/lib/libnsl.so.1)
>> inet_addr                           check_icmp.o  (symbol belongs to
>> implicit dependency /usr/lib/libnsl.so.1)
>> inet_ntoa                           check_icmp.o  (symbol belongs to
>> implicit dependency /usr/lib/libnsl.so.1)
>> ld: fatal: Symbol referencing errors. No output written to check_icmp
>> collect2: ld returned 1 exit status
>> *** Error code 1
>> make: Fatal error: Command failed for target `check_icmp'
>> Current working directory
>> /export/home/jrancier/tmp/nagios-plugins-1.4/nagios-plugins-1.4/plugins
>> *** Error code 1
>> make: Fatal error: Command failed for target `all-recursive'
>> Current working directory
>> /export/home/jrancier/tmp/nagios-plugins-1.4/nagios-plugins-1.4
>> *** Error code 1
>> make: Fatal error: Command failed for target `all'
>> 94) jrsun:/export/home/jrancier/tmp/nagios-plugins-1.4/nagios-plugins-1.4>
> 
> 
Meg Denham
Managed Services Consultant
Alphawest




More information about the Help mailing list