Re: Can't compile gjs-1.32 or gjs-1.33.14



On Mon, 24 Sep 2012 19:19:34 +0200
Fabrice Delente <delentef gmail com> wrote:
> Trying to compile either, I get
> 
> $ make
> TOP_SRCDIR=. DBUS_SESSION_BUS_ADDRESS='' XDG_DATA_HOME=test_user_data
> GJS_DEBUG_OUTPUT=test_user_data/logs/gjs.log BUILDDIR=.
> GJS_USE_UNINSTALLED_FILES=1 GJS_TEST_TIMEOUT=420 GI_TYPELIB_PATH=.
> LD_LIBRARY_PATH=":"
> G_FILENAME_ENCODING=latin1     ./scripts/make-tests . gjs/context.c
> gjs/jsapi-util-array.c gjs/jsapi-util-error.c gjs/jsapi-util-string.c
> gjs/stack.c util/glib.c ./gjstest.h and ./gjstest.c appear to be
> unchanged, not updating make  all-am
> make[1]: Entering directory
> `/usr/local/testSpace/linuxmint-Cinnamon-bd02368/gjs-1.32.0'
>   CC     libgjs_la-byteArray.lo
> gjs/byteArray.c: In function ‘gjs_byte_array_constructor’:
> gjs/byteArray.c:467:5: warning: passing argument 1 of ‘JS_GetClass’
> from incompatible pointer type [enabled by default]
> In file included from gjs/byteArray.h:33:0,
>                  from gjs/byteArray.c:27:
> /usr/include/js/jsapi.h:2122:1: note: expected ‘struct JSObject *’ but
> argument is of type ‘struct JSContext *’
> gjs/byteArray.c:467:5: error: too many arguments to function
> ‘JS_GetClass’ In file included from gjs/byteArray.h:33:0,
>                  from gjs/byteArray.c:27:
> /usr/include/js/jsapi.h:2122:1: note: declared here
> gjs/byteArray.c:468:5: warning: passing argument 1 of ‘JS_GetClass’
> from incompatible pointer type [enabled by default]
> In file included from gjs/byteArray.h:33:0,
>                  from gjs/byteArray.c:27:
> /usr/include/js/jsapi.h:2122:1: note: expected ‘struct JSObject *’ but
> argument is of type ‘struct JSContext *’
> gjs/byteArray.c:468:5: error: too many arguments to function
> ‘JS_GetClass’ In file included from gjs/byteArray.h:33:0,
>                  from gjs/byteArray.c:27:
> /usr/include/js/jsapi.h:2122:1: note: declared here
> gjs/byteArray.c: In function ‘to_string_func’:
> gjs/byteArray.c:543:14: warning: pointer targets in assignment differ
> in signedness [-Wpointer-sign]
> make[1]: *** [libgjs_la-byteArray.lo] Error 1
> make[1]: Leaving directory
> `/usr/local/testSpace/linuxmint-Cinnamon-bd02368/gjs-1.32.0'
> make: *** [all] Error 2
> 
> This is with the latest spidermonkey version (
> http://ftp.mozilla.org/pub/mozilla.org/js/js185-1.0.0.tar.gz).

You probably didn't compile js-185 with the --enable-threadsafe option.
It is also a good idea to compile js-185 with the --with-system-nspr
option.

Chris


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]