LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices



Reply
 
Search this Thread
Old 09-17-2006, 03:19 PM   #1
cvt
Member
 
Registered: Jul 2004
Location: UK
Distribution: Slackware
Posts: 37

Rep: Reputation: 17
Compiling Mozilla Spidermonkey.


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
 
  


Reply

Tags
engine, javascript, spidermonkey


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Mozilla Corporation Signs Mozilla Firefox Distribution Deal with RealNetworks LXer Syndicated Linux News 0 08-03-2006 04:21 PM
Compiling gtk+ and mozilla glock19 Linux - General 19 07-10-2004 08:08 PM
trouble compiling mozilla 1.6 with garnome Cookie Linux - Software 1 04-06-2004 01:12 AM
Segfaults in Mozilla, Mozilla Firebird, and Mozilla Thunderbird Ninja Cow Linux - Software 2 02-02-2004 02:33 AM
Mozilla, compiling with xft Howto for Newb brisavgab Linux - Newbie 5 07-27-2003 10:39 PM


All times are GMT -5. The time now is 06:48 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration