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 46E1D70F1 for ; Mon, 24 Oct 2011 14:47:38 +0000 (UTC) Received: (qmail 99523 invoked by uid 500); 24 Oct 2011 14:47:36 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 99460 invoked by uid 500); 24 Oct 2011 14:47:36 -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 99452 invoked by uid 99); 24 Oct 2011 14:47:36 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Oct 2011 14:47:36 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of adam.kocoloski@gmail.com designates 209.85.213.180 as permitted sender) Received: from [209.85.213.180] (HELO mail-yx0-f180.google.com) (209.85.213.180) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Oct 2011 14:47:31 +0000 Received: by yxn35 with SMTP id 35so2072374yxn.11 for ; Mon, 24 Oct 2011 07:47:10 -0700 (PDT) Received: by 10.151.59.12 with SMTP id m12mr21320647ybk.49.1319467630236; Mon, 24 Oct 2011 07:47:10 -0700 (PDT) Received: from [192.168.0.164] (c-24-60-185-198.hsd1.ma.comcast.net. [24.60.185.198]) by mx.google.com with ESMTPS id x3sm60806118anl.6.2011.10.24.07.47.07 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 24 Oct 2011 07:47:08 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Apple Message framework v1084) Subject: Re: undefined reference to JS_SealObject From: Adam Kocoloski In-Reply-To: <4EA57854.8080805@gmail.com> Date: Mon, 24 Oct 2011 10:47:05 -0400 Content-Transfer-Encoding: quoted-printable Message-Id: <1B88D95B-94A9-469F-8B32-6A958C39E315@apache.org> References: <4EA57854.8080805@gmail.com> To: user@couchdb.apache.org X-Mailer: Apple Mail (2.1084) Ugh, that's really not good. What version of CouchDB were you using? Adam On Oct 24, 2011, at 10:38 AM, CGS wrote: > I remember I installed CouchDB using Spidermonkey from 'git clone = git://github.com/membase/spidermonkey.git' and it worked. I used that = because the official version 1.8.5 raised similar error in CouchDB = compilation. Maybe it will help you as well. >=20 > Cheers, > CGS >=20 >=20 >=20 >=20 > On 10/24/2011 04:00 PM, Adam Kocoloski wrote: >> Hi Jim, thanks for the reminder to update the instructions, 1.8.5 is = definitely preferred now. >>=20 >> Paul wrote most of the current logic to compile couchjs against = various versions of Spidermonkey in both CouchDB and BigCouch. I don't = know if he tried the Ubuntu 11.10 package specifically. I suspect when = he's up later today he'll have some insight on the matter. Regards, >>=20 >> Adam >>=20 >> On Oct 24, 2011, at 9:51 AM, Jim R. Wilson wrote: >>=20 >>> My apologies if this is the wrong list for this kind of question. I >>> couldn't find a BigCouch specific mailing list. >>>=20 >>> I'm trying to build bigcouch for the first time (on Ubuntu 11.10 = Oneiric). >>> The instructions[1] say to use spidermonkey 1.9.2 and include steps = on how >>> to get this from ppa. >>>=20 >>> When I try to make, the build fails and I get this (followed by a = bunch of >>> similar errors): >>>=20 >>> c++ -o build/couchjs -L/usr/lib/xulrunner-devel-2.0/lib >>> build/main.o build/http.o build/utf8.o build/util.o -lm -lpthread = -lcurl >>> -lnspr4 -lmozjs >>> build/main.o: In function `seal': >>> /tmp/bigcouch/couchjs/build/sm180.c:229: undefined reference to >>> `JS_SealObject' >>>=20 >>> I found an email chain[2] suggesting that the problem is that this = version >>> of spidermonkey is too new for couchdb. >>>=20 >>> However, when I back out spidermonkey 1.9.2 and use the 1.8.5 = version >>> available through the normal apt channels, I get this: >>>=20 >>>=20 >>> = /usr/lib/gcc/x86_64-linux-gnu/4.6.1/../../../../lib/libmozjs185-1.0.a >>> (RegexCompiler.o): >>> In function `JSC::Yarr::compileRegex(JSLinearString >>> const&, JSC::Yarr::RegexPattern&)': (.text+0x26ca): undefined >>> reference to `PR_AtomicDecrement' >>>=20 >>> Any help is appreciated, thanks in advance. >>>=20 >>> [1] https://github.com/cloudant/bigcouch >>> [2] http://permalink.gmane.org/gmane.comp.db.couchdb.user/15583 >>>=20 >>> -- Jim R. Wilson (jimbojw) >=20