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 0A82FECCB for ; Mon, 28 Jan 2013 09:45:35 +0000 (UTC) Received: (qmail 16940 invoked by uid 500); 28 Jan 2013 09:45:33 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 16899 invoked by uid 500); 28 Jan 2013 09:45:33 -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 16877 invoked by uid 99); 28 Jan 2013 09:45:32 -0000 Received: from minotaur.apache.org (HELO minotaur.apache.org) (140.211.11.9) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Jan 2013 09:45:32 +0000 Received: from localhost (HELO mail-ve0-f177.google.com) (127.0.0.1) (smtp-auth username rnewson, mechanism plain) by minotaur.apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Jan 2013 09:45:31 +0000 Received: by mail-ve0-f177.google.com with SMTP id m1so1183809ves.8 for ; Mon, 28 Jan 2013 01:45:30 -0800 (PST) MIME-Version: 1.0 X-Received: by 10.220.156.197 with SMTP id y5mr14054060vcw.17.1359366330775; Mon, 28 Jan 2013 01:45:30 -0800 (PST) Received: by 10.52.68.209 with HTTP; Mon, 28 Jan 2013 01:45:30 -0800 (PST) In-Reply-To: References: Date: Mon, 28 Jan 2013 09:45:30 +0000 Message-ID: Subject: Re: compilation_error Expression does not eval to a function From: Robert Newson To: "user@couchdb.apache.org" Content-Type: text/plain; charset=ISO-8859-1 I think you need http://packages.debian.org/sid/libmozjs185-dev here. B. On 28 January 2013 09:43, John Accoun wrote: > Here's some more input: > > I tried to compile from source on my workstation which also runs debian > (LMDE) > > It appears that the spidermonkey version present in debian is too new. > > --- > configure: error: Your SpiderMonkey library is too new. > > NOTE: Check above for an error about NSPR > > Versions of SpiderMonkey after the js185-1.0.0 release remove the optional > enforcement of preventing anonymous functions in a statement context. This > will most likely break your existing JavaScript code as well as render all > example code invalid. > > If you wish to ignore this error pass --enable-js-trunk to ./configure. > --- > > I'm afraid ignoring this error as suggested by the configure script, will > force me to change all my views. > > ATM I don't have any available environment to compile couchdb. Are there > any binaries that I can just download and run? > > Alternatively, I could use some help compiling couchdb with all the > dependencies in the right version. > > > On Mon, Jan 28, 2013 at 10:11 AM, John Accoun wrote: > >> This morning I started to get an error in one of my views. >> >> --- >> Error: compilation_error >> Expression does not eval to a function. ((new String("undefined"))) >> --- >> >> I thought this was very strange since I don't remember changing that view. >> I googled a bit but to no avail. Also tried to edit the view, first by >> pushing my design document with erica, then through futon. >> I changed it a little bit, the group indexing process kicked in and I >> could see the view output on futon. Right after, I clicked 'Overview > >> my_database' ob futton, and, I got a dialog box on my browser (Crhomium) >> with that same error. from this point on, every view throws that same error. >> >> >> My couchdb instance runs on a VM with debian: >> >> --- >> # lsb_release -a >> No LSB modules are available. >> Distributor ID: Debian >> Description: Debian GNU/Linux 6.0.5 (squeeze) >> Release: 6.0.5 >> Codename: squeeze >> --- >> >> What could be causing this issue? How can I fix it? >>