clang, dbus, firefox+thunderbird

Dimitry Andric dim at FreeBSD.org
Wed Jun 20 09:36:24 UTC 2012


On 2012-06-19 19:14, Andrew W. Nosenko wrote:
> On Tue, Jun 19, 2012 at 6:16 PM, Boris Samorodov <bsam at passap.ru> wrote:
...
>> /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 "<!DOCTYPE node PUBLIC
>> \""DBUS_INTROSPECT_1_0_XML_PUBLIC_IDENTIFIER"\"\n\""DBUS_INTROSPECT_1_0_XML_SYSTEM_IDENTIFIER"\">\n"
...
> As workaround, you may try either: "downgrade" to something like gnu++
> 98 (-std=gnu++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).

Yes, this is exactly how upstream has fixed it:

http://cgit.freedesktop.org/dbus/dbus/commit/dbus/dbus-protocol.h?id=51b88b4c7919487290c0862b013cd8e7cd2de34b


More information about the freebsd-ports mailing list