Various build issues with couched 1.2.0
---------------------------------------

                 Key: COUCHDB-1456
                 URL: https://issues.apache.org/jira/browse/COUCHDB-1456
             Project: CouchDB
          Issue Type: Bug
          Components: Build System
    Affects Versions: 1.1.1
         Environment: CouchDB 1.2.0 /  Solaris / gcc-4.2.3 / SpiderMonkey 1.8.5
            Reporter: Victor Igumnov


• Hard coded paths: /opt/local/(include|lib) can't be overridden using --libdir 
/ --includedir
• Fails to compile against spider monkey 1.8.5; CouchDB 1.1.1 did not have this 
issue. See build stdout below. 

gmake[4]: Entering directory 
`/software/work/apache-couchdb-1.2.0/src/couchdb/priv'
/bin/sh ../../../libtool --tag=CC   --mode=link gcc -g -Wall -Werror 
-D_BSD_SOURCE -I/opt/extra/include -DXP_UNIX 
-I/opt/extra/spidermonkey-1.8.5/include 
-I/opt/extra/spidermonkey-1.8.5/include/js 
-I/opt/extra/spidermonkey-1.8.5/include/mozjs  -I/opt/local/include 
-I/usr/local/include -I/usr/include  -O2 -g -O2 
-L/opt/extra/spidermonkey-1.8.5/lib  -L/opt/local/lib -L/usr/local/lib  
-L/opt/local/lib -L/usr/local/lib  -o couchjs couchjs-http.o couchjs-main.o 
couchjs-utf8.o couchjs-util.o -L/opt/extra/lib -lcurl -L/opt/extra/lib -lssl 
-lcrypto -lsocket -lnsl -lssl -lcrypto -lsocket -lnsl -ldl -lz -lmozjs185-1.0 
-lm    -L/opt/local/lib -L/usr/local/lib  -L/opt/local/lib -L/usr/local/lib 
libtool: link: gcc -g -Wall -Werror -D_BSD_SOURCE -I/opt/extra/include 
-DXP_UNIX -I/opt/extra/spidermonkey-1.8.5/include 
-I/opt/extra/spidermonkey-1.8.5/include/js 
-I/opt/extra/spidermonkey-1.8.5/include/mozjs -I/opt/local/include 
-I/usr/local/include -I/usr/include -O2 -g -O2 -o couchjs couchjs-http.o 
couchjs-main.o couchjs-utf8.o couchjs-util.o  
-L/opt/extra/spidermonkey-1.8.5/lib -L/opt/local/lib -L/usr/local/lib 
-L/opt/extra/lib /opt/extra/lib/libcurl.so -lssl -lcrypto -lsocket -lnsl -ldl 
-lz -lmozjs185-1.0 -lm -Wl,-rpath -Wl,/opt/extra/lib -Wl,-rpath 
-Wl,/opt/extra/lib
/opt/extra/spidermonkey-1.8.5/lib/libmozjs185-1.0.a(jsproxy.o): In function 
`js::JSProxyHandler::~JSProxyHandler()':
jsproxy.cpp:(.text+0x26f3): undefined reference to `operator delete(void*)'
/opt/extra/spidermonkey-1.8.5/lib/libmozjs185-1.0.a(jsproxy.o): In function 
`js::JSScriptedProxyHandler::~JSScriptedProxyHandler()':
jsproxy.cpp:(.text+0x2732): undefined reference to `operator delete(void*)'
/opt/extra/spidermonkey-1.8.5/lib/libmozjs185-1.0.a(jsproxy.o):(.gnu.linkonce.d.rel.ro._ZTVN2js14JSProxyHandlerE+0x10):
 undefined reference to `__cxa_pure_virtual'
/opt/extra/spidermonkey-1.8.5/lib/libmozjs185-1.0.a(jsproxy.o):(.gnu.linkonce.d.rel.ro._ZTVN2js14JSProxyHandlerE+0x14):
 undefined reference to `__cxa_pure_virtual'
/opt/extra/spidermonkey-1.8.5/lib/libmozjs185-1.0.a(jsproxy.o):(.gnu.linkonce.d.rel.ro._ZTVN2js14JSProxyHandlerE+0x18):
 undefined reference to `__cxa_pure_virtual'
/opt/extra/spidermonkey-1.8.5/lib/libmozjs185-1.0.a(jsproxy.o):(.gnu.linkonce.d.rel.ro._ZTVN2js14JSProxyHandlerE+0x1c):
 undefined reference to `__cxa_pure_virtual'
/opt/extra/spidermonkey-1.8.5/lib/libmozjs185-1.0.a(jsproxy.o):(.gnu.linkonce.d.rel.ro._ZTVN2js14JSProxyHandlerE+0x20):
 undefined reference to `__cxa_pure_virtual'
/opt/extra/spidermonkey-1.8.5/lib/libmozjs185-1.0.a(jsproxy.o):(.gnu.linkonce.d.rel.ro._ZTVN2js14JSProxyHandlerE+0x24):
 more undefined references to `__cxa_pure_virtual' follow
/opt/extra/spidermonkey-1.8.5/lib/libmozjs185-1.0.a(jswrapper.o): In function 
`JSWrapper::~JSWrapper()':
jswrapper.cpp:(.text+0x2a92): undefined reference to `operator delete(void*)'
/opt/extra/spidermonkey-1.8.5/lib/libmozjs185-1.0.a(jswrapper.o): In function 
`JSCrossCompartmentWrapper::~JSCrossCompartmentWrapper()':
jswrapper.cpp:(.text+0x2b42): undefined reference to `operator delete(void*)'
/opt/extra/spidermonkey-1.8.5/lib/libmozjs185-1.0.a(jstracer.o): In function 
`nanojit::LogControl::~LogControl()':
jstracer.cpp:(.gnu.linkonce.t._ZN7nanojit10LogControlD0Ev+0x23): undefined 
reference to `operator delete(void*)'
/opt/extra/spidermonkey-1.8.5/lib/libmozjs185-1.0.a(jstracer.o): In function 
`js::DefaultSlotMap::~DefaultSlotMap()':
jstracer.cpp:(.gnu.linkonce.t._ZN2js14DefaultSlotMapD0Ev+0x31): undefined 
reference to `operator delete(void*)'
/opt/extra/spidermonkey-1.8.5/lib/libmozjs185-1.0.a(jstracer.o): In function 
`js::SlotMap::~SlotMap()':
jstracer.cpp:(.gnu.linkonce.t._ZN2js7SlotMapD0Ev+0x31): undefined reference to 
`operator delete(void*)'
/opt/extra/spidermonkey-1.8.5/lib/libmozjs185-1.0.a(Assembler.o):Assembler.cpp:(.gnu.linkonce.t._ZN7nanojit9LirFilterD0Ev+0x23):
 more undefined references to `operator delete(void*)' follow
collect2: ld returned 1 exit status
gmake[4]: *** [couchjs] Error 1
gmake[4]: Leaving directory 
`/software/work/apache-couchdb-1.2.0/src/couchdb/priv'
gmake[3]: *** [all-recursive] Error 1
gmake[3]: Leaving directory `/software/work/apache-couchdb-1.2.0/src/couchdb'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory `/software/work/apache-couchdb-1.2.0/src'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/software/work/apache-couchdb-1.2.0'
gmake: *** [all] Error 2

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


Reply via email to