couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robert Jones <rjo...@salientsystems.com>
Subject Re: Configuration failure during make
Date Tue, 27 Sep 2011 13:50:57 GMT
Nope, that does not work for me.  I get the linker errors below.  I should
note (in case it's not obvious), I'm building using the
Android-Couchbase-SourceBuild tools, but I've excised all Android
references.  I'm working on a very minimal erlang/couchdb build for a
semi-embedded platform.

libtool: link: gcc -D_BSD_SOURCE -I/home/tools/curl-7.22.0/include -g -O2
-I/home/user/minimal-couchdb-sm/Couchbase-SourceBuild/build/deps/otp_rel/usr/include
-I/home/user/minimal-couchdb-sm/Couchbase-SourceBuild/build/deps/mozilla-current/mozilla-central/js/src/dist/include
-DXP_UNIX -o couchjs couchjs-http.o couchjs-main.o couchjs-utf8.o
 -L/home/user/minimal-couchdb-sm/Couchbase-SourceBuild/build/deps/mozilla-current/mozilla-central/js/src
-L/usr/local/lib -L/opt/local/lib -lm -lcurl -lmozjs -lpthread -lcrypt
couchjs-http.o(.text+0xd21): In function `status':
couch_js/http.c:289: undefined reference to `INT_FITS_IN_JSVAL'
couchjs-main.o(.text+0xdd): In function `seal':
couch_js/main.c:209: undefined reference to `JS_SealObject'
couchjs-main.o(.text+0x143): In function `readline':
couch_js/main.c:134: undefined reference to `js_fgets'
couchjs-main.o(.text+0x399): In function `evalcx':
couch_js/main.c:62: undefined reference to `JS_GetStringChars'
couchjs-utf8.o(.text+0x455): In function `enc_string':
couch_js/utf8.c:132: undefined reference to `JS_GetStringChars'


On Tue, Sep 27, 2011 at 1:58 AM, CGS <cgsmcmlxxv@gmail.com> wrote:

> I installed 1.1.0 without any patch and it works. So, try without.
>
>
>
>
> On 09/26/2011 10:22 PM, Robert Jones wrote:
>
>> When attempting to build couchdb I get the following error:
>>
>> checking for pthread_create in -lpthread... yes
>> ./configure: line 12347: syntax error near unexpected token `mozjs185,'
>> ./configure: line 12347: `PKG_CHECK_EXISTS(mozjs185,
>> JS_LIB_BASE=mozjs185,)'
>>
>> This instance of configure is kicked off as part of the make process.  The
>> original configure completes just fine, that is, it does not barf on the
>> pkg-config autoconf macros.  I am not an AutoTools guru so I'm struggling
>> with the issue here.  Any advice would be appreciated.
>>
>> I'm working with couchdb-1.1.0.  I've applied patches from the following
>> Jira Issue:
>>
>> https://issues.apache.org/**jira/browse/COUCHDB-1078?page=**
>> com.atlassian.jira.plugin.**system.issuetabpanels%3Aall-**
>> tabpanel#issue-tabs<https://issues.apache.org/jira/browse/COUCHDB-1078?page=com.atlassian.jira.plugin.system.issuetabpanels%3Aall-tabpanel#issue-tabs>
>>
>> Specifically, I applied the mozjs1.8.5.patch, followed by the
>> couchjs_ff185.patch.
>>
>> Here is the output after a successful configure and kicking off the make:
>>
>> config.status: executing libtool commands
>>
>> You have configured Apache CouchDB, time to relax.
>>
>> Run `make&&  sudo make install' to install.
>> + export
>> ERL_LIBS=/home/user/minimal-**couchdb-sm/Couchbase-**
>> SourceBuild/../erlang/lib
>> + ERL_LIBS=/home/user/minimal-**couchdb-sm/Couchbase-**
>> SourceBuild/../erlang/lib
>> + make -s
>>  cd .&&  /bin/sh /home/user/minimal-couchdb-sm/**
>> couchdb/build-aux/missing
>> --run automake-1.11 --foreign
>> running CONFIG_SHELL=/bin/sh /bin/sh ./configure
>> --prefix=/home/user/minimal-**couchdb-sm/Couchbase-**
>> SourceBuild/build/couchdb
>> --with-erlang=/home/user/**minimal-couchdb-sm/Couchbase-**
>> SourceBuild/build/deps/otp_**rel/usr/include
>> --with-js-include=/home/user/**minimal-couchdb-sm/Couchbase-**
>> SourceBuild/build/deps/**mozilla-current/mozilla-**
>> central/js/src/dist/include
>> --with-js-lib=/home/user/**minimal-couchdb-sm/Couchbase-**
>> SourceBuild/build/deps/**mozilla-current/mozilla-**central/js/src
>> ERL=/home/user/minimal-**couchdb-sm/Couchbase-**SourceBuild/../erlang/**
>> bootstrap/bin/erl
>> ERLC=/home/user/minimal-**couchdb-sm/Couchbase-**SourceBuild/../erlang/**
>> bootstrap/bin/erlc
>> --no-create --no-recursion
>>
>> <snip>
>>
>> checking for minix/config.h... no
>> checking whether it is safe to define __EXTENSIONS__... yes
>> ./configure: line 4671: PKG_PROG_PKG_CONFIG: command not found
>> checking for gcc... (cached) gcc
>>
>> <snip>
>>
>> checking for pthread_create in -lpthread... yes
>> ./configure: line 12347: syntax error near unexpected token `mozjs185,'
>> ./configure: line 12347: `PKG_CHECK_EXISTS(mozjs185,
>> JS_LIB_BASE=mozjs185,)'
>> make: *** [config.status] Error 2
>>
>>
>


-- 
Robert Jones
Technical Lead, Software Development

L.B. Foster Company - Salient Systems
4393-K Tuller Rd
Dublin, OH  43017-5008
phone: (614) 792-5800  EX 4636
fax: (614) 792-5888
email: rjones@salientsystems.com <your%20name@salientsystems.com>

website:  www.lbfoster.com
NASDAQ Ticker Symbol: FSTR

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message