clang, dbus, firefox+thunderbird

Dimitry Andric dim at FreeBSD.org
Wed Jun 20 08:54:08 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: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 "<!DOCTYPE node PUBLIC
>> \""DBUS_INTROSPECT_1_0_XML_PUBLIC_IDENTIFIER"\"\n\""DBUS_INTROSPECT_1_0_XML_SYSTEM_IDENTIFIER"\">\n"
...
> 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.

Note, the version of clang in base defaults to gnu++98, *not* c++11 or
gnu++11.  Maybe this is added by the configure script, after detection
of c++11 support?


More information about the freebsd-ports mailing list