incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Davis <paul.joseph.da...@gmail.com>
Subject Re: Error installing CouchDB in Ubuntu
Date Tue, 21 Sep 2010 15:55:55 GMT
Alexandre,

Looks like your version of spidermonkey is incompatible which is odd
as we should be compatible with everything since 1.7. Can you check
what version of the spidermonkey lib you've got?

Paul Davis

2010/9/20 Alexandre Corrêa Barbosa <alexandre.correa@gmail.com>:
> Hi,
>
> I'm trying to install Couchdb on Ubuntu. I've managed to install all
> dependencies, and successfully run ./configure. But when I run 'make', I've
> got the following error:
>
> /bin/bash ../../../libtool --tag=CC   --mode=link gcc -I/usr/local/include
>  -L/usr/local/lib  -g -O2 -module -avoid-version -I/usr/local/include
>  -L/usr/local/lib   -L/usr/local/lib -L/usr/local/lib -L/opt/local/lib
> -I/usr/local/lib/erlang/usr/include -I/usr/lib/erlang/usr/include
> -I/usr/local/lib/erlang/usr/include -I/opt/local/lib/erlang/usr/include
> -I/usr/local/include/js -DXP_UNIX  -lm  -o couch_icu_driver.la -rpath
> /usr/local/lib/couchdb/erlang/lib/couch-1.0.1/priv/lib
> couch_icu_driver_la-couch_icu_driver.lo -licuuc -licudata -licui18n
> -L/usr/local/lib -L/usr/local/lib -L/opt/local/lib -lpthread  -lcrypt
> libtool: link: gcc -shared  .libs/couch_icu_driver_la-couch_icu_driver.o
> -L/usr/local/lib -L/opt/local/lib -lm -licuuc -licudata -licui18n -lpthread
> -lcrypt    -Wl,-soname -Wl,couch_icu_driver.so -o .libs/couch_icu_driver.so
> libtool: link: ( cd ".libs" && rm -f "couch_icu_driver.la" && ln -s "../
> couch_icu_driver.la" "couch_icu_driver.la" )
> cp spawnkillable/couchspawnkillable.sh couchspawnkillable
> chmod +x couchspawnkillable
> gcc -DHAVE_CONFIG_H -I. -I../../..   -D_XOPEN_SOURCE -L/usr/local/lib
> -L/usr/local/lib -L/opt/local/lib -I/usr/local/lib/erlang/usr/include
> -I/usr/lib/erlang/usr/include -I/usr/local/lib/erlang/usr/include
> -I/opt/local/lib/erlang/usr/include -I/usr/local/include/js -DXP_UNIX
> -D_BSD_SOURCE  -g -O2 -MT couchjs-http.o -MD -MP -MF .deps/couchjs-http.Tpo
> -c -o couchjs-http.o `test -f 'couch_js/http.c' || echo './'`couch_js/http.c
> couch_js/http.c:318: warning: initialization from incompatible pointer type
> couch_js/http.c:323: warning: initialization from incompatible pointer type
> couch_js/http.c:323: warning: excess elements in struct initializer
> couch_js/http.c:323: warning: (near initialization for
> ‘CouchHTTPFunctions[0]’)
> couch_js/http.c:324: warning: initialization from incompatible pointer type
> couch_js/http.c:324: warning: excess elements in struct initializer
> couch_js/http.c:324: warning: (near initialization for
> ‘CouchHTTPFunctions[1]’)
> couch_js/http.c:325: warning: initialization from incompatible pointer type
> couch_js/http.c:325: warning: excess elements in struct initializer
> couch_js/http.c:325: warning: (near initialization for
> ‘CouchHTTPFunctions[2]’)
> couch_js/http.c:326: warning: excess elements in struct initializer
> couch_js/http.c:326: warning: (near initialization for
> ‘CouchHTTPFunctions[3]’)
> couch_js/http.c: In function ‘install_http’:
> couch_js/http.c:346: warning: passing argument 5 of ‘JS_InitClass’ from
> incompatible pointer type
> /usr/local/include/js/jsapi.h:1858: note: expected ‘JSNative’ but argument
> is of type ‘JSBool (*)(struct JSContext *, struct JSObject *, uintN,  jsval
> *, jsval *)’
> mv -f .deps/couchjs-http.Tpo .deps/couchjs-http.Po
> gcc -DHAVE_CONFIG_H -I. -I../../..   -D_XOPEN_SOURCE -L/usr/local/lib
> -L/usr/local/lib -L/opt/local/lib -I/usr/local/lib/erlang/usr/include
> -I/usr/lib/erlang/usr/include -I/usr/local/lib/erlang/usr/include
> -I/opt/local/lib/erlang/usr/include -I/usr/local/include/js -DXP_UNIX
> -D_BSD_SOURCE  -g -O2 -MT couchjs-main.o -MD -MP -MF .deps/couchjs-main.Tpo
> -c -o couchjs-main.o `test -f 'couch_js/main.c' || echo './'`couch_js/main.c
> couch_js/main.c:251: warning: initialization from incompatible pointer type
> couch_js/main.c:251: warning: excess elements in struct initializer
> couch_js/main.c:251: warning: (near initialization for
> ‘global_functions[0]’)
> couch_js/main.c:252: warning: initialization from incompatible pointer type
> couch_js/main.c:252: warning: excess elements in struct initializer
> couch_js/main.c:252: warning: (near initialization for
> ‘global_functions[1]’)
> couch_js/main.c:253: warning: initialization from incompatible pointer type
> couch_js/main.c:253: warning: excess elements in struct initializer
> couch_js/main.c:253: warning: (near initialization for
> ‘global_functions[2]’)
> couch_js/main.c:254: warning: initialization from incompatible pointer type
> couch_js/main.c:254: warning: excess elements in struct initializer
> couch_js/main.c:254: warning: (near initialization for
> ‘global_functions[3]’)
> couch_js/main.c:255: warning: initialization from incompatible pointer type
> couch_js/main.c:255: warning: excess elements in struct initializer
> couch_js/main.c:255: warning: (near initialization for
> ‘global_functions[4]’)
> couch_js/main.c:256: warning: initialization from incompatible pointer type
> couch_js/main.c:256: warning: excess elements in struct initializer
> couch_js/main.c:256: warning: (near initialization for
> ‘global_functions[5]’)
> couch_js/main.c:257: warning: excess elements in struct initializer
> couch_js/main.c:257: warning: (near initialization for
> ‘global_functions[6]’)
> mv -f .deps/couchjs-main.Tpo .deps/couchjs-main.Po
> gcc -DHAVE_CONFIG_H -I. -I../../..   -D_XOPEN_SOURCE -L/usr/local/lib
> -L/usr/local/lib -L/opt/local/lib -I/usr/local/lib/erlang/usr/include
> -I/usr/lib/erlang/usr/include -I/usr/local/lib/erlang/usr/include
> -I/opt/local/lib/erlang/usr/include -I/usr/local/include/js -DXP_UNIX
> -D_BSD_SOURCE  -g -O2 -MT couchjs-utf8.o -MD -MP -MF .deps/couchjs-utf8.Tpo
> -c -o couchjs-utf8.o `test -f 'couch_js/utf8.c' || echo './'`couch_js/utf8.c
> mv -f .deps/couchjs-utf8.Tpo .deps/couchjs-utf8.Po
> /bin/bash ../../../libtool --tag=CC   --mode=link gcc -D_BSD_SOURCE  -g -O2
> -lcurl -L/usr/local/lib -L/usr/local/lib -L/opt/local/lib
> -I/usr/local/lib/erlang/usr/include -I/usr/lib/erlang/usr/include
> -I/usr/local/lib/erlang/usr/include -I/opt/local/lib/erlang/usr/include
> -I/usr/local/include/js -DXP_UNIX  -lm  -o couchjs couchjs-http.o
> couchjs-main.o couchjs-utf8.o -lcurl -lmozjs -L/usr/local/lib
> -L/usr/local/lib -L/opt/local/lib -lpthread  -lcrypt
> libtool: link: gcc -D_BSD_SOURCE -g -O2 -I/usr/local/lib/erlang/usr/include
> -I/usr/lib/erlang/usr/include -I/usr/local/lib/erlang/usr/include
> -I/opt/local/lib/erlang/usr/include -I/usr/local/include/js -DXP_UNIX -o
> couchjs couchjs-http.o couchjs-main.o couchjs-utf8.o  -L/usr/local/lib
> -L/opt/local/lib -lm /usr/lib/libcurl.so -lmozjs -lpthread -lcrypt
> couchjs-http.o: In function `status':
> /home/alexandre/Downloads/apache-couchdb-1.0.1/src/couchdb/priv/couch_js/http.c:289:
> undefined reference to `INT_FITS_IN_JSVAL'
> couchjs-main.o: In function `readfp':
> /home/alexandre/Downloads/apache-couchdb-1.0.1/src/couchdb/priv/couch_js/main.c:134:
> undefined reference to `js_fgets'
> collect2: ld returned 1 exit status
>
>
> Does anyone knows what I'm doing wrong? How can I overcome this?
>
> Thanks,
> --
> Alexandre Corrêa Barbosa
> http://log4dev.com - Blog para computeiros
> http://job4dev.com - Procurando emprego?
>

Mime
View raw message