[SERVER-3400] Cannot build mongodb from source on Fedora 15 (spidermonkey header problem) Created: 09/Jul/11 Updated: 11/Jul/11 Resolved: 11/Jul/11 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Build |
| Affects Version/s: | 1.8.2 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Minor - P4 |
| Reporter: | Joseph Shraibman | Assignee: | Unassigned |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
LSB Version: :core-4.0-amd64:core-4.0-noarch |
||
| Operating System: | Linux |
| Participants: |
| Description |
|
I was able to build mongodb from source on Fedora 13 with "scons all". On Fedora 15 I got: scons: Reading SConscript files ... So I did cd /usr/include/ and got around that problem but compilation failed later with g++ -o scripting/engine_spidermonkey.o -c -Wnon-virtual-dtor -fPIC -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -Werror -fno-builtin-memcmp -O3 -D_SCONS -DMONGO_EXPOSE_MACROS -DXP_UNIX -I. scripting/engine_spidermonkey.cpp praton.h does exist: [root@jks-desktop /usr/include] {f13}# find . -name pratom.h I was able to get around these problems by symlinking a bunch of files from the nspr4 directory into the js directory, but in the end: /usr/include/js/jsvector.h:166:69: error: 'mongo::ourrealloc' is not a member of 'js::Vector<int, 20ul, js::SystemAllocPolicy>' scons: *** [scripting/engine_spidermonkey.o] Error 1 In the end I built spidermonkey myself and was then able to build mongodb |
| Comments |
| Comment by Eliot Horowitz (Inactive) [ 11/Jul/11 ] |
|
See |