ld-linux.so.2 cannot process libpthread.so.0
Steve Munroe
sjmunroe@us.ibm.com
Thu Dec 1 21:57:00 GMT 2005
Mark Jessee <mjessee04@gmail.com> wrote on 12/01/2005 02:26:51 PM:
> On 12/1/05, Steve Munroe <sjmunroe@us.ibm.com> wrote:
> > Mark Jessee <mjessee04@gmail.com> wrote on 12/01/2005 12:40:12 PM:
> >
> > > I've copied all the necessary files /lib files from my host machine.
> > > The strange thing is that when I use chroot into my target root
> > > filesystem it works fine. Its only when I run it on the target
(using
> > > the identical root filesystem) that it fails to process
> > > libpthread.so.0. Both kernel versions are the same (2.6.11). Any
> > > suggestions?
> >
> > LD_DEBUG=all <your appl>
> >
>
> Hi Steve, unfortunately this doesn't give much information. The
> output of LD_DEBUG is below. It shows that it tries
> /lib/tls/libpthread.so.0 and fails, but strace shows that it actually
> successfully opens and reads this library, but then closes it and
> continues searching. Don't know why it would work on my laptop but
> not on the AMD Elan target.
>
run the file command on your application and /lib/tls/libpthread.so.0
Are you perhaps mixing 32-/64-bit binaries? The load with skip over
libraries for a different ABI. The file command will show this.
More information about the Libc-alpha
mailing list