That's a glib-specific issue. The network resolver loads the libnss_* files on demand based on the contents of /etc/nsswitch.conf and there is no way I'm aware of to probe for such on-demand loads (though I'm sure a way exists, it's probably unpleasant.) In my experience, this is limited to glibc and none of the other libraries that may be needed for busybox have such surprises lurking. If you can remember to grab the libnss libs manually then snagging the ldd output list should be sufficient.
By the way, you can also grab the relocations directly from the binary with this horrific expression (replace the path as needed): readelf -d /bin/busybox | sed 's/.*\[\([^]]*\)]/\1/' Scary but effective. -Jody Bruchon On June 25, 2018 3:01:56 PM EDT, "Michael D. Setzer II" <mi...@guam.net> wrote: >Ran into a problem when trying to clean up libraries that were not >needed >within my project. > >Had done an ldd command on all programs and libraries, and created a >list. >A number of libraries I had in project were not linked to any programs >or >other libraries. Rebuilt project, and most things seemed to work just >fine, but >then found one that did not. > >Using busybox nslookup failed due to one of the libraries I had removed >not >being there? libnss_dns and libnss_files. ldd busybox doesn't report >these >libraries are used? Once I put those libraries back, the nslookup >resolves. > >Is there a way to find if there are any other such required libraries >rather than >having to find an issue at run time? > > >+------------------------------------------------------------+ > Michael D. Setzer II - Computer Science Instructor (Retired) > mailto:mi...@guam.net > mailto:msetze...@gmail.com > Guam - Where America's Day Begins > G4L Disk Imaging Project maintainer > http://sourceforge.net/projects/g4l/ >+------------------------------------------------------------+ > >http://setiathome.berkeley.edu (Original) >Number of Seti Units Returned: 19,471 >Processing time: 32 years, 290 days, 12 hours, 58 minutes >(Total Hours: 287,489) > >BOINC@HOME CREDITS > >ROSETTA 65587495.678649 | ABC 16613838.513356 >SETI 109399756.726799 | EINSTEIN 141174224.499240 > >_______________________________________________ >busybox mailing list >busybox@busybox.net >http://lists.busybox.net/mailman/listinfo/busybox -- Sent from my Android phone with K-9 Mail. Please excuse my brevity. _______________________________________________ busybox mailing list busybox@busybox.net http://lists.busybox.net/mailman/listinfo/busybox