incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Justin Walgran <jwalg...@azavea.com>
Subject Re: Build from source failure on Ubuntu 11.04
Date Wed, 15 Jun 2011 13:54:21 GMT
Thank you for digging into my problem, Randall.

Running `aptitude remove libmozjs185-dev` did the trick. The 1.1.0 source is
now building successfully.


Justin

On Tue, Jun 14, 2011 at 3:28 PM, Randall Leeds <randall.leeds@gmail.com>wrote:

> 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 <jwalgran@azavea.com> wrote:
> > I have tried and failed using both the 1.0.1 source and the 1.1.0 source.
> >
> > 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_SOURCE
> > -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 ‘evalcx’:
> > couch_js/main.c:62:9: warning: assignment makes pointer from integer
> without
> > a cast
> > couch_js/main.c: In function ‘execute_script’:
> >
> > couch_js/main.c:215:5: error: ‘JSScript’ undeclared (first use in this
> > function)
> >
> > couch_js/main.c:215:5: note: each undeclared identifier is reported only
> > once for each function it appears in
> > couch_js/main.c:215:15: error: ‘script’ undeclared (first use in this
> > function)
> > couch_js/main.c: At top level:
> >
> > ***
> >
> > Any guidance on getting this build to work? Thanks.
> >
> > Justin
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message