From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/10871 Path: news.gmane.org!.POSTED!not-for-mail From: Justin Cormack Newsgroups: gmane.linux.lib.musl.general Subject: Re: libstdc++ namespace pollution Date: Tue, 3 Jan 2017 21:16:29 +0000 Message-ID: References: <20170103182908.GH1555@brightrain.aerifal.cx> 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 1483478209 24974 195.159.176.226 (3 Jan 2017 21:16:49 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 3 Jan 2017 21:16:49 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-10884-gllmg-musl=m.gmane.org@lists.openwall.com Tue Jan 03 22:16:45 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 1cOWRl-0005cY-MZ for gllmg-musl@m.gmane.org; Tue, 03 Jan 2017 22:16:41 +0100 Original-Received: (qmail 1331 invoked by uid 550); 3 Jan 2017 21:16:43 -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 32757 invoked from network); 3 Jan 2017 21:16:42 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=specialbusservice.com; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=fQ+Zs7/WmI067bwa6zpa+C+uQWHQOlyyHv8b4Foot3A=; b=jv174glzE+zr59UkwRvEyc+KQrJUP80zH4gn8kJbHWi1JDdZ3OHwj73Vhbb6ZrYt5h uU6o3UNybW6eNbJOSgPmLvEYQjSQKmaf+TT3Ud/hzbPlLQ5yildii/2O3B4rEFWhx+WR K2mAgG6d1/jDO4rhQT1qNUosNDNVFNxfsF0Mg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=fQ+Zs7/WmI067bwa6zpa+C+uQWHQOlyyHv8b4Foot3A=; b=iDnPuBSJJ5xuk6u7MNdl7yf0HELJHHxx6qayQXeJWGcBgfIeKD5st+t3Xg9EmXn7UJ 3H0SpajCsiJ+9ljmKo1+amRJi8AfA3rT1G/koPjxIemy7JAsl0aEWfpzX529mRu5msEf iEu/IiCG/W4pNK6QjCiz6RIflUA2reCw33CbvWYYa1x3fayzfz7W06OfWA+7p/Vg+WBs wwF5SPf02sMojOA23RJ6DUZPNtfvp0yHPWMIN2YJkW9/VeljBiSpP1vv5BH2fgoFM7Ja +FSmLgcWiqjkj6AlwMyWZ5DdthKw/cKgyS+YbUSoipq4WpJZa1BD3SeAsb+bT+yQKm8X NJDg== X-Gm-Message-State: AIkVDXJep/GHHBiq3H56wImx1lfkvfTSAtkzaYnY5r+mSemJhX6V3F8CvzoByuBRyV4JzaO5Mpr4YmgMjqxoaQ== X-Received: by 10.159.38.228 with SMTP id 91mr47626226uay.102.1483478190201; Tue, 03 Jan 2017 13:16:30 -0800 (PST) In-Reply-To: <20170103182908.GH1555@brightrain.aerifal.cx> Xref: news.gmane.org gmane.linux.lib.musl.general:10871 Archived-At: On 3 January 2017 at 18:29, Rich Felker wrote: > On Tue, Jan 03, 2017 at 05:44:47PM +0000, Justin Cormack wrote: >> 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 > > So does glibc. :) This particular issue only happens with Musl, it includes more... >> 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)? > > This is a known issue that the gcc people want to fix, I think. It > might be possible to patch it out already it you're prepared to track > down things that break and fix them. Ok. Justin