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

SourceForge.net noreply at sourceforge.net
Thu May 11 22:22:17 CEST 2006


Bugs item #1484825, was opened at 2006-05-09 12:35
Message generated for change (Comment added) made by bubbafat
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

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

Comment By: Jason Kau (bubbafat)
Date: 2006-05-12 01:19

Message:
Logged In: YES 
user_id=1495257

Same thing occurs on Solaris 7 using gcc version egcs-
2.91.66 19990314 (egcs-1.1.2 release):

source='check_dhcp.c' object='check_dhcp.o' libtool=no \
DEPDIR=.deps depmode=gcc /bin/ksh ../depcomp \
gcc -DLOCALEDIR=\"/usr/local/nagios/share/locale\" -
DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../lib -I../intl -
I../plugins -I/usr/local/include  -I/usr/local/include  -g -
O2 -c check_dhcp.c
/bin/ksh ../libtool --mode=link --tag=CC gcc  -g -O2  -L. -
R/usr/local/lib -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  -
lgen -lnsl  -lssl -lcrypto
mkdir .libs
gcc -g -O2 -o check_dhcp 
check_dhcp.o ../plugins/netutils.o ../plugins/utils.o 
getaddrinfo.o gethostbyname.o  -L/home/jkau/build/nagios-
plugins/nagios-plugins-1.4.3/plugins-
root ../lib/libnagiosplug.a ../lib/libcoreutils.a -lsocket -
lresolv ../intl/libintl.a -lgen -lnsl -lssl -lcrypto -
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

However on Solaris 8 using gcc version 3.3.2 this problem 
does not occurr:

if gcc -DLOCALEDIR=\"/usr/local/nagios/share/locale\" -
DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../lib -I../intl -
I../plugins -I/usr/local/include  -I/usr/local/include  -g -
O2 -MT check_dhcp.o -MD -MP -MF ".deps/check_dhcp.Tpo" -c -
o check_dhcp.o check_dhcp.c; \
then mv -f ".deps/check_dhcp.Tpo" ".deps/check_dhcp.Po"; 
else rm -f ".deps/check_dhcp.Tpo"; exit 1; fi
/bin/bash ../libtool --mode=link --tag=CC gcc  -g -O2  -L. -
R/usr/local/lib -o check_dhcp  
check_dhcp.o ../plugins/netutils.o ../plugins/utils.o ../lib
/libnagiosplug.a ../lib/libcoreutils.a  -lnsl -lsocket -
lresolv ../intl/libintl.a -liconv -lgen -lsocket  -lssl -
lcrypto
mkdir .libs
gcc -g -O2 -o check_dhcp 
check_dhcp.o ../plugins/netutils.o ../plugins/utils.o  -
L/home/gtri/nagios/nagios-plugins-1.4.3/plugins-
root ../lib/libnagiosplug.a ../lib/libcoreutils.a -lnsl -
lresolv ../intl/libintl.a /usr/local/lib/libiconv.so -
L/usr/lib -L/usr/openwin/lib -L/usr/local/lib -
L/usr/local/ssl/lib -lgen -lsocket -lssl -lcrypto -
R/usr/local/lib -R/usr/local/lib

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

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