Search code examples
firefoxspidermonkeyjavascript-engine

Use custom SpiderMonkey build with firefox 5


I am trying to build and use SpiderMonkey I compiled (for my academic research) with firefox 5 on a windows machine, but when I try to run firefox I get "missing JS_InitCTypesClass function in mozjs.dll" error.

I downloaded SpiderMonkey code and I built it (without any changes) using MozillaBuild. Than I copied to new DLL to the firefox directory (renaming the DLL name to mozjs.dll) and tried to execute firefox. At this point I got the error I wrote.

Also, checking using exported function viewer I noticed that the original mozjs.dll has 777 exported functions, while the one I compiled has only 771 functions, so I guess the function is really missing.

Any ideas how can I build a custom SpiderMonkey and use it with FF5 ?

Thanks a lot for your help!


Solution

  • You probably just want to make sure that the way you configure SpiderMonkey matches what happens at http://hg.mozilla.org/mozilla-central/file/a0372b031aac/configure.in#l9484