Question: Finding libraries that are required for busybox??

Eli Schwartz eschwartz at archlinux.org
Mon Jun 25 20:40:07 UTC 2018


On 06/25/2018 04:30 PM, Michael D. Setzer II wrote:
> Thanks for all the quick reponses. Tried the options, but am just seeing a link 
> to libc.so.6 and no other libraries??

So your busybox binary is not statically linked. That doesn't really
change anything.

If your project depends on GNU libc, you are not permitted to "clean up
unused libraries" from glibc, at least not the libnss_* ones, because
GNU libc requires them even though it does not link to them, and it will
use them behind your back *anyway* via dlopen(3)
http://man7.org/linux/man-pages/man3/dlopen.3.html

You may solve this by not using GNU libc, or by specifically excluding
these shared libraries from being cleaned, or by writing a build system
which more accurately tracks what libraries to install in the first
place rather than cleaning up after the fact.

-- 
Eli Schwartz
Bug Wrangler and Trusted User

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20180625/857b2d01/attachment.asc>


More information about the busybox mailing list