On Thu, 2011-09-15 at 18:00 +0000, John Burrell wrote: > 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:
I can't remember if it's the same error, but I had a lot of trouble with gjs and js185 when I last tried building Gnome3, a couple of months ago. Unfortunately, I never got around to investigating properly, thanks to hardware failure on my old machine. But Fedora and others now seem to be using js185 to build gjs and Gnome Shell, so I'd suggest maybe looking at how they do it... their RPN spec files can be found online somewhere... Simon. -- http://linuxfromscratch.org/mailman/listinfo/blfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
