Ticket #16 (closed defect: fixed)

Opened 13 years ago

Last modified 13 years ago

JavaScript package on Ubuntu

Reported by: reluc Owned by:
Priority: major Milestone:
Component: zoo-kernel Version: 1.0
Keywords: JS config compilation Cc:


Since Ubuntu 10.4, there is no more mozjs-dev package. This package was based on SpiderMonkey? 1.7, the last one publish by Mozilla. But Mozilla continue to use and improve SpiderMonkey?. The actual version is 1.9.2, and when Firefox 4 will be out, SpiderMonkey? 2.0 will out too.

Since Firefox 2 and XulRunner? 1.8, SpiderMonkey? has not to be published alone. SpiderMonkey? is in XulRunner? development package. This mean that we don't need to compile SpiderMonkey? on Ubuntu or other Linux system to have SpiderMonkey?, we jsut have to use Xulrunner-devel package.

The configure script need to be update to look at the good folder for lib and include :

  • libmozjs.so is in /usr/lib/xulrunner-devel.1.9.13/lib
  • jsapi.h is in /usr/lib/xulrunner-devel.

we can specify --with-js=/usr/lib/xulrunner-devel.1.9.13

I have to do this changes to have a good configuration script :

  • JS_CPPFLAGS="-I$JSHOME/include/js" --> JS_CPPFLAGS="-I$JSHOME/include"
  • JS_LDFLAGS="-L$JSHOME/lib -ljs -lm" --> JS_LDFLAGS="-L$JSHOME/lib -lmozjs -lm"
  • JS_LIB="js" --> JS_LIB="mozjs"

and update the Makefile :

  • JS_FILE= -- >JS_FILE=service_internal_js.o

Change History

Changed 13 years ago by david

  • status changed from new to closed
  • resolution set to fixed

fixed for linux debian like, in revision 89

Changed 13 years ago by reluc

  • status changed from closed to reopened
  • resolution fixed deleted

With the revision 89 the option : --with-js=/usr/lib/xulrunner-devel-

Give me this error : checking for JS_CallFunctionName in -ljs... no

With xulrunenr-devel we have to use -lmozjs

Changed 13 years ago by djay

  • status changed from reopened to closed
  • resolution set to fixed

Many thanks for you help david and for your tests reluc.

After speking about this issue on IRC we found a way to solve the issue with reluc which get the xulrunner-1.9.2-dev debian package installed.

We then commited modifications to the SVN corresponding to the r91.

Please feel free to re-open this ticket if anything still goes wrong.

Changed 13 years ago by djay

  • status changed from closed to reopened
  • resolution fixed deleted

David explained to me that finally I was wrong using the grep dev on xulrunner as there is 2 different packages (including one meta package).

Moreover, when you try to compile the JavaScript? support on debian like distribution, you should then specify only --with-js without any path set to activate autodetection. If you set any path here, then libmozjs will be located as header files required.

The historical libjs will be removed and libmozjs will used from now.

David is making modifications right now and should commit his modifications soon.

Changed 13 years ago by djay

  • status changed from reopened to closed
  • resolution set to fixed

Revision #110 solve this issue.

Thank you David for this update.

If anything still goes wrong please reopen this ticket.

Note: See TracTickets for help on using tickets.


Context Navigation

ZOO Sponsors

http://www.zoo-project.org/trac/chrome/site/img/geolabs-logo.pnghttp://www.zoo-project.org/trac/chrome/site/img/neogeo-logo.png http://www.zoo-project.org/trac/chrome/site/img/apptech-logo.png http://www.zoo-project.org/trac/chrome/site/img/3liz-logo.png http://www.zoo-project.org/trac/chrome/site/img/gateway-logo.png

Become a sponsor !

Knowledge partners

http://www.zoo-project.org/trac/chrome/site/img/ocu-logo.png http://www.zoo-project.org/trac/chrome/site/img/gucas-logo.png http://www.zoo-project.org/trac/chrome/site/img/polimi-logo.png http://www.zoo-project.org/trac/chrome/site/img/fem-logo.png http://www.zoo-project.org/trac/chrome/site/img/supsi-logo.png http://www.zoo-project.org/trac/chrome/site/img/cumtb-logo.png

Become a knowledge partner

Related links

http://zoo-project.org/img/ogclogo.png http://zoo-project.org/img/osgeologo.png