[SERVER-2683] fails to build on natty Created: 04/Mar/11  Updated: 12/Jul/16  Resolved: 02/Sep/11

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: 1.8.0-rc0
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Roman Shtylman Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

ubuntu natty alpha 3, gcc 4.5, xulrunner 2.0b12


Attachments: File build.log     File mozjs185    
Operating System: Linux
Participants:

 Description   

Trying to build the 1.8 branch from github on natty fails. This may be relevant since natty will be released around the end of April and I am sure people will want to be testing on it.

Maybe I should would be using xulrunner 1.x series?



 Comments   
Comment by Eliot Horowitz (Inactive) [ 02/Sep/11 ]

This has been addressed by using a specific sm version that we know is fully functional

Comment by Eliot Horowitz (Inactive) [ 19/Apr/11 ]

No - this has not been merged yet.

We're in the middle of finishing the v8 port, so that is taking precedence over fully testing sm 185

Comment by Roman Shtylman [ 18/Apr/11 ]

Has this patch landed in the master branch? Does the master branch build in natty now?

Comment by Chris Coulson [ 17/Mar/11 ]

Oh, this patch is also against our 1.6.3 package too. I'm not sure how different that is to trunk

Comment by Chris Coulson [ 17/Mar/11 ]

Here is a first cut at porting this to the latest version of Spidermonkey (shipped with Firefox 4). Thanks to Krzysztof for starting this.

Note, that because of changes to the JSNewResolveOp, JSNewEnumerateOp and JSPropertyOp prototypes, this won't build against older spidermonkey versions (although that can be fixed). I've left comments where this is the case.

In addition to this, mongodb overrides malloc with its own infallible malloc implementation, declared inline. JSContext maintains a pointer to malloc, but this doesn't work (presumably because it's declared inline). To work around this, the patch #undef's the mongodb malloc implementation before including the jspai headers, as it doesn't rely on the extra protection there.

We're hoping to drop xulrunner-1.9.2 from the archive in Ubuntu (although, at the moment I'm not that confident I'm going to get everything ported in time for our release).

We'll probably provide a proper Spidermonkey source package in the future, decoupled entirely from Firefox releases so that this isn't a regular occurrence

Comment by Krzysztof Klimonda [ 07/Mar/11 ]

Ubuntu is dropping xulrunner 1.9.2 from archive in 11.04 - only 2.0 version will remain. There are some API changes in this release, I'm attaching the build log.

Comment by Eliot Horowitz (Inactive) [ 06/Mar/11 ]

Can you attach the compile error?

Comment by Roman Shtylman [ 04/Mar/11 ]

As a side note, building with the v8 instead of the spidermonkey engine works fine.

Generated at Thu Feb 08 03:00:53 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.