I am still fighting compiling amanda on a Solaris 10 x86 computer.

I installed SunStuido12.1. and linked /opt/SUNWspro  to /opt/SunStudio

This is my configure file.


./configure \
        CC=/opt/SUNWspro/bin/cc \
        --prefix=/local/amanda/AMANDAVERSION \
        --with-user=amanda \
        --with-owner=amanda \
        --with-group=operator \
        --with-gnutar=/opt/csw/bin/gtar \
        --with-gnutar-listdir=/var/amanda/gnutar-lists \
        --with-index-server=hertz \
        --with-tape-server=hertz \
        --with-tape-device=/dev/rmt/1bn \
        --with-changer-device=/dev/changer/1 \
        --without-ipv6 \
        --with-bsd-security --with-amandahosts \
        --enable-static-binary \
        --disable-s3-device  


I had to remove glib-2 from /opt/csw/lib to get pkg-config work.

So now I can run my configure without errors. But when I try to compile I get 
the following.

:
:
/opt/SUNWspro/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)
        [-64]           enforce a 64-bit link-edit

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.

Thanks again.

Robert

_____________________________________________________________________
Robert P. McGraw, Jr.
Manager, Computer System                    EMAIL: [email protected]
Purdue University                            ROOM: MATH-807
Department of Mathematics                   PHONE: (765) 494-6055
150 N. University Street                      
West Lafayette, IN 47907-2067            
 


Reply via email to