Who did #define static dynamic?

Jan-Benedict Glaw jbglaw@lug-owl.de
Tue Dec 6 22:11:00 GMT 2005


On Tue, 2005-12-06 13:49:28 -0800, bran phlake <branphlake@yahoo.com> wrote:
> Why on earth is gcc complaining about glibc dynamic
> libraries when I'm compiling something static?  Ex:
> 
> warning: Using 'gethostbyname' in statically linked
> applications requires at runtime the shared libraries
> from the glibc version used for linking
> 
> Static means static.
> 
> As in, doesn't need any shared libraries.
> 
> This is indefensible.
> 
> Please make your code stop sucking.

core-libc "only" implements a resolver framework. Individual
dynamically loaded libs are used to implement eg. DNS lookups, NIS/YP
and other resolver methods. For a typical Linux system, this would be
something like this:

$ ls -l /lib/libnss_*.so /lib/tls/libnss_*.so
-rw-r--r-- 1 root root 26332 2005-11-27 13:36 /lib/libnss_compat-2.3.5.so
-rw-r--r-- 1 root root 17840 2005-11-27 13:36 /lib/libnss_dns-2.3.5.so
-rw-r--r-- 1 root root 38376 2005-11-27 13:36 /lib/libnss_files-2.3.5.so
-rw-r--r-- 1 root root 17852 2005-11-27 13:36 /lib/libnss_hesiod-2.3.5.so
-rw-r--r-- 1 root root 34328 2005-11-27 13:36 /lib/libnss_nis-2.3.5.so
-rw-r--r-- 1 root root 38344 2005-11-27 13:36 /lib/libnss_nisplus-2.3.5.so
-rw-r--r-- 1 root root 30428 2005-11-27 13:36 /lib/tls/libnss_compat-2.3.5.so
-rw-r--r-- 1 root root 17840 2005-11-27 13:36 /lib/tls/libnss_dns-2.3.5.so
-rw-r--r-- 1 root root 42472 2005-11-27 13:36 /lib/tls/libnss_files-2.3.5.so
-rw-r--r-- 1 root root 17852 2005-11-27 13:36 /lib/tls/libnss_hesiod-2.3.5.so
-rw-r--r-- 1 root root 38424 2005-11-27 13:36 /lib/tls/libnss_nis-2.3.5.so
-rw-r--r-- 1 root root 38344 2005-11-27 13:36 /lib/tls/libnss_nisplus-2.3.5.so

MfG, JBG

-- 
Jan-Benedict Glaw       jbglaw@lug-owl.de    . +49-172-7608481             _ O _
"Eine Freie Meinung in  einem Freien Kopf    | Gegen Zensur | Gegen Krieg  _ _ O
 für einen Freien Staat voll Freier Bürger"  | im Internet! |   im Irak!   O O O
ret = do_actions((curr | FREE_SPEECH) & ~(NEW_COPYRIGHT_LAW | DRM | TCPA));
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20051206/c225193e/attachment.sig>


More information about the Libc-alpha mailing list