[csw-maintainers] 64bit ldd search patch

Dagobert Michelsen dam at opencsw.org
Mon May 27 15:59:25 CEST 2013


Hi Carsten,

Am 27.05.2013 um 15:55 schrieb Carsten Grzemba <grzemba at contac-dt.de>:
>  is this the right ld lib search path /opt/csw/lib/$ISALIST:/opt/csw/lib/64, which will result in find the 32bit lib first?:

Yes, this is normal. One could think that on 64 bit execution the 32 bit ISAs would be skipped,
but actually this is not the case. The problem is that the path to the newly built libcups.so.2 is
not searched, so you can either add the path with LD_LIBRARY_PATH intermediately (this is
what libtool does) or install the library to the correct path /opt/csw/lib/amd64.


Best regards

  -- Dago

> 
> cgrzemba at unstable10x:~/opencsw/cups/trunk/work/solaris10-i386/install-isa-amd64/opt/csw/lib/64$ ldd -s libcupsppdc.so.1
> 
>    find object=libcups.so.2; required by ./libcupsppdc.so.1
>     search path=/opt/csw/lib/$ISALIST:/opt/csw/lib/64:/opt/solarisstudio12.3/lib/amd64  (RUNPATH/RPATH from file ./libcupsppdc.so.1)
>     trying path=/opt/csw/lib/amd64/libcups.so.2
>     trying path=/opt/csw/lib/pentium_pro+mmx/libcups.so.2
>     trying path=/opt/csw/lib/pentium_pro/libcups.so.2
>     trying path=/opt/csw/lib/pentium+mmx/libcups.so.2
>     trying path=/opt/csw/lib/pentium/libcups.so.2
>     trying path=/opt/csw/lib/i486/libcups.so.2
>     trying path=/opt/csw/lib/i386/libcups.so.2
>     trying path=/opt/csw/lib/i86/libcups.so.2
>     trying path=/opt/csw/lib/64/libcups.so.2
>     trying path=/opt/solarisstudio12.3/lib/amd64/libcups.so.2
>     search path=/lib/64:/usr/lib/64  (default)
>     trying path=/lib/64/libcups.so.2
>     trying path=/usr/lib/64/libcups.so.2
>         libcups.so.2 =>  /opt/csw/lib/i386/libcups.so.2  - wrong ELF class: ELFCLASS32
> _______________________________________________
> maintainers mailing list
> maintainers at lists.opencsw.org
> https://lists.opencsw.org/mailman/listinfo/maintainers
> .:: This mailing list's archive is public. ::.

-- 
"You don't become great by trying to be great, you become great by wanting to do something,
and then doing it so hard that you become great in the process." - xkcd #896



More information about the maintainers mailing list