Return-Path: X-Original-To: apmail-httpd-modules-dev-archive@minotaur.apache.org Delivered-To: apmail-httpd-modules-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8C350D15F for ; Tue, 24 Jul 2012 21:18:27 +0000 (UTC) Received: (qmail 12147 invoked by uid 500); 24 Jul 2012 21:18:27 -0000 Delivered-To: apmail-httpd-modules-dev-archive@httpd.apache.org Received: (qmail 12108 invoked by uid 500); 24 Jul 2012 21:18:27 -0000 Mailing-List: contact modules-dev-help@httpd.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: modules-dev@httpd.apache.org Delivered-To: mailing list modules-dev@httpd.apache.org Received: (qmail 12099 invoked by uid 99); 24 Jul 2012 21:18:27 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Jul 2012 21:18:27 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of cantor.2@osu.edu designates 128.146.216.226 as permitted sender) Received: from [128.146.216.226] (HELO defang23.it.ohio-state.edu) (128.146.216.226) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Jul 2012 21:18:14 +0000 Received: from CIO-TNC-HT06.osuad.osu.edu (cio-tnc-ht06.osuad.osu.edu [164.107.81.171]) by defang23.it.ohio-state.edu (8.13.1/8.13.1) with ESMTP id q6OLHrR0032658 for ; Tue, 24 Jul 2012 17:17:53 -0400 Received: from CIO-KRC-HT03.osuad.osu.edu (164.107.81.43) by CIO-TNC-HT06.osuad.osu.edu (164.107.81.171) with Microsoft SMTP Server (TLS) id 14.2.309.2; Tue, 24 Jul 2012 17:17:52 -0400 Received: from CIO-KRC-D1MBX01.osuad.osu.edu ([fe80::450b:35e6:80f4:f3e0]) by CIO-KRC-HT03.osuad.osu.edu ([fe80::2572:c08d:8186:46a4%12]) with mapi id 14.02.0309.002; Tue, 24 Jul 2012 17:17:52 -0400 From: "Cantor, Scott" To: "modules-dev@httpd.apache.org" Subject: Re: AP_INIT_TAKEn macros / gcc 4.6.3? Thread-Topic: AP_INIT_TAKEn macros / gcc 4.6.3? Thread-Index: Ac1pwJG5RFDwIWq3SN6eDzbH1EzV6AAKzxkA///r9oA= Date: Tue, 24 Jul 2012 21:17:51 +0000 Message-ID: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [128.146.178.41] Content-Type: text/plain; charset="us-ascii" Content-ID: Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Spam-Score: 0.00 () [Tag at 4.50] SPF(pass,0) X-CanIt-Geo: ip=164.107.81.171; country=US; region=OH; city=Wooster; postalcode=44691; latitude=40.8051; longitude=-81.9351; metrocode=510; areacode=330; http://maps.google.com/maps?q=40.8051,-81.9351&z=6 X-CanItPRO-Stream: outbound X-Scanned-By: CanIt (www . roaringpenguin . com) on 128.146.216.226 X-Virus-Checked: Checked by ClamAV on apache.org On 7/24/12 2:29 PM, "Nick Kew" wrote: > >On 24 Jul 2012, at 18:23, Cantor, Scott wrote: > >> I'm still investigating, just wondering if anybody has seen this. > >Yes. It's not new: C++ doesn't like those macros. > >Simple fix is to enclose them in extern "C" { ... }. >Alternatively, expand them by hand as per C rules. Actually, I had this wrapped already. What broke is that this particular build is turning on AP_HAVE_DESIGNATED_INITIALIZER, which is based on: #if (defined(__GNUC__) && !defined(__cplusplus)) \ || (defined(__STDC_VERSION__) && __STDC_VERSION__ >=3D 199901L) #define AP_HAVE_DESIGNATED_INITIALIZER #endif The second half of that ifdef is activating even for g++, which is definitely not supposed to happen. Not sure why yet. -- Scott