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

Re: ia32-libs problem



Christian Thalinger <twisti@complang.tuwien.ac.at> writes:

> Hi!
>
> I'm running a debian gcc-3.4 system with ia32-libs. I can run 32-bit
> binaries without problems like openoffice but not teamspeak. It's
> strange, because the linker cannot find some libraries, e.g. libpthread.
>
> gamer@workstation:~/ts2_client_rc2_2032$ ldd
> setup.data/image/TeamSpeak.bin 
>         linux-gate.so.1 =>  (0x00000000)
>         libX11.so.6 => /emul/ia32-linux/usr/X11R6/lib/libX11.so.6
> (0x55579000)
>         libpthread.so.0 => not found
>         libdl.so.2 => not found
>         libc.so.6 => not found
>         libdl.so.2 => not found
>         libc.so.6 => not found
> gamer@workstation:~/ts2_client_rc2_2032$ cat /etc/ld.so.conf |grep emul
> /emul/ia32-linux/lib
> /emul/ia32-linux/usr/lib
> /emul/ia32-linux/usr/X11R6/lib
> gamer@workstation:~/ts2_client_rc2_2032$ ls
> -l /emul/ia32-linux/usr/lib/libpthread*so*  
> -rw-r--r--  1 root root 78583 Dec 18
> 11:07 /emul/ia32-linux/usr/lib/libpthread-0.60.so
> -rw-r--r--  1 root root   242 Dec 18
> 11:06 /emul/ia32-linux/usr/lib/libpthread.so
> lrwxrwxrwx  1 root root    18 Dec 20
> 20:43 /emul/ia32-linux/usr/lib/libpthread.so.0 -> libpthread-0.60.so
>
> But with openoffice the library can be found:
>
> gamer@workstation:~/ts2_client_rc2_2032$
> ldd /usr/lib/openoffice/program/soffice.bin |grep pthread
>         libpthread.so.0 => /emul/ia32-linux/usr/lib/libpthread.so.0
> (0x55674000)
>
> Anyone an idea?
>
> TWISTI

I stumbled across the same problem too with other libs and
binaries. It is still a mystery to me but I suspect that the binary
has some hardcoded rpaths in it.

One trick I found is to link /usr/lib/i686/cmov ->
/emul/ia32-linux/usr/lib or similar (use strace to see where ld
searches for the lib).

MfG
        Goswin



Reply to: