couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Frank Behrens <fbehr...@gmail.com>
Subject Re: Build from source failure on Ubuntu 11.04
Date Tue, 05 Jul 2011 05:32:59 GMT
Thanks Randall, works fine, time to relax now, cheers,Frank

2011/7/4 Randall Leeds <randall.leeds@gmail.com>

> Looks like you're set up right to link to the xulrunner spidermonkey but
> you'll still have to pass the --with-js-include and --with-js-lib options
> to
> configure as in the 10.04 instructions.
>
> I should have waited to update those instructions until after a release
> that
> contains the changes for mozjs185. I'll go clean that up. Trunk should
> build
> as in the 11.04 instructions, but 1.1 still needs these extra options to
> find xulrunner's spidermonkey.
>
> For now, if you follow the instructions for 10.04 you should have no
> trouble.
> On Jul 4, 2011 11:25 AM, "Frank Behrens" <fbehrens@gmail.com> wrote:
> > Hello,
> >
> > i followed http://wiki.apache.org/couchdb/Installing_on_Ubuntu
> > but it's not working on fresh Ubuntu11.04 (for me)
> >
> > Running `aptitude remove libmozjs185-dev` didn't do the trick either.
> >
> > ➜ apache-couchdb-1.1.0 .configure
> > .....
> > checking whether stripping libraries is possible... yes
> > checking if libtool supports shared libraries... yes
> > checking whether to build shared libraries... yes
> > checking whether to build static libraries... no
> > checking whether ln -s works... yes
> > checking for pthread_create in -lpthread... yes
> > checking for JS_NewContext in -lmozjs... no
> > checking for JS_NewContext in -ljs... no
> > checking for JS_NewContext in -ljs3250... no
> > checking for JS_NewContext in -ljs32... no
> > configure: error: Could not find the js library.
> >
> > Is the Mozilla SpiderMonkey library installed?
> > ➜ apache-couchdb-1.1.0 cat /etc/ld.so.conf.d/xulrunner.conf
> > /usr/lib/xulrunner-1.9.2.17
> > /usr/lib/xulrunner-devel-1.9.2.17
> > ➜ apache-couchdb-1.1.0 xulrunner -v
> > Mozilla XULRunner 1.9.2.17 - 20110424121034
> > ➜ apache-couchdb-1.1.0
> >
> > any guidance is dearly appreciated
> > Frank Behrens:
> >
> >
> >
> > 2011/6/14 Justin Walgran <jwalgran@azavea.com>
> >
> >> 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
> >>
> >
> > Frank Behrens:
> > :mobile: +49 178 8862743
> >
> >
> >
> > 2011/6/15 Justin Walgran <jwalgran@azavea.com>
> >
> >> 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