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.
Created attachment 534 [details] Protect appropriate static_link_warning()s by #ifndef DO_STATIC_NSS
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.