Shouldn't /usr/lib/libpthread.so be a symlink to /usr/lib/
libpthread.so.0 rather than an ASCII file? What does "ls -l /usr/lib/
libpthread*" produce?
On 08/01/2008, at 11:21 PM, Vic wrote:
>> Did you try looking for _sem_wait() instead?
>
> Of course :-)
>
>> If you type
>>
>> nm /usr/lib/libpthread.so | grep sem_wait
>
> [vic@goliath ~]$ nm /usr/lib/libpthread.so | grep sem_wait
> nm: /usr/lib/libpthread.so: File format not recognized
>
> [vic@goliath ~]$ file /usr/lib/libpthread.so
> /usr/lib/libpthread.so: ASCII C program text
>
> [vic@goliath ~]$ cat /usr/lib/libpthread.so
> /* GNU ld script
> Use the shared library, but some functions are only in
> the static library, so try that secondarily. */
> OUTPUT_FORMAT(elf32-i386)
> GROUP ( /lib/libpthread.so.0 /usr/lib/libpthread_nonshared.a )
>
> [vic@goliath ~]$ nm /lib/libpthread.so.0 | grep sem_wait
> 00009b30 t __new_sem_wait
> 0000bf38 t __old_sem_wait
> 0000bf38 T sem_wait@GLIBC_2.0
> 00009b30 T sem_wait@@GLIBC_2.1
>
> And dlsym() won't resolve against that library...
>
> Vic.
>
>
> --
> Please post to: Hampshire@???
> Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire
> LUG URL: http://www.hantslug.org.uk
> --------------------------------------------------------------