Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 29210

Summary: sys-libs/glibc: --enable-static-nss
Product: Gentoo Linux Reporter: Sascha Silbe <sascha-gentoo-bugzilla>
Component: [OLD] Core systemAssignee: Martin Schlemmer (RETIRED) <azarah>
Status: RESOLVED CANTFIX    
Severity: minor    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: sys-libs/glibc-2.3.2-r1: use --enable-static-nss

Description Sascha Silbe 2003-09-20 11:50:33 UTC
The attached patch lets glibc build static versions of libnss_{files,dns}, too.
This enables statically linked binaries to use /etc/hosts and the like.


Reproducible: Always
Steps to Reproduce:
Comment 1 Sascha Silbe 2003-09-20 11:52:44 UTC
Created attachment 18043 [details, diff]
sys-libs/glibc-2.3.2-r1: use --enable-static-nss
Comment 2 Sascha Silbe 2003-09-20 14:23:28 UTC
Forget this patch for now. --enable-static-nss is broken and likely not to be fixed by the glibc maintainers:
http://www.geocrawler.com/archives/3/360/1998/12/0/1999096/
http://lists.nas.nasa.gov/archives/ext/linux-security-audit/2001/02/msg00062.html
http://www.gnu.org/software/libc/FAQ.html#s-2.22

Even the linker call given in the FAQ does not work...

I'll have to swallow the bitter pill and include the libnss_{files,dns}.so* files in initrds and chroots. :(

Comment 3 Sascha Silbe 2003-10-02 12:03:52 UTC
Closing since it's a glibc problem Gentoo can't fix (easily).