Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When modules cannot be found... #1

Open
alicektx opened this issue May 29, 2021 · 1 comment
Open

When modules cannot be found... #1

alicektx opened this issue May 29, 2021 · 1 comment

Comments

@alicektx
Copy link

alicektx commented May 29, 2021

...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

@namhyung
Copy link
Owner

namhyung commented Jun 1, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants