Return-Path: X-Original-To: apmail-couchdb-user-archive@www.apache.org Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D735B976C for ; Fri, 25 May 2012 08:59:36 +0000 (UTC) Received: (qmail 56196 invoked by uid 500); 25 May 2012 08:59:35 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 56039 invoked by uid 500); 25 May 2012 08:59:35 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 56027 invoked by uid 99); 25 May 2012 08:59:35 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 May 2012 08:59:35 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of mkimber@kana.com designates 64.95.72.244 as permitted sender) Received: from [64.95.72.244] (HELO mxout.myoutlookonline.com) (64.95.72.244) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 May 2012 08:59:28 +0000 Received: from mxout.myoutlookonline.com (localhost [127.0.0.1]) by mxout.myoutlookonline.com (Postfix) with ESMTP id 96E94416BE0 for ; Fri, 25 May 2012 04:59:07 -0400 (EDT) X-Virus-Scanned: by SpamTitan at mail.lan Received: from HUB024.mail.lan (unknown [10.110.2.1]) by mxout.myoutlookonline.com (Postfix) with ESMTP id 23101416C0C for ; Fri, 25 May 2012 04:59:07 -0400 (EDT) Received: from BE259.mail.lan ([10.110.32.159]) by HUB024.mail.lan ([10.110.17.24]) with mapi; Fri, 25 May 2012 04:59:07 -0400 From: Mike Kimber To: "user@couchdb.apache.org" Date: Fri, 25 May 2012 04:59:04 -0400 Subject: RE: Trouble building from source on CentOS 5.6 Thread-Topic: Trouble building from source on CentOS 5.6 Thread-Index: Ac05/LORoNUBa0wWQJ64HdKBkxjqpAAT1oLQAAIHXSA= Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org Ah apologies read this to quickly your trying to build spikermonkey. I trie= d this to and had a similar set of issues so ended up just going with yum j= s-devel which I believe installs spidermonkey from the repo. When you do fi= nd an answer it would be good to know the solution.=20 Also looks like this mailing list strips attachments, so if you'd still lik= e it then let me know and I'll find somewhere to put it that's publicly acc= essible. Mike=20 -----Original Message----- From: Mike Kimber [mailto:mkimber@kana.com]=20 Sent: 25 May 2012 09:01 To: user@couchdb.apache.org Subject: RE: Trouble building from source on CentOS 5.6 Attached is the process I follow to install Couchdb 1.2 on Centos 5.7. Spidermonkey does seem to be a bit of an issue depending on what version of= it gets installed. Hope it helps Mike=20 -----Original Message----- From: Michael Parker [mailto:michael.g.parker@gmail.com]=20 Sent: 24 May 2012 23:29 To: user@couchdb.apache.org Subject: Trouble building from source on CentOS 5.6 Hi all, I'm having trouble installing CouchDB 1.2 from source as described at http://wiki.apache.org/couchdb/Installing_SpiderMonkey. All the header files can be found in /usr/local/include/js/, and /usr/local/lib looks correct: $ ls /usr/local/lib/libmozjs185* /usr/local/lib/libmozjs185-1.0.a /usr/local/lib/libmozjs185.so /usr/local/lib/libmozjs185.so.1.0 /usr/local/lib/libmozjs185.so.1.0.0 I then run configure for CouchDB with: ./configure --with-js-lib=3D/usr/local/lib/ --with-js-include=3D/usr/local/include/js/ During the configure, it seems to be finding some Javascript headers: checking jsapi.h usability... yes checking jsapi.h presence... yes checking for jsapi.h... yes checking for JS_NewObject in -lmozjs... no checking for JS_NewObject in -ljs... yes checking for JS_NewCompartmentAndGlobalObject in -ljs... no checking for JS_ThrowStopIteration in -ljs... no checking for JS_GetStringCharsAndLength in -ljs... no checking for JSScript*... no But when I run make it quickly fails with: In file included from couch_js/main.c:20: couch_js/sm170.c: In function 'req_status': couch_js/sm170.c:105: error: implicit declaration of function 'INT_FITS_IN_JSVAL' couch_js/sm170.c: In function 'evalcx': couch_js/sm170.c:138: error: implicit declaration of function 'JS_GetStringChars' couch_js/sm170.c:138: error: assignment makes pointer from integer without a cast couch_js/sm170.c: In function 'seal': couch_js/sm170.c:220: error: implicit declaration of function 'JS_SealObjec= t' couch_js/sm170.c: At top level: couch_js/sm170.c:236: error: initialization from incompatible pointer type Note that, on another CentOS 5.6 box where for some mysterious reason I was able to install CouchDB, running configure in the exact same way seems to be finding the SpiderMonkey 1.8.5 headers: checking jsapi.h presence... yes checking for jsapi.h... yes checking for JS_NewObject in -lmozjs... no checking for JS_NewObject in -ljs... no checking for JS_NewObject in -ljs3250... no checking for JS_NewObject in -ljs32... no checking for JS_NewObject in -lmozjs185-1.0... no checking for JS_NewObject in -lmozjs185... yes checking for JS_NewCompartmentAndGlobalObject in -lmozjs185... yes checking whether JSOPTION_ANONFUNFIX is declared... yes checking for JS_ThrowStopIteration in -lmozjs185... yes checking for JS_GetStringCharsAndLength in -lmozjs185... yes checking for JSScript*... no Note that "checking for JS_NewObject in -lmozjs185" succeeds, and not "checking for JS_NewObject in -ljs" like on my problematic box. Running make afterward on this box succeeds. So configure isn't finding the Spidermonkey 1.8.5 headers, and seem to be picking up some other, wrong JS headers. Anyone know how I can fix it? Thanks, Mike