Bug 106314 - "SpiderMonkey was configured with --enable-debug, so DEBUG must be defined when including /usr/local/include/mozjs-52/js-config.h
Summary: "SpiderMonkey was configured with --enable-debug, so DEBUG must be defined wh...
Status: RESOLVED MOVED
Alias: None
Product: PolicyKit
Classification: Unclassified
Component: libpolkit (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: David Zeuthen (not reading bugmail)
QA Contact: David Zeuthen (not reading bugmail)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-04-29 19:05 UTC by Dilian
Modified: 2018-08-20 21:33 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

Description Dilian 2018-04-29 19:05:58 UTC
polkit-0.114 fails compiling with the text below.  There shall be a way to tell polkit to use DEBUG, when importing from SpiderMonkey.


make  all-recursive
make[1]: Entering directory '/src/polkit-0.114'
Making all in actions
make[2]: Entering directory '/src/polkit-0.114/actions'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/src/polkit-0.114/actions'
Making all in data
make[2]: Entering directory '/src/polkit-0.114/data'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/src/polkit-0.114/data'
Making all in src
make[2]: Entering directory '/src/polkit-0.114/src'
Making all in polkit
make[3]: Entering directory '/src/polkit-0.114/src/polkit'
make  all-am
make[4]: Entering directory '/src/polkit-0.114/src/polkit'
make[4]: Nothing to be done for 'all-am'.
make[4]: Leaving directory '/src/polkit-0.114/src/polkit'
make[3]: Leaving directory '/src/polkit-0.114/src/polkit'
Making all in polkitbackend
make[3]: Entering directory '/src/polkit-0.114/src/polkitbackend'
make  all-am
make[4]: Entering directory '/src/polkit-0.114/src/polkitbackend'
  CXX      libpolkit_backend_1_la-polkitbackendjsauthority.lo
In file included from /usr/local/include/mozjs-52/jstypes.h:34:0,
                 from /usr/local/include/mozjs-52/js/Initialization.h:11,
                 from polkitbackendjsauthority.cpp:46:
/usr/local/include/mozjs-52/js-config.h:24:4: error: #error "SpiderMonkey was configured with --enable-debug, so DEBUG must be defined when including this header"
 #  error "SpiderMonkey was configured with --enable-debug, so DEBUG must be defined when including this header"
    ^~~~~
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/lib/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:379: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);
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[4]: *** [Makefile:768: libpolkit_backend_1_la-polkitbackendjsauthority.lo] Error 1
make[4]: Target 'all-am' not remade because of errors.
make[4]: Leaving directory '/src/polkit-0.114/src/polkitbackend'
make[3]: *** [Makefile:552: all] Error 2
make[3]: Leaving directory '/src/polkit-0.114/src/polkitbackend'
Making all in polkitagent
make[3]: Entering directory '/src/polkit-0.114/src/polkitagent'
make  all-am
make[4]: Entering directory '/src/polkit-0.114/src/polkitagent'
make[4]: Nothing to be done for 'all-am'.
make[4]: Leaving directory '/src/polkit-0.114/src/polkitagent'
make[3]: Leaving directory '/src/polkit-0.114/src/polkitagent'
Making all in programs
make[3]: Entering directory '/src/polkit-0.114/src/programs'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/src/polkit-0.114/src/programs'
Making all in examples
make[3]: Entering directory '/src/polkit-0.114/src/examples'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/src/polkit-0.114/src/examples'
make[3]: Entering directory '/src/polkit-0.114/src'
make[3]: Nothing to be done for 'all-am'.
make[3]: Leaving directory '/src/polkit-0.114/src'
make[2]: *** [Makefile:439: all-recursive] Error 1
make[2]: Target 'all' not remade because of errors.
make[2]: Leaving directory '/src/polkit-0.114/src'
Making all in docs
make[2]: Entering directory '/src/polkit-0.114/docs'
Making all in man
make[3]: Entering directory '/src/polkit-0.114/docs/man'
/usr/local/bin/xsltproc -nonet --stringparam man.base.url.for.relative.links /usr/local/share/gtk-doc/html/polkit-1/ --xinclude http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl polkit.xml
I/O error : Attempt to load network entity http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl
warning: failed to load external entity "http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl"
cannot parse http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl
make[3]: *** [Makefile:667: polkit.8] Error 4
/usr/local/bin/xsltproc -nonet --stringparam man.base.url.for.relative.links /usr/local/share/gtk-doc/html/polkit-1/ --xinclude http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl polkitd.xml
I/O error : Attempt to load network entity http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl
warning: failed to load external entity "http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl"
cannot parse http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl
make[3]: *** [Makefile:667: polkitd.8] Error 4
/usr/local/bin/xsltproc -nonet --stringparam man.base.url.for.relative.links /usr/local/share/gtk-doc/html/polkit-1/ --xinclude http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl pkexec.xml
I/O error : Attempt to load network entity http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl
warning: failed to load external entity "http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl"
cannot parse http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl
make[3]: *** [Makefile:667: pkexec.1] Error 4
/usr/local/bin/xsltproc -nonet --stringparam man.base.url.for.relative.links /usr/local/share/gtk-doc/html/polkit-1/ --xinclude http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl pkcheck.xml
I/O error : Attempt to load network entity http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl
warning: failed to load external entity "http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl"
cannot parse http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl
make[3]: *** [Makefile:667: pkcheck.1] Error 4
/usr/local/bin/xsltproc -nonet --stringparam man.base.url.for.relative.links /usr/local/share/gtk-doc/html/polkit-1/ --xinclude http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl pkaction.xml
I/O error : Attempt to load network entity http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl
warning: failed to load external entity "http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl"
cannot parse http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl
make[3]: *** [Makefile:667: pkaction.1] Error 4
/usr/local/bin/xsltproc -nonet --stringparam man.base.url.for.relative.links /usr/local/share/gtk-doc/html/polkit-1/ --xinclude http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl pkttyagent.xml
I/O error : Attempt to load network entity http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl
warning: failed to load external entity "http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl"
cannot parse http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl
make[3]: *** [Makefile:667: pkttyagent.1] Error 4
make[3]: Target 'all' not remade because of errors.
make[3]: Leaving directory '/src/polkit-0.114/docs/man'
Making all in polkit
make[3]: Entering directory '/src/polkit-0.114/docs/polkit'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/src/polkit-0.114/docs/polkit'
make[3]: Entering directory '/src/polkit-0.114/docs'
make[3]: Nothing to be done for 'all-am'.
make[3]: Leaving directory '/src/polkit-0.114/docs'
make[2]: *** [Makefile:444: all-recursive] Error 1
make[2]: Target 'all' not remade because of errors.
make[2]: Leaving directory '/src/polkit-0.114/docs'
Making all in po
make[2]: Entering directory '/src/polkit-0.114/po'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/src/polkit-0.114/po'
Making all in test
make[2]: Entering directory '/src/polkit-0.114/test'
Making all in mocklibc
make[3]: Entering directory '/src/polkit-0.114/test/mocklibc'
make  all-recursive
make[4]: Entering directory '/src/polkit-0.114/test/mocklibc'
Making all in src
make[5]: Entering directory '/src/polkit-0.114/test/mocklibc/src'
make[5]: Nothing to be done for 'all'.
make[5]: Leaving directory '/src/polkit-0.114/test/mocklibc/src'
Making all in bin
make[5]: Entering directory '/src/polkit-0.114/test/mocklibc/bin'
make[5]: Nothing to be done for 'all'.
make[5]: Leaving directory '/src/polkit-0.114/test/mocklibc/bin'
make[5]: Entering directory '/src/polkit-0.114/test/mocklibc'
make[5]: Leaving directory '/src/polkit-0.114/test/mocklibc'
make[4]: Leaving directory '/src/polkit-0.114/test/mocklibc'
make[3]: Leaving directory '/src/polkit-0.114/test/mocklibc'
Making all in .
make[3]: Entering directory '/src/polkit-0.114/test'
make[3]: Nothing to be done for 'all-am'.
make[3]: Leaving directory '/src/polkit-0.114/test'
Making all in polkit
make[3]: Entering directory '/src/polkit-0.114/test/polkit'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/src/polkit-0.114/test/polkit'
Making all in polkitbackend
make[3]: Entering directory '/src/polkit-0.114/test/polkitbackend'
make[3]: *** No rule to make target '../../src/polkitbackend/libpolkit-backend-1.la', needed by 'polkitbackendjsauthoritytest'.
make[3]: Target 'all' not remade because of errors.
make[3]: Leaving directory '/src/polkit-0.114/test/polkitbackend'
make[2]: *** [Makefile:520: all-recursive] Error 1
make[2]: Target 'all' not remade because of errors.
make[2]: Leaving directory '/src/polkit-0.114/test'
make[2]: Entering directory '/src/polkit-0.114'
make[2]: Leaving directory '/src/polkit-0.114'
make[1]: *** [Makefile:499: all-recursive] Error 1
make[1]: Leaving directory '/src/polkit-0.114'
make: *** [Makefile:431: all] Error 2
Comment 1 GitLab Migration User 2018-08-20 21:33:50 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/polkit/polkit/issues/2.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.