namhyung / elftree

ELF library dependency viewer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

When modules cannot be found...

alicektx opened this issue · comments

...elftree sadly only returns the name of very first missing one and exits,
without reiterating / resolving the rest ones.
Example, say with the QT4-based version of v4l2ucp:

elftree ./v4l2ucp 
open : no such file or directory:  (libQtGui.so.4)
ldd ./v4l2ucp 
	linux-vdso.so.1 =>  (0x00007fff73d5f000)
	libQtGui.so.4 => not found
	libQtCore.so.4 => not found
	libv4l2.so.0 => /usr/lib/x86_64-linux-gnu/libv4l2.so.0 (0x00007feaa1893000)
	libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007feaa1511000)
	libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007feaa12fb000)
	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007feaa0f31000)
	libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007feaa0d14000)
	libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007feaa0b10000)
	libv4lconvert.so.0 => /usr/lib/x86_64-linux-gnu/libv4lconvert.so.0 (0x00007feaa0895000)
	libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007feaa058c000)
	/lib64/ld-linux-x86-64.so.2 (0x00007feaa1cc4000)
	librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007feaa0384000)
	libjpeg.so.8 => /usr/lib/x86_64-linux-gnu/libjpeg.so.8 (0x00007feaa012b000)

Alternatives to ldd like eg. lddsafe & lddtree (objdump & readelf based),
also report the rest of the (either existing or not found) deps.

elftree's dual stdio / tui mode however is the bee's knees obviously,
hence it would be really really nice if you ever felt like having a look at it...

All the best

Good point, I'll update when I can find some time :)