This is just plain old solaris. Not knowing exactly how thing work in the compile process of amanda I found the following.
/bin/bash ../libtool --tag=CC --mode=link /opt/SunStudio/bin/cc -g -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -release 2.6.1p2 -o libamanda.la -rpath /local/amanda/AMANDAVERSION/lib/amanda alloc.lo amfeatures.lo amflock.lo amxml.lo clock.lo columnar.lo conffile.lo debug.lo dgram.lo event.lo file.lo fileheader.lo glib-util.lo match.lo packet.lo pipespawn.lo protocol.lo queueing.lo semaphore.lo security.lo security-util.lo simpleprng.lo sl.lo sockaddr-util.lo stream.lo tapelist.lo timestamp.lo util.lo versuff.lo amflock-posix.lo amflock-lockf.lo amflock-lnlock.lo ssh-security.lo bsd-security.lo bsdtcp-security.lo local-security.lo version.lo ../gnulib/libgnu.la -lm -mt -lgmodule-2.0 -lgobject-2.0 -lgthread-2.0 -lglib-2.0 -lsocket -lnsl -lresolv -lintl -lnsl -lsocket /opt/SunStudio/bin/cc -shared .libs/alloc.o .libs/amfeatures.o .libs/amflock.o .libs/amxml.o .libs/clock.o .libs/columnar.o .libs/conffile.o .libs/debug.o .libs/dgram.o .libs/event.o .libs/file.o .libs/fileheader.o .libs/glib-util.o .libs/match.o .libs/packet.o .libs/pipespawn.o .libs/protocol.o .libs/queueing.o .libs/semaphore.o .libs/security.o .libs/security-util.o .libs/simpleprng.o .libs/sl.o .libs/sockaddr-util.o .libs/stream.o .libs/tapelist.o .libs/timestamp.o .libs/util.o .libs/versuff.o .libs/amflock-posix.o .libs/amflock-lockf.o .libs/amflock-lnlock.o .libs/ssh-security.o .libs/bsd-security.o .libs/bsdtcp-security.o .libs/local-security.o .libs/version.o -Wl,--whole-archive ../gnulib/.libs/libgnu.a -Wl,--no-whole-archive -lm -lgmodule-2.0 -lgobject-2.0 -lgthread-2.0 -lglib-2.0 -lresolv -lintl -lnsl -lsocket -lc -mt -Wl,-soname -Wl,libamanda-2.6.1p2.so -o .libs/libamanda-2.6.1p2.so /usr/ccs/bin/ld: illegal option -- whole-archive /usr/ccs/bin/ld: illegal option -- no-whole-archive ld: warning: option -o appears more than once, first setting taken usage: ld [-6:abc:d:e:f:h:il:mo:p:rstu:z:B:CD:F:GI:L:M:N:P:Q:R:S:VY:?] file(s) So I manually ran the libtool command which created and ran the /opt/SunStudio/bin/cc command. Robert > -----Original Message----- > From: Elaine Ashton [mailto:[email protected]] > Sent: Tuesday, April 20, 2010 3:22 PM > To: McGraw, Robert P > Cc: Elaine Ashton; '[email protected]' > Subject: Re: REF: compile issue on solaris X/x86_64 > > > > On Apr 20, 2010, at 2:22 PM, McGraw, Robert P wrote: > > > > My problem seem to be that by default the SunStudio uses > /usr/ccs/bin/ld rather than /usr/sfw/i386-sun-solaris2.10/bin/ld. I > cannot figure out how to set the sfw ld to be the default. > > > > Any suggestion on what is happening and any possible solutions. > > Have a look at crle and change your default path. Is this solaris or > opensolaris? > > e.
