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

Rancier, Jeff Jeff.Rancier at Sensis.com
Thu May 19 06:35:30 CEST 2005


Thanks Meg/Andreas.  After getting it compiled, I also noticed that when I
run 'make install', I needed to 'su' and change it's owner to root, group to
bin, and permissions to 4755 in order to have Solaris allow me to create an
ICMP socket.

Jeff

-----Original Message-----
From: Meg Denham [mailto:Meg.Denham at alphawest.com.au] 
Sent: Thursday, May 12, 2005 11:25 PM
To: nagiosplug-help at lists.sourceforge.net
Subject: [Nagiosplug-help] RE: Compiling check_icmp.c on Solaris 8 (Rancier,
Jeff)



>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


-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_ids93&alloc_id281&op=click
_______________________________________________
Nagiosplug-help mailing list
Nagiosplug-help at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagiosplug-help
::: Please include plugins version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null




More information about the Help mailing list