Hello,

I have a problem installing couchdb 1.0.2 On Crunchbang linux (based on
Debian Squeeze, pretty much the same).

Few weeks ago installing same couchdb version in a virtual machine with the
same system went very fine, following instructions from the couchdb
guide<http://guide.couchdb.org/editions/1/en/source.html>
.

Today, just few updates away, the 'make' step fails, this happens in two
machines with the same distro on it. Here is part of the output of the
command, the full log is attached.

> couchjs-http.o: In function `status':
> /home/c-user/downloads/apache-couchdb-1.0.2/src/couchdb/priv/couch_js/http.c:289:
> undefined reference to `INT_FITS_IN_JSVAL'
> couchjs-main.o: In function `seal':
> /home/c-user/downloads/apache-couchdb-1.0.2/src/couchdb/priv/couch_js/main.c:209:
> undefined reference to `JS_SealObject'
> couchjs-main.o: In function `readfp':
> /home/c-user/downloads/apache-couchdb-1.0.2/src/couchdb/priv/couch_js/main.c:134:
> undefined reference to `js_fgets'
> couchjs-main.o: In function `evalcx':
> /home/c-user/downloads/apache-couchdb-1.0.2/src/couchdb/priv/couch_js/main.c:62:
> undefined reference to `JS_GetStringChars'
> couchjs-utf8.o: In function `enc_string':
> /home/c-user/downloads/apache-couchdb-1.0.2/src/couchdb/priv/couch_js/utf8.c:132:
> undefined reference to `JS_GetStringChars'
> collect2: ld returned 1 exit status
> make[4]: *** [couchjs] Error 1
> make[4]: Leaving directory
> `/home/c-user/downloads/apache-couchdb-1.0.2/src/couchdb/priv'
> make[3]: *** [all-recursive] Error 1
> make[3]: Leaving directory
> `/home/c-user/downloads/apache-couchdb-1.0.2/src/couchdb'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory
> `/home/c-user/downloads/apache-couchdb-1.0.2/src'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/c-user/downloads/apache-couchdb-1.0.2'
> make: *** [all] Error 2
>

The closest situation that I have found online is the following, but I am
not sure that the proposed solution (related to js-1.7.0 from mozilla) would
work in my case.
http://web.archiveorange.com/archive/v/oW6Dz2nhI12VkIEAOUzB

Has anyone got an idea about a possible solution?

Thanks in advance for your help,

mehdi

P.S.: this is my first post here, but I am following the mailing lists since
some weeks already. thanks all for the precious information that you give
here. and congrats to the devs, couchdb looks great.
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for a sed that does not truncate output... /bin/sed
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking whether ln -s works... yes
checking for pthread_create in -lpthread... yes
checking for JS_NewContext in -lmozjs... yes
checking jsapi.h usability... yes
checking jsapi.h presence... yes
checking for jsapi.h... yes
checking for icu-config... /usr/bin/icu-config
checking for ICU >= 3.4.1... yes
checking ICU_CFLAGS... -g -Wall -O2 -Wall -ansi -pedantic -Wshadow 
-Wpointer-arith -Wmissing-prototypes -Wwrite-strings -Wno-long-long   
checking ICU_CXXFLAGS... -g -Wall -O2 -W -Wall -ansi -pedantic -Wpointer-arith 
-Wwrite-strings -Wno-long-long   
checking ICU_LIBS...  -ldl -lm   -L/usr/lib -licui18n -licuuc -licudata  -ldl 
-lm   
checking for curl-config... /usr/bin/curl-config
checking for curl >= 7.18.0... yes
checking CURL_CFLAGS... 
checking CURL_LIBS... -lcurl
checking for erl... /usr/bin/erl
checking for erlc... /usr/bin/erlc
checking erl_driver.h usability... yes
checking erl_driver.h presence... yes
checking for erl_driver.h... yes
checking for help2man... /usr/bin/help2man
checking location of init directory... ${sysconfdir}/init.d
checking location of launchd directory... not found
configure: creating ./config.status
config.status: creating Makefile
config.status: creating bin/couchjs.tpl
config.status: creating bin/couchdb.tpl
config.status: creating bin/couchdb.bat.tpl
config.status: creating bin/Makefile
config.status: creating etc/couchdb/Makefile
config.status: creating etc/couchdb/default.ini.tpl
config.status: creating etc/default/Makefile
config.status: creating etc/init/couchdb.tpl
config.status: creating etc/init/Makefile
config.status: creating etc/launchd/org.apache.couchdb.plist.tpl
config.status: creating etc/launchd/Makefile
config.status: creating etc/logrotate.d/couchdb.tpl
config.status: creating etc/logrotate.d/Makefile
config.status: creating etc/windows/Makefile
config.status: creating etc/Makefile
config.status: creating share/Makefile
config.status: creating src/Makefile
config.status: creating src/couchdb/couch.app.tpl
config.status: creating src/couchdb/Makefile
config.status: creating src/couchdb/priv/Makefile
config.status: creating src/erlang-oauth/Makefile
config.status: creating src/etap/Makefile
config.status: creating src/ibrowse/Makefile
config.status: creating src/mochiweb/Makefile
config.status: creating test/Makefile
config.status: creating test/bench/Makefile
config.status: creating test/etap/Makefile
config.status: creating test/etap/test_util.erl
config.status: creating test/javascript/Makefile
config.status: creating test/view_server/Makefile
config.status: creating utils/Makefile
config.status: creating var/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands

You have configured Apache CouchDB, time to relax.

Run `make && sudo make install' to install.

t/local/include/js -DXP_UNIX  -lm  -o couchjs couchjs-http.o couchjs-main.o 
couchjs-utf8.o -lcurl -lmozjs -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/include -I/usr/include/js 
-I/usr/include/mozjs -I/usr/local/include -I/opt/local/include 
-I/usr/local/include/js -I/opt/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/c-user/downloads/apache-couchdb-1.0.2/src/couchdb/priv/couch_js/http.c:289:
 undefined reference to `INT_FITS_IN_JSVAL'
couchjs-main.o: In function `seal':
/home/c-user/downloads/apache-couchdb-1.0.2/src/couchdb/priv/couch_js/main.c:209:
 undefined reference to `JS_SealObject'
couchjs-main.o: In function `readfp':
/home/c-user/downloads/apache-couchdb-1.0.2/src/couchdb/priv/couch_js/main.c:134:
 undefined reference to `js_fgets'
couchjs-main.o: In function `evalcx':
/home/c-user/downloads/apache-couchdb-1.0.2/src/couchdb/priv/couch_js/main.c:62:
 undefined reference to `JS_GetStringChars'
couchjs-utf8.o: In function `enc_string':
/home/c-user/downloads/apache-couchdb-1.0.2/src/couchdb/priv/couch_js/utf8.c:132:
 undefined reference to `JS_GetStringChars'
collect2: ld returned 1 exit status
make[4]: *** [couchjs] Error 1
make[4]: Leaving directory 
`/home/c-user/downloads/apache-couchdb-1.0.2/src/couchdb/priv'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory 
`/home/c-user/downloads/apache-couchdb-1.0.2/src/couchdb'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/c-user/downloads/apache-couchdb-1.0.2/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/c-user/downloads/apache-couchdb-1.0.2'
make: *** [all] Error 2

Reply via email to