From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/10869 Path: news.gmane.org!.POSTED!not-for-mail From: Justin Cormack Newsgroups: gmane.linux.lib.musl.general Subject: libstdc++ namespace pollution Date: Tue, 3 Jan 2017 17:44:47 +0000 Message-ID: Reply-To: musl@lists.openwall.com NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: blaine.gmane.org 1483465511 9420 195.159.176.226 (3 Jan 2017 17:45:11 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 3 Jan 2017 17:45:11 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-10882-gllmg-musl=m.gmane.org@lists.openwall.com Tue Jan 03 18:45:07 2017 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by blaine.gmane.org with smtp (Exim 4.84_2) (envelope-from ) id 1cOT8u-00019b-PU for gllmg-musl@m.gmane.org; Tue, 03 Jan 2017 18:45:00 +0100 Original-Received: (qmail 15543 invoked by uid 550); 3 Jan 2017 17:45:01 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 15493 invoked from network); 3 Jan 2017 17:44:59 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=specialbusservice.com; s=google; h=mime-version:from:date:message-id:subject:to; bh=USHJZbPMTsJaj5DCCScwxXAvQk4ER72lt8Ez/Ei/l7k=; b=ftWyrJIn1Eg62ZFQfy7E5hqxwXs9hhGndqqlga1LUdQuP7WqlbU12Fj2KNsLLRjEEp rXUk1rQHi7C6eeZ4C7jC6gA5LC7Y5qxHKZiihFxI6+ERKIrxO/IgK4RWvKK2ZcN5Z3Gk SMnop8qt2MZm5XcfeqDryeLuwYpsyAM4q6LfQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=USHJZbPMTsJaj5DCCScwxXAvQk4ER72lt8Ez/Ei/l7k=; b=Ev8ghkXltZOL1RMDXf8X2WtVX5wQmHlim7T7hBkZePTaG1DYRiYrQHCnVmZQfggGoU zt3PASBP8gtgTUiTekzDwEi9ksGhgSeWIE+x1sQ9qKdGxY66cucr8RicCXnOo4bQwPUg 1UgsBecJX1i6NRW7+1/Vg020noIn42wcmGe7S3+mi9gdnxZDKH+MhGLSPXtK+YI07pth 1SyFK07lD/mj0vteM7ireq4ADbMGqug4YMENJ00MB6E4zYDgcj73sBNI9Wa8yQL/j0V9 3YNadjCxgi+go4e/mpER5RSRLk6TC7wPIqPf7XpNM1xVb7jwzsuKX7YN4uA6aDVoGgry zu7w== X-Gm-Message-State: AIkVDXJekEKh8m6pq833iGny2H6XhcA6EtjIwQB8/mTzw/WXh+zDeXM1nlNaYlkVIZiK6r0bSaAzVdwZYp6+cQ== X-Received: by 10.176.3.86 with SMTP id 80mr49439324uat.157.1483465487783; Tue, 03 Jan 2017 09:44:47 -0800 (PST) Xref: news.gmane.org gmane.linux.lib.musl.general:10869 Archived-At: I have been trying to build a C++ program recently, and came across the issue that 1. libstdc++ always defines _GNU_SOURCE see https://gcc.gnu.org/onlinedocs/libstdc++/faq.html#faq.predefined 2. Musl defines pretty much everything once _GNU_SOURCE is defined In this case the issue was that the program included and then the register names REG_RIP etc were #defined as numeric constants, while the program wanted to use them as names for an enum. Does anyone have any recommendations (wondering about trying clang libc++ perhaps)? Justin