RFE: port polkit to mozjs68
Looks like API changed in mozjs68 so polkit needs to be updated.
make[4]: Entering directory '/home/tkloczko/rpmbuild/BUILD/polkit-0.116/src/polkitbackend'
/bin/sh ../../libtool --tag=CXX --mode=compile g++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I../.. -I../../src -I../../src -I../../src/polkit -I../../src/polkit -DPACKAGE_LIBEXEC_DIR=\""/usr/libexec"\" -DPACKAGE_SYSCONF_DIR=\""/etc"\" -DPACKAGE_DATA_DIR=\""/usr/share"\" -DPACKAGE_BIN_DIR=\""/usr/bin"\" -DPACKAGE_LOCALSTATE_DIR=\""/var"\" -DPACKAGE_LOCALE_DIR=\""/usr/share/locale"\" -DPACKAGE_LIB_DIR=\""/usr/lib64"\" -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -D_POLKIT_COMPILATION -D_POLKIT_BACKEND_COMPILATION -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/gio-unix-2.0 -include /usr/include/mozjs-68/js/RequiredDefines.h -isystem /usr/include/mozjs-68 -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -flto=auto -flto-partition=none -Os -fno-exceptions -fno-rtti -c -o libpolkit_backend_1_la-polkitbackendjsauthority.lo `test -f 'polkitbackendjsauthority.cpp' || echo './'`polkitbackendjsauthority.cpp
libtool: compile: g++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I../.. -I../../src -I../../src -I../../src/polkit -I../../src/polkit -DPACKAGE_LIBEXEC_DIR=\"/usr/libexec\" -DPACKAGE_SYSCONF_DIR=\"/etc\" -DPACKAGE_DATA_DIR=\"/usr/share\" -DPACKAGE_BIN_DIR=\"/usr/bin\" -DPACKAGE_LOCALSTATE_DIR=\"/var\" -DPACKAGE_LOCALE_DIR=\"/usr/share/locale\" -DPACKAGE_LIB_DIR=\"/usr/lib64\" -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -D_POLKIT_COMPILATION -D_POLKIT_BACKEND_COMPILATION -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/gio-unix-2.0 -include /usr/include/mozjs-68/js/RequiredDefines.h -isystem /usr/include/mozjs-68 -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -flto=auto -flto-partition=none -Os -fno-exceptions -fno-rtti -c polkitbackendjsauthority.cpp -fPIC -DPIC -o .libs/libpolkit_backend_1_la-polkitbackendjsauthority.o
In file included from /usr/include/mozjs-68/jsapi.h:18,
from polkitbackendjsauthority.cpp:47:
/usr/include/mozjs-68/mozilla/Utf8.h:298:16: error: missing terminating ' character
298 | n &= 0b0001'1111;
| ^~~~~~
/usr/include/mozjs-68/mozilla/Utf8.h:302:16: error: missing terminating ' character
302 | n &= 0b0000'1111;
| ^~~~~~
/usr/include/mozjs-68/mozilla/Utf8.h:306:16: error: missing terminating ' character
306 | n &= 0b0000'0111;
| ^~~~~~
/usr/include/mozjs-68/mozilla/Utf8.h:336:44: error: missing terminating ' character
336 | n = (n << 6) | (unit.toUint8() & 0b0011'1111);
| ^~~~~~~
polkitbackendjsauthority.cpp:223:13: warning: Deprecated pre-processor symbol, replace with
223 | PolkitBackendJsAuthorityPrivate);
| ^ ~~~~~~~~~~~
In file included from /usr/include/mozjs-68/mozilla/Range.h:12,
from /usr/include/mozjs-68/jsapi.h:15,
from polkitbackendjsauthority.cpp:47:
/usr/include/mozjs-68/mozilla/Span.h: In constructor ‘mozilla::span_details::span_iterator<Span, IsConst>::span_iterator(const Span*, typename Span::index_type)’:
/usr/include/mozjs-68/mozilla/Span.h:151:3: error: ‘constexpr’ constructor does not have empty body
151 | }
| ^
/usr/include/mozjs-68/mozilla/Span.h: In member function ‘constexpr mozilla::span_details::span_iterator<Span, IsConst>& mozilla::span_details::span_iterator<Span, IsConst>::operator++() const’:
/usr/include/mozjs-68/mozilla/Span.h:172:7: error: increment of read-only location ‘((const mozilla::span_details::span_iterator<Span, IsConst>*)this)->mozilla::span_details::span_iterator<Span, IsConst>::index_’
172 | ++index_;
| ^~~~~~
/usr/include/mozjs-68/mozilla/Span.h: In member function ‘constexpr mozilla::span_details::span_iterator<Span, IsConst>& mozilla::span_details::span_iterator<Span, IsConst>::operator--() const’:
/usr/include/mozjs-68/mozilla/Span.h:184:7: error: decrement of read-only location ‘((const mozilla::span_details::span_iterator<Span, IsConst>*)this)->mozilla::span_details::span_iterator<Span, IsConst>::index_’
184 | --index_;
| ^~~~~~
/usr/include/mozjs-68/mozilla/Span.h: In constructor ‘mozilla::span_details::extent_type<Ext>::extent_type(mozilla::span_details::extent_type<Other>)’:
/usr/include/mozjs-68/mozilla/Span.h:289:3: error: ‘constexpr’ constructor does not have empty body
289 | }
| ^
/usr/include/mozjs-68/mozilla/Span.h: In constructor ‘mozilla::span_details::extent_type<Ext>::extent_type(mozilla::span_details::extent_type<Ext>::index_type)’:
/usr/include/mozjs-68/mozilla/Span.h:293:3: error: ‘constexpr’ constructor does not have empty body
293 | }
| ^
/usr/include/mozjs-68/mozilla/Span.h: In constructor ‘mozilla::Span<ElementType, Extent>::storage_type<ExtentType>::storage_type(mozilla::Span<ElementType, Extent>::pointer, OtherExtentType)’:
/usr/include/mozjs-68/mozilla/Span.h:743:5: error: ‘constexpr’ constructor does not have empty body
743 | }
| ^
/usr/include/mozjs-68/mozilla/Span.h: In instantiation of ‘class mozilla::Span<const char>’:
/usr/include/mozjs-68/mozilla/Span.h:911:67: required from here
/usr/include/mozjs-68/mozilla/Span.h:555:19: error: defaulted declaration ‘constexpr mozilla::Span<ElementType, Extent>& mozilla::Span<ElementType, Extent>::operator=(const mozilla::Span<ElementType, Extent>&) const [with ElementType = const char; long unsigned int Extent = 18446744073709551615]’ does not match the expected signature
555 | constexpr Span& operator=(const Span& other) = default;
| ^~~~~~~~
/usr/include/mozjs-68/mozilla/Span.h:555:19: note: expected signature: ‘mozilla::Span<const char>& mozilla::Span<const char>::operator=(const mozilla::Span<const char>&)’
/usr/include/mozjs-68/mozilla/Span.h:557:19: error: defaulted declaration ‘constexpr mozilla::Span<ElementType, Extent>& mozilla::Span<ElementType, Extent>::operator=(mozilla::Span<ElementType, Extent>&&) const [with ElementType = const char; long unsigned int Extent = 18446744073709551615]’ does not match the expected signature
557 | constexpr Span& operator=(Span&& other) = default;
| ^~~~~~~~
/usr/include/mozjs-68/mozilla/Span.h:557:19: note: expected signature: ‘mozilla::Span<const char>& mozilla::Span<const char>::operator=(mozilla::Span<const char>&&)’
/usr/include/mozjs-68/mozilla/Span.h: In instantiation of ‘class mozilla::Span<const char16_t>’:
/usr/include/mozjs-68/mozilla/Span.h:922:75: required from here
/usr/include/mozjs-68/mozilla/Span.h:555:19: error: defaulted declaration ‘constexpr mozilla::Span<ElementType, Extent>& mozilla::Span<ElementType, Extent>::operator=(const mozilla::Span<ElementType, Extent>&) const [with ElementType = const char16_t; long unsigned int Extent = 18446744073709551615]’ does not match the expected signature
555 | constexpr Span& operator=(const Span& other) = default;
| ^~~~~~~~
/usr/include/mozjs-68/mozilla/Span.h:555:19: note: expected signature: ‘mozilla::Span<const char16_t>& mozilla::Span<const char16_t>::operator=(const mozilla::Span<const char16_t>&)’
/usr/include/mozjs-68/mozilla/Span.h:557:19: error: defaulted declaration ‘constexpr mozilla::Span<ElementType, Extent>& mozilla::Span<ElementType, Extent>::operator=(mozilla::Span<ElementType, Extent>&&) const [with ElementType = const char16_t; long unsigned int Extent = 18446744073709551615]’ does not match the expected signature
557 | constexpr Span& operator=(Span&& other) = default;
| ^~~~~~~~
/usr/include/mozjs-68/mozilla/Span.h:557:19: note: expected signature: ‘mozilla::Span<const char16_t>& mozilla::Span<const char16_t>::operator=(mozilla::Span<const char16_t>&&)’
In file included from /usr/include/mozjs-68/mozilla/RefPtr.h:13,
from /usr/include/mozjs-68/jsapi.h:17,
from polkitbackendjsauthority.cpp:47:
/usr/include/mozjs-68/mozilla/DbgMacro.h: At global scope:
/usr/include/mozjs-68/mozilla/DbgMacro.h:47:13: error: ‘enable_if_t’ in namespace ‘std’ does not name a template type
47 | -> std::enable_if_t<mozilla::detail::supports_os<T>::value, std::ostream&> {
| ^~~~~~~~~~~
/usr/include/mozjs-68/mozilla/DbgMacro.h:47:8: note: ‘std::enable_if_t’ is only available from C++14 onwards
47 | -> std::enable_if_t<mozilla::detail::supports_os<T>::value, std::ostream&> {
| ^~~
/usr/include/mozjs-68/mozilla/DbgMacro.h:47:24: error: expected initializer before ‘<’ token
47 | -> std::enable_if_t<mozilla::detail::supports_os<T>::value, std::ostream&> {
| ^
/usr/include/mozjs-68/mozilla/DbgMacro.h:62:13: error: ‘enable_if_t’ in namespace ‘std’ does not name a template type
62 | -> std::enable_if_t<!mozilla::detail::supports_os<T>::value,
| ^~~~~~~~~~~
/usr/include/mozjs-68/mozilla/DbgMacro.h:62:8: note: ‘std::enable_if_t’ is only available from C++14 onwards
62 | -> std::enable_if_t<!mozilla::detail::supports_os<T>::value,
| ^~~
/usr/include/mozjs-68/mozilla/DbgMacro.h:62:24: error: expected initializer before ‘<’ token
62 | -> std::enable_if_t<!mozilla::detail::supports_os<T>::value,
| ^
/usr/include/mozjs-68/mozilla/DbgMacro.h:72:13: error: ‘enable_if_t’ in namespace ‘std’ does not name a template type
72 | -> std::enable_if_t<std::is_base_of<nsTSubstring<char>, T>::value ||
| ^~~~~~~~~~~
/usr/include/mozjs-68/mozilla/DbgMacro.h:72:8: note: ‘std::enable_if_t’ is only available from C++14 onwards
72 | -> std::enable_if_t<std::is_base_of<nsTSubstring<char>, T>::value ||
| ^~~
/usr/include/mozjs-68/mozilla/DbgMacro.h:72:24: error: expected initializer before ‘<’ token
72 | -> std::enable_if_t<std::is_base_of<nsTSubstring<char>, T>::value ||
| ^
/usr/include/mozjs-68/mozilla/DbgMacro.h:83:13: error: ‘enable_if_t’ in namespace ‘std’ does not name a template type
83 | -> std::enable_if_t<!std::is_base_of<nsTSubstring<char>, T>::value &&
| ^~~~~~~~~~~
/usr/include/mozjs-68/mozilla/DbgMacro.h:83:8: note: ‘std::enable_if_t’ is only available from C++14 onwards
83 | -> std::enable_if_t<!std::is_base_of<nsTSubstring<char>, T>::value &&
| ^~~
/usr/include/mozjs-68/mozilla/DbgMacro.h:83:24: error: expected initializer before ‘<’ token
83 | -> std::enable_if_t<!std::is_base_of<nsTSubstring<char>, T>::value &&
| ^
/usr/include/mozjs-68/mozilla/DbgMacro.h:93:1: error: ‘MozDbg’ function uses ‘auto’ type specifier without trailing return type
93 | auto&& MozDbg(const char* aFile, int aLine, const char* aExpression,
| ^~~~
/usr/include/mozjs-68/mozilla/DbgMacro.h:93:1: note: deduced return type only available with ‘-std=c++14’ or ‘-std=gnu++14’
/usr/include/mozjs-68/mozilla/DbgMacro.h: In function ‘auto&& mozilla::detail::MozDbg(const char*, int, const char*, T&&)’:
/usr/include/mozjs-68/mozilla/DbgMacro.h:97:12: error: ‘DebugValue’ is not a member of ‘mozilla’
97 | mozilla::DebugValue(s, std::forward<T>(aValue));
| ^~~~~~~~~~
/usr/include/mozjs-68/mozilla/DbgMacro.h: At global scope:
/usr/include/mozjs-68/mozilla/DbgMacro.h:127:27: error: ‘enable_if_t’ in namespace ‘std’ does not name a template type
127 | typename = std::enable_if_t<!std::is_same<T, char>::value>>
| ^~~~~~~~~~~
/usr/include/mozjs-68/mozilla/DbgMacro.h:127:22: note: ‘std::enable_if_t’ is only available from C++14 onwards
127 | typename = std::enable_if_t<!std::is_same<T, char>::value>>
| ^~~
/usr/include/mozjs-68/mozilla/DbgMacro.h:127:38: error: expected ‘>’ before ‘<’ token
127 | typename = std::enable_if_t<!std::is_same<T, char>::value>>
| ^
In file included from /usr/include/mozjs-68/jsapi.h:17,
from polkitbackendjsauthority.cpp:47:
/usr/include/mozjs-68/mozilla/RefPtr.h: In function ‘std::ostream& operator<<(std::ostream&, const RefPtr<T>&)’:
/usr/include/mozjs-68/mozilla/RefPtr.h:531:19: error: ‘DebugValue’ is not a member of ‘mozilla’
531 | return mozilla::DebugValue(aOut, aObj.get());
| ^~~~~~~~~~
In file included from /usr/include/mozjs-68/mozilla/Utf8.h:17,
from /usr/include/mozjs-68/jsapi.h:18,
from polkitbackendjsauthority.cpp:47:
/usr/include/mozjs-68/mozilla/Maybe.h: At global scope:
/usr/include/mozjs-68/mozilla/Maybe.h:424:3: error: ‘map’ function uses ‘auto’ type specifier without trailing return type
424 | auto map(Func&& aFunc) {
| ^~~~
/usr/include/mozjs-68/mozilla/Maybe.h:424:3: note: deduced return type only available with ‘-std=c++14’ or ‘-std=gnu++14’
/usr/include/mozjs-68/mozilla/Maybe.h:433:3: error: ‘map’ function uses ‘auto’ type specifier without trailing return type
433 | auto map(Func&& aFunc) const {
| ^~~~
/usr/include/mozjs-68/mozilla/Maybe.h:433:3: note: deduced return type only available with ‘-std=c++14’ or ‘-std=gnu++14’
In file included from /usr/include/mozjs-68/mozilla/Utf8.h:18,
from /usr/include/mozjs-68/jsapi.h:18,
from polkitbackendjsauthority.cpp:47:
/usr/include/mozjs-68/mozilla/TextUtils.h: In instantiation of ‘constexpr bool mozilla::IsAscii(Char) [with Char = unsigned char]’:
/usr/include/mozjs-68/mozilla/Utf8.h:227:17: required from here
/usr/include/mozjs-68/mozilla/TextUtils.h:42:1: error: body of ‘constexpr’ function ‘constexpr bool mozilla::IsAscii(Char) [with Char = unsigned char]’ not a return-statement
42 | }
| ^
In file included from /usr/include/mozjs-68/jsapi.h:18,
from polkitbackendjsauthority.cpp:47:
/usr/include/mozjs-68/mozilla/Utf8.h: In function ‘bool mozilla::IsTrailingUnit(mozilla::Utf8Unit)’:
/usr/include/mozjs-68/mozilla/Utf8.h:245:35: error: expected ‘)’ before '\x31303030'
245 | return (aUnit.toUint8() & 0b1100'0000) == 0b1000'0000;
| ~ ^~~~~~~~~~~~~~~~~
| )
/usr/include/mozjs-68/mozilla/Utf8.h: In function ‘mozilla::Maybe<char32_t> mozilla::DecodeOneUtf8CodePointInline(mozilla::Utf8Unit, Iter*, const EndIter&, OnBadLeadUnit, OnNotEnoughUnits, OnBadTrailingUnit, OnBadCodePoint, OnNotShortestForm)’:
/usr/include/mozjs-68/mozilla/Utf8.h:295:18: error: expected ‘)’ before '\x31313030'
295 | if ((n & 0b1110'0000) == 0b1100'0000) {
| ~ ^~~~~~~~~~~~~~~~~
| )
/usr/include/mozjs-68/mozilla/Utf8.h:299:4: error: expected ‘)’ before ‘else’
299 | } else if ((n & 0b1111'0000) == 0b1110'0000) {
| ^~~~~
| )
/usr/include/mozjs-68/mozilla/Utf8.h:295:6: note: to match this ‘(’
295 | if ((n & 0b1110'0000) == 0b1100'0000) {
| ^
In file included from /usr/include/mozjs-68/mozilla/Assertions.h:18,
from /usr/include/mozjs-68/mozilla/Casting.h:12,
from /usr/include/mozjs-68/jstypes.h:25,
from /usr/include/mozjs-68/js/Initialization.h:11,
from polkitbackendjsauthority.cpp:46:
/usr/include/mozjs-68/mozilla/Utf8.h:316:7: error: ‘actual’ was not declared in this scope
316 | if (MOZ_UNLIKELY(actual < remaining)) {
| ^~~~~~~~~~~~
In file included from /usr/include/mozjs-68/jsapi.h:18,
from polkitbackendjsauthority.cpp:47:
/usr/include/mozjs-68/mozilla/Utf8.h:336:44: error: expected ‘)’ before ‘}’ token
336 | n = (n << 6) | (unit.toUint8() & 0b0011'1111);
| ~ ^
| )
337 | }
| ~
/usr/include/mozjs-68/mozilla/Utf8.h:336:44: error: expected ‘;’ before ‘}’ token
336 | n = (n << 6) | (unit.toUint8() & 0b0011'1111);
| ^
| ;
337 | }
| ~
In file included from /usr/include/mozjs-68/mozilla/Variant.h:14,
from /usr/include/mozjs-68/jsapi.h:19,
from polkitbackendjsauthority.cpp:47:
/usr/include/mozjs-68/mozilla/HashFunctions.h: In instantiation of ‘constexpr mozilla::HashNumber mozilla::HashStringUntilZero(Iterator) [with Iterator = const unsigned char*; mozilla::HashNumber = unsigned int]’:
/usr/include/mozjs-68/mozilla/HashFunctions.h:273:29: required from here
/usr/include/mozjs-68/mozilla/HashFunctions.h:249:1: error: body of ‘constexpr’ function ‘constexpr mozilla::HashNumber mozilla::HashStringUntilZero(Iterator) [with Iterator = const unsigned char*; mozilla::HashNumber = unsigned int]’ not a return-statement
249 | }
| ^
/usr/include/mozjs-68/mozilla/HashFunctions.h: In instantiation of ‘constexpr mozilla::HashNumber mozilla::HashStringKnownLength(Iterator, size_t) [with Iterator = const unsigned char*; mozilla::HashNumber = unsigned int; size_t = long unsigned int]’:
/usr/include/mozjs-68/mozilla/HashFunctions.h:279:31: required from here
/usr/include/mozjs-68/mozilla/HashFunctions.h:262:1: error: body of ‘constexpr’ function ‘constexpr mozilla::HashNumber mozilla::HashStringKnownLength(Iterator, size_t) [with Iterator = const unsigned char*; mozilla::HashNumber = unsigned int; size_t = long unsigned int]’ not a return-statement
262 | }
| ^
/usr/include/mozjs-68/mozilla/HashFunctions.h: In instantiation of ‘constexpr mozilla::HashNumber mozilla::HashStringUntilZero(Iterator) [with Iterator = const char16_t*; mozilla::HashNumber = unsigned int]’:
/usr/include/mozjs-68/mozilla/HashFunctions.h:292:29: required from here
/usr/include/mozjs-68/mozilla/HashFunctions.h:249:1: error: body of ‘constexpr’ function ‘constexpr mozilla::HashNumber mozilla::HashStringUntilZero(Iterator) [with Iterator = const char16_t*; mozilla::HashNumber = unsigned int]’ not a return-statement
249 | }
| ^
/usr/include/mozjs-68/mozilla/HashFunctions.h: In instantiation of ‘constexpr mozilla::HashNumber mozilla::HashStringKnownLength(Iterator, size_t) [with Iterator = const char16_t*; mozilla::HashNumber = unsigned int; size_t = long unsigned int]’:
/usr/include/mozjs-68/mozilla/HashFunctions.h:297:31: required from here
/usr/include/mozjs-68/mozilla/HashFunctions.h:262:1: error: body of ‘constexpr’ function ‘constexpr mozilla::HashNumber mozilla::HashStringKnownLength(Iterator, size_t) [with Iterator = const char16_t*; mozilla::HashNumber = unsigned int; size_t = long unsigned int]’ not a return-statement
262 | }
| ^
In file included from /usr/include/mozjs-68/jsapi.h:19,
from polkitbackendjsauthority.cpp:47:
/usr/include/mozjs-68/mozilla/Variant.h: At global scope:
/usr/include/mozjs-68/mozilla/Variant.h:179:19: error: expected primary-expression before ‘auto’
179 | static decltype(auto) match(Matcher&& aMatcher, ConcreteVariant& aV) {
| ^~~~
/usr/include/mozjs-68/mozilla/Variant.h:184:19: error: expected primary-expression before ‘auto’
184 | static decltype(auto) matchN(ConcreteVariant& aV, Matcher&& aMatcher) {
| ^~~~
/usr/include/mozjs-68/mozilla/Variant.h:238:19: error: expected primary-expression before ‘auto’
238 | static decltype(auto) match(Matcher&& aMatcher, ConcreteVariant& aV) {
| ^~~~
/usr/include/mozjs-68/mozilla/Variant.h:256:19: error: expected primary-expression before ‘auto’
256 | static decltype(auto) matchN(ConcreteVariant& aV, Mi&& aMi, Ms&&... aMs) {
| ^~~~
/usr/include/mozjs-68/mozilla/Variant.h:720:12: error: expected primary-expression before ‘auto’
720 | decltype(auto) match(Matcher&& aMatcher) const {
| ^~~~
/usr/include/mozjs-68/mozilla/Variant.h:725:12: error: expected primary-expression before ‘auto’
725 | decltype(auto) match(M0&& aM0, M1&& aM1, Ms&&... aMs) const {
| ^~~~
/usr/include/mozjs-68/mozilla/Variant.h:743:12: error: expected primary-expression before ‘auto’
743 | decltype(auto) match(Matcher&& aMatcher) {
| ^~~~
/usr/include/mozjs-68/mozilla/Variant.h:748:12: error: expected primary-expression before ‘auto’
748 | decltype(auto) match(M0&& aM0, M1&& aM1, Ms&&... aMs) {
| ^~~~
In file included from /usr/include/mozjs-68/jspubtd.h:18,
from /usr/include/mozjs-68/jsapi.h:26,
from polkitbackendjsauthority.cpp:47:
/usr/include/mozjs-68/js/TraceKind.h: In function ‘constexpr bool JS::IsCCTraceKind(JS::TraceKind)’:
/usr/include/mozjs-68/js/TraceKind.h:125:1: error: body of ‘constexpr’ function ‘constexpr bool JS::IsCCTraceKind(JS::TraceKind)’ not a return-statement
125 | }
| ^
/usr/include/mozjs-68/js/TraceKind.h: At global scope:
/usr/include/mozjs-68/js/TraceKind.h:223:1: error: ‘DispatchTraceKindTyped’ function uses ‘auto’ type specifier without trailing return type
223 | auto DispatchTraceKindTyped(F f, JS::TraceKind traceKind, Args&&... args) {
| ^~~~
/usr/include/mozjs-68/js/TraceKind.h:223:1: note: deduced return type only available with ‘-std=c++14’ or ‘-std=gnu++14’
/usr/include/mozjs-68/js/TraceKind.h:241:1: error: ‘MapGCThingTyped’ function uses ‘auto’ type specifier without trailing return type
241 | auto MapGCThingTyped(void* thing, JS::TraceKind traceKind, F&& f) {
| ^~~~
/usr/include/mozjs-68/js/TraceKind.h:241:1: note: deduced return type only available with ‘-std=c++14’ or ‘-std=gnu++14’
In file included from /usr/include/mozjs-68/js/TracingAPI.h:12,
from /usr/include/mozjs-68/js/GCPolicyAPI.h:49,
from /usr/include/mozjs-68/js/RootingAPI.h:22,
from /usr/include/mozjs-68/js/CallArgs.h:72,
from /usr/include/mozjs-68/jsapi.h:29,
from polkitbackendjsauthority.cpp:47:
/usr/include/mozjs-68/js/HeapAPI.h:350:1: error: ‘MapGCThingTyped’ function uses ‘auto’ type specifier without trailing return type
350 | auto MapGCThingTyped(GCCellPtr thing, F&& f) {
| ^~~~
/usr/include/mozjs-68/js/HeapAPI.h:350:1: note: deduced return type only available with ‘-std=c++14’ or ‘-std=gnu++14’
In file included from /usr/include/mozjs-68/js/CallArgs.h:73,
from /usr/include/mozjs-68/jsapi.h:29,
from polkitbackendjsauthority.cpp:47:
/usr/include/mozjs-68/js/Value.h:1324:1: error: ‘MapGCThingTyped’ function uses ‘auto’ type specifier without trailing return type
1324 | auto MapGCThingTyped(const JS::Value& val, F&& f) {
| ^~~~
/usr/include/mozjs-68/js/Value.h:1324:1: note: deduced return type only available with ‘-std=c++14’ or ‘-std=gnu++14’
/usr/include/mozjs-68/js/Value.h: In function ‘bool js::ApplyGCThingTyped(const JS::Value&, F&&)’:
/usr/include/mozjs-68/js/Value.h:1370:31: error: use of ‘auto’ in lambda parameter declaration only available with ‘-std=c++14’ or ‘-std=gnu++14’
1370 | [&f](auto t) {
| ^~~~
In file included from /usr/include/mozjs-68/js/Class.h:17,
from /usr/include/mozjs-68/jsapi.h:31,
from polkitbackendjsauthority.cpp:47:
/usr/include/mozjs-68/js/Id.h: In static member function ‘static constexpr JS::PropertyKey JS::PropertyKey::fromRawBits(size_t)’:
/usr/include/mozjs-68/js/Id.h:54:3: error: body of ‘constexpr’ function ‘static constexpr JS::PropertyKey JS::PropertyKey::fromRawBits(size_t)’ not a return-statement
54 | }
| ^
/usr/include/mozjs-68/js/Id.h: At global scope:
/usr/include/mozjs-68/js/Id.h:163:68: error: ‘static constexpr JS::PropertyKey JS::PropertyKey::fromRawBits(size_t)’ called in a constant expression
163 | constexpr const jsid JSID_EMPTY = jsid::fromRawBits(JSID_TYPE_EMPTY);
| ^
/usr/include/mozjs-68/js/Id.h:50:50: note: ‘static constexpr JS::PropertyKey JS::PropertyKey::fromRawBits(size_t)’ declared here
50 | static constexpr MOZ_ALWAYS_INLINE PropertyKey fromRawBits(size_t bits) {
| ^~~~~~~~~~~
/usr/include/mozjs-68/js/Id.h:222:1: error: ‘MapGCThingTyped’ function uses ‘auto’ type specifier without trailing return type
222 | auto MapGCThingTyped(const jsid& id, F&& f) {
| ^~~~
/usr/include/mozjs-68/js/Id.h:222:1: note: deduced return type only available with ‘-std=c++14’ or ‘-std=gnu++14’
/usr/include/mozjs-68/js/Id.h: In function ‘bool js::ApplyGCThingTyped(const jsid&, F&&)’:
/usr/include/mozjs-68/js/Id.h:239:31: error: use of ‘auto’ in lambda parameter declaration only available with ‘-std=c++14’ or ‘-std=gnu++14’
239 | [&f](auto t) {
| ^~~~
In file included from /usr/include/mozjs-68/mozilla/Range.h:12,
from /usr/include/mozjs-68/jsapi.h:15,
from polkitbackendjsauthority.cpp:47:
/usr/include/mozjs-68/mozilla/Span.h: In instantiation of ‘class mozilla::Span<unsigned char, 18446744073709551615>’:
/usr/include/mozjs-68/js/Transcoding.h:34:51: required from here
/usr/include/mozjs-68/mozilla/Span.h:555:19: error: defaulted declaration ‘constexpr mozilla::Span<ElementType, Extent>& mozilla::Span<ElementType, Extent>::operator=(const mozilla::Span<ElementType, Extent>&) const [with ElementType = unsigned char; long unsigned int Extent = 18446744073709551615]’ does not match the expected signature
555 | constexpr Span& operator=(const Span& other) = default;
| ^~~~~~~~
/usr/include/mozjs-68/mozilla/Span.h:555:19: note: expected signature: ‘mozilla::Span<unsigned char, 18446744073709551615>& mozilla::Span<unsigned char, 18446744073709551615>::operator=(const mozilla::Span<unsigned char, 18446744073709551615>&)’
/usr/include/mozjs-68/mozilla/Span.h:557:19: error: defaulted declaration ‘constexpr mozilla::Span<ElementType, Extent>& mozilla::Span<ElementType, Extent>::operator=(mozilla::Span<ElementType, Extent>&&) const [with ElementType = unsigned char; long unsigned int Extent = 18446744073709551615]’ does not match the expected signature
557 | constexpr Span& operator=(Span&& other) = default;
| ^~~~~~~~
/usr/include/mozjs-68/mozilla/Span.h:557:19: note: expected signature: ‘mozilla::Span<unsigned char, 18446744073709551615>& mozilla::Span<unsigned char, 18446744073709551615>::operator=(mozilla::Span<unsigned char, 18446744073709551615>&&)’
/usr/include/mozjs-68/mozilla/Span.h: In instantiation of ‘class mozilla::Span<const unsigned char, 18446744073709551615>’:
/usr/include/mozjs-68/js/Transcoding.h:34:51: required from here
/usr/include/mozjs-68/mozilla/Span.h:555:19: error: defaulted declaration ‘constexpr mozilla::Span<ElementType, Extent>& mozilla::Span<ElementType, Extent>::operator=(const mozilla::Span<ElementType, Extent>&) const [with ElementType = const unsigned char; long unsigned int Extent = 18446744073709551615]’ does not match the expected signature
555 | constexpr Span& operator=(const Span& other) = default;
| ^~~~~~~~
/usr/include/mozjs-68/mozilla/Span.h:555:19: note: expected signature: ‘mozilla::Span<const unsigned char, 18446744073709551615>& mozilla::Span<const unsigned char, 18446744073709551615>::operator=(const mozilla::Span<const unsigned char, 18446744073709551615>&)’
/usr/include/mozjs-68/mozilla/Span.h:557:19: error: defaulted declaration ‘constexpr mozilla::Span<ElementType, Extent>& mozilla::Span<ElementType, Extent>::operator=(mozilla::Span<ElementType, Extent>&&) const [with ElementType = const unsigned char; long unsigned int Extent = 18446744073709551615]’ does not match the expected signature
557 | constexpr Span& operator=(Span&& other) = default;
| ^~~~~~~~
/usr/include/mozjs-68/mozilla/Span.h:557:19: note: expected signature: ‘mozilla::Span<const unsigned char, 18446744073709551615>& mozilla::Span<const unsigned char, 18446744073709551615>::operator=(mozilla::Span<const unsigned char, 18446744073709551615>&&)’
polkitbackendjsauthority.cpp: At global scope:
polkitbackendjsauthority.cpp:79:3: error: ‘JSAutoCompartment’ does not name a type; did you mean ‘JS_IterateCompartments’?
79 | JSAutoCompartment *ac;
| ^~~~~~~~~~~~~~~~~
| JS_IterateCompartments
polkitbackendjsauthority.cpp: In function ‘void load_scripts(PolkitBackendJsAuthority*)’:
polkitbackendjsauthority.cpp:303:15: error: ‘class JS::CompileOptions’ has no member named ‘setUTF8’
303 | options.setUTF8(true);
| ^~~~~~~
polkitbackendjsauthority.cpp:304:16: error: ‘Compile’ is not a member of ‘JS’
304 | if (!JS::Compile (authority->priv->cx, options, filename, &script))
| ^~~~~~~
polkitbackendjsauthority.cpp: In function ‘void reload_scripts(PolkitBackendJsAuthority*)’:
polkitbackendjsauthority.cpp:338:3: error: ‘JS_BeginRequest’ was not declared in this scope
338 | JS_BeginRequest (authority->priv->cx);
| ^~~~~~~~~~~~~~~
polkitbackendjsauthority.cpp:366:3: error: ‘JS_EndRequest’ was not declared in this scope
366 | JS_EndRequest (authority->priv->cx);
| ^~~~~~~~~~~~~
polkitbackendjsauthority.cpp: In function ‘void polkit_backend_js_authority_constructed(GObject*)’:
polkitbackendjsauthority.cpp:458:7: error: ‘ContextOptionsRef’ is not a member of ‘JS’
458 | JS::ContextOptionsRef (authority->priv->cx)
| ^~~~~~~~~~~~~~~~~
polkitbackendjsauthority.cpp:462:7: error: ‘SetWarningReporter’ is not a member of ‘JS’
462 | JS::SetWarningReporter(authority->priv->cx, report_error);
| ^~~~~~~~~~~~~~~~~~
polkitbackendjsauthority.cpp:465:3: error: ‘JS_BeginRequest’ was not declared in this scope
465 | JS_BeginRequest(authority->priv->cx);
| ^~~~~~~~~~~~~~~
polkitbackendjsauthority.cpp:469:9: error: ‘CompartmentOptions’ is not a member of ‘JS’; did you mean ‘CompileOptions’?
469 | JS::CompartmentOptions compart_opts;
| ^~~~~~~~~~~~~~~~~~
| CompileOptions
polkitbackendjsauthority.cpp:473:149: error: ‘compart_opts’ was not declared in this scope
473 | authority->priv->js_global = new JS::Heap<JSObject*> (JS_NewGlobalObject (authority->priv->cx, &js_global_class, NULL, JS::FireOnNewGlobalHook, compart_opts));
| ^~~~~~~~~~~~
polkitbackendjsauthority.cpp:479:22: error: ‘PolkitBackendJsAuthorityPrivate’ {aka ‘struct _PolkitBackendJsAuthorityPrivate’} has no member named ‘ac’
479 | authority->priv->ac = new JSAutoCompartment(authority->priv->cx, global);
| ^~
polkitbackendjsauthority.cpp:479:31: error: expected type-specifier before ‘JSAutoCompartment’
479 | authority->priv->ac = new JSAutoCompartment(authority->priv->cx, global);
| ^~~~~~~~~~~~~~~~~
polkitbackendjsauthority.cpp:481:27: error: ‘PolkitBackendJsAuthorityPrivate’ {aka ‘struct _PolkitBackendJsAuthorityPrivate’} has no member named ‘ac’
481 | if (!authority->priv->ac)
| ^~
polkitbackendjsauthority.cpp:484:10: error: ‘JS_InitStandardClasses’ was not declared in this scope; did you mean ‘JS_EnumerateStandardClasses’?
484 | if (!JS_InitStandardClasses (authority->priv->cx, global))
| ^~~~~~~~~~~~~~~~~~~~~~
| JS_EnumerateStandardClasses
polkitbackendjsauthority.cpp:506:14: error: ‘Evaluate’ is not a member of ‘JS’
506 | if (!JS::Evaluate (authority->priv->cx,
| ^~~~~~~~
polkitbackendjsauthority.cpp:532:3: error: ‘JS_EndRequest’ was not declared in this scope
532 | JS_EndRequest (authority->priv->cx);
| ^~~~~~~~~~~~~
polkitbackendjsauthority.cpp: In function ‘void polkit_backend_js_authority_finalize(GObject*)’:
polkitbackendjsauthority.cpp:569:27: error: ‘PolkitBackendJsAuthorityPrivate’ {aka ‘struct _PolkitBackendJsAuthorityPrivate’} has no member named ‘ac’
569 | delete authority->priv->ac;
| ^~
polkitbackendjsauthority.cpp: In function ‘void polkit_backend_js_authority_class_init(PolkitBackendJsAuthorityClass*)’:
polkitbackendjsauthority.cpp:649:76: warning: ‘void g_type_class_add_private(gpointer, gsize)’ is deprecated [-Wdeprecated-declarations]
649 | g_type_class_add_private (klass, sizeof (PolkitBackendJsAuthorityPrivate));
| ^
In file included from /usr/include/glib-2.0/gobject/gobject.h:24,
from /usr/include/glib-2.0/gobject/gbinding.h:29,
from /usr/include/glib-2.0/glib-object.h:22,
from ../../src/polkit/polkittypes.h:25,
from ../../src/polkit/polkit.h:27,
from polkitbackendjsauthority.cpp:37:
/usr/include/glib-2.0/gobject/gtype.h:1308:10: note: declared here
1308 | void g_type_class_add_private (gpointer g_class,
| ^~~~~~~~~~~~~~~~~~~~~~~~
polkitbackendjsauthority.cpp:649:76: warning: ‘void g_type_class_add_private(gpointer, gsize)’ is deprecated [-Wdeprecated-declarations]
649 | g_type_class_add_private (klass, sizeof (PolkitBackendJsAuthorityPrivate));
| ^
In file included from /usr/include/glib-2.0/gobject/gobject.h:24,
from /usr/include/glib-2.0/gobject/gbinding.h:29,
from /usr/include/glib-2.0/glib-object.h:22,
from ../../src/polkit/polkittypes.h:25,
from ../../src/polkit/polkit.h:27,
from polkitbackendjsauthority.cpp:37:
/usr/include/glib-2.0/gobject/gtype.h:1308:10: note: declared here
1308 | void g_type_class_add_private (gpointer g_class,
| ^~~~~~~~~~~~~~~~~~~~~~~~
polkitbackendjsauthority.cpp: In function ‘void set_property_strv(PolkitBackendJsAuthority*, JS::HandleObject, const gchar*, GPtrArray*)’:
polkitbackendjsauthority.cpp:683:7: error: ‘AutoValueVector’ is not a member of ‘JS’; did you mean ‘ValueVector’?
683 | JS::AutoValueVector elems(authority->priv->cx);
| ^~~~~~~~~~~~~~~
| ValueVector
polkitbackendjsauthority.cpp:686:8: error: ‘elems’ was not declared in this scope
686 | if (!elems.resize(value->len))
| ^~~~~
polkitbackendjsauthority.cpp:696:11: error: ‘elems’ was not declared in this scope
696 | elems[n].setString(str);
| ^~~~~
polkitbackendjsauthority.cpp:699:9: error: ‘elems’ was not declared in this scope
699 | elems[n].setNull ();
| ^~~~~
polkitbackendjsauthority.cpp:702:94: error: ‘elems’ was not declared in this scope
702 | JS::RootedObject array_object(authority->priv->cx, JS_NewArrayObject (authority->priv->cx, elems));
| ^~~~~
polkitbackendjsauthority.cpp: In function ‘gboolean subject_to_jsval(PolkitBackendJsAuthority*, PolkitSubject*, PolkitIdentity*, gboolean, gboolean, JS::MutableHandleValue, GError**)’:
polkitbackendjsauthority.cpp:758:12: error: ‘Evaluate’ is not a member of ‘JS’
758 | if (!JS::Evaluate (authority->priv->cx,
| ^~~~~~~~
polkitbackendjsauthority.cpp: In function ‘gboolean action_and_details_to_jsval(PolkitBackendJsAuthority*, const gchar*, PolkitDetails*, JS::MutableHandleValue, GError**)’:
polkitbackendjsauthority.cpp:881:12: error: ‘Evaluate’ is not a member of ‘JS’
881 | if (!JS::Evaluate (authority->priv->cx,
| ^~~~~~~~
polkitbackendjsauthority.cpp: In function ‘bool execute_script_with_runaway_killer(PolkitBackendJsAuthority*, JS::HandleScript, JS::MutableHandleValue)’:
polkitbackendjsauthority.cpp:1046:9: error: ‘JS_ExecuteScript’ was not declared in this scope
1046 | ret = JS_ExecuteScript (authority->priv->cx,
| ^~~~~~~~~~~~~~~~
polkitbackendjsauthority.cpp: In function ‘GList* polkit_backend_js_authority_get_admin_auth_identities(PolkitBackendInteractiveAuthority*, PolkitSubject*, PolkitSubject*, PolkitIdentity*, gboolean, gboolean, const gchar*, PolkitDetails*)’:
polkitbackendjsauthority.cpp:1095:3: error: ‘JS_BeginRequest’ was not declared in this scope
1095 | JS_BeginRequest (authority->priv->cx);
| ^~~~~~~~~~~~~~~
polkitbackendjsauthority.cpp:1138:35: error: cannot convert ‘JS::UniqueChars’ {aka ‘mozilla::UniquePtr<char [], JS::FreePolicy>’} to ‘gchar*’ {aka ‘char*’} in assignment
1138 | ret_str = JS_EncodeStringToUTF8 (authority->priv->cx, ret_jsstr);
| ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| JS::UniqueChars {aka mozilla::UniquePtr<char [], JS::FreePolicy>}
polkitbackendjsauthority.cpp:1175:3: error: ‘JS_EndRequest’ was not declared in this scope
1175 | JS_EndRequest (authority->priv->cx);
| ^~~~~~~~~~~~~
polkitbackendjsauthority.cpp: In function ‘PolkitImplicitAuthorization polkit_backend_js_authority_check_authorization_sync(PolkitBackendInteractiveAuthority*, PolkitSubject*, PolkitSubject*, PolkitIdentity*, gboolean, gboolean, const gchar*, PolkitDetails*, PolkitImplicitAuthorization)’:
polkitbackendjsauthority.cpp:1202:3: error: ‘JS_BeginRequest’ was not declared in this scope
1202 | JS_BeginRequest (authority->priv->cx);
| ^~~~~~~~~~~~~~~
polkitbackendjsauthority.cpp:1252:35: error: cannot convert ‘JS::UniqueChars’ {aka ‘mozilla::UniquePtr<char [], JS::FreePolicy>’} to ‘gchar*’ {aka ‘char*’} in assignment
1252 | ret_str = JS_EncodeStringToUTF8 (authority->priv->cx, ret_jsstr);
| ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| JS::UniqueChars {aka mozilla::UniquePtr<char [], JS::FreePolicy>}
polkitbackendjsauthority.cpp:1277:3: error: ‘JS_EndRequest’ was not declared in this scope
1277 | JS_EndRequest (authority->priv->cx);
| ^~~~~~~~~~~~~
polkitbackendjsauthority.cpp: In function ‘bool js_polkit_log(JSContext*, unsigned int, JS::Value*)’:
polkitbackendjsauthority.cpp:1297:29: error: cannot convert ‘JS::UniqueChars’ {aka ‘mozilla::UniquePtr<char [], JS::FreePolicy>’} to ‘char*’ in assignment
1297 | s = JS_EncodeStringToUTF8 (cx, jsstr);
| ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
| |
| JS::UniqueChars {aka mozilla::UniquePtr<char [], JS::FreePolicy>}
polkitbackendjsauthority.cpp:1298:3: error: ‘JS_ReportWarningUTF8’ was not declared in this scope; did you mean ‘JS_ReportErrorUTF8’?
1298 | JS_ReportWarningUTF8 (cx, "%s", s);
| ^~~~~~~~~~~~~~~~~~~~
| JS_ReportErrorUTF8
polkitbackendjsauthority.cpp:1299:17: error: no matching function for call to ‘JS_free(JSContext*&, char*&)’
1299 | JS_free (cx, s);
| ^
In file included from /usr/include/mozjs-68/jsapi.h:30,
from polkitbackendjsauthority.cpp:47:
/usr/include/mozjs-68/js/CharacterEncoding.h:344:13: note: candidate: ‘void JS_free(JS::Latin1CharsZ&)’
344 | inline void JS_free(JS::Latin1CharsZ& ptr) { js_free((void*)ptr.get()); }
| ^~~~~~~
/usr/include/mozjs-68/js/CharacterEncoding.h:344:13: note: candidate expects 1 argument, 2 provided
/usr/include/mozjs-68/js/CharacterEncoding.h:345:13: note: candidate: ‘void JS_free(JS::UTF8CharsZ&)’
345 | inline void JS_free(JS::UTF8CharsZ& ptr) { js_free((void*)ptr.get()); }
| ^~~~~~~
/usr/include/mozjs-68/js/CharacterEncoding.h:345:13: note: candidate expects 1 argument, 2 provided
polkitbackendjsauthority.cpp: In function ‘bool js_polkit_spawn(JSContext*, unsigned int, JS::Value*)’:
polkitbackendjsauthority.cpp:1416:33: error: cannot convert ‘JS::UniqueChars’ {aka ‘mozilla::UniquePtr<char [], JS::FreePolicy>’} to ‘char*’ in assignment
1416 | s = JS_EncodeStringToUTF8 (cx, jsstr);
| ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
| |
| JS::UniqueChars {aka mozilla::UniquePtr<char [], JS::FreePolicy>}
polkitbackendjsauthority.cpp:1418:21: error: no matching function for call to ‘JS_free(JSContext*&, char*&)’
1418 | JS_free (cx, s);
| ^
In file included from /usr/include/mozjs-68/jsapi.h:30,
from polkitbackendjsauthority.cpp:47:
/usr/include/mozjs-68/js/CharacterEncoding.h:344:13: note: candidate: ‘void JS_free(JS::Latin1CharsZ&)’
344 | inline void JS_free(JS::Latin1CharsZ& ptr) { js_free((void*)ptr.get()); }
| ^~~~~~~
/usr/include/mozjs-68/js/CharacterEncoding.h:344:13: note: candidate expects 1 argument, 2 provided
/usr/include/mozjs-68/js/CharacterEncoding.h:345:13: note: candidate: ‘void JS_free(JS::UTF8CharsZ&)’
345 | inline void JS_free(JS::UTF8CharsZ& ptr) { js_free((void*)ptr.get()); }
| ^~~~~~~
/usr/include/mozjs-68/js/CharacterEncoding.h:345:13: note: candidate expects 1 argument, 2 provided
polkitbackendjsauthority.cpp: In function ‘bool js_polkit_user_is_in_netgroup(JSContext*, unsigned int, JS::Value*)’:
polkitbackendjsauthority.cpp:1509:32: error: cannot convert ‘JS::UniqueChars’ {aka ‘mozilla::UniquePtr<char [], JS::FreePolicy>’} to ‘char*’ in assignment
1509 | user = JS_EncodeStringToUTF8 (cx, usrstr);
| ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
| |
| JS::UniqueChars {aka mozilla::UniquePtr<char [], JS::FreePolicy>}
polkitbackendjsauthority.cpp:1512:36: error: cannot convert ‘JS::UniqueChars’ {aka ‘mozilla::UniquePtr<char [], JS::FreePolicy>’} to ‘char*’ in assignment
1512 | netgroup = JS_EncodeStringToUTF8 (cx, netgstr);
| ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
| |
| JS::UniqueChars {aka mozilla::UniquePtr<char [], JS::FreePolicy>}
polkitbackendjsauthority.cpp:1522:24: error: no matching function for call to ‘JS_free(JSContext*&, char*&)’
1522 | JS_free (cx, netgroup);
| ^
In file included from /usr/include/mozjs-68/jsapi.h:30,
from polkitbackendjsauthority.cpp:47:
/usr/include/mozjs-68/js/CharacterEncoding.h:344:13: note: candidate: ‘void JS_free(JS::Latin1CharsZ&)’
344 | inline void JS_free(JS::Latin1CharsZ& ptr) { js_free((void*)ptr.get()); }
| ^~~~~~~
/usr/include/mozjs-68/js/CharacterEncoding.h:344:13: note: candidate expects 1 argument, 2 provided
/usr/include/mozjs-68/js/CharacterEncoding.h:345:13: note: candidate: ‘void JS_free(JS::UTF8CharsZ&)’
345 | inline void JS_free(JS::UTF8CharsZ& ptr) { js_free((void*)ptr.get()); }
| ^~~~~~~
/usr/include/mozjs-68/js/CharacterEncoding.h:345:13: note: candidate expects 1 argument, 2 provided
polkitbackendjsauthority.cpp:1523:20: error: no matching function for call to ‘JS_free(JSContext*&, char*&)’
1523 | JS_free (cx, user);
| ^
In file included from /usr/include/mozjs-68/jsapi.h:30,
from polkitbackendjsauthority.cpp:47:
/usr/include/mozjs-68/js/CharacterEncoding.h:344:13: note: candidate: ‘void JS_free(JS::Latin1CharsZ&)’
344 | inline void JS_free(JS::Latin1CharsZ& ptr) { js_free((void*)ptr.get()); }
| ^~~~~~~
/usr/include/mozjs-68/js/CharacterEncoding.h:344:13: note: candidate expects 1 argument, 2 provided
/usr/include/mozjs-68/js/CharacterEncoding.h:345:13: note: candidate: ‘void JS_free(JS::UTF8CharsZ&)’
345 | inline void JS_free(JS::UTF8CharsZ& ptr) { js_free((void*)ptr.get()); }
| ^~~~~~~
/usr/include/mozjs-68/js/CharacterEncoding.h:345:13: note: candidate expects 1 argument, 2 provided
polkitbackendjsauthority.cpp: In function ‘void utils_on_cancelled(GCancellable*, gpointer)’:
polkitbackendjsauthority.cpp:1683:56: warning: ‘void g_simple_async_result_take_error(GSimpleAsyncResult*, GError*)’ is deprecated [-Wdeprecated-declarations]
1683 | g_simple_async_result_take_error (data->simple, error);
| ^
In file included from /usr/include/glib-2.0/gio/gio.h:136,
from ../../src/polkit/polkitactiondescription.h:30,
from ../../src/polkit/polkit.h:30,
from polkitbackendjsauthority.cpp:37:
/usr/include/glib-2.0/gio/gsimpleasyncresult.h:116:21: note: declared here
116 | void g_simple_async_result_take_error (GSimpleAsyncResult *simple,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
polkitbackendjsauthority.cpp:1683:56: warning: ‘void g_simple_async_result_take_error(GSimpleAsyncResult*, GError*)’ is deprecated [-Wdeprecated-declarations]
1683 | g_simple_async_result_take_error (data->simple, error);
| ^
In file included from /usr/include/glib-2.0/gio/gio.h:136,
from ../../src/polkit/polkitactiondescription.h:30,
from ../../src/polkit/polkit.h:30,
from polkitbackendjsauthority.cpp:37:
/usr/include/glib-2.0/gio/gsimpleasyncresult.h:116:21: note: declared here
116 | void g_simple_async_result_take_error (GSimpleAsyncResult *simple,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
polkitbackendjsauthority.cpp:1684:55: warning: ‘void g_simple_async_result_complete_in_idle(GSimpleAsyncResult*)’ is deprecated [-Wdeprecated-declarations]
1684 | g_simple_async_result_complete_in_idle (data->simple);
| ^
In file included from /usr/include/glib-2.0/gio/gio.h:136,
from ../../src/polkit/polkitactiondescription.h:30,
from ../../src/polkit/polkit.h:30,
from polkitbackendjsauthority.cpp:37:
/usr/include/glib-2.0/gio/gsimpleasyncresult.h:106:21: note: declared here
106 | void g_simple_async_result_complete_in_idle (GSimpleAsyncResult *simple);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
polkitbackendjsauthority.cpp:1684:55: warning: ‘void g_simple_async_result_complete_in_idle(GSimpleAsyncResult*)’ is deprecated [-Wdeprecated-declarations]
1684 | g_simple_async_result_complete_in_idle (data->simple);
| ^
In file included from /usr/include/glib-2.0/gio/gio.h:136,
from ../../src/polkit/polkitactiondescription.h:30,
from ../../src/polkit/polkit.h:30,
from polkitbackendjsauthority.cpp:37:
/usr/include/glib-2.0/gio/gsimpleasyncresult.h:106:21: note: declared here
106 | void g_simple_async_result_complete_in_idle (GSimpleAsyncResult *simple);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
polkitbackendjsauthority.cpp: In function ‘void utils_child_watch_cb(GPid, gint, gpointer)’:
polkitbackendjsauthority.cpp:1743:55: warning: ‘void g_simple_async_result_complete_in_idle(GSimpleAsyncResult*)’ is deprecated [-Wdeprecated-declarations]
1743 | g_simple_async_result_complete_in_idle (data->simple);
| ^
In file included from /usr/include/glib-2.0/gio/gio.h:136,
from ../../src/polkit/polkitactiondescription.h:30,
from ../../src/polkit/polkit.h:30,
from polkitbackendjsauthority.cpp:37:
/usr/include/glib-2.0/gio/gsimpleasyncresult.h:106:21: note: declared here
106 | void g_simple_async_result_complete_in_idle (GSimpleAsyncResult *simple);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
polkitbackendjsauthority.cpp:1743:55: warning: ‘void g_simple_async_result_complete_in_idle(GSimpleAsyncResult*)’ is deprecated [-Wdeprecated-declarations]
1743 | g_simple_async_result_complete_in_idle (data->simple);
| ^
In file included from /usr/include/glib-2.0/gio/gio.h:136,
from ../../src/polkit/polkitactiondescription.h:30,
from ../../src/polkit/polkit.h:30,
from polkitbackendjsauthority.cpp:37:
/usr/include/glib-2.0/gio/gsimpleasyncresult.h:106:21: note: declared here
106 | void g_simple_async_result_complete_in_idle (GSimpleAsyncResult *simple);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
polkitbackendjsauthority.cpp: In function ‘gboolean utils_timeout_cb(gpointer)’:
polkitbackendjsauthority.cpp:1758:55: warning: ‘void g_simple_async_result_complete_in_idle(GSimpleAsyncResult*)’ is deprecated [-Wdeprecated-declarations]
1758 | g_simple_async_result_complete_in_idle (data->simple);
| ^
In file included from /usr/include/glib-2.0/gio/gio.h:136,
from ../../src/polkit/polkitactiondescription.h:30,
from ../../src/polkit/polkit.h:30,
from polkitbackendjsauthority.cpp:37:
/usr/include/glib-2.0/gio/gsimpleasyncresult.h:106:21: note: declared here
106 | void g_simple_async_result_complete_in_idle (GSimpleAsyncResult *simple);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
polkitbackendjsauthority.cpp:1758:55: warning: ‘void g_simple_async_result_complete_in_idle(GSimpleAsyncResult*)’ is deprecated [-Wdeprecated-declarations]
1758 | g_simple_async_result_complete_in_idle (data->simple);
| ^
In file included from /usr/include/glib-2.0/gio/gio.h:136,
from ../../src/polkit/polkitactiondescription.h:30,
from ../../src/polkit/polkit.h:30,
from polkitbackendjsauthority.cpp:37:
/usr/include/glib-2.0/gio/gsimpleasyncresult.h:106:21: note: declared here
106 | 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:1779:67: warning: ‘GSimpleAsyncResult* g_simple_async_result_new(GObject*, GAsyncReadyCallback, gpointer, gpointer)’ is deprecated: Use 'g_task_new' instead [-Wdeprecated-declarations]
1779 | (gpointer*)utils_spawn);
| ^
In file included from /usr/include/glib-2.0/gio/gio.h:136,
from ../../src/polkit/polkitactiondescription.h:30,
from ../../src/polkit/polkit.h:30,
from polkitbackendjsauthority.cpp:37:
/usr/include/glib-2.0/gio/gsimpleasyncresult.h:51:21: note: declared here
51 | GSimpleAsyncResult *g_simple_async_result_new (GObject *source_object,
| ^~~~~~~~~~~~~~~~~~~~~~~~~
polkitbackendjsauthority.cpp:1779:67: warning: ‘GSimpleAsyncResult* g_simple_async_result_new(GObject*, GAsyncReadyCallback, gpointer, gpointer)’ is deprecated: Use 'g_task_new' instead [-Wdeprecated-declarations]
1779 | (gpointer*)utils_spawn);
| ^
In file included from /usr/include/glib-2.0/gio/gio.h:136,
from ../../src/polkit/polkitactiondescription.h:30,
from ../../src/polkit/polkit.h:30,
from polkitbackendjsauthority.cpp:37:
/usr/include/glib-2.0/gio/gsimpleasyncresult.h:51:21: note: declared here
51 | GSimpleAsyncResult *g_simple_async_result_new (GObject *source_object,
| ^~~~~~~~~~~~~~~~~~~~~~~~~
polkitbackendjsauthority.cpp:1792:104: warning: ‘void g_simple_async_result_set_op_res_gpointer(GSimpleAsyncResult*, gpointer, GDestroyNotify)’ is deprecated [-Wdeprecated-declarations]
1792 | g_simple_async_result_set_op_res_gpointer (data->simple, data, (GDestroyNotify) utils_spawn_data_free);
| ^
In file included from /usr/include/glib-2.0/gio/gio.h:136,
from ../../src/polkit/polkitactiondescription.h:30,
from ../../src/polkit/polkit.h:30,
from polkitbackendjsauthority.cpp:37:
/usr/include/glib-2.0/gio/gsimpleasyncresult.h:75:21: note: declared here
75 | void g_simple_async_result_set_op_res_gpointer (GSimpleAsyncResult *simple,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
polkitbackendjsauthority.cpp:1792:104: warning: ‘void g_simple_async_result_set_op_res_gpointer(GSimpleAsyncResult*, gpointer, GDestroyNotify)’ is deprecated [-Wdeprecated-declarations]
1792 | g_simple_async_result_set_op_res_gpointer (data->simple, data, (GDestroyNotify) utils_spawn_data_free);
| ^
In file included from /usr/include/glib-2.0/gio/gio.h:136,
from ../../src/polkit/polkitactiondescription.h:30,
from ../../src/polkit/polkit.h:30,
from polkitbackendjsauthority.cpp:37:
/usr/include/glib-2.0/gio/gsimpleasyncresult.h:75:21: note: declared here
75 | void g_simple_async_result_set_op_res_gpointer (GSimpleAsyncResult *simple,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
polkitbackendjsauthority.cpp:1801:64: warning: ‘void g_simple_async_result_take_error(GSimpleAsyncResult*, GError*)’ is deprecated [-Wdeprecated-declarations]
1801 | g_simple_async_result_take_error (data->simple, error);
| ^
In file included from /usr/include/glib-2.0/gio/gio.h:136,
from ../../src/polkit/polkitactiondescription.h:30,
from ../../src/polkit/polkit.h:30,
from polkitbackendjsauthority.cpp:37:
/usr/include/glib-2.0/gio/gsimpleasyncresult.h:116:21: note: declared here
116 | void g_simple_async_result_take_error (GSimpleAsyncResult *simple,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
polkitbackendjsauthority.cpp:1801:64: warning: ‘void g_simple_async_result_take_error(GSimpleAsyncResult*, GError*)’ is deprecated [-Wdeprecated-declarations]
1801 | g_simple_async_result_take_error (data->simple, error);
| ^
In file included from /usr/include/glib-2.0/gio/gio.h:136,
from ../../src/polkit/polkitactiondescription.h:30,
from ../../src/polkit/polkit.h:30,
from polkitbackendjsauthority.cpp:37:
/usr/include/glib-2.0/gio/gsimpleasyncresult.h:116:21: note: declared here
116 | void g_simple_async_result_take_error (GSimpleAsyncResult *simple,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
polkitbackendjsauthority.cpp:1802:63: warning: ‘void g_simple_async_result_complete_in_idle(GSimpleAsyncResult*)’ is deprecated [-Wdeprecated-declarations]
1802 | g_simple_async_result_complete_in_idle (data->simple);
| ^
In file included from /usr/include/glib-2.0/gio/gio.h:136,
from ../../src/polkit/polkitactiondescription.h:30,
from ../../src/polkit/polkit.h:30,
from polkitbackendjsauthority.cpp:37:
/usr/include/glib-2.0/gio/gsimpleasyncresult.h:106:21: note: declared here
106 | void g_simple_async_result_complete_in_idle (GSimpleAsyncResult *simple);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
polkitbackendjsauthority.cpp:1802:63: warning: ‘void g_simple_async_result_complete_in_idle(GSimpleAsyncResult*)’ is deprecated [-Wdeprecated-declarations]
1802 | g_simple_async_result_complete_in_idle (data->simple);
| ^
In file included from /usr/include/glib-2.0/gio/gio.h:136,
from ../../src/polkit/polkitactiondescription.h:30,
from ../../src/polkit/polkit.h:30,
from polkitbackendjsauthority.cpp:37:
/usr/include/glib-2.0/gio/gsimpleasyncresult.h:106:21: note: declared here
106 | void g_simple_async_result_complete_in_idle (GSimpleAsyncResult *simple);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
polkitbackendjsauthority.cpp:1827:60: warning: ‘void g_simple_async_result_take_error(GSimpleAsyncResult*, GError*)’ is deprecated [-Wdeprecated-declarations]
1827 | g_simple_async_result_take_error (data->simple, error);
| ^
In file included from /usr/include/glib-2.0/gio/gio.h:136,
from ../../src/polkit/polkitactiondescription.h:30,
from ../../src/polkit/polkit.h:30,
from polkitbackendjsauthority.cpp:37:
/usr/include/glib-2.0/gio/gsimpleasyncresult.h:116:21: note: declared here
116 | void g_simple_async_result_take_error (GSimpleAsyncResult *simple,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
polkitbackendjsauthority.cpp:1827:60: warning: ‘void g_simple_async_result_take_error(GSimpleAsyncResult*, GError*)’ is deprecated [-Wdeprecated-declarations]
1827 | g_simple_async_result_take_error (data->simple, error);
| ^
In file included from /usr/include/glib-2.0/gio/gio.h:136,
from ../../src/polkit/polkitactiondescription.h:30,
from ../../src/polkit/polkit.h:30,
from polkitbackendjsauthority.cpp:37:
/usr/include/glib-2.0/gio/gsimpleasyncresult.h:116:21: note: declared here
116 | void g_simple_async_result_take_error (GSimpleAsyncResult *simple,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
polkitbackendjsauthority.cpp:1828:59: warning: ‘void g_simple_async_result_complete_in_idle(GSimpleAsyncResult*)’ is deprecated [-Wdeprecated-declarations]
1828 | g_simple_async_result_complete_in_idle (data->simple);
| ^
In file included from /usr/include/glib-2.0/gio/gio.h:136,
from ../../src/polkit/polkitactiondescription.h:30,
from ../../src/polkit/polkit.h:30,
from polkitbackendjsauthority.cpp:37:
/usr/include/glib-2.0/gio/gsimpleasyncresult.h:106:21: note: declared here
106 | void g_simple_async_result_complete_in_idle (GSimpleAsyncResult *simple);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
polkitbackendjsauthority.cpp:1828:59: warning: ‘void g_simple_async_result_complete_in_idle(GSimpleAsyncResult*)’ is deprecated [-Wdeprecated-declarations]
1828 | g_simple_async_result_complete_in_idle (data->simple);
| ^
In file included from /usr/include/glib-2.0/gio/gio.h:136,
from ../../src/polkit/polkitactiondescription.h:30,
from ../../src/polkit/polkit.h:30,
from polkitbackendjsauthority.cpp:37:
/usr/include/glib-2.0/gio/gsimpleasyncresult.h:106:21: note: declared here
106 | void g_simple_async_result_complete_in_idle (GSimpleAsyncResult *simple);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/lib64/glib-2.0/include/glibconfig.h:9,
from /usr/include/glib-2.0/glib/gtypes.h:32,
from /usr/include/glib-2.0/glib/galloca.h:32,
from /usr/include/glib-2.0/glib.h:30,
from /usr/include/glib-2.0/glib/gprintf.h:21,
from /usr/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:1879:63: warning: ‘void* g_simple_async_result_get_source_tag(GSimpleAsyncResult*)’ is deprecated [-Wdeprecated-declarations]
1879 | g_warn_if_fail (g_simple_async_result_get_source_tag (simple) == utils_spawn);
| ^
/usr/include/glib-2.0/glib/gmacros.h:928:8: note: in definition of macro ‘_G_BOOLEAN_EXPR’
928 | if (expr) \
| ^~~~
/usr/include/glib-2.0/glib/gmessages.h:535:8: note: in expansion of macro ‘G_LIKELY’
535 | if G_LIKELY (expr) ; \
| ^~~~~~~~
polkitbackendjsauthority.cpp:1879:3: note: in expansion of macro ‘g_warn_if_fail’
1879 | g_warn_if_fail (g_simple_async_result_get_source_tag (simple) == utils_spawn);
| ^~~~~~~~~~~~~~
In file included from /usr/include/glib-2.0/gio/gio.h:136,
from ../../src/polkit/polkitactiondescription.h:30,
from ../../src/polkit/polkit.h:30,
from polkitbackendjsauthority.cpp:37:
/usr/include/glib-2.0/gio/gsimpleasyncresult.h:99:21: note: declared here
99 | gpointer g_simple_async_result_get_source_tag (GSimpleAsyncResult *simple);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/lib64/glib-2.0/include/glibconfig.h:9,
from /usr/include/glib-2.0/glib/gtypes.h:32,
from /usr/include/glib-2.0/glib/galloca.h:32,
from /usr/include/glib-2.0/glib.h:30,
from /usr/include/glib-2.0/glib/gprintf.h:21,
from /usr/include/glib-2.0/glib/gstdio.h:22,
from polkitbackendjsauthority.cpp:33:
polkitbackendjsauthority.cpp:1879:63: warning: ‘void* g_simple_async_result_get_source_tag(GSimpleAsyncResult*)’ is deprecated [-Wdeprecated-declarations]
1879 | g_warn_if_fail (g_simple_async_result_get_source_tag (simple) == utils_spawn);
| ^
/usr/include/glib-2.0/glib/gmacros.h:928:8: note: in definition of macro ‘_G_BOOLEAN_EXPR’
928 | if (expr) \
| ^~~~
/usr/include/glib-2.0/glib/gmessages.h:535:8: note: in expansion of macro ‘G_LIKELY’
535 | if G_LIKELY (expr) ; \
| ^~~~~~~~
polkitbackendjsauthority.cpp:1879:3: note: in expansion of macro ‘g_warn_if_fail’
1879 | g_warn_if_fail (g_simple_async_result_get_source_tag (simple) == utils_spawn);
| ^~~~~~~~~~~~~~
In file included from /usr/include/glib-2.0/gio/gio.h:136,
from ../../src/polkit/polkitactiondescription.h:30,
from ../../src/polkit/polkit.h:30,
from polkitbackendjsauthority.cpp:37:
/usr/include/glib-2.0/gio/gsimpleasyncresult.h:99:21: note: declared here
99 | gpointer g_simple_async_result_get_source_tag (GSimpleAsyncResult *simple);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
polkitbackendjsauthority.cpp:1881:59: warning: ‘gboolean g_simple_async_result_propagate_error(GSimpleAsyncResult*, GError**)’ is deprecated [-Wdeprecated-declarations]
1881 | if (g_simple_async_result_propagate_error (simple, error))
| ^
In file included from /usr/include/glib-2.0/gio/gio.h:136,
from ../../src/polkit/polkitactiondescription.h:30,
from ../../src/polkit/polkit.h:30,
from polkitbackendjsauthority.cpp:37:
/usr/include/glib-2.0/gio/gsimpleasyncresult.h:119:21: note: declared here
119 | gboolean g_simple_async_result_propagate_error (GSimpleAsyncResult *simple,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
polkitbackendjsauthority.cpp:1881:59: warning: ‘gboolean g_simple_async_result_propagate_error(GSimpleAsyncResult*, GError**)’ is deprecated [-Wdeprecated-declarations]
1881 | if (g_simple_async_result_propagate_error (simple, error))
| ^
In file included from /usr/include/glib-2.0/gio/gio.h:136,
from ../../src/polkit/polkitactiondescription.h:30,
from ../../src/polkit/polkit.h:30,
from polkitbackendjsauthority.cpp:37:
/usr/include/glib-2.0/gio/gsimpleasyncresult.h:119:21: note: declared here
119 | gboolean g_simple_async_result_propagate_error (GSimpleAsyncResult *simple,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
polkitbackendjsauthority.cpp:1884:76: warning: ‘void* g_simple_async_result_get_op_res_gpointer(GSimpleAsyncResult*)’ is deprecated [-Wdeprecated-declarations]
1884 | data = (UtilsSpawnData*)g_simple_async_result_get_op_res_gpointer (simple);
| ^
In file included from /usr/include/glib-2.0/gio/gio.h:136,
from ../../src/polkit/polkitactiondescription.h:30,
from ../../src/polkit/polkit.h:30,
from polkitbackendjsauthority.cpp:37:
/usr/include/glib-2.0/gio/gsimpleasyncresult.h:79:21: note: declared here
79 | gpointer g_simple_async_result_get_op_res_gpointer (GSimpleAsyncResult *simple);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
polkitbackendjsauthority.cpp:1884:76: warning: ‘void* g_simple_async_result_get_op_res_gpointer(GSimpleAsyncResult*)’ is deprecated [-Wdeprecated-declarations]
1884 | data = (UtilsSpawnData*)g_simple_async_result_get_op_res_gpointer (simple);
| ^
In file included from /usr/include/glib-2.0/gio/gio.h:136,
from ../../src/polkit/polkitactiondescription.h:30,
from ../../src/polkit/polkit.h:30,
from polkitbackendjsauthority.cpp:37:
/usr/include/glib-2.0/gio/gsimpleasyncresult.h:79:21: note: declared here
79 | gpointer g_simple_async_result_get_op_res_gpointer (GSimpleAsyncResult *simple);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[4]: *** [Makefile:788: libpolkit_backend_1_la-polkitbackendjsauthority.lo] Error 1
make[4]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/polkit-0.116/src/polkitbackend'
make[3]: *** [Makefile:562: all] Error 2
make[3]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/polkit-0.116/src/polkitbackend'
make[2]: *** [Makefile:440: all-recursive] Error 1
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/polkit-0.116/src'
make[1]: *** [Makefile:500: all-recursive] Error 1
make[1]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/polkit-0.116'