Bug 1043 - --enable-static-nss false linking warnings
Summary: --enable-static-nss false linking warnings
Status: RESOLVED WONTFIX
Alias: None
Product: glibc
Classification: Unclassified
Component: libc (show other bugs)
Version: 2.3.5
: P2 minor
Target Milestone: ---
Assignee: GOTO Masanori
URL:
Keywords:
Depends on:
Blocks: 1045
  Show dependency treegraph
 
Reported: 2005-07-03 10:03 UTC by Jan Kratochvil
Modified: 2005-07-19 03:47 UTC (History)
1 user (show)

See Also:
Host: i386-redhat-linux-gnu
Target: i386-redhat-linux-gnu
Build: i386-redhat-linux-gnu
Last reconfirmed:


Attachments
Protect appropriate static_link_warning()s by #ifndef DO_STATIC_NSS (634 bytes, patch)
2005-07-03 10:07 UTC, Jan Kratochvil
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Kratochvil 2005-07-03 10:03:47 UTC
After build --disabled-shared --enable-static-nss glibc library it reports
warnings intended for glibc "--disabled-shared" (or "gcc application.c -static"
at all) but no longer valid for glibc built with: --enable-static-nss

warning: Using 'getpwnam' in statically linked applications requires at runtime
the shared libraries from the glibc version used for linking

Patch attached.
Comment 1 Jan Kratochvil 2005-07-03 10:07:41 UTC
Created attachment 534 [details]
Protect appropriate static_link_warning()s by #ifndef DO_STATIC_NSS
Comment 2 Roland McGrath 2005-07-19 03:47:31 UTC
This patch is appropriate to submit to the mailing lists, with complete
ChangeLog entries, after you have gotten in the fixes to make
--enable-static-nss builds work.