You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@couchdb.apache.org by "Victor Igumnov (Created) (JIRA)" <ji...@apache.org> on 2012/04/07 18:56:16 UTC
[jira] [Created] (COUCHDB-1456) Various build issues with couched
1.2.0
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
[jira] [Commented] (COUCHDB-1456) Various build issues with couched
1.2.0
Posted by "Paul Joseph Davis (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/COUCHDB-1456?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13249313#comment-13249313 ]
Paul Joseph Davis commented on COUCHDB-1456:
--------------------------------------------
Ah, fair point. For now you can just use --with-js-include and --with-js-lib which will override those paths.
If I recall correctly this error has to do with linking with gcc when the library wasn't linked to libstdc++ or w/e its called. A quick try would be to set CC=g++ before running ./configure.
> 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
[jira] [Commented] (COUCHDB-1456) Various build issues with couched
1.2.0
Posted by "Victor Igumnov (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/COUCHDB-1456?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13250418#comment-13250418 ]
Victor Igumnov commented on COUCHDB-1456:
-----------------------------------------
Looks like it works if I use g++ to link it. However, CC=g++ isn't a viable solution, various things fail to compile with g++.
-Victor
> 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