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 9EF634C40 for ; Wed, 15 Jun 2011 13:54:51 +0000 (UTC) Received: (qmail 11429 invoked by uid 500); 15 Jun 2011 13:54:49 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 11348 invoked by uid 500); 15 Jun 2011 13:54:49 -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 11340 invoked by uid 99); 15 Jun 2011 13:54:49 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Jun 2011 13:54:49 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of jwalgran@azavea.com designates 209.85.214.52 as permitted sender) Received: from [209.85.214.52] (HELO mail-bw0-f52.google.com) (209.85.214.52) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Jun 2011 13:54:42 +0000 Received: by bwj24 with SMTP id 24so725249bwj.11 for ; Wed, 15 Jun 2011 06:54:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=azavea.com; s=google; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=+gzvONS+YJfM7mi1jLy75ZFeCR7tWFrB5cxceZNwXtw=; b=bEiuoSExSvMP763C2cx7abNCBRu2I5SBoQmTyAf0mrodR15jXaytQ4cq+T0ygQGvi5 8aFkcWxoVcD9neqgdwrScRj31dtTRFGJ/TMEpgBr7yhK8NxfaCdc1GDxhP76B68VoiOS EvQ+8+Lrv3HwOBxNjFqSEcxnbzIMCQ4gJaLWo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=azavea.com; s=google; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=JqfGmF8wZv8qTW34g4/ZWXHK2QfzDsR6fSuown5VH7oc0STtTDUwvuhfdoCQijCdd4 aZpS8a930KUiX4qwoUzyBTjPhyqP96RlyfU45oyqGbbVX2Cz+UyWl9+mwMr4Aciso3Y+ JsmFcSganwI6NhC8tIC80QGrjoS1f3ST34Txk= MIME-Version: 1.0 Received: by 10.204.16.198 with SMTP id p6mr562788bka.143.1308146061653; Wed, 15 Jun 2011 06:54:21 -0700 (PDT) Received: by 10.204.119.136 with HTTP; Wed, 15 Jun 2011 06:54:21 -0700 (PDT) In-Reply-To: References: Date: Wed, 15 Jun 2011 09:54:21 -0400 Message-ID: Subject: Re: Build from source failure on Ubuntu 11.04 From: Justin Walgran To: user@couchdb.apache.org Content-Type: multipart/alternative; boundary=000325553f7e51b6d804a5c07d40 X-Virus-Checked: Checked by ClamAV on apache.org --000325553f7e51b6d804a5c07d40 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Thank you for digging into my problem, Randall. Running `aptitude remove libmozjs185-dev` did the trick. The 1.1.0 source i= s now building successfully. Justin On Tue, Jun 14, 2011 at 3:28 PM, Randall Leeds wro= te: > It looks as though you have installed spidermonkey somehow, not from > the xulrunner-*-dev packages: > > "/usr/include/js/jsapi.h:2110:1: note: expected 'JSNative' but > argument is of type 'JSBool (*)(struct JSContext *, struct JSObject *, > uintN, jsval *, jsval *)'" > > Looking at my machine, I just realized that ubuntu is now shipping > 1.8.5 version of spidermonkey as a separate libmozjs185 package, and > this is likely what you have installed. > > To verify that is the case, check the output of `aptitude show > libmozjs185-dev`. > > There is an open ticket to include support for building with this > version of spidermonkey in the bug tracker right now. > However, until that lands you will not be able to build from source > with 1.8.5 present. > Uninstall libmozjs185 (if it doesn't require you to uninstall other > important things) and then follow the instructions for providing > ./configure with the libs and includes from > /var/lib/xulrunner-devel-1.9.2.17 > > (And yes, it's confusing that xulrunner-1.9.2.17 includes a *lower* SM > version than 1.8.5) > > Let me know if that helps! > > -R > > On Tue, Jun 14, 2011 at 05:50, Justin Walgran wrote= : > > I have tried and failed using both the 1.0.1 source and the 1.1.0 sourc= e. > > > > I am using the directions on this wiki page, following the "10.04 and > later" > > path > > http://wiki.apache.org/couchdb/Installing_on_Ubuntu > > > > make fails with the following errors (full make output attached) > > > > *** > > > > gcc -DHAVE_CONFIG_H -I. -I../../.. -D_XOPEN_SOURCE -L/usr/local/lib > > -L/opt/local/lib -I/usr/local/lib/erlang/usr/include > > -I/usr/lib/erlang/usr/include -I/usr/local/lib/erlang/usr/include > > -I/opt/local/lib/erlang/usr/include -I/usr/include -I/usr/include/js > > -I/usr/include/mozjs -I/usr/local/include -I/opt/local/include > > -I/usr/local/include/js -I/opt/local/include/js -DXP_UNIX -D_BSD_SOUR= CE > > -DXP_UNIX -DJS_THREADSAFE -I/usr/include/xulrunner-1.9.2.17 > > -I/usr/include/xulrunner-1.9.2.17/nspr -I/usr/include/nspr -MT > > couchjs-main.o -MD -MP -MF .deps/couchjs-main.Tpo -c -o couchjs-main.o > `test > > -f 'couch_js/main.c' || echo './'`couch_js/main.c > > couch_js/main.c: In function =91evalcx=92: > > couch_js/main.c:62:9: warning: assignment makes pointer from integer > without > > a cast > > couch_js/main.c: In function =91execute_script=92: > > > > couch_js/main.c:215:5: error: =91JSScript=92 undeclared (first use in t= his > > function) > > > > couch_js/main.c:215:5: note: each undeclared identifier is reported onl= y > > once for each function it appears in > > couch_js/main.c:215:15: error: =91script=92 undeclared (first use in th= is > > function) > > couch_js/main.c: At top level: > > > > *** > > > > Any guidance on getting this build to work? Thanks. > > > > Justin > > > --000325553f7e51b6d804a5c07d40--