Why does my static build require shared libraries?

Why does my static build require shared libraries?

Every time I get these warnings from my linker ... (this is currently happening with openssh-5.2p1)

The warnings look something like this: "Using the" function "in statically linked applications requires, at runtime, the shared libraries from the glibc version used to ..."

When I google, I see only corrections, not reasons.

Thanks Chenz

+5
source share
1 answer

It does not require shared libs per se, it just warns you that some things may not work properly if you link statically with glibc.

: nsswitch, , /etc/nsswitch.conf. // - , samba Windows/ .

/etc/nsswitch.conf glibc, , gethostbyname, getpwuid , .

, , , , - dlopen()s glibc .

+5

Source: https://habr.com/ru/post/1712008/


All Articles