pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

RUNPATH/RPATH used on Solaris 11, but not on Solaris 10



Hi,

why is this?

Machine 1 (Solaris 10 Branded Zone):

# crle; uname -a; env|grep LD_; ldd =xz; ldd -s =xz|head

Default configuration file (/var/ld/ld.config) not found
  Platform:     32-bit MSB SPARC
  Default Library Path (ELF):   /lib:/usr/lib  (system default)
  Trusted Directories (ELF):    /lib/secure:/usr/lib/secure  (system default)
SunOS he-solaris-dev 5.10 Generic_Virtual sun4v sparc sun4v
        liblzma.so.5 =>  /opt/pkg/lib/liblzma.so.5
        libintl.so.8 =>  /opt/pkg/lib/libintl.so.8
        libc.so.1 =>     /lib/libc.so.1
        libpthread.so.1 =>       /lib/libpthread.so.1
        librt.so.1 =>    /lib/librt.so.1
        libgcc_s.so.1 =>         (file not found)
        libgcc_s.so.1 =>         (file not found)
        libaio.so.1 =>   /lib/libaio.so.1
        libmd.so.1 =>    /lib/libmd.so.1
        libm.so.2 =>     /lib/libm.so.2
        /lib/libm/libm_hwcap1.so.2
        /platform/sun4v/lib/libc_psr.so.1
        /platform/sun4v/lib/libmd_psr.so.1

   find object=liblzma.so.5; required by /opt/pkg/bin/xz
    search path=/opt/pkg/lib  (RUNPATH/RPATH from file /opt/pkg/bin/xz)
    trying path=/opt/pkg/lib/liblzma.so.5
        liblzma.so.5 =>  /opt/pkg/lib/liblzma.so.5

   find object=libintl.so.8; required by /opt/pkg/bin/xz
    search path=/opt/pkg/lib  (RUNPATH/RPATH from file /opt/pkg/bin/xz)
    trying path=/opt/pkg/lib/libintl.so.8
        libintl.so.8 =>  /opt/pkg/lib/libintl.so.8

Machine 2 (Solaris 11 Zone):

# crle; uname -a; env|grep LD_; ldd =xz; ldd -s =xz|head                                                                   :(

Default configuration file (/var/ld/ld.config) not found
  Platform:     32-bit MSB SPARC
  Default Library Path (ELF):   /lib:/usr/lib  (system default)
  Trusted Directories (ELF):    /lib/secure:/usr/lib/secure  (system default)
SunOS he-solaris-build 5.11 11.1 sun4v sparc sun4v
        liblzma.so.5 =>  /opt/pkg/lib/liblzma.so.5
        libintl.so.8 =>  /opt/pkg/lib/libintl.so.8
        libiconv.so.2 =>         /opt/pkg/lib/libiconv.so.2
        libc.so.1 =>     /lib/libc.so.1
        libpthread.so.1 =>       /lib/libpthread.so.1
        librt.so.1 =>    /lib/librt.so.1
        libgcc_s.so.1 =>         /opt/pkg/gcc48//lib/./libgcc_s.so.1
        libm.so.2 =>     /lib/libm.so.2
        /lib/libm/libm_hwcap1.so.2

   find object=liblzma.so.5; required by /opt/pkg/bin/xz
    search path=/opt/pkg/gcc48//lib/.:/opt/pkg/gcc48/lib/.:/opt/pkg/gcc48/lib/gcc/sparc-sun-solaris2.11/4.8.2:/opt/pkg/gcc48/lib:/opt/pkg/lib  (RUNPATH/RPATH from file /opt/pkg/bin/xz)
    trying path=/opt/pkg/gcc48//lib/./liblzma.so.5
    trying path=/opt/pkg/gcc48/lib/./liblzma.so.5
    trying path=/opt/pkg/gcc48/lib/gcc/sparc-sun-solaris2.11/4.8.2/liblzma.so.5
    trying path=/opt/pkg/gcc48/lib/liblzma.so.5
    trying path=/opt/pkg/lib/liblzma.so.5
        liblzma.so.5 =>  /opt/pkg/lib/liblzma.so.5

On the Solaris 11 zone, libgcc_s.so.1 is resolved because of the much longer search path INSIDE /opt/pkg/bin/xz. On Solaris 10, this isn't the case. Pkgsrc has been bootstrapped from the same CVS version (head) and with identical bootstrap options (--prefix only). On both zones, the default search path hasn't been changed.

Bye...

    Dirk
--

Dirk Heinrichs, Senior Systems Engineer, Engineering Solutions
Recommind GmbH, Von-Liebig-Straße 1, 53359 Rheinbach
Tel: +49 2226 1596666 (Ansage) 1149
Email: dhs%recommind.com@localhost
Skype: dirk.heinrichs.recommind
www.recommind.com


Home | Main Index | Thread Index | Old Index