Compiling with mozjs-60
… emits:
make all-am
make[4]: Entering directory '/src/freedesktop/polkit-0.115/src/polkitbackend'
CXX libpolkit_backend_1_la-polkitbackendjsauthority.lo
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<JSObject*>}’ and ‘long int’)
if (global == NULL)
^
polkitbackendjsauthority.cpp:479:16: note: candidate: operator==(JSObject*, JSObject*) <built-in>
In file included from /usr/local/include/mozjs-60/js/CallArgs.h:73:0,
from /usr/local/include/mozjs-60/jsapi.h:29,
from polkitbackendjsauthority.cpp:47:
/usr/local/include/mozjs-60/js/RootingAPI.h:1544:1: note: candidate: typename mozilla::EnableIf<js::detail::DefineComparisonOps<T>::value, bool>::Type operator==(const T&, const typename T::ElementType&) [with T = JS::Rooted<JSObject*>; typename mozilla::EnableIf<js::detail::DefineComparisonOps<T>::value, bool>::Type = bool; typename T::ElementType = JSObject*]
operator==(const T& a, const typename T::ElementType& b) {
^~~~~~~~
/usr/local/include/mozjs-60/js/RootingAPI.h:1586:1: note: candidate: typename mozilla::EnableIf<(js::detail::DefineComparisonOps<T>::value && mozilla::IsPointer<typename T::ElementType>::value), bool>::Type operator==(const T&, const typename mozilla::RemovePointer<typename T::ElementType>::Type*) [with T = JS::Rooted<JSObject*>; typename mozilla::EnableIf<(js::detail::DefineComparisonOps<T>::value && mozilla::IsPointer<typename T::ElementType>::value), bool>::Type = bool; typename mozilla::RemovePointer<typename T::ElementType>::Type = JSObject]
operator==(const T& a, const typename mozilla::RemovePointer<typename T::ElementType>::Type* b) {
^~~~~~~~
/usr/local/include/mozjs-60/js/RootingAPI.h:1616:1: note: candidate: typename mozilla::EnableIf<(js::detail::DefineComparisonOps<T>::value && mozilla::IsPointer<typename T::ElementType>::value), bool>::Type operator==(const T&, std::nullptr_t) [with T = JS::Rooted<JSObject*>; typename mozilla::EnableIf<(js::detail::DefineComparisonOps<T>::value && mozilla::IsPointer<typename T::ElementType>::value), bool>::Type = bool; std::nullptr_t = std::nullptr_t]
operator==(const T& a, std::nullptr_t b) {
^~~~~~~~
polkitbackendjsauthority.cpp:496:16: error: ambiguous overload for ‘operator==’ (operand types are ‘JS::RootedObject {aka JS::Rooted<JSObject*>}’ and ‘long int’)
if (polkit == NULL)
^
polkitbackendjsauthority.cpp:496:16: note: candidate: operator==(JSObject*, JSObject*) <built-in>
In file included from /usr/local/include/mozjs-60/js/CallArgs.h:73:0,
from /usr/local/include/mozjs-60/jsapi.h:29,
from polkitbackendjsauthority.cpp:47:
/usr/local/include/mozjs-60/js/RootingAPI.h:1544:1: note: candidate: typename mozilla::EnableIf<js::detail::DefineComparisonOps<T>::value, bool>::Type operator==(const T&, const typename T::ElementType&) [with T = JS::Rooted<JSObject*>; typename mozilla::EnableIf<js::detail::DefineComparisonOps<T>::value, bool>::Type = bool; typename T::ElementType = JSObject*]
operator==(const T& a, const typename T::ElementType& b) {
^~~~~~~~
/usr/local/include/mozjs-60/js/RootingAPI.h:1586:1: note: candidate: typename mozilla::EnableIf<(js::detail::DefineComparisonOps<T>::value && mozilla::IsPointer<typename T::ElementType>::value), bool>::Type operator==(const T&, const typename mozilla::RemovePointer<typename T::ElementType>::Type*) [with T = JS::Rooted<JSObject*>; typename mozilla::EnableIf<(js::detail::DefineComparisonOps<T>::value && mozilla::IsPointer<typename T::ElementType>::value), bool>::Type = bool; typename mozilla::RemovePointer<typename T::ElementType>::Type = JSObject]
operator==(const T& a, const typename mozilla::RemovePointer<typename T::ElementType>::Type* b) {
^~~~~~~~
/usr/local/include/mozjs-60/js/RootingAPI.h:1616:1: note: candidate: typename mozilla::EnableIf<(js::detail::DefineComparisonOps<T>::value && mozilla::IsPointer<typename T::ElementType>::value), bool>::Type operator==(const T&, std::nullptr_t) [with T = JS::Rooted<JSObject*>; typename mozilla::EnableIf<(js::detail::DefineComparisonOps<T>::value && mozilla::IsPointer<typename T::ElementType>::value), bool>::Type = bool; std::nullptr_t = std::nullptr_t]
operator==(const T& a, std::nullptr_t b) {
^~~~~~~~
polkitbackendjsauthority.cpp:507:53: error: ‘JSVERSION_UNKNOWN’ was not declared in this scope
JS::CompileOptions options(authority->priv->cx, JSVERSION_UNKNOWN);
^~~~~~~~~~~~~~~~~
polkitbackendjsauthority.cpp:507:53: note: suggested alternative: ‘JSVAL_TYPE_UNKNOWN’
JS::CompileOptions options(authority->priv->cx, JSVERSION_UNKNOWN);
^~~~~~~~~~~~~~~~~
JSVAL_TYPE_UNKNOWN
polkitbackendjsauthority.cpp: In function ‘void polkit_backend_js_authority_class_init(PolkitBackendJsAuthorityClass*)’:
polkitbackendjsauthority.cpp:650:76: warning: ‘void g_type_class_add_private(gpointer, gsize)’ is deprecated [-Wdeprecated-declarations]
g_type_class_add_private (klass, sizeof (PolkitBackendJsAuthorityPrivate));
^
In file included from /usr/local/include/glib-2.0/gobject/gobject.h:24:0,
from /usr/local/include/glib-2.0/gobject/gbinding.h:29,
from /usr/local/include/glib-2.0/glib-object.h:23,
from ../../src/polkit/polkittypes.h:25,
from ../../src/polkit/polkit.h:27,
from polkitbackendjsauthority.cpp:37:
/usr/local/include/glib-2.0/gobject/gtype.h:1303:10: note: declared here
void g_type_class_add_private (gpointer g_class,
^~~~~~~~~~~~~~~~~~~~~~~~
polkitbackendjsauthority.cpp: In function ‘gboolean subject_to_jsval(PolkitBackendJsAuthority*, PolkitSubject*, PolkitIdentity*, gboolean, gboolean, JS::MutableHandleValue, GError**)’:
polkitbackendjsauthority.cpp:744:51: error: ‘JSVERSION_UNKNOWN’ was not declared in this scope
JS::CompileOptions options(authority->priv->cx, JSVERSION_UNKNOWN);
^~~~~~~~~~~~~~~~~
polkitbackendjsauthority.cpp:744:51: note: suggested alternative: ‘JSVAL_TYPE_UNKNOWN’
JS::CompileOptions options(authority->priv->cx, JSVERSION_UNKNOWN);
^~~~~~~~~~~~~~~~~
JSVAL_TYPE_UNKNOWN
polkitbackendjsauthority.cpp: In function ‘gboolean action_and_details_to_jsval(PolkitBackendJsAuthority*, const gchar*, PolkitDetails*, JS::MutableHandleValue, GError**)’:
polkitbackendjsauthority.cpp:871:51: error: ‘JSVERSION_UNKNOWN’ was not declared in this scope
JS::CompileOptions options(authority->priv->cx, JSVERSION_UNKNOWN);
^~~~~~~~~~~~~~~~~
polkitbackendjsauthority.cpp:871:51: note: suggested alternative: ‘JSVAL_TYPE_UNKNOWN’
JS::CompileOptions options(authority->priv->cx, JSVERSION_UNKNOWN);
^~~~~~~~~~~~~~~~~
JSVAL_TYPE_UNKNOWN
polkitbackendjsauthority.cpp: In function ‘void utils_on_cancelled(GCancellable*, gpointer)’:
polkitbackendjsauthority.cpp:1673:56: warning: ‘void g_simple_async_result_take_error(GSimpleAsyncResult*, GError*)’ is deprecated [-Wdeprecated-declarations]
g_simple_async_result_take_error (data->simple, error);
^
In file included from /usr/local/include/glib-2.0/gio/gio.h:117:0,
from ../../src/polkit/polkitactiondescription.h:30,
from ../../src/polkit/polkit.h:30,
from polkitbackendjsauthority.cpp:37:
/usr/local/include/glib-2.0/gio/gsimpleasyncresult.h:116:21: note: declared here
void g_simple_async_result_take_error (GSimpleAsyncResult *simple,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
polkitbackendjsauthority.cpp:1674:55: warning: ‘void g_simple_async_result_complete_in_idle(GSimpleAsyncResult*)’ is deprecated [-Wdeprecated-declarations]
g_simple_async_result_complete_in_idle (data->simple);
^
In file included from /usr/local/include/glib-2.0/gio/gio.h:117:0,
from ../../src/polkit/polkitactiondescription.h:30,
from ../../src/polkit/polkit.h:30,
from polkitbackendjsauthority.cpp:37:
/usr/local/include/glib-2.0/gio/gsimpleasyncresult.h:106:21: note: declared here
void g_simple_async_result_complete_in_idle (GSimpleAsyncResult *simple);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
polkitbackendjsauthority.cpp: In function ‘void utils_child_watch_cb(GPid, gint, gpointer)’:
polkitbackendjsauthority.cpp:1733:55: warning: ‘void g_simple_async_result_complete_in_idle(GSimpleAsyncResult*)’ is deprecated [-Wdeprecated-declarations]
g_simple_async_result_complete_in_idle (data->simple);
^
In file included from /usr/local/include/glib-2.0/gio/gio.h:117:0,
from ../../src/polkit/polkitactiondescription.h:30,
from ../../src/polkit/polkit.h:30,
from polkitbackendjsauthority.cpp:37:
/usr/local/include/glib-2.0/gio/gsimpleasyncresult.h:106:21: note: declared here
void g_simple_async_result_complete_in_idle (GSimpleAsyncResult *simple);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
polkitbackendjsauthority.cpp: In function ‘gboolean utils_timeout_cb(gpointer)’:
polkitbackendjsauthority.cpp:1748:55: warning: ‘void g_simple_async_result_complete_in_idle(GSimpleAsyncResult*)’ is deprecated [-Wdeprecated-declarations]
g_simple_async_result_complete_in_idle (data->simple);
^
In file included from /usr/local/include/glib-2.0/gio/gio.h:117:0,
from ../../src/polkit/polkitactiondescription.h:30,
from ../../src/polkit/polkit.h:30,
from polkitbackendjsauthority.cpp:37:
/usr/local/include/glib-2.0/gio/gsimpleasyncresult.h:106:21: note: declared here
void g_simple_async_result_complete_in_idle (GSimpleAsyncResult *simple);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
polkitbackendjsauthority.cpp: In function ‘void utils_spawn(const gchar* const*, guint, GCancellable*, GAsyncReadyCallback, gpointer)’:
polkitbackendjsauthority.cpp:1769:67: warning: ‘GSimpleAsyncResult* g_simple_async_result_new(GObject*, GAsyncReadyCallback, gpointer, gpointer)’ is deprecated: Use 'g_task_new' instead [-Wdeprecated-declarations]
(gpointer*)utils_spawn);
^
In file included from /usr/local/include/glib-2.0/gio/gio.h:117:0,
from ../../src/polkit/polkitactiondescription.h:30,
from ../../src/polkit/polkit.h:30,
from polkitbackendjsauthority.cpp:37:
/usr/local/include/glib-2.0/gio/gsimpleasyncresult.h:51:21: note: declared here
GSimpleAsyncResult *g_simple_async_result_new (GObject *source_object,
^~~~~~~~~~~~~~~~~~~~~~~~~
polkitbackendjsauthority.cpp:1782:104: warning: ‘void g_simple_async_result_set_op_res_gpointer(GSimpleAsyncResult*, gpointer, GDestroyNotify)’ is deprecated [-Wdeprecated-declarations]
g_simple_async_result_set_op_res_gpointer (data->simple, data, (GDestroyNotify) utils_spawn_data_free);
^
In file included from /usr/local/include/glib-2.0/gio/gio.h:117:0,
from ../../src/polkit/polkitactiondescription.h:30,
from ../../src/polkit/polkit.h:30,
from polkitbackendjsauthority.cpp:37:
/usr/local/include/glib-2.0/gio/gsimpleasyncresult.h:75:21: note: declared here
void g_simple_async_result_set_op_res_gpointer (GSimpleAsyncResult *simple,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
polkitbackendjsauthority.cpp:1791:64: warning: ‘void g_simple_async_result_take_error(GSimpleAsyncResult*, GError*)’ is deprecated [-Wdeprecated-declarations]
g_simple_async_result_take_error (data->simple, error);
^
In file included from /usr/local/include/glib-2.0/gio/gio.h:117:0,
from ../../src/polkit/polkitactiondescription.h:30,
from ../../src/polkit/polkit.h:30,
from polkitbackendjsauthority.cpp:37:
/usr/local/include/glib-2.0/gio/gsimpleasyncresult.h:116:21: note: declared here
void g_simple_async_result_take_error (GSimpleAsyncResult *simple,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
polkitbackendjsauthority.cpp:1792:63: warning: ‘void g_simple_async_result_complete_in_idle(GSimpleAsyncResult*)’ is deprecated [-Wdeprecated-declarations]
g_simple_async_result_complete_in_idle (data->simple);
^
In file included from /usr/local/include/glib-2.0/gio/gio.h:117:0,
from ../../src/polkit/polkitactiondescription.h:30,
from ../../src/polkit/polkit.h:30,
from polkitbackendjsauthority.cpp:37:
/usr/local/include/glib-2.0/gio/gsimpleasyncresult.h:106:21: note: declared here
void g_simple_async_result_complete_in_idle (GSimpleAsyncResult *simple);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
polkitbackendjsauthority.cpp:1817:60: warning: ‘void g_simple_async_result_take_error(GSimpleAsyncResult*, GError*)’ is deprecated [-Wdeprecated-declarations]
g_simple_async_result_take_error (data->simple, error);
^
In file included from /usr/local/include/glib-2.0/gio/gio.h:117:0,
from ../../src/polkit/polkitactiondescription.h:30,
from ../../src/polkit/polkit.h:30,
from polkitbackendjsauthority.cpp:37:
/usr/local/include/glib-2.0/gio/gsimpleasyncresult.h:116:21: note: declared here
void g_simple_async_result_take_error (GSimpleAsyncResult *simple,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
polkitbackendjsauthority.cpp:1818:59: warning: ‘void g_simple_async_result_complete_in_idle(GSimpleAsyncResult*)’ is deprecated [-Wdeprecated-declarations]
g_simple_async_result_complete_in_idle (data->simple);
^
In file included from /usr/local/include/glib-2.0/gio/gio.h:117:0,
from ../../src/polkit/polkitactiondescription.h:30,
from ../../src/polkit/polkit.h:30,
from polkitbackendjsauthority.cpp:37:
/usr/local/include/glib-2.0/gio/gsimpleasyncresult.h:106:21: note: declared here
void g_simple_async_result_complete_in_idle (GSimpleAsyncResult *simple);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/local/lib64/glib-2.0/include/glibconfig.h:9:0,
from /usr/local/include/glib-2.0/glib/gtypes.h:32,
from /usr/local/include/glib-2.0/glib/galloca.h:32,
from /usr/local/include/glib-2.0/glib.h:30,
from /usr/local/include/glib-2.0/glib/gprintf.h:21,
from /usr/local/include/glib-2.0/glib/gstdio.h:22,
from polkitbackendjsauthority.cpp:33:
polkitbackendjsauthority.cpp: In function ‘gboolean utils_spawn_finish(GAsyncResult*, gint*, gchar**, gchar**, GError**)’:
polkitbackendjsauthority.cpp:1869:63: warning: ‘void* g_simple_async_result_get_source_tag(GSimpleAsyncResult*)’ is deprecated [-Wdeprecated-declarations]
g_warn_if_fail (g_simple_async_result_get_source_tag (simple) == utils_spawn);
^
/usr/local/include/glib-2.0/glib/gmacros.h:418:8: note: in definition of macro ‘_G_BOOLEAN_EXPR’
if (expr) \
^~~~
/usr/local/include/glib-2.0/glib/gmessages.h:497:8: note: in expansion of macro ‘G_LIKELY’
if G_LIKELY (expr) ; \
^~~~~~~~
polkitbackendjsauthority.cpp:1869:3: note: in expansion of macro ‘g_warn_if_fail’
g_warn_if_fail (g_simple_async_result_get_source_tag (simple) == utils_spawn);
^~~~~~~~~~~~~~
In file included from /usr/local/include/glib-2.0/gio/gio.h:117:0,
from ../../src/polkit/polkitactiondescription.h:30,
from ../../src/polkit/polkit.h:30,
from polkitbackendjsauthority.cpp:37:
/usr/local/include/glib-2.0/gio/gsimpleasyncresult.h:99:21: note: declared here
gpointer g_simple_async_result_get_source_tag (GSimpleAsyncResult *simple);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
polkitbackendjsauthority.cpp:1871:59: warning: ‘gboolean g_simple_async_result_propagate_error(GSimpleAsyncResult*, GError**)’ is deprecated [-Wdeprecated-declarations]
if (g_simple_async_result_propagate_error (simple, error))
^
In file included from /usr/local/include/glib-2.0/gio/gio.h:117:0,
from ../../src/polkit/polkitactiondescription.h:30,
from ../../src/polkit/polkit.h:30,
from polkitbackendjsauthority.cpp:37:
/usr/local/include/glib-2.0/gio/gsimpleasyncresult.h:119:21: note: declared here
gboolean g_simple_async_result_propagate_error (GSimpleAsyncResult *simple,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
polkitbackendjsauthority.cpp:1874:76: warning: ‘void* g_simple_async_result_get_op_res_gpointer(GSimpleAsyncResult*)’ is deprecated [-Wdeprecated-declarations]
data = (UtilsSpawnData*)g_simple_async_result_get_op_res_gpointer (simple);
^
In file included from /usr/local/include/glib-2.0/gio/gio.h:117:0,
from ../../src/polkit/polkitactiondescription.h:30,
from ../../src/polkit/polkit.h:30,
from polkitbackendjsauthority.cpp:37:
/usr/local/include/glib-2.0/gio/gsimpleasyncresult.h:79:21: note: declared here
gpointer g_simple_async_result_get_op_res_gpointer (GSimpleAsyncResult *simple);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
polkitbackendjsauthority.cpp: In function ‘void set_property_strv(PolkitBackendJsAuthority*, JS::HandleObject, const gchar*, GPtrArray*)’:
polkitbackendjsauthority.cpp:687:15: warning: ignoring return value of ‘bool js::MutableWrappedPtrOperations<JS::GCVector<T, Capacity, AllocPolicy>, Wrapper>::resize(size_t) [with Wrapper = JS::Rooted<JS::GCVector<JS::Value, 8, js::TempAllocPolicy> >; T = JS::Value; long unsigned int Capacity = 8; AllocPolicy = js::TempAllocPolicy]’, declared with attribute warn_unused_result [-Wunused-result]
elems.resize(value->len);
~~~~~~~~~~~~^~~~~~~~~~~~
make[4]: *** [Makefile:768: libpolkit_backend_1_la-polkitbackendjsauthority.lo] Error 1
make[4]: Leaving directory '/src/freedesktop/polkit-0.115/src/polkitbackend'
make[3]: *** [Makefile:552: all] Error 2
make[3]: Leaving directory '/src/freedesktop/polkit-0.115/src/polkitbackend'
make[2]: *** [Makefile:439: all-recursive] Error 1
make[2]: Leaving directory '/src/freedesktop/polkit-0.115/src'
make[1]: *** [Makefile:499: all-recursive] Error 1
make[1]: Leaving directory '/src/freedesktop/polkit-0.115'
make: *** [Makefile:431: all] Error 2