Setting the below LD_OPTIONS should be all that you need to do to get it to build since you're using some packages from OpenCSW.
LD_OPTIONS='-R/opt/csw/lib/$ISALIST -R/opt/csw/lib -L/opt/csw/lib' On 04/16/2010 11:02 AM, McGraw, Robert P wrote: > > I am running Sun Solaris 10 x86 > > I have SunStudio12.1. > > I am trying to compile amanda 2.6.1.p2 > > I went the SunStudio12.1 route because of all the heart ache with gcc > and glib-2.0. > > I have read all the information about the glib-2.0 on the zmanda > wiki. > > It seems no matter which direction I go I run into problems. > > So I am hoping someone can give me some guidance on my problem. > > Here is my configure script. > > > ./configure \ CC=/opt/SunStudio/bin/cc \ CFLAGS="-m64 -xarch=generic > -g -xO5 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include > -I/opt/SunStudio/include" \ LDFLAGS="-g -L/opt/SunStudio/lib/amd64 > -R/opt/SunStudio/lib/amd64" \ CPPFLAGS=" -I/opt/csw/include/readline > -I/opt/SunStudio/include -I/usr/include" \ > PKG_CONFIG_PATH=/usr/lib/pkgconfig \ PERL=/opt/csw/bin/perl \ > --prefix=/local/amanda/amanda \ > --libexecdir="/usr/sfw/i386-sun-solaris2.10/bin:$PATH" \ > --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 > > > Here is the error file from config.log > > > > make all-am Making all in common-src /bin/bash ../libtool --tag=CC > --mode=link /opt/SunStudio/bin/cc -m64 -xarch=generic -g -xO5 > -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include > -I/opt/SunStudio/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 > -static -g -L/opt/SunStudio/lib/amd64 -R/opt/SunStudio/lib/amd64 -o > genversion genversion.o ../gnulib/libgnu.la versuff.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 -m64 -xarch=generic -g -xO5 > -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include > -I/opt/SunStudio/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 > -g -o genversion genversion.o .libs/versuff.o -mt > -L/opt/SunStudio/lib/amd64 ../gnulib/.libs/libgnu.a -lm -lgmodule-2.0 > -lgobject-2.0 -lgthread-2.0 -lglib-2.0 -lresolv -lintl -lnsl -lsocket > -Wl,--rpath -Wl,/opt/SunStudio/lib/amd64 /usr/ccs/bin/ld: illegal > option -- rpath > > > I tried to fake ld by linking /usr/ccs/bin/ld to > /usr/sfw/i386-sun-solaris2.10/bin/ld but did not like that. > > I tired using CC=/opt/SunStudio/bin/cc > -Yl,/usr/sfw/i386-sun-solaris2.10/bin/ld and did not like that. > > It seems that SunStudio resolves the glib-2 problem but now have a > problem with ld. > > > Is there anyone who has used SunStudio on Sun Solaris 10 x86 to build > amanda? Do you see any problems with my configure script? How did you > get this to work? > > I realize that opencsw has a prebuilt version but I really do need to > try and build my own. > > Thanks > > Robert > > > > _____________________________________________________________________ > > Robert P. McGraw, Jr. > Manager, Computer System EMAIL: > rmcg...@purdue.edu Purdue University ROOM: > MATH-807 Department of Mathematics PHONE: (765) > 494-6055 150 N. University Street West Lafayette, IN 47907-2067 > > > > -- Darin Perusich Unix Systems Administrator Cognigen Corporation 395 Youngs Rd. Williamsville, NY 14221 Phone: 716-633-3463 Email: darin...@cognigencorp.com