Author: Vic Date: To: Hampshire LUG Discussion List Subject: Re: [Hampshire] [Geeky] Semaphores and shared libraries...
> 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