From owner-freebsd-ports@FreeBSD.ORG Tue Jun 19 17:14:18 2012 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D1E0F1065686 for ; Tue, 19 Jun 2012 17:14:18 +0000 (UTC) (envelope-from andrew.w.nosenko@gmail.com) Received: from mail-qa0-f42.google.com (mail-qa0-f42.google.com [209.85.216.42]) by mx1.freebsd.org (Postfix) with ESMTP id 84D748FC08 for ; Tue, 19 Jun 2012 17:14:18 +0000 (UTC) Received: by qafi31 with SMTP id i31so2258605qaf.15 for ; Tue, 19 Jun 2012 10:14:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=G9EUgX5a95Wi4C0qXnTKoO4RATlgQJ32SIzRJyZ70ps=; b=yOOD4OcIDJJDXZbidBfG/tKsRTvhZy5/W8V4t4sMeVk6Mof1aRVsuwoMjmKVHFB7Zx sHtDJN03eyEqi4sJArmbi/QeI+ZI9wiF5BFz3lgc20GWDz3oCo96kyuwZB22xCwUT27t 9gALXfFzaY5m5ASq/ruOYgDArbMT2O+Dc/U5OZv41hbVKYLIY4PBSUYBLoFvQSVvS85B galEpSM4gjXm3zNDdnoXy/xC7mc7ZeXWNAB7tw7HBbjaiOoxzNAywEgp8qcRe4L8t4+G /AdqRoYBj1WARwCU4c/7uZmrW/uEvomAAzyXlq9JZxL5uvdvvlKWksQO0NCRDlZRP1Yu 9yGQ== MIME-Version: 1.0 Received: by 10.229.136.81 with SMTP id q17mr6035704qct.115.1340126052197; Tue, 19 Jun 2012 10:14:12 -0700 (PDT) Received: by 10.229.104.205 with HTTP; Tue, 19 Jun 2012 10:14:12 -0700 (PDT) In-Reply-To: <4FE097DA.30701@passap.ru> References: <4FE097DA.30701@passap.ru> Date: Tue, 19 Jun 2012 20:14:12 +0300 Message-ID: From: "Andrew W. Nosenko" To: Boris Samorodov Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-ports@freebsd.org Subject: Re: clang, dbus, firefox+thunderbird X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Jun 2012 17:14:18 -0000 On Tue, Jun 19, 2012 at 6:16 PM, Boris Samorodov wrote: > Hi List, > > I use clang compiled world (WITH_CLANG_IS_CC=3D"YES" and > WITH_LIBCPLUSPLUS=3D"YES" at /etc/make.conf). The system > is current: > ----- > % uname -a > FreeBSD bsam.wart.ru 10.0-CURRENT FreeBSD 10.0-CURRENT #16 r237055: Thu J= un > 14 17:16:43 SAMT 2012 =A0 =A0 bsam@bsam.wart.ru:/usr/obj/usr/src/sys/BBX = =A0i386 > ----- > > While updating to the latest firefox I get an error: > ----- > /usr/local/include/dbus-1.0/dbus/dbus-protocol.h:459:77: error: invalid > suffix on literal; C++11 requires a space between literal and identifier > [-Wreserved-user-defined-literal] > #define DBUS_INTROSPECT_1_0_XML_DOCTYPE_DECL_NODE " \""DBUS_INTROSPECT_1_0_XML_PUBLIC_IDENTIFIER"\"\n\""DBUS_INTROSPECT_1_0_X= ML_SYSTEM_IDENTIFIER"\">\n" > > =A0 =A0 ^ > > > /usr/local/include/dbus-1.0/dbus/dbus-protocol.h:459:126: error: invalid > suffix on literal; C++11 requires a space between literal and identifier > [-Wreserved-user-defined-literal] > #define DBUS_INTROSPECT_1_0_XML_DOCTYPE_DECL_NODE " \""DBUS_INTROSPECT_1_0_XML_PUBLIC_IDENTIFIER"\"\n\""DBUS_INTROSPECT_1_0_X= ML_SYSTEM_IDENTIFIER"\">\n" > > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0^ > > > 2 errors generated. > > ----- > > OK, I did make config and deselect DBUS. Great, firefox compiles and > installs (the latest one, 13.0.1). Then I try to upgrade thunderbird > and get the same error. However there is no option DBUS to disable. > > What am I to do? > Thanks! It's because of "User defined literals" (the new c++11 feature) and your clang++ is in c++11 (or gnu++11?) mode by default. As workaround, you may try either: "downgrade" to something like gnu++ 98 (-std=3Dgnu++98), or edit dbus-protocol.h header for make it c++11 compatible. It's easy: just add spaces around DBUS_INTROSPECT_1_0_XML_PUBLIC_IDENTIFIER and DBUS_INTROSPECT_1_0_XML_SYSTEM_IDENTIFIER literals in the line 459 (just as compiler suggested). I.e. the line 459 #define DBUS_INTROSPECT_1_0_XML_DOCTYPE_DECL_NODE "\n" should be written as #define DBUS_INTROSPECT_1_0_XML_DOCTYPE_DECL_NODE "\n" --=20 Andrew W. Nosenko