[Nagiosplug-devel] [ nagiosplug-Bugs-1087171 ] 1.4alpha3: check_icmp fails build on solaris 8

SourceForge.net noreply at sourceforge.net
Thu Dec 23 01:38:02 CET 2004


Bugs item #1087171, was opened at 2004-12-17 17:47
Message generated for change (Comment added) made by tonvoon
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=1087171&group_id=29880

Category: None
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Lynne Lawrence (lglawrence)
>Assigned to: Ton Voon (tonvoon)
Summary: 1.4alpha3: check_icmp fails build on solaris 8

Initial Comment:
When building on a Solaris 8 server, check_icmp fail
build with:

gcc  -g -O2  -L. -L/usr/local/ssl/lib -o check_icmp 
check_icmp.o  ../intl/libintl.a -liconv -lgen -lsocket
-lssl -lcrypto
Undefined                       first referenced
 symbol                             in file
gethostbyaddr                       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)
inet_addr                           check_icmp.o 
(symbol belongs to implicit dependency
/usr/lib/libnsl.so.1)
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)
ld: fatal: Symbol referencing errors. No output written
to check_icmp
collect2: ld returned 1 exit status
make[2]: *** [check_icmp] Error 1

This is because the necessary -lnsl is missing.  When I
modify plugins/Makefile as follows:

check_icmp_LDADD = $(LDADD) $(SOCKETLIBS)

it will compile.

----------------------------------------------------------------------

>Comment By: Ton Voon (tonvoon)
Date: 2004-12-23 09:37

Message:
Logged In: YES 
user_id=664364

Lynne,

Thanks for the bug report. Have changed to 

check_icmp_LDADD = $(LDADD) $(NETLIBS)

and got other compile problems, but this is due to the code 
duplicating functions and variables. Will investigate this 
separately, so will close this for now. Thanks again.

Ton

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=1087171&group_id=29880




More information about the Devel mailing list