mozjs and debug
When SpiderMonkey is compiled with --enable-debug, polkit must consider this and 0.115 doesn't:
make[4]: Entering directory '/src/freedesktop/polkit-0.115/src/polkitbackend'
CXX libpolkit_backend_1_la-polkitbackendjsauthority.lo
In file included from /usr/local/include/mozjs-60/jstypes.h:33:0,
from /usr/local/include/mozjs-60/js/Initialization.h:11,
from polkitbackendjsauthority.cpp:46:
/usr/local/include/mozjs-60/js-config.h:24:4: error: #error "SpiderMonkey was configured with --enable-debug, so DEBUG must be defined
# error "SpiderMonkey was configured with --enable-debug, so DEBUG must be defined when including this header"
^~~~~
polkitbackendjsauthority.cpp:165:1: error: too many initializers for ‘const JSClassOps’
};
^
polkitbackendjsauthority.cpp:187:1: error: too many initializers for ‘const JSClassOps’
};
^
polkitbackendjsauthority.cpp: In function ‘void polkit_backend_js_authority_constructed(GObject*)’:
polkitbackendjsauthority.cpp:472:30: error: ‘class JS::CompartmentBehaviors’ has no member named ‘setVersion’
compart_opts.behaviors().setVersion(JSVERSION_LATEST);
^~~~~~~~~~
polkitbackendjsauthority.cpp:472:41: error: ‘JSVERSION_LATEST’ was not declared in this scope
compart_opts.behaviors().setVersion(JSVERSION_LATEST);
^~~~~~~~~~~~~~~~
polkitbackendjsauthority.cpp:472:41: note: suggested alternative: ‘__VERSION__’
compart_opts.behaviors().setVersion(JSVERSION_LATEST);
^~~~~~~~~~~~~~~~
__VERSION__
polkitbackendjsauthority.cpp:479:16: error: ambiguous overload for ‘operator==’ (operand types are ‘JS::RootedObject {aka JS::Rooted<J
if (global == NULL)
^
polkitbackendjsauthority.cpp:479:16: note: candidate: operator==(JSObject*, JSObject*) <built-in>