5 ms·
Article is dated 2009. Previous discussions: - [2009] https://news.ycombinator.com/item?id=902958 https://news.ycombinator.com/item?id=902958 - [2015] https:
by KolmogorovComp 3y ago
Article is dated 2009.
Previous discussions:
- [2009] https://news.ycombinator.com/item?id=902958 https://news.ycombinator.com/item?id=902958
- [2015] https://news.ycombinator.com/item?id=9629667 https://news.ycombinator.com/item?id=9629667
- [2022] https://news.ycombinator.com/item?id=30033807 https://news.ycombinator.com/item?id=30033807
Also formatting inside code-block is broken
- a1o 3y agoIs the mentioned issue in the article still true today?
- eqvinox 3y agoYes. So is the (IMHO) best workaround of using lddtree (pax-utils) instead. Available on pretty much all distros, though probably not installed by default.
- anthk 3y agoobjdump -x /path/to/bin | grep NEEDED
- eqvinox 3y agoDoesn't tell you if/where the library is found on your system.
- janAkali 3y agofor i in $(objdump -p /path/to/bin | grep NEEDED | awk '{print $2}'); do ldconfig -p | awk -v var="$i" '$1==var{print $0}'; done edit: even simpler, for i in $(objdump -p /path/to/bin | grep NEEDED | awk '{print $2}'); do ldconfig -p | grep $i; done
- eqvinox 3y agoCool, but I think I'll stick to lddtree ;) (… it also recurses down on the dependencies, presumably you can extend your shell script to do that too but at some point why not just use the existing tools?)
- mid-kid 3y agoNot in glibc at least[1], and I reckon many other implementations don't have this problem either. [1]: https://manpages.debian.org/bookworm/manpages/ldd.1.en.html#Security https://manpages.debian.org/bookworm/manpages/ldd.1.en.html#...