This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
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));
Attachment:
signature.asc
Description: Digital signature
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |