From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1120 invoked by alias); 18 Nov 2014 00:24:14 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 1078 invoked by uid 48); 18 Nov 2014 00:24:11 -0000 From: "ian at airs dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug go/63731] Fallback to netgo does not work Date: Tue, 18 Nov 2014 00:24:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: go X-Bugzilla-Version: 5.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ian at airs dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: ian at airs dot com X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-11/txt/msg01569.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63731 --- Comment #7 from Ian Lance Taylor --- That's really a question for the glibc maintainers. It's entirely a glibc issue. My understanding is that it's not actually libc.so that needs to be found. Glibc implements /etc/nsswitch.conf by loading a shared library for each entry listed there ("db", "files", etc.). That is a very flexible mechanism that allows nsswitch.conf to be extended on a system-specific basis. However, it only works if those shared libraries are available. It is those libraries (and libdl.so) that must be found at runtime. If the libraries can not be found, /etc/nsswitch.conf can not be implemented, and name lookups of various sorts fail by returning "not found."