Amanda-Users

Re: Amanda 2.6.1 on Solaris x86 - library dependency

2009-08-14 13:40:39
Subject: Re: Amanda 2.6.1 on Solaris x86 - library dependency
From: Brian Cuttler <brian AT wadsworth DOT org>
To: "Dustin J. Mitchell" <dustin AT zmanda DOT com>, Chris Knight <knight AT wadsworth DOT org>, Daniel Muller <dmuller AT wadsworth DOT org>, Ivan Auger <ivan AT wadsworth DOT org>
Date: Fri, 14 Aug 2009 12:57:39 -0400
I'm not at all certain I understand this.

[curie] /usr/local/libexec/amanda 2> hostname
curie

[curie] /usr/local/libexec/amanda 3> pwd
curie:/usr/local/libexec/amanda

[curie] /usr/local/libexec/amanda 4> ldd amandad
        libamandad-2.6.1p1.so =>         
/usr/local/lib/amanda/libamandad-2.6.1p1.so
        libamanda-2.6.1p1.so =>  /usr/local/lib/amanda/libamanda-2.6.1p1.so
        libm.so.2 =>     /usr/lib/libm.so.2
        libgmodule-2.0.so.0 =>   /usr/lib/libgmodule-2.0.so.0
        libgobject-2.0.so.0 =>   /usr/lib/libgobject-2.0.so.0
        libgthread-2.0.so.0 =>   /usr/lib/libgthread-2.0.so.0
        libglib-2.0.so.0 =>      /usr/lib/libglib-2.0.so.0
        libresolv.so.2 =>        /usr/lib/libresolv.so.2
        libintl.so.1 =>  /usr/lib/libintl.so.1
        libcurl.so.4 =>  /opt/sfw/lib/libcurl.so.4
        libssl.so.0.9.7 =>       /usr/sfw/lib/libssl.so.0.9.7
        libcrypto.so.0.9.7 =>    /usr/sfw/lib/libcrypto.so.0.9.7
        libdl.so.1 =>    /usr/lib/libdl.so.1
        libz.so.1 =>     /usr/lib/libz.so.1
        libnsl.so.1 =>   /usr/lib/libnsl.so.1
        libsocket.so.1 =>        /usr/lib/libsocket.so.1
        libthread.so.1 =>        /usr/lib/libthread.so.1
        libc.so.1 =>     /usr/lib/libc.so.1
        libgcc_s.so.1 =>         /usr/local/lib/libgcc_s.so.1
        libmp.so.2 =>    /usr/lib/libmp.so.2
        libmd.so.1 =>    /usr/lib/libmd.so.1
        libscf.so.1 =>   /usr/lib/libscf.so.1
        libdoor.so.1 =>  /usr/lib/libdoor.so.1
        libuutil.so.1 =>         /usr/lib/libuutil.so.1
        libgen.so.1 =>   /usr/lib/libgen.so.1
        libssl_extra.so.0.9.7 =>         /usr/sfw/lib/libssl_extra.so.0.9.7
        libcrypto_extra.so.0.9.7 =>      /usr/sfw/lib/libcrypto_extra.so.0.9.7

[curie] /usr/local/libexec/amanda 5> ldd amandad | grep libamanda
        libamandad-2.6.1p1.so =>         
/usr/local/lib/amanda/libamandad-2.6.1p1.so
        libamanda-2.6.1p1.so =>  /usr/local/lib/amanda/libamanda-2.6.1p1.so

I'll state it as a given that on Cascade amandad was linking against
libamandad-2.4.5.so


# hostname
cascade

# pwd
/usr/local/libexec/amanda

Nuke the offending binary.

# rm amandad
# ls -l amandad
amandad: No such file or directory

Get a good copy.

# scp brian@curie:/usr/local/libexec/amanda/amandad
Usage: scp [-pqrvBC46] [-F config] [-S program] [-P port]
           [-c cipher] [-i identity] [-o option]
           [[user@]host1:]file1 [...] [[user@]host2:]file2

# scp brian@curie:/usr/local/libexec/amanda/amandad ./
Password: 
amandad              100% |*****************************| 41436       00:00    
# ldd amandad | grep libamanda
        libamandad-2.6.1p1.so =>         
/usr/local/lib/amanda/libamandad-2.6.1p1.so
        libamanda-2.6.1p1.so =>  /usr/local/lib/amanda/libamanda-2.6.1p1.so
        libamanda-2.4.5.so =>    /opt/sfw/lib/libamanda-2.4.5.so

I can run out the full # ldd listing, I'm just trying to figure
how where this information is stored.

I'd thought when the files where installed they where relinked and
static beyond that point in time.

I'll try a rebuild and re-install for Cascade...


---
   Brian R Cuttler                 brian.cuttler AT wadsworth DOT org
   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.