Nagios Plugins build under SPARC Solaris8 with SUNWspro CC fails

Rancier, Jeff Jeff.Rancier at Sensis.com
Tue Jul 19 22:11:36 CEST 2005


I recall a few weeks ago, having the same issue with check_icmp, the owner
made some Solaris mods.  Here's what I was sent:

Jeff

| -----Original Message-----
| From: Rob Moss [mailto:robmossrm at aol.com] 
| Sent: Tuesday, July 19, 2005 11:37 AM
| To: Ralph.Grothe at itdz-berlin.de
| Cc: nagiosplug-help-admin at lists.sourceforge.net; 
| nagios-users at lists.sourceforge.net
| Subject: Re: [Nagios-users] Nagios Plugins build under SPARC 
| Solaris8 with SUNWspro CC fails
| 
| 
| Replies embedded
| 
| >I reran make distclean and reconfigured, this time disabling the
| >openssl stuff altogether.
| >So there should be no need for the blooming compiler to search
| >for such header files.
| >  
| >
| Okay, but check_http will not be able to check https:// 
| connections, and 
| nrpe won't use secure connections.
| 
| >Here's the tail where cc aborted
| >
| >
| >/opt/SUNWspro/bin/cc  -g  -L. -o check_procs  check_procs.o
| >utils.o ../lib/libnagiosplug.a ../lib/libcoreutils.a popen.o 
| ../intl/libintl.a  -lgen -lsocket
| >zecke --> Job output
| >/opt/SUNWspro/bin/cc  -g  -L. -o check_icmp  check_icmp.o 
| ../intl/libintl.a  -lgen -lsocket
| >ild: (undefined symbol) gethostbyname -- referenced in the 
| text segment of check_icmp.o
| >ild: (undefined symbol) inet_addr -- referenced in the text 
| segment of check_icmp.o
| >ild: (undefined symbol) inet_ntoa -- referenced in the text 
| segment of check_icmp.o
| >*** Error code 5
| >dmake: Fatal error: Command failed for target `check_icmp'
| >Current working directory
| >/usr/local/src/nagios-plugins-1.4/plugins
| >Waiting for 1 job to finish
| >zecke --> Job output
| >/opt/SUNWspro/bin/cc  -g  -L. -o check_procs  check_procs.o
| >utils.o ../lib/libnagiosplug.a ../lib/libcoreutils.a popen.o 
| ../intl/libintl.a  -lgen -lsocket
| >*** Error code 1
| >dmake: Fatal error: Command failed for target `all-recursive'
| >Current working directory /usr/local/src/nagios-plugins-1.4
| >*** Error code 1
| >dmake: Fatal error: Command failed for target `all'
| >[root at zecke:/usr/local/src/nagios-plugins-1.4]
| >  
| >
| 
| If I am right, then it looks like the problem may have 
| started further 
| above where check_icmp.c was compiled to the check_icmp.o 
| object, check 
| that it has the correct -lsocket and -lnsl linker flags supplied.
| 
| The error you are seeing is where the check_icmp.o object is linked 
| against libraries and compiled as an executable.  Looks like some 
| -l<lib> linker flags haven't been supplied.
| 
| I may be wrong, but a similar problem happened with 
| nagios-plugins-1.4 
| on Sol 8 (with gcc).
| 
| Cheers
| rob.
| 
| 
| 
| -------------------------------------------------------
| SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
| from IBM. Find simple to follow Roadmaps, straightforward articles,
| informative Webcasts and more! Get everything you need to get up to
| speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
| _______________________________________________
| Nagios-users mailing list
| Nagios-users at lists.sourceforge.net
| https://lists.sourceforge.net/lists/listinfo/nagios-users
| ::: Please include Nagios version, plugin version (-v) and OS 
| when reporting any issue. 
| ::: Messages without supporting info will risk being sent to /dev/null
| 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: check_icmp-2005-03-30.tar
Type: application/octet-stream
Size: 51200 bytes
Desc: not available
URL: <https://www.monitoring-lists.org/archive/users/attachments/20050719/e3ac3b45/attachment.obj>


More information about the Users mailing list