[Nagiosplug-devel] [ nagiosplug-Bugs-1484825 ] check_dhcp fails to link on Solaris 2.6
SourceForge.net
noreply at sourceforge.net
Sat Feb 17 04:20:08 CET 2007
Bugs item #1484825, was opened at 2006-05-09 09:35
Message generated for change (Comment added) made by sf-robot
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: Closed
Resolution: None
Priority: 5
Private: No
Submitted By: Duncan Ferguson (duncan_ferguson)
Assigned to: Ethan Galstad (egalstad)
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: SourceForge Robot (sf-robot)
Date: 2007-02-16 19:20
Message:
Logged In: YES
user_id=1312539
Originator: NO
This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 14 days (the time period specified by
the administrator of this Tracker).
----------------------------------------------------------------------
Comment By: Ton Voon (tonvoon)
Date: 2007-02-02 09:04
Message:
Logged In: YES
user_id=664364
Originator: NO
Hi Duncan,
This should be fixed in CVS now. Please can you try the snapshot at
http://nagiosplug.sf.net/snapshot.
This call with autoclose in 7 days if no updates are applied.
Ton
----------------------------------------------------------------------
Comment By: Ton Voon (tonvoon)
Date: 2006-06-20 11:43
Message:
Logged In: YES
user_id=664364
Ethan,
Can I take this? I want to move the substitute getaddinfo library into
lib/.
This should fix various other tracker items as well.
Ton
----------------------------------------------------------------------
Comment By: Jason Kau (bubbafat)
Date: 2006-05-11 22: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