Compiling gjs-1.29.17 gives:

  CC     libgjs_la-byteArray.lo
gjs/byteArray.c: In function 'gjs_byte_array_constructor':
gjs/byteArray.c:473:5: warning: passing argument 1 of 'JS_GetClass' from 
incompatible pointer type [enabled by default]
/usr/include/js/jsapi.h:2122:1: note: expected 'struct JSObject *' but argument 
is of type 'struct JSContext *'
gjs/byteArray.c:473:5: error: too many arguments to function 'JS_GetClass'
/usr/include/js/jsapi.h:2122:1: note: declared here
gjs/byteArray.c:474:5: warning: passing argument 1 of 'JS_GetClass' from 
incompatible pointer type [enabled by default]
/usr/include/js/jsapi.h:2122:1: note: expected 'struct JSObject *' but argument 
is of type 'struct JSContext *'
gjs/byteArray.c:474:5: error: too many arguments to function 'JS_GetClass'
/usr/include/js/jsapi.h:2122:1: note: declared here
make[1]: *** [libgjs_la-byteArray.lo] Error 1
make[1]: Leaving directory `/usr/src/programming/gjs/gjs-1.29.17'
make: *** [all] Error 2

I also downloaded the latest build using git, but that gave the same error.

I installed SpiderMonkey (js185) for javascript support. Here is the relevant 
bit from ./configure to show what was found:

checking for standalone mozjs185... yes
checking for JS... yes
Using JS_PACKAGE: mozjs185
Using JS_CFLAGS: -I/usr/include/js -I/usr/include/nspr  
Using JS_LIBS: -lmozjs185 -lplds4 -lplc4 -lnspr4 -lpthread  
checking for JS_GetStringBytes... no
checking for JS_GetFunctionName... no
checking for JS_GetStringChars... no
checking for JS_StrictPropertyStub... yes
checking for JS_GetGlobalForScopeChain... yes
checking for JS_DestroyScript... no
checking for JS_DecodeUTF8... no
checking for JS_FreezeObject... yes
checking for JS_IsScriptFrame... yes
checking for JS_EndPC... yes
checking for JS_NewCompartmentAndGlobalObject... yes
checking for JS_SetScriptStackQuota... yes
checking for JS_ClearNewbornRoots... no
checking whether JSLocaleToUnicode takes a const char*... yes
checking for JS_CLASS_TRACE macro... yes
checking for gobject-introspection... yes
checking for GOBJECT... yes
checking for GJS... yes
checking for GJS_CAIRO... yes
checking for GJS_DBUS... yes
checking for GJS_GDBUS... yes
checking for dbus_message_iter_abandon_container... yes
checking for GJSTESTS... yes
checking how to link readline libs... -lreadline
checking for backtrace... yes
checking whether to include systemtap tracing support... no
checking whether to include dtrace tracing support... no
checking for an ANSI C-conforming const... (cached) yes
configure: creating ./config.status
config.status: creating Makefile

The file  /usr/include/js/jsapi.h was installed by js185.

I'm a bit stumped at the moment and googling hasn't given me much to pursue, so 
any suggestions would be gratefully received (apart from 'give up' of course).

jb.
                                          
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to