Robert, We do something like this
---- # mkdir /tmp/am-inst Get the new amanda tar ball, unpack it into the /tmp/am-inst directory. # cd amanda-2.6.1p2 [curie]: /tmp/am-inst/amanda-2.6.1p2 > printenv PATH /opt/SUNWspro/bin:/opt/sfw/bin:/usr/bin:/usr/sbin:/usr/bin:/usr/ccs/bin [curie]: /tmp/am-inst/amanda-2.6.1p2 > printenv LD_LIBRARY_PATH /usr/lib:/usr/include:/opt/SUNWspro/lib:/opt/sfw/lib:/usr/sfw/lib:/usr/local/lib [curie]: /tmp/am-inst/amanda-2.6.1p2 > ./configure LDFLAGS="-L/usr/sfw/lib -L/opt/sfw/lib -L/usr/local/lib/amanda -R/usr/sfw/lib -R/opt/sfw/lib -R/usr/local/lib/amanda" --with-user=amanda --with-group=sys --with-udpportrange=932,948 --with-tcpportrange=10084,10100 --with-gnutar=/usr/sfw/bin/gtar CPFLAGS="-I/usr/sfw/include -I/opt/swf/include" CLFAGS="/usr/sfw/include -I/opt/sfw/include -I/usr/local/include" --prefix=/opt/amanda # make build a tarball we can drag to the target system. [curie]: /tmp/am-inst/amanda-2.6.1p2 > tar -cf ~/amanda261p2x86.tar . [bioqq6]: /tmp/am-inst/amanda-2.6.1p2 > tar -xf ~/amanda261p2x86.tar As root, # make install Update /etc/inetd.conf #amanda dgram udp wait amanda /usr/local/libexec/amanda/amandad amandad amanda dgram udp wait amanda /opt/amanda/libexec/amanda/amandad amandad Cleanup the SMF manifest and the registry. # svcadm disable amanda/udp # rm /var/svc/manifest/network/amanda-udp.xml # svccfg svc:> list network/aman* network/amanda/udp svc:> delete network/amanda/udp svc:> exit Create the new manifest and add to SMF. # inetconv amanda -> /var/svc/manifest/network/amanda-udp.xml Importing amanda-udp.xml ...Done Test from the server, note, we haven't updated the server. flower (amanda) amdump -c flower bioqq6 Amanda Backup Client Hosts Check -------------------------------- ERROR: bioqq6: [/opt/amanda/var/amanda/gnutar-lists: No such file or directory] Client check: 1 host checked in 2.795 seconds. 1 problem found. (brought to you by Amanda 2.6.1p1) Fix the obvious problems... # mkdir -p /opt/amanda/var/amanda/gnutar-lists # chown -R amanda:sys /opt/amanda/var retest > amcheck -c flower bioqq6 Amanda Backup Client Hosts Check -------------------------------- Client check: 1 host checked in 2.677 seconds. 0 problems found. (brought to you by Amanda 2.6.1p1) Looking good. ----- On Tue, Apr 20, 2010 at 04:09:09PM -0400, McGraw, Robert P wrote: > 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. > --- Brian R Cuttler [email protected] Computer Systems Support (v) 518 486-1697 Wadsworth Center (f) 518 473-6384 NYS Department of Health Help Desk 518 473-0773 IMPORTANT NOTICE: This e-mail and any attachments may contain confidential or sensitive information which is, or may be, legally privileged or otherwise protected by law from further disclosure. It is intended only for the addressee. If you received this in error or from someone who was not authorized to send it to you, please do not distribute, copy or use it or any attachments. Please notify the sender immediately by reply e-mail and delete this from your system. Thank you for your cooperation.
