[oclug] library dependancy
Gilles J. Seguin
segg at infonet.ca
Tue Jun 17 08:32:26 EDT 2003
Bob Lockie wrote:
>
> How can I tell what other libraries a library is dependant on?
> I'm getting a relocation error, undefined symbol for libxslt and grep
> say that function (xmlXPthOrderDocElems) is there so I figure it is some
> dependant library that is missing.
$ readelf -d /usr/lib/libxslt.so.1.0.30
Tag Type Name/Value
0x00000001 (NEEDED) Shared library: [libxml2.so.2]
0x00000001 (NEEDED) Shared library: [libz.so.1]
0x00000001 (NEEDED) Shared library: [libpthread.so.0]
0x00000001 (NEEDED) Shared library: [libm.so.6]
0x00000001 (NEEDED) Shared library: [libc.so.6]
since no RPATH, default path is used
$ cat libxslt.la | grep depend
# Libraries that this one depends upon.
dependency_libs=' -L/usr/lib /usr/lib/libxml2.la -lz -lpthread -lm'
$ ldd /usr/lib/libxslt.so.1.0.30
$ objdump -T libxml2.so.2.5.7 | grep xmlXPth
nothing
$ objdump -T libxslt.so | grep xmlXPth
nothing
More information about the OCLUG
mailing list