Quote:
Originally Posted by bootkernel
from above message,can i guess that glibc 2.3.2 version compiled this pthread.so
|
No, you cannot. Those are members of the version section which give compatibility of specific symbols to specific versions. More detailed information is provided by:
Code:
readelf -V libpthread.so
I am not sure of a reliable way to find out the version of libpthread (at least not without debugging symbols). If you have debugging symbols compiled-in, you can search for the symbol named:
If you don’t have debugging symbols compiled-in, you have to find this unnamed symbol by other known symbols around it.
I tried this GNU
grep out on Gentoo (with glibc-2.7 on amd64) and Ubuntu 7.10 (glibc-2.6.1 on i386), and it gave what you wanted (I am not sure if it will work with earlier or alternate arch versions of glibc):
Code:
grep -az -B30 'Native POSIX Threads Library' libpthread.so
You might have to adjust the number 30 a bit to match yours. If you want the actual version string only:
Code:
grep -az -B30 'Native POSIX Threads Library' libpthread.so | tr '\0' '\n' | head -1