This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: ld-linux.so.2 cannot process libpthread.so.0
- From: Steve Munroe <sjmunroe at us dot ibm dot com>
- To: Mark Jessee <mjessee04 at gmail dot com>
- Cc: libc-alpha at sources dot redhat dot com
- Date: Thu, 1 Dec 2005 15:57:44 -0600
- Subject: Re: ld-linux.so.2 cannot process libpthread.so.0
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.