From owner-freebsd-bugs@FreeBSD.ORG Fri Sep 7 15:40:04 2012 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 38ACA1065670 for ; Fri, 7 Sep 2012 15:40:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 11C7E8FC16 for ; Fri, 7 Sep 2012 15:40:04 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q87Fe36h091836 for ; Fri, 7 Sep 2012 15:40:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q87Fe3AW091823; Fri, 7 Sep 2012 15:40:03 GMT (envelope-from gnats) Resent-Date: Fri, 7 Sep 2012 15:40:03 GMT Resent-Message-Id: <201209071540.q87Fe3AW091823@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, yamayan Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0D491106564A for ; Fri, 7 Sep 2012 15:37:16 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id D32FC8FC0C for ; Fri, 7 Sep 2012 15:37:15 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.5/8.14.5) with ESMTP id q87FbFPX048463 for ; Fri, 7 Sep 2012 15:37:15 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.5/8.14.5/Submit) id q87FbFjF048462; Fri, 7 Sep 2012 15:37:15 GMT (envelope-from nobody) Message-Id: <201209071537.q87FbFjF048462@red.freebsd.org> Date: Fri, 7 Sep 2012 15:37:15 GMT From: yamayan To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: misc/171414: [patch] compile error at dbus header in c++11 mode X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Sep 2012 15:40:04 -0000 >Number: 171414 >Category: misc >Synopsis: [patch] compile error at dbus header in c++11 mode >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Sep 07 15:40:03 UTC 2012 >Closed-Date: >Last-Modified: >Originator: yamayan >Release: 10-CURRENT >Organization: >Environment: FreeBSD genius 10.0-CURRENT FreeBSD 10.0-CURRENT #0 r240071M: Mon Sep 3 23:05:03 JST 2012 root@genius:/usr/obj/usr/src/sys/NYANCO amd64 >Description: No space between literal and identifier in dbus header. related ports/171343 www/firefox build error message: (snip) In file included from /usr/ports/www/firefox/work/mozilla-release/hal/linux/UPowerClient.cpp:8: In file included from /usr/local/include/dbus-1.0/dbus/dbus-glib-lowlevel.h:28: In file included from /usr/local/include/dbus-1.0/dbus/dbus.h:30: In file included from /usr/local/include/dbus-1.0/dbus/dbus-address.h:31: In file included from /usr/local/include/dbus-1.0/dbus/dbus-errors.h:33: /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 "\n" ^ /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 "\n" ^ (snip) >How-To-Repeat: >Fix: add spaces between literal and identifier. Patch attached with submission follows: --- dbus/dbus-protocol.h.orig 2012-05-05 17:04:15.735156255 +0900 +++ dbus/dbus-protocol.h 2012-05-05 17:04:50.264154284 +0900 @@ -456,7 +456,7 @@ /** XML system identifier of the introspection format version 1.0 */ #define DBUS_INTROSPECT_1_0_XML_SYSTEM_IDENTIFIER "http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd" /** XML document type declaration of the introspection format version 1.0 */ -#define DBUS_INTROSPECT_1_0_XML_DOCTYPE_DECL_NODE "\n" +#define DBUS_INTROSPECT_1_0_XML_DOCTYPE_DECL_NODE "\n" /** @} */ >Release-Note: >Audit-Trail: >Unformatted: