Closed GoogleCodeExporter closed 8 years ago
Error appears to be within xulrunner, so open an issue with them.
In file included from /usr/local/xulrunner-sdk/include/nsISupportsImpl.h:33:0,
from /usr/local/xulrunner-sdk/include/nsISupportsUtils.h:26,
from /usr/local/xulrunner-sdk/include/nsISupports.h:123,
from /usr/local/xulrunner-sdk/include/nsIPrefBranch.h:10,
from plugin.cpp:49:
/usr/local/xulrunner-sdk/include/mozilla/Atomics.h:840:19: error: expected identifier before ‘sizeof’
static_assert(sizeof(T) == 4 || (sizeof(uintptr_t) == 8 && sizeof(T) == 8),
^
/usr/local/xulrunner-sdk/include/mozilla/Atomics.h:840:19: error: expected ‘,’ or ‘...’ before ‘sizeof’
/usr/local/xulrunner-sdk/include/mozilla/Atomics.h:841:83: error: ISO C++ forbids declaration of ‘static_assert’ with no type [-fpermissive]
"mozilla/Atomics.h only supports 32-bit and pointer-sized types");
^
plugin.cpp: In constructor ‘CPlugin::CPlugin(NPP)’:
Original comment by kdeko...@gmail.com
on 15 Nov 2013 at 1:47
Nope. There's no "error within xulrunner".
For xulrunner > v25.0, gcc with C++11 flags enabled is required.
For distro-provided GCC 4.8.2, that's done with
CXXFLAGS="-std=gnu++0x"
at build time.
I.e., building gecko-mediaplayer with working xulrunner-sdk v>=25.0, and
current distro-available GCC++'s that do not have C++11 compiled-in (few do
...), that flag will have to be set for the build to succeed.
Either the user gets lucky and has a C++11-enabled compiler, or knows about
this and sets it, or gecko-mediaplayer config need to test for and set it.
Original comment by ops...@gmail.com
on 16 Nov 2013 at 2:34
reference here:
https://groups.google.com/forum/#!topic/mozilla.dev.platform/1Ba97-ooVuw
Original comment by ops...@gmail.com
on 16 Nov 2013 at 2:35
Sounds like something that xulrunner should provide in there .pc file. So that
when pkg-config --cflags xulrunner is run (which configure does do). This value
should come out. If you want to provide a patch I will merge it in otherwise.
Original comment by kdeko...@gmail.com
on 16 Nov 2013 at 1:54
I put in a workaround for xulrunner 26, but I still thing this is something
that xulrunner should provide in its pkg-config files.
Original comment by kdeko...@gmail.com
on 3 Jan 2014 at 4:34
Original issue reported on code.google.com by
ops...@gmail.com
on 15 Nov 2013 at 5:42