[Bug 119035] libmozjs0d-dev header silliness

Sean Middleditch elanthis at awesomeplay.com
Thu Jun 7 04:55:40 UTC 2007


Public bug reported:

Binary package hint: libmozjs-dev

In 1.8.1.4-1ubuntu2 of the package, an undocumented magic macro
MOZILLA_1_8 _BRANCH must be defined or else the library is unusable.
This might make sense internally in Mozilla (thought not really, imo)
but it's pretty bad for teh stand-alone Spidermonkey engine.  As I
believe this package is a snapshot, this may just be an oversite yet to
be resolved in the official spidermonkey release.  It shold be fixed,
though - one should not have to define undocumented macros in order to
make the library's header files match up with the binary.

The particular problem is that the JSFunctionSpec function has different
sizes for its fields based on whether MOZILLA_1_8_BRANCH is set.  The
library binaries are apparently compiled with this macro set, so any app
compiling against the library will end up with ABI problems when calling
the JS_DefineFunctions or JS_InitClass functions (or relatives).

** Affects: xulrunner (Ubuntu)
     Importance: Undecided
         Status: Unconfirmed

-- 
libmozjs0d-dev header silliness
https://bugs.launchpad.net/bugs/119035
You received this bug notification because you are a member of Mozilla
Bugs, which is a bug contact for xulrunner in ubuntu.




More information about the Ubuntu-mozillateam-bugs mailing list