Hey Guys,
I'm trying to compile Mozilla's Spidermonkey javascript engine. I've been all over the place and I'm pretty sure I'm doing it all right. The only problem is the Makefile.ref supplied by mozilla. It has in the header file list 'jsiter.h' and in the source file list 'jsiter.c'. These files aren't supplied with the Spidermonkey source though. If I take those entries out it doesn't compile either. I did find the files shipped with the mozilla source distro, but it doesn't compile anyway. I first thought you may need to complile Mozilla before you could compile Spidermonkey, but I downloaded the standalone source, and really I don't want to go in trying to compile the browser. Is it just me or has that process become a bit of b*tch. It used to be so easy.....
Any how, I run zenWalk 2.8 and using gcc3.4.6.
The Spidermonkey tarball is called js-1.5.tar.gz, if that helps.
Code:
[cvt@hal:src]$ make -f ./Makefile.ref
cat: ../../dist/Linux_All_DBG.OBJ/nspr/Version: No such file or directory
cd editline; make -f Makefile.ref all
make[1]: Entering directory `/mnt/localstore/files/corne/dev/c_c++/dillo/spidermonkey/js/src/editline'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/mnt/localstore/files/corne/dev/c_c++/dillo/spidermonkey/js/src/editline'
make -f Makefile.ref Linux_All_DBG.OBJ/libjs.a Linux_All_DBG.OBJ/libjs.so Linux_All_DBG.OBJ/js Linux_All_DBG.OBJ/jsautocfg.h Linux_All_DBG.OBJ/jscpucfg Linux_All_DBG.OBJ/jscpucfg.o
cat: ../../dist/Linux_All_DBG.OBJ/nspr/Version: No such file or directory
make[1]: Entering directory `/mnt/localstore/files/corne/dev/c_c++/dillo/spidermonkey/js/src'
make[1]: Circular jscpucfg.h <- Linux_All_DBG.OBJ/jsautocfg.h dependency dropped.
make[1]: Circular Linux_All_DBG.OBJ/jsautocfg.h <- Linux_All_DBG.OBJ/jsautocfg.h dependency dropped.
gcc -o Linux_All_DBG.OBJ/jsapi.o -c -Wall -Wno-format -DGCC_OPT_BUG -g -DXP_UNIX -DSVR4 -DSYSV -D_BSD_SOURCE -DPOSIX_SOURCE -DHAVE_LOCALTIME_R -DX86_LINUX -DDEBUG -DDEBUG_cvt -DEDITLINE -ILinux_All_DBG.OBJ jsapi.c
gcc -o Linux_All_DBG.OBJ/jsarena.o -c -Wall -Wno-format -DGCC_OPT_BUG -g -DXP_UNIX -DSVR4 -DSYSV -D_BSD_SOURCE -DPOSIX_SOURCE -DHAVE_LOCALTIME_R -DX86_LINUX -DDEBUG -DDEBUG_cvt -DEDITLINE -ILinux_All_DBG.OBJ jsarena.c
gcc -o Linux_All_DBG.OBJ/jsarray.o -c -Wall -Wno-format -DGCC_OPT_BUG -g -DXP_UNIX -DSVR4 -DSYSV -D_BSD_SOURCE -DPOSIX_SOURCE -DHAVE_LOCALTIME_R -DX86_LINUX -DDEBUG -DDEBUG_cvt -DEDITLINE -ILinux_All_DBG.OBJ jsarray.c
gcc -o Linux_All_DBG.OBJ/jsatom.o -c -Wall -Wno-format -DGCC_OPT_BUG -g -DXP_UNIX -DSVR4 -DSYSV -D_BSD_SOURCE -DPOSIX_SOURCE -DHAVE_LOCALTIME_R -DX86_LINUX -DDEBUG -DDEBUG_cvt -DEDITLINE -ILinux_All_DBG.OBJ jsatom.c
gcc -o Linux_All_DBG.OBJ/jsbool.o -c -Wall -Wno-format -DGCC_OPT_BUG -g -DXP_UNIX -DSVR4 -DSYSV -D_BSD_SOURCE -DPOSIX_SOURCE -DHAVE_LOCALTIME_R -DX86_LINUX -DDEBUG -DDEBUG_cvt -DEDITLINE -ILinux_All_DBG.OBJ jsbool.c
gcc -o Linux_All_DBG.OBJ/jscntxt.o -c -Wall -Wno-format -DGCC_OPT_BUG -g -DXP_UNIX -DSVR4 -DSYSV -D_BSD_SOURCE -DPOSIX_SOURCE -DHAVE_LOCALTIME_R -DX86_LINUX -DDEBUG -DDEBUG_cvt -DEDITLINE -ILinux_All_DBG.OBJ jscntxt.c
gcc -o Linux_All_DBG.OBJ/jsdate.o -c -Wall -Wno-format -DGCC_OPT_BUG -g -DXP_UNIX -DSVR4 -DSYSV -D_BSD_SOURCE -DPOSIX_SOURCE -DHAVE_LOCALTIME_R -DX86_LINUX -DDEBUG -DDEBUG_cvt -DEDITLINE -ILinux_All_DBG.OBJ jsdate.c
gcc -o Linux_All_DBG.OBJ/jsdbgapi.o -c -Wall -Wno-format -DGCC_OPT_BUG -g -DXP_UNIX -DSVR4 -DSYSV -D_BSD_SOURCE -DPOSIX_SOURCE -DHAVE_LOCALTIME_R -DX86_LINUX -DDEBUG -DDEBUG_cvt -DEDITLINE -ILinux_All_DBG.OBJ jsdbgapi.c
gcc -o Linux_All_DBG.OBJ/jsdhash.o -c -Wall -Wno-format -DGCC_OPT_BUG -g -DXP_UNIX -DSVR4 -DSYSV -D_BSD_SOURCE -DPOSIX_SOURCE -DHAVE_LOCALTIME_R -DX86_LINUX -DDEBUG -DDEBUG_cvt -DEDITLINE -ILinux_All_DBG.OBJ jsdhash.c
gcc -o Linux_All_DBG.OBJ/jsdtoa.o -c -Wall -Wno-format -DGCC_OPT_BUG -g -DXP_UNIX -DSVR4 -DSYSV -D_BSD_SOURCE -DPOSIX_SOURCE -DHAVE_LOCALTIME_R -DX86_LINUX -DDEBUG -DDEBUG_cvt -DEDITLINE -ILinux_All_DBG.OBJ jsdtoa.c
gcc -o Linux_All_DBG.OBJ/jsemit.o -c -Wall -Wno-format -DGCC_OPT_BUG -g -DXP_UNIX -DSVR4 -DSYSV -D_BSD_SOURCE -DPOSIX_SOURCE -DHAVE_LOCALTIME_R -DX86_LINUX -DDEBUG -DDEBUG_cvt -DEDITLINE -ILinux_All_DBG.OBJ jsemit.c
gcc -o Linux_All_DBG.OBJ/jsexn.o -c -Wall -Wno-format -DGCC_OPT_BUG -g -DXP_UNIX -DSVR4 -DSYSV -D_BSD_SOURCE -DPOSIX_SOURCE -DHAVE_LOCALTIME_R -DX86_LINUX -DDEBUG -DDEBUG_cvt -DEDITLINE -ILinux_All_DBG.OBJ jsexn.c
gcc -o Linux_All_DBG.OBJ/jsfun.o -c -Wall -Wno-format -DGCC_OPT_BUG -g -DXP_UNIX -DSVR4 -DSYSV -D_BSD_SOURCE -DPOSIX_SOURCE -DHAVE_LOCALTIME_R -DX86_LINUX -DDEBUG -DDEBUG_cvt -DEDITLINE -ILinux_All_DBG.OBJ jsfun.c
gcc -o Linux_All_DBG.OBJ/jsgc.o -c -Wall -Wno-format -DGCC_OPT_BUG -g -DXP_UNIX -DSVR4 -DSYSV -D_BSD_SOURCE -DPOSIX_SOURCE -DHAVE_LOCALTIME_R -DX86_LINUX -DDEBUG -DDEBUG_cvt -DEDITLINE -ILinux_All_DBG.OBJ jsgc.c
gcc -o Linux_All_DBG.OBJ/jshash.o -c -Wall -Wno-format -DGCC_OPT_BUG -g -DXP_UNIX -DSVR4 -DSYSV -D_BSD_SOURCE -DPOSIX_SOURCE -DHAVE_LOCALTIME_R -DX86_LINUX -DDEBUG -DDEBUG_cvt -DEDITLINE -ILinux_All_DBG.OBJ jshash.c
gcc -o Linux_All_DBG.OBJ/jsinterp.o -c -Wall -Wno-format -DGCC_OPT_BUG -g -DXP_UNIX -DSVR4 -DSYSV -D_BSD_SOURCE -DPOSIX_SOURCE -DHAVE_LOCALTIME_R -DX86_LINUX -DDEBUG -DDEBUG_cvt -DEDITLINE -ILinux_All_DBG.OBJ jsinterp.c
gcc -o Linux_All_DBG.OBJ/jsiter.o -c -Wall -Wno-format -DGCC_OPT_BUG -g -DXP_UNIX -DSVR4 -DSYSV -D_BSD_SOURCE -DPOSIX_SOURCE -DHAVE_LOCALTIME_R -DX86_LINUX -DDEBUG -DDEBUG_cvt -DEDITLINE -ILinux_All_DBG.OBJ jsiter.c
gcc: jsiter.c: No such file or directory
gcc: no input files
make[1]: *** [Linux_All_DBG.OBJ/jsiter.o] Error 1
make[1]: Leaving directory `/mnt/localstore/files/corne/dev/c_c++/dillo/spidermonkey/js/src'
make: *** [all] Error 2
Thanks guy's