[Nagiosplug-devel] [ nagiosplug-Bugs-1484825 ] check_dhcp fails to link on Solaris 2.6

SourceForge.net noreply at sourceforge.net
Tue May 9 09:36:07 CEST 2006


Bugs item #1484825, was opened at 2006-05-09 16:35
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=1484825&group_id=29880

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Duncan Ferguson (duncan_ferguson)
Assigned to: Nobody/Anonymous (nobody)
Summary: check_dhcp fails to link on Solaris 2.6

Initial Comment:
/bin/ksh ../libtool --mode=link --tag=CC gcc  -g -O2 
-L. -o check_dhcp  check_dhcp.o ../plugins/netutils.o
../plugins/utils.o ../lib/libnagiosplug.a
../lib/libcoreutils.a getaddrinfo.o gethostbyname.o
-lnsl -lsocket -lresolv ../intl/libintl.a -liconv -lgen
-lnsl
gcc -g -O2 -o check_dhcp check_dhcp.o
../plugins/netutils.o ../plugins/utils.o getaddrinfo.o
gethostbyname.o 
-L/tmp/nagios-plugins-1.4.3/plugins-root
../lib/libnagiosplug.a ../lib/libcoreutils.a -lsocket
-lresolv ../intl/libintl.a /usr/local/lib/libiconv.so
-L/usr/local/lib -L/usr/openwin/lib -L/usr/lib
-L/usr/local/ssl/lib -L/usr/local/BerkeleyDB.4.2/lib
-lgen -lnsl -R/usr/local/lib -R/usr/local/lib
gcc: getaddrinfo.o: No such file or directory
gcc: gethostbyname.o: No such file or directory
make: *** [check_dhcp] Error 1

=====
Modifying the Makefile
  EXTRA_NETOBJS =  getaddrinfo.o gethostbyname.o
to
  EXTRA_NETOBJS =  ../plugins/getaddrinfo.o
../plugins/gethostbyname.o

fixes it

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

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




More information about the Devel mailing list