couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shailesh Kochhar <koch...@metaweb.com>
Subject Re: Installing couchdb from source on Gentoo64
Date Thu, 27 Nov 2008 00:08:16 GMT
> Noah Slater wrote:
>> On Wed, Nov 26, 2008 at 01:58:08PM -0800, Shailesh Kochhar wrote:
>>> Noah Slater wrote:
>>>> On Wed, Nov 26, 2008 at 12:21:04PM -0800, Shailesh Kochhar wrote:
>>>>> The shared objects are in /usr/lib64/libjs.so and /usr/lib64/libjs.a
>>>>> The jsapi.h is in /usr/include/js
>>>> Hmm, could you try adding the following patch to configure.ac:
>>>>
>>>>    AC_CHECK_LIB([js], [JS_NewContext], [], [
>>>>        AC_CHECK_LIB([mozjs], [JS_NewContext], [], [
>>>>   +        AC_CHECK_LIB([jsapi], [JS_NewContext], [], [
>>>>                AC_MSG_ERROR([Could not find the js library.
>>>>
>>>>   -Is the Mozilla SpiderMonkey library installed?])])])
>>>>   +Is the Mozilla SpiderMonkey library installed?])])])])
>>>>
>>> Unsuccessful. The output from ./configure is still the same. From the
>>> output, it doesn't seem to be trying the third location, it gives up
>>> after the first two.
>>>
>>> <snip>
>>> checking for pthread_create in -lpthread... yes
>>> checking for JS_NewContext in -ljs... no
>>> checking for JS_NewContext in -lmozjs... no
>>> configure: error: Could not find the js library.
>>>
>>> Is the Mozilla SpiderMonkey library installed?
>>>
>> You need to rerun ./bootstrap after your edit.

I switched to the SVN trunk, applied the changes you recommended. Ran 
./bootstrap again and then tried ./configure without success. Here's the 
new output

checking for pthread_create in -lpthread... yes
checking for JS_NewContext in -ljs... no
checking for JS_NewContext in -lmozjs... no
checking for JS_NewContext in -ljsapi... no
configure: error: Could not find the js library.

Is the Mozilla SpiderMonkey library installed?


I think the problem is still surfacing here:
checking for JS_NewContext in -ljs
configure:19594: gcc -o conftest -g -O2 -L/usr/local/lib 
-L/opt/local/lib -L/usr/lib64/ 
-I/u/kochhar/lib/erlang/erts-5.6.5/include/ -I/usr/include/js/ -DXP_UNIX 
   -L/usr/local/lib -L/opt/local/lib -L/usr/lib64/ -I/u/kochhar/l
ib/erlang/erts-5.6.5/include/ -I/usr/include/js/ -DXP_UNIX  -lm 
conftest.c -ljs  -L/usr/local/lib -L/opt/local/lib -L/usr/lib64/ 
-lpthread  >&5
/usr/lib64//libjs.so: file not recognized: File format not recognized
collect2: ld returned 1 exit status

It seems that /usr/lib64/libjs.so cannot be recognized as a valid 
shared-object by the linker.


Mime
View raw message