Return-Path: Delivered-To: apmail-incubator-couchdb-user-archive@locus.apache.org Received: (qmail 53824 invoked from network); 27 Nov 2008 00:08:59 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 27 Nov 2008 00:08:59 -0000 Received: (qmail 80120 invoked by uid 500); 27 Nov 2008 00:09:08 -0000 Delivered-To: apmail-incubator-couchdb-user-archive@incubator.apache.org Received: (qmail 80080 invoked by uid 500); 27 Nov 2008 00:09:07 -0000 Mailing-List: contact couchdb-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: couchdb-user@incubator.apache.org Delivered-To: mailing list couchdb-user@incubator.apache.org Received: (qmail 80069 invoked by uid 99); 27 Nov 2008 00:09:07 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Nov 2008 16:09:07 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [208.68.111.125] (HELO mx02.metaweb.com) (208.68.111.125) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 27 Nov 2008 00:07:39 +0000 Received: from zimbra01.corp.sjc1.metaweb.com (localhost [127.0.0.1]) by mx02.metaweb.com (Spam Firewall) with ESMTP id B95F8C627D for ; Wed, 26 Nov 2008 16:13:56 -0800 (PST) Received: from zimbra01.corp.sjc1.metaweb.com (zimbra01.corp.sjc1.metaweb.com [172.29.253.13]) by mx02.metaweb.com with ESMTP id Whhbp0joDH9fa4gk for ; Wed, 26 Nov 2008 16:13:56 -0800 (PST) Received: from localhost (localhost.localdomain [127.0.0.1]) by zimbra01.corp.sjc1.metaweb.com (Postfix) with ESMTP id 96259160C04F for ; Wed, 26 Nov 2008 16:08:18 -0800 (PST) X-Virus-Scanned: amavisd-new at X-Spam-Score: -4.399 X-Spam-Level: Received: from zimbra01.corp.sjc1.metaweb.com ([127.0.0.1]) by localhost (zimbra01.corp.sjc1.metaweb.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7e7eCBLHHypN for ; Wed, 26 Nov 2008 16:08:16 -0800 (PST) Received: from [172.31.20.203] (dhcp-wired-203.corp.631h.metaweb.com [172.31.20.203]) by zimbra01.corp.sjc1.metaweb.com (Postfix) with ESMTP id 938C8160C045 for ; Wed, 26 Nov 2008 16:08:16 -0800 (PST) Message-ID: <492DE4F0.4060609@metaweb.com> Date: Wed, 26 Nov 2008 16:08:16 -0800 From: Shailesh Kochhar User-Agent: Thunderbird 2.0.0.17 (X11/20080925) MIME-Version: 1.0 To: couchdb-user@incubator.apache.org Subject: Re: Installing couchdb from source on Gentoo64 References: <492DA114.3050003@metaweb.com> <20081126201148.GJ16293@tumbolia.org> <492DAFB0.3050401@metaweb.com> <20081126203225.GL16293@tumbolia.org> <492DC670.3010509@metaweb.com> <20081126221403.GA6930@tumbolia.org> <492DD449.1020005@metaweb.com> In-Reply-To: <492DD449.1020005@metaweb.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Old-Spam-Flag: NO X-Old-Spam-Status: No, score=-4.399 tagged_above=-10 required=6.6 tests=[ALL_TRUSTED=-1.8, BAYES_00=-2.599] > 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. >>> >>> >>> 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.