This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: ld-linux.so.2 cannot process libpthread.so.0


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.

Here is the output from LD_DEBUG.

       836:	
       836:	file=libpthread.so.0 [0];  needed by hellothread [0]
       836:	find library=libpthread.so.0 [0]; searching
       836:	 search cache=/etc/ld.so.cache
       836:	 search
path=/lib/tls/i486:/lib/tls:/lib/i486:/lib:/usr/lib/tls/i486:/usr/lib/tls:/usr/lib/i486:/usr/lib		(system
search path)
       836:	  trying file=/lib/tls/i486/libpthread.so.0
       836:	  trying file=/lib/tls/libpthread.so.0
       836:	  trying file=/lib/i486/libpthread.so.0
       836:	  trying file=/lib/libpthread.so.0
       836:	  trying file=/usr/lib/tls/i486/libpthread.so.0
       836:	  trying file=/usr/lib/tls/libpthread.so.0
       836:	  trying file=/usr/lib/i486/libpthread.so.0
       836:	  trying file=/usr/lib/libpthread.so.0
       836:	
hellothread: error while loading shared libraries: libpthread.so.0:
cannot open shared object file: No such file or directory


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]