Ubuntu moving towards Wayland

Björn Persson bjorn at xn--rombobjrn-67a.se
Tue Nov 9 19:23:54 UTC 2010


Adam Jackson wrote:
> % ldd `which gcalctool` | grep libX
>         libX11.so.6 => /usr/lib/libX11.so.6 (0x05f1a000)
>         libXfixes.so.3 => /usr/lib/libXfixes.so.3 (0x001c1000)
>         libXext.so.6 => /usr/lib/libXext.so.6 (0x00d42000)
>         libXrender.so.1 => /usr/lib/libXrender.so.1 (0x001c6000)
>         libXinerama.so.1 => /usr/lib/libXinerama.so.1 (0x001cf000)
>         libXi.so.6 => /usr/lib/libXi.so.6 (0x0094e000)
>         libXrandr.so.2 => /usr/lib/libXrandr.so.2 (0x0095d000)
>         libXcursor.so.1 => /usr/lib/libXcursor.so.1 (0x009c8000)
>         libXcomposite.so.1 => /usr/lib/libXcomposite.so.1 (0x001d2000)
>         libXdamage.so.1 => /usr/lib/libXdamage.so.1 (0x001d5000)
>         libXau.so.6 => /usr/lib/libXau.so.6 (0x006f8000)

ldd appears to resolve dependencies recursively. I typically use readelf to 
see what a program links to.

$ readelf --dynamic `which gcalctool` | grep 'Shared library'
 0x0000000000000001 (NEEDED)          Shared library: [libgtk-x11-2.0.so.0]
 0x0000000000000001 (NEEDED)          Shared library: [libgdk-x11-2.0.so.0]
 0x0000000000000001 (NEEDED)          Shared library: [libatk-1.0.so.0]
 0x0000000000000001 (NEEDED)          Shared library: [libpangoft2-1.0.so.0]
 0x0000000000000001 (NEEDED)          Shared library: [libgdk_pixbuf-2.0.so.0]
 0x0000000000000001 (NEEDED)          Shared library: [libpangocairo-1.0.so.0]
 0x0000000000000001 (NEEDED)          Shared library: [libcairo.so.2]
 0x0000000000000001 (NEEDED)          Shared library: [libpango-1.0.so.0]
 0x0000000000000001 (NEEDED)          Shared library: [libfreetype.so.6]
 0x0000000000000001 (NEEDED)          Shared library: [libfontconfig.so.1]
 0x0000000000000001 (NEEDED)          Shared library: [libgconf-2.so.4]
 0x0000000000000001 (NEEDED)          Shared library: [libgio-2.0.so.0]
 0x0000000000000001 (NEEDED)          Shared library: [libgobject-2.0.so.0]
 0x0000000000000001 (NEEDED)          Shared library: [libgthread-2.0.so.0]
 0x0000000000000001 (NEEDED)          Shared library: [libxml2.so.2]
 0x0000000000000001 (NEEDED)          Shared library: [libgmodule-2.0.so.0]
 0x0000000000000001 (NEEDED)          Shared library: [librt.so.1]
 0x0000000000000001 (NEEDED)          Shared library: [libglib-2.0.so.0]
 0x0000000000000001 (NEEDED)          Shared library: [libm.so.6]
 0x0000000000000001 (NEEDED)          Shared library: [libpthread.so.0]
 0x0000000000000001 (NEEDED)          Shared library: [libc.so.6]

Björn Persson
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
Url : http://lists.fedoraproject.org/pipermail/devel/attachments/20101109/d1cb6898/attachment.bin 


More information about the devel mailing list