You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@couchdb.apache.org by Daniel Itaboraí <it...@gmail.com> on 2011/09/02 03:06:07 UTC

Build error on couch_js/main.c

Hi there,

Not sure if I'm this is the right place, but I'm trying to build CouchDB
using build-couchdb. Unfortunately I'm erroring out while trying to build
couch_js.

I was wondering if anyone could give me some pointers on what to do next.

I've paste the output of rake --trace below if it helps

http://pastebin.com/nMQg6J9i

thanks,
Daniel

Re: Build error on couch_js/main.c

Posted by Paul Davis <pa...@gmail.com>.
This looks like its trying to build against a new spidermonkey. I'm
just about to push a fix for this. I can't remember if build-couchdb
builds trunk or a specific revision. If trunk then it'll be fixed in a
half hour or so.

2011/9/1 Daniel Itaboraí <it...@gmail.com>:
> Hi there,
>
> Not sure if I'm this is the right place, but I'm trying to build CouchDB
> using build-couchdb. Unfortunately I'm erroring out while trying to build
> couch_js.
>
> I was wondering if anyone could give me some pointers on what to do next.
>
> I've paste the output of rake --trace below if it helps
>
> http://pastebin.com/nMQg6J9i
>
> thanks,
> Daniel
>

Re: Build error on couch_js/main.c

Posted by Jason Smith <jh...@iriscouch.com>.
Build CouchDB should never use the system SpiderMonkey, but rather the
one that is bundled in dependencies/js_src. Looking at your logs, it
built spidermonkey already; however, possibly it is not using the
correct version when building couchjs later.

2011/9/2 Daniel Itaboraí <it...@gmail.com>:
> Jason,
>
> Would you like me to test it with or without the system SpiderMonkey?
>
> Daniel
>
> On Fri, Sep 2, 2011 at 10:26 AM, Jason Smith <jh...@iriscouch.com> wrote:
>
>> Hi, Daniel. Thanks for the update.
>>
>> The latest version (that I publish at any rate) is from
>> git://github.com/iriscouch/build-couchdb
>>
>> Would you please try with that version and perhaps attach or paste
>> your rake.log file when the build completes? Thanks!
>>
>> 2011/9/2 Daniel Itaboraí <it...@gmail.com>:
>> > Thanks for the replies.
>> >
>> > Jason,
>> >
>> > I´m using Ubuntu 11.04 64 bits. I am building from the couchone
>> repository
>> > (git://github.com/couchone/build-couchdb). Now I´m not sure about which
>> one
>> > I should be using. I´ve followed the install scripts blindly. I haven´t
>> had
>> > the opportunity(and the know how) to tinker with CouchDB´s build system.
>> >
>> >
>> > Paul,
>> >
>> > You´re definitely right about a pre-existing SpiderMonkey in the system.
>> I
>> > installed it a month ago to test some Javascript code. I guess the next
>> > logical step would be to remove it and try to build it again. As soon as
>> I
>> > get home I´ll try that.
>> >
>> > thanks,
>> > Daniel
>> >
>> > On Fri, Sep 2, 2011 at 2:39 AM, Paul Davis <paul.joseph.davis@gmail.com
>> >wrote:
>> >
>> >> Also if you're not hip to the C, check for things like
>> >> /usr/include/js/jsapi.h or similar. Its likely that your OS has a
>> >> SpiderMonkey that's getting preferred over what's in build-couch.
>> >>
>> >> On Fri, Sep 2, 2011 at 12:29 AM, Jason Smith <jh...@iriscouch.com> wrote:
>> >> > 2011/9/2 Daniel Itaboraí <it...@gmail.com>:
>> >> >> Hi there,
>> >> >>
>> >> >> Not sure if I'm this is the right place, but I'm trying to build
>> CouchDB
>> >> >> using build-couchdb. Unfortunately I'm erroring out while trying to
>> >> build
>> >> >> couch_js.
>> >> >>
>> >> >> I was wondering if anyone could give me some pointers on what to do
>> >> next.
>> >> >>
>> >> >> I've paste the output of rake --trace below if it helps
>> >> >>
>> >> >> http://pastebin.com/nMQg6J9i
>> >> >
>> >> > Thanks.
>> >> >
>> >> > Which operating system and version are you on?
>> >> >
>> >> > Are you building from git://github.com/iriscouch/build-couchdb?
>> >> >
>> >> > Did you change to dependencies/couchdb and run any Git commands?
>> >> >
>> >> > I think there is possibly an error beginning from line 211. Usually,
>> >> > when you see a string of bad casts and undeclared identifiers it means
>> >> > a missing or wrong .h file. Hopefully some of your answers will
>> >> > provide a clue.
>> >> >
>> >> > --
>> >> > Iris Couch
>> >> >
>> >>
>> >
>>
>>
>>
>> --
>> Iris Couch
>>
>



-- 
Iris Couch

Re: Build error on couch_js/main.c

Posted by Jason Smith <jh...@iriscouch.com>.
2011/9/3 Daniel Itaboraí <it...@gmail.com>:
> Marcello,
>
> Thanks! I've done that and it worked like a charm.

Charms don't work :)

Thanks Daniel and Marcello. I think this will make it very easy to fix
the bug, and it's great to know the workaround! I will build a new
Ubuntu VM and figure out how to make Build CouchDB avoid the system
libraries, which it should be doing.

-- 
Iris Couch

Re: Build error on couch_js/main.c

Posted by Daniel Itaboraí <it...@gmail.com>.
Marcello,

Thanks! I've done that and it worked like a charm.

Daniel


On Sat, Sep 3, 2011 at 5:46 AM, Marcello Nuccio
<ma...@gmail.com>wrote:

> Daniel, I have Ubuntu 11.04 i386.
> Try with
>
>    sudo apt-get --purge remove libmozjs185-dev
>    rake manifest=1
>
> For some reason build-couchdb does not like when libmozjs185-dev is
> installed. Purging it works for me.
>
> Marcello
>
> 2011/9/3 Daniel Itaboraí <it...@gmail.com>:
> > Jason,
> >
> > I've tried compiling the Iris' build-couchdb, but I'm erroring out on
> > couch_js as well
> >
> > http://pastebin.com/pWu7nCwb
> >
> > If it helps, I have installed libmozjs185-1.0 on my box.
> >
> > Thanks,
> > Daniel
> >
> > p.s.:
> > STDOUT gcc
> >
> > -DHAVE_CONFIG_H
> > -I.
> >
> -I/home/itaborai/projects/nacaodoslanches/thirdparty/iris-couchdb/build-couchdb/dependencies/couchdb/src/couchdb/priv
> > -I../../..
> > -D_XOPEN_SOURCE
> > -L/usr/local/lib
> > -L/opt/local/lib
> >
> -I/home/itaborai/projects/nacaodoslanches/thirdparty/iris-couchdb/build-couchdb/build/lib/erlang/usr/include
> > -I/usr/include
> >
> > *******************************************
> > *******************************************
> > *******************************************
> > Should the build even look for the spidermonkey I'm using?
> > -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
> >
> -I/home/itaborai/projects/nacaodoslanches/thirdparty/iris-couchdb/build-couchdb/build/include
> >
> -I/home/itaborai/projects/nacaodoslanches/thirdparty/iris-couchdb/build-couchdb/build/include/js
> > -D_BSD_SOURCE
> >
> -I/home/itaborai/projects/nacaodoslanches/thirdparty/iris-couchdb/build-couchdb/build/include
> > -g
> > -O2
> > -MT couchjs-http.o
> > -MD
> > -MP
> > -MF .deps/couchjs-http.Tpo
> > -c
> > -o couchjs-http.o
> > `test -f 'couch_js/http.c'
> > || echo
> >
> '/home/itaborai/projects/nacaodoslanches/thirdparty/iris-couchdb/build-couchdb/dependencies/couchdb/src/couchdb/priv/'`couch_js/http.c
> >
> > 2011/9/2 Daniel Itaboraí <it...@gmail.com>
> >
> >> Jason,
> >>
> >> Would you like me to test it with or without the system SpiderMonkey?
> >>
> >> Daniel
> >>
> >>
> >> On Fri, Sep 2, 2011 at 10:26 AM, Jason Smith <jh...@iriscouch.com> wrote:
> >>
> >>> Hi, Daniel. Thanks for the update.
> >>>
> >>> The latest version (that I publish at any rate) is from
> >>> git://github.com/iriscouch/build-couchdb
> >>>
> >>> Would you please try with that version and perhaps attach or paste
> >>> your rake.log file when the build completes? Thanks!
> >>>
> >>> 2011/9/2 Daniel Itaboraí <it...@gmail.com>:
> >>> > Thanks for the replies.
> >>> >
> >>> > Jason,
> >>> >
> >>> > I´m using Ubuntu 11.04 64 bits. I am building from the couchone
> >>> repository
> >>> > (git://github.com/couchone/build-couchdb). Now I´m not sure about
> which
> >>> one
> >>> > I should be using. I´ve followed the install scripts blindly. I
> haven´t
> >>> had
> >>> > the opportunity(and the know how) to tinker with CouchDB´s build
> system.
> >>> >
> >>> >
> >>> > Paul,
> >>> >
> >>> > You´re definitely right about a pre-existing SpiderMonkey in the
> system.
> >>> I
> >>> > installed it a month ago to test some Javascript code. I guess the
> next
> >>> > logical step would be to remove it and try to build it again. As soon
> as
> >>> I
> >>> > get home I´ll try that.
> >>> >
> >>> > thanks,
> >>> > Daniel
> >>> >
> >>> > On Fri, Sep 2, 2011 at 2:39 AM, Paul Davis <
> paul.joseph.davis@gmail.com
> >>> >wrote:
> >>> >
> >>> >> Also if you're not hip to the C, check for things like
> >>> >> /usr/include/js/jsapi.h or similar. Its likely that your OS has a
> >>> >> SpiderMonkey that's getting preferred over what's in build-couch.
> >>> >>
> >>> >> On Fri, Sep 2, 2011 at 12:29 AM, Jason Smith <jh...@iriscouch.com>
> >>> wrote:
> >>> >> > 2011/9/2 Daniel Itaboraí <it...@gmail.com>:
> >>> >> >> Hi there,
> >>> >> >>
> >>> >> >> Not sure if I'm this is the right place, but I'm trying to build
> >>> CouchDB
> >>> >> >> using build-couchdb. Unfortunately I'm erroring out while trying
> to
> >>> >> build
> >>> >> >> couch_js.
> >>> >> >>
> >>> >> >> I was wondering if anyone could give me some pointers on what to
> do
> >>> >> next.
> >>> >> >>
> >>> >> >> I've paste the output of rake --trace below if it helps
> >>> >> >>
> >>> >> >> http://pastebin.com/nMQg6J9i
> >>> >> >
> >>> >> > Thanks.
> >>> >> >
> >>> >> > Which operating system and version are you on?
> >>> >> >
> >>> >> > Are you building from git://github.com/iriscouch/build-couchdb?
> >>> >> >
> >>> >> > Did you change to dependencies/couchdb and run any Git commands?
> >>> >> >
> >>> >> > I think there is possibly an error beginning from line 211.
> Usually,
> >>> >> > when you see a string of bad casts and undeclared identifiers it
> >>> means
> >>> >> > a missing or wrong .h file. Hopefully some of your answers will
> >>> >> > provide a clue.
> >>> >> >
> >>> >> > --
> >>> >> > Iris Couch
> >>> >> >
> >>> >>
> >>> >
> >>>
> >>>
> >>>
> >>> --
> >>> Iris Couch
> >>>
> >>
> >>
> >
>

Re: Build error on couch_js/main.c

Posted by Marcello Nuccio <ma...@gmail.com>.
Daniel, I have Ubuntu 11.04 i386.
Try with

    sudo apt-get --purge remove libmozjs185-dev
    rake manifest=1

For some reason build-couchdb does not like when libmozjs185-dev is
installed. Purging it works for me.

Marcello

2011/9/3 Daniel Itaboraí <it...@gmail.com>:
> Jason,
>
> I've tried compiling the Iris' build-couchdb, but I'm erroring out on
> couch_js as well
>
> http://pastebin.com/pWu7nCwb
>
> If it helps, I have installed libmozjs185-1.0 on my box.
>
> Thanks,
> Daniel
>
> p.s.:
> STDOUT gcc
>
> -DHAVE_CONFIG_H
> -I.
> -I/home/itaborai/projects/nacaodoslanches/thirdparty/iris-couchdb/build-couchdb/dependencies/couchdb/src/couchdb/priv
> -I../../..
> -D_XOPEN_SOURCE
> -L/usr/local/lib
> -L/opt/local/lib
> -I/home/itaborai/projects/nacaodoslanches/thirdparty/iris-couchdb/build-couchdb/build/lib/erlang/usr/include
> -I/usr/include
>
> *******************************************
> *******************************************
> *******************************************
> Should the build even look for the spidermonkey I'm using?
> -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
> -I/home/itaborai/projects/nacaodoslanches/thirdparty/iris-couchdb/build-couchdb/build/include
> -I/home/itaborai/projects/nacaodoslanches/thirdparty/iris-couchdb/build-couchdb/build/include/js
> -D_BSD_SOURCE
> -I/home/itaborai/projects/nacaodoslanches/thirdparty/iris-couchdb/build-couchdb/build/include
> -g
> -O2
> -MT couchjs-http.o
> -MD
> -MP
> -MF .deps/couchjs-http.Tpo
> -c
> -o couchjs-http.o
> `test -f 'couch_js/http.c'
> || echo
> '/home/itaborai/projects/nacaodoslanches/thirdparty/iris-couchdb/build-couchdb/dependencies/couchdb/src/couchdb/priv/'`couch_js/http.c
>
> 2011/9/2 Daniel Itaboraí <it...@gmail.com>
>
>> Jason,
>>
>> Would you like me to test it with or without the system SpiderMonkey?
>>
>> Daniel
>>
>>
>> On Fri, Sep 2, 2011 at 10:26 AM, Jason Smith <jh...@iriscouch.com> wrote:
>>
>>> Hi, Daniel. Thanks for the update.
>>>
>>> The latest version (that I publish at any rate) is from
>>> git://github.com/iriscouch/build-couchdb
>>>
>>> Would you please try with that version and perhaps attach or paste
>>> your rake.log file when the build completes? Thanks!
>>>
>>> 2011/9/2 Daniel Itaboraí <it...@gmail.com>:
>>> > Thanks for the replies.
>>> >
>>> > Jason,
>>> >
>>> > I´m using Ubuntu 11.04 64 bits. I am building from the couchone
>>> repository
>>> > (git://github.com/couchone/build-couchdb). Now I´m not sure about which
>>> one
>>> > I should be using. I´ve followed the install scripts blindly. I haven´t
>>> had
>>> > the opportunity(and the know how) to tinker with CouchDB´s build system.
>>> >
>>> >
>>> > Paul,
>>> >
>>> > You´re definitely right about a pre-existing SpiderMonkey in the system.
>>> I
>>> > installed it a month ago to test some Javascript code. I guess the next
>>> > logical step would be to remove it and try to build it again. As soon as
>>> I
>>> > get home I´ll try that.
>>> >
>>> > thanks,
>>> > Daniel
>>> >
>>> > On Fri, Sep 2, 2011 at 2:39 AM, Paul Davis <paul.joseph.davis@gmail.com
>>> >wrote:
>>> >
>>> >> Also if you're not hip to the C, check for things like
>>> >> /usr/include/js/jsapi.h or similar. Its likely that your OS has a
>>> >> SpiderMonkey that's getting preferred over what's in build-couch.
>>> >>
>>> >> On Fri, Sep 2, 2011 at 12:29 AM, Jason Smith <jh...@iriscouch.com>
>>> wrote:
>>> >> > 2011/9/2 Daniel Itaboraí <it...@gmail.com>:
>>> >> >> Hi there,
>>> >> >>
>>> >> >> Not sure if I'm this is the right place, but I'm trying to build
>>> CouchDB
>>> >> >> using build-couchdb. Unfortunately I'm erroring out while trying to
>>> >> build
>>> >> >> couch_js.
>>> >> >>
>>> >> >> I was wondering if anyone could give me some pointers on what to do
>>> >> next.
>>> >> >>
>>> >> >> I've paste the output of rake --trace below if it helps
>>> >> >>
>>> >> >> http://pastebin.com/nMQg6J9i
>>> >> >
>>> >> > Thanks.
>>> >> >
>>> >> > Which operating system and version are you on?
>>> >> >
>>> >> > Are you building from git://github.com/iriscouch/build-couchdb?
>>> >> >
>>> >> > Did you change to dependencies/couchdb and run any Git commands?
>>> >> >
>>> >> > I think there is possibly an error beginning from line 211. Usually,
>>> >> > when you see a string of bad casts and undeclared identifiers it
>>> means
>>> >> > a missing or wrong .h file. Hopefully some of your answers will
>>> >> > provide a clue.
>>> >> >
>>> >> > --
>>> >> > Iris Couch
>>> >> >
>>> >>
>>> >
>>>
>>>
>>>
>>> --
>>> Iris Couch
>>>
>>
>>
>

Re: Build error on couch_js/main.c

Posted by Jason Smith <jh...@iriscouch.com>.
2011/11/7 Daniel Itaboraí <it...@gmail.com>:
> It worked!
>
> Was the fix essentially just a symlink?

The fix was essentially just a symlink.

There are three ways to surmount any challenge:

1. The good way
2. The bad way
3. The army way

Build CouchDB is an avalanche of technique number three.

> Also, I ran the futon test suite on a clean database and I got the
> following error on 4 tests
>
> {"error":"unauthorized","reason":"You are not a server admin."}
>
> I ran the test a second time and the errors went away.
>
> Anyway, thanks for caring!

You're welcome. Thanks for your patience and persistence!

-- 
Iris Couch

Re: Build error on couch_js/main.c

Posted by Daniel Itaboraí <it...@gmail.com>.
It worked!

Was the fix essentially just a symlink?

Also, I ran the futon test suite on a clean database and I got the
following error on 4 tests

{"error":"unauthorized","reason":"You are not a server admin."}

I ran the test a second time and the errors went away.

Anyway, thanks for caring!

Daniel

2011/11/6 Daniel Itaboraí <it...@gmail.com>

> Jason,
>
> I've re-installed libmozjs185-1.0 and libmozjs185-dev and I was able to
> reproduce the previous error.
>
> I'm compiling it right now following your instructions. I'll get back to
> you in a couple of minutes.
>
> Daniel
>
> On Sun, Nov 6, 2011 at 4:48 PM, Jason Smith <jh...@iriscouch.com> wrote:
>
>> Hi, Daniel. I believe I have finally fixed this bug. The "ubuntu"
>> branch in the repository has the code, I will promote it to the master
>> branch if further testing goes well.
>>
>>    git fetch
>>    git checkout ubuntu
>>    rm -rf ./build
>>    rake
>>
>> Something like that should work. (I know you have it working already
>> but I just wanted to tie up this thread.)
>>
>> 2011/9/2 Daniel Itaboraí <it...@gmail.com>:
>> > Jason,
>> >
>> > I've tried compiling the Iris' build-couchdb, but I'm erroring out on
>> > couch_js as well
>> >
>> > http://pastebin.com/pWu7nCwb
>> >
>> > If it helps, I have installed libmozjs185-1.0 on my box.
>> >
>> > Thanks,
>> > Daniel
>> >
>> > p.s.:
>> > STDOUT gcc
>> >
>> > -DHAVE_CONFIG_H
>> > -I.
>> >
>> -I/home/itaborai/projects/nacaodoslanches/thirdparty/iris-couchdb/build-couchdb/dependencies/couchdb/src/couchdb/priv
>> > -I../../..
>> > -D_XOPEN_SOURCE
>> > -L/usr/local/lib
>> > -L/opt/local/lib
>> >
>> -I/home/itaborai/projects/nacaodoslanches/thirdparty/iris-couchdb/build-couchdb/build/lib/erlang/usr/include
>> > -I/usr/include
>> >
>> > *******************************************
>> > *******************************************
>> > *******************************************
>> > Should the build even look for the spidermonkey I'm using?
>> > -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
>> >
>> -I/home/itaborai/projects/nacaodoslanches/thirdparty/iris-couchdb/build-couchdb/build/include
>> >
>> -I/home/itaborai/projects/nacaodoslanches/thirdparty/iris-couchdb/build-couchdb/build/include/js
>> > -D_BSD_SOURCE
>> >
>> -I/home/itaborai/projects/nacaodoslanches/thirdparty/iris-couchdb/build-couchdb/build/include
>> > -g
>> > -O2
>> > -MT couchjs-http.o
>> > -MD
>> > -MP
>> > -MF .deps/couchjs-http.Tpo
>> > -c
>> > -o couchjs-http.o
>> > `test -f 'couch_js/http.c'
>> > || echo
>> >
>> '/home/itaborai/projects/nacaodoslanches/thirdparty/iris-couchdb/build-couchdb/dependencies/couchdb/src/couchdb/priv/'`couch_js/http.c
>> >
>> > 2011/9/2 Daniel Itaboraí <it...@gmail.com>
>> >
>> >> Jason,
>> >>
>> >> Would you like me to test it with or without the system SpiderMonkey?
>> >>
>> >> Daniel
>> >>
>> >>
>> >> On Fri, Sep 2, 2011 at 10:26 AM, Jason Smith <jh...@iriscouch.com>
>> wrote:
>> >>
>> >>> Hi, Daniel. Thanks for the update.
>> >>>
>> >>> The latest version (that I publish at any rate) is from
>> >>> git://github.com/iriscouch/build-couchdb
>> >>>
>> >>> Would you please try with that version and perhaps attach or paste
>> >>> your rake.log file when the build completes? Thanks!
>> >>>
>> >>> 2011/9/2 Daniel Itaboraí <it...@gmail.com>:
>> >>> > Thanks for the replies.
>> >>> >
>> >>> > Jason,
>> >>> >
>> >>> > I´m using Ubuntu 11.04 64 bits. I am building from the couchone
>> >>> repository
>> >>> > (git://github.com/couchone/build-couchdb). Now I´m not sure about
>> which
>> >>> one
>> >>> > I should be using. I´ve followed the install scripts blindly. I
>> haven´t
>> >>> had
>> >>> > the opportunity(and the know how) to tinker with CouchDB´s build
>> system.
>> >>> >
>> >>> >
>> >>> > Paul,
>> >>> >
>> >>> > You´re definitely right about a pre-existing SpiderMonkey in the
>> system.
>> >>> I
>> >>> > installed it a month ago to test some Javascript code. I guess the
>> next
>> >>> > logical step would be to remove it and try to build it again. As
>> soon as
>> >>> I
>> >>> > get home I´ll try that.
>> >>> >
>> >>> > thanks,
>> >>> > Daniel
>> >>> >
>> >>> > On Fri, Sep 2, 2011 at 2:39 AM, Paul Davis <
>> paul.joseph.davis@gmail.com
>> >>> >wrote:
>> >>> >
>> >>> >> Also if you're not hip to the C, check for things like
>> >>> >> /usr/include/js/jsapi.h or similar. Its likely that your OS has a
>> >>> >> SpiderMonkey that's getting preferred over what's in build-couch.
>> >>> >>
>> >>> >> On Fri, Sep 2, 2011 at 12:29 AM, Jason Smith <jh...@iriscouch.com>
>> >>> wrote:
>> >>> >> > 2011/9/2 Daniel Itaboraí <it...@gmail.com>:
>> >>> >> >> Hi there,
>> >>> >> >>
>> >>> >> >> Not sure if I'm this is the right place, but I'm trying to build
>> >>> CouchDB
>> >>> >> >> using build-couchdb. Unfortunately I'm erroring out while
>> trying to
>> >>> >> build
>> >>> >> >> couch_js.
>> >>> >> >>
>> >>> >> >> I was wondering if anyone could give me some pointers on what
>> to do
>> >>> >> next.
>> >>> >> >>
>> >>> >> >> I've paste the output of rake --trace below if it helps
>> >>> >> >>
>> >>> >> >> http://pastebin.com/nMQg6J9i
>> >>> >> >
>> >>> >> > Thanks.
>> >>> >> >
>> >>> >> > Which operating system and version are you on?
>> >>> >> >
>> >>> >> > Are you building from git://github.com/iriscouch/build-couchdb?
>> >>> >> >
>> >>> >> > Did you change to dependencies/couchdb and run any Git commands?
>> >>> >> >
>> >>> >> > I think there is possibly an error beginning from line 211.
>> Usually,
>> >>> >> > when you see a string of bad casts and undeclared identifiers it
>> >>> means
>> >>> >> > a missing or wrong .h file. Hopefully some of your answers will
>> >>> >> > provide a clue.
>> >>> >> >
>> >>> >> > --
>> >>> >> > Iris Couch
>> >>> >> >
>> >>> >>
>> >>> >
>> >>>
>> >>>
>> >>>
>> >>> --
>> >>> Iris Couch
>> >>>
>> >>
>> >>
>> >
>>
>>
>>
>> --
>> Iris Couch
>>
>
>

Re: Build error on couch_js/main.c

Posted by Daniel Itaboraí <it...@gmail.com>.
Jason,

I've re-installed libmozjs185-1.0 and libmozjs185-dev and I was able to
reproduce the previous error.

I'm compiling it right now following your instructions. I'll get back to
you in a couple of minutes.

Daniel

On Sun, Nov 6, 2011 at 4:48 PM, Jason Smith <jh...@iriscouch.com> wrote:

> Hi, Daniel. I believe I have finally fixed this bug. The "ubuntu"
> branch in the repository has the code, I will promote it to the master
> branch if further testing goes well.
>
>    git fetch
>    git checkout ubuntu
>    rm -rf ./build
>    rake
>
> Something like that should work. (I know you have it working already
> but I just wanted to tie up this thread.)
>
> 2011/9/2 Daniel Itaboraí <it...@gmail.com>:
> > Jason,
> >
> > I've tried compiling the Iris' build-couchdb, but I'm erroring out on
> > couch_js as well
> >
> > http://pastebin.com/pWu7nCwb
> >
> > If it helps, I have installed libmozjs185-1.0 on my box.
> >
> > Thanks,
> > Daniel
> >
> > p.s.:
> > STDOUT gcc
> >
> > -DHAVE_CONFIG_H
> > -I.
> >
> -I/home/itaborai/projects/nacaodoslanches/thirdparty/iris-couchdb/build-couchdb/dependencies/couchdb/src/couchdb/priv
> > -I../../..
> > -D_XOPEN_SOURCE
> > -L/usr/local/lib
> > -L/opt/local/lib
> >
> -I/home/itaborai/projects/nacaodoslanches/thirdparty/iris-couchdb/build-couchdb/build/lib/erlang/usr/include
> > -I/usr/include
> >
> > *******************************************
> > *******************************************
> > *******************************************
> > Should the build even look for the spidermonkey I'm using?
> > -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
> >
> -I/home/itaborai/projects/nacaodoslanches/thirdparty/iris-couchdb/build-couchdb/build/include
> >
> -I/home/itaborai/projects/nacaodoslanches/thirdparty/iris-couchdb/build-couchdb/build/include/js
> > -D_BSD_SOURCE
> >
> -I/home/itaborai/projects/nacaodoslanches/thirdparty/iris-couchdb/build-couchdb/build/include
> > -g
> > -O2
> > -MT couchjs-http.o
> > -MD
> > -MP
> > -MF .deps/couchjs-http.Tpo
> > -c
> > -o couchjs-http.o
> > `test -f 'couch_js/http.c'
> > || echo
> >
> '/home/itaborai/projects/nacaodoslanches/thirdparty/iris-couchdb/build-couchdb/dependencies/couchdb/src/couchdb/priv/'`couch_js/http.c
> >
> > 2011/9/2 Daniel Itaboraí <it...@gmail.com>
> >
> >> Jason,
> >>
> >> Would you like me to test it with or without the system SpiderMonkey?
> >>
> >> Daniel
> >>
> >>
> >> On Fri, Sep 2, 2011 at 10:26 AM, Jason Smith <jh...@iriscouch.com> wrote:
> >>
> >>> Hi, Daniel. Thanks for the update.
> >>>
> >>> The latest version (that I publish at any rate) is from
> >>> git://github.com/iriscouch/build-couchdb
> >>>
> >>> Would you please try with that version and perhaps attach or paste
> >>> your rake.log file when the build completes? Thanks!
> >>>
> >>> 2011/9/2 Daniel Itaboraí <it...@gmail.com>:
> >>> > Thanks for the replies.
> >>> >
> >>> > Jason,
> >>> >
> >>> > I´m using Ubuntu 11.04 64 bits. I am building from the couchone
> >>> repository
> >>> > (git://github.com/couchone/build-couchdb). Now I´m not sure about
> which
> >>> one
> >>> > I should be using. I´ve followed the install scripts blindly. I
> haven´t
> >>> had
> >>> > the opportunity(and the know how) to tinker with CouchDB´s build
> system.
> >>> >
> >>> >
> >>> > Paul,
> >>> >
> >>> > You´re definitely right about a pre-existing SpiderMonkey in the
> system.
> >>> I
> >>> > installed it a month ago to test some Javascript code. I guess the
> next
> >>> > logical step would be to remove it and try to build it again. As
> soon as
> >>> I
> >>> > get home I´ll try that.
> >>> >
> >>> > thanks,
> >>> > Daniel
> >>> >
> >>> > On Fri, Sep 2, 2011 at 2:39 AM, Paul Davis <
> paul.joseph.davis@gmail.com
> >>> >wrote:
> >>> >
> >>> >> Also if you're not hip to the C, check for things like
> >>> >> /usr/include/js/jsapi.h or similar. Its likely that your OS has a
> >>> >> SpiderMonkey that's getting preferred over what's in build-couch.
> >>> >>
> >>> >> On Fri, Sep 2, 2011 at 12:29 AM, Jason Smith <jh...@iriscouch.com>
> >>> wrote:
> >>> >> > 2011/9/2 Daniel Itaboraí <it...@gmail.com>:
> >>> >> >> Hi there,
> >>> >> >>
> >>> >> >> Not sure if I'm this is the right place, but I'm trying to build
> >>> CouchDB
> >>> >> >> using build-couchdb. Unfortunately I'm erroring out while trying
> to
> >>> >> build
> >>> >> >> couch_js.
> >>> >> >>
> >>> >> >> I was wondering if anyone could give me some pointers on what to
> do
> >>> >> next.
> >>> >> >>
> >>> >> >> I've paste the output of rake --trace below if it helps
> >>> >> >>
> >>> >> >> http://pastebin.com/nMQg6J9i
> >>> >> >
> >>> >> > Thanks.
> >>> >> >
> >>> >> > Which operating system and version are you on?
> >>> >> >
> >>> >> > Are you building from git://github.com/iriscouch/build-couchdb?
> >>> >> >
> >>> >> > Did you change to dependencies/couchdb and run any Git commands?
> >>> >> >
> >>> >> > I think there is possibly an error beginning from line 211.
> Usually,
> >>> >> > when you see a string of bad casts and undeclared identifiers it
> >>> means
> >>> >> > a missing or wrong .h file. Hopefully some of your answers will
> >>> >> > provide a clue.
> >>> >> >
> >>> >> > --
> >>> >> > Iris Couch
> >>> >> >
> >>> >>
> >>> >
> >>>
> >>>
> >>>
> >>> --
> >>> Iris Couch
> >>>
> >>
> >>
> >
>
>
>
> --
> Iris Couch
>

Re: Build error on couch_js/main.c

Posted by Jason Smith <jh...@iriscouch.com>.
Hi, Daniel. I believe I have finally fixed this bug. The "ubuntu"
branch in the repository has the code, I will promote it to the master
branch if further testing goes well.

    git fetch
    git checkout ubuntu
    rm -rf ./build
    rake

Something like that should work. (I know you have it working already
but I just wanted to tie up this thread.)

2011/9/2 Daniel Itaboraí <it...@gmail.com>:
> Jason,
>
> I've tried compiling the Iris' build-couchdb, but I'm erroring out on
> couch_js as well
>
> http://pastebin.com/pWu7nCwb
>
> If it helps, I have installed libmozjs185-1.0 on my box.
>
> Thanks,
> Daniel
>
> p.s.:
> STDOUT gcc
>
> -DHAVE_CONFIG_H
> -I.
> -I/home/itaborai/projects/nacaodoslanches/thirdparty/iris-couchdb/build-couchdb/dependencies/couchdb/src/couchdb/priv
> -I../../..
> -D_XOPEN_SOURCE
> -L/usr/local/lib
> -L/opt/local/lib
> -I/home/itaborai/projects/nacaodoslanches/thirdparty/iris-couchdb/build-couchdb/build/lib/erlang/usr/include
> -I/usr/include
>
> *******************************************
> *******************************************
> *******************************************
> Should the build even look for the spidermonkey I'm using?
> -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
> -I/home/itaborai/projects/nacaodoslanches/thirdparty/iris-couchdb/build-couchdb/build/include
> -I/home/itaborai/projects/nacaodoslanches/thirdparty/iris-couchdb/build-couchdb/build/include/js
> -D_BSD_SOURCE
> -I/home/itaborai/projects/nacaodoslanches/thirdparty/iris-couchdb/build-couchdb/build/include
> -g
> -O2
> -MT couchjs-http.o
> -MD
> -MP
> -MF .deps/couchjs-http.Tpo
> -c
> -o couchjs-http.o
> `test -f 'couch_js/http.c'
> || echo
> '/home/itaborai/projects/nacaodoslanches/thirdparty/iris-couchdb/build-couchdb/dependencies/couchdb/src/couchdb/priv/'`couch_js/http.c
>
> 2011/9/2 Daniel Itaboraí <it...@gmail.com>
>
>> Jason,
>>
>> Would you like me to test it with or without the system SpiderMonkey?
>>
>> Daniel
>>
>>
>> On Fri, Sep 2, 2011 at 10:26 AM, Jason Smith <jh...@iriscouch.com> wrote:
>>
>>> Hi, Daniel. Thanks for the update.
>>>
>>> The latest version (that I publish at any rate) is from
>>> git://github.com/iriscouch/build-couchdb
>>>
>>> Would you please try with that version and perhaps attach or paste
>>> your rake.log file when the build completes? Thanks!
>>>
>>> 2011/9/2 Daniel Itaboraí <it...@gmail.com>:
>>> > Thanks for the replies.
>>> >
>>> > Jason,
>>> >
>>> > I´m using Ubuntu 11.04 64 bits. I am building from the couchone
>>> repository
>>> > (git://github.com/couchone/build-couchdb). Now I´m not sure about which
>>> one
>>> > I should be using. I´ve followed the install scripts blindly. I haven´t
>>> had
>>> > the opportunity(and the know how) to tinker with CouchDB´s build system.
>>> >
>>> >
>>> > Paul,
>>> >
>>> > You´re definitely right about a pre-existing SpiderMonkey in the system.
>>> I
>>> > installed it a month ago to test some Javascript code. I guess the next
>>> > logical step would be to remove it and try to build it again. As soon as
>>> I
>>> > get home I´ll try that.
>>> >
>>> > thanks,
>>> > Daniel
>>> >
>>> > On Fri, Sep 2, 2011 at 2:39 AM, Paul Davis <paul.joseph.davis@gmail.com
>>> >wrote:
>>> >
>>> >> Also if you're not hip to the C, check for things like
>>> >> /usr/include/js/jsapi.h or similar. Its likely that your OS has a
>>> >> SpiderMonkey that's getting preferred over what's in build-couch.
>>> >>
>>> >> On Fri, Sep 2, 2011 at 12:29 AM, Jason Smith <jh...@iriscouch.com>
>>> wrote:
>>> >> > 2011/9/2 Daniel Itaboraí <it...@gmail.com>:
>>> >> >> Hi there,
>>> >> >>
>>> >> >> Not sure if I'm this is the right place, but I'm trying to build
>>> CouchDB
>>> >> >> using build-couchdb. Unfortunately I'm erroring out while trying to
>>> >> build
>>> >> >> couch_js.
>>> >> >>
>>> >> >> I was wondering if anyone could give me some pointers on what to do
>>> >> next.
>>> >> >>
>>> >> >> I've paste the output of rake --trace below if it helps
>>> >> >>
>>> >> >> http://pastebin.com/nMQg6J9i
>>> >> >
>>> >> > Thanks.
>>> >> >
>>> >> > Which operating system and version are you on?
>>> >> >
>>> >> > Are you building from git://github.com/iriscouch/build-couchdb?
>>> >> >
>>> >> > Did you change to dependencies/couchdb and run any Git commands?
>>> >> >
>>> >> > I think there is possibly an error beginning from line 211. Usually,
>>> >> > when you see a string of bad casts and undeclared identifiers it
>>> means
>>> >> > a missing or wrong .h file. Hopefully some of your answers will
>>> >> > provide a clue.
>>> >> >
>>> >> > --
>>> >> > Iris Couch
>>> >> >
>>> >>
>>> >
>>>
>>>
>>>
>>> --
>>> Iris Couch
>>>
>>
>>
>



-- 
Iris Couch

Re: Build error on couch_js/main.c

Posted by Daniel Itaboraí <it...@gmail.com>.
Jason,

I've tried compiling the Iris' build-couchdb, but I'm erroring out on
couch_js as well

http://pastebin.com/pWu7nCwb

If it helps, I have installed libmozjs185-1.0 on my box.

Thanks,
Daniel

p.s.:
STDOUT gcc

-DHAVE_CONFIG_H
-I.
-I/home/itaborai/projects/nacaodoslanches/thirdparty/iris-couchdb/build-couchdb/dependencies/couchdb/src/couchdb/priv
-I../../..
-D_XOPEN_SOURCE
-L/usr/local/lib
-L/opt/local/lib
-I/home/itaborai/projects/nacaodoslanches/thirdparty/iris-couchdb/build-couchdb/build/lib/erlang/usr/include
-I/usr/include

*******************************************
*******************************************
*******************************************
Should the build even look for the spidermonkey I'm using?
-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
-I/home/itaborai/projects/nacaodoslanches/thirdparty/iris-couchdb/build-couchdb/build/include
-I/home/itaborai/projects/nacaodoslanches/thirdparty/iris-couchdb/build-couchdb/build/include/js
-D_BSD_SOURCE
-I/home/itaborai/projects/nacaodoslanches/thirdparty/iris-couchdb/build-couchdb/build/include
-g
-O2
-MT couchjs-http.o
-MD
-MP
-MF .deps/couchjs-http.Tpo
-c
-o couchjs-http.o
`test -f 'couch_js/http.c'
|| echo
'/home/itaborai/projects/nacaodoslanches/thirdparty/iris-couchdb/build-couchdb/dependencies/couchdb/src/couchdb/priv/'`couch_js/http.c

2011/9/2 Daniel Itaboraí <it...@gmail.com>

> Jason,
>
> Would you like me to test it with or without the system SpiderMonkey?
>
> Daniel
>
>
> On Fri, Sep 2, 2011 at 10:26 AM, Jason Smith <jh...@iriscouch.com> wrote:
>
>> Hi, Daniel. Thanks for the update.
>>
>> The latest version (that I publish at any rate) is from
>> git://github.com/iriscouch/build-couchdb
>>
>> Would you please try with that version and perhaps attach or paste
>> your rake.log file when the build completes? Thanks!
>>
>> 2011/9/2 Daniel Itaboraí <it...@gmail.com>:
>> > Thanks for the replies.
>> >
>> > Jason,
>> >
>> > I´m using Ubuntu 11.04 64 bits. I am building from the couchone
>> repository
>> > (git://github.com/couchone/build-couchdb). Now I´m not sure about which
>> one
>> > I should be using. I´ve followed the install scripts blindly. I haven´t
>> had
>> > the opportunity(and the know how) to tinker with CouchDB´s build system.
>> >
>> >
>> > Paul,
>> >
>> > You´re definitely right about a pre-existing SpiderMonkey in the system.
>> I
>> > installed it a month ago to test some Javascript code. I guess the next
>> > logical step would be to remove it and try to build it again. As soon as
>> I
>> > get home I´ll try that.
>> >
>> > thanks,
>> > Daniel
>> >
>> > On Fri, Sep 2, 2011 at 2:39 AM, Paul Davis <paul.joseph.davis@gmail.com
>> >wrote:
>> >
>> >> Also if you're not hip to the C, check for things like
>> >> /usr/include/js/jsapi.h or similar. Its likely that your OS has a
>> >> SpiderMonkey that's getting preferred over what's in build-couch.
>> >>
>> >> On Fri, Sep 2, 2011 at 12:29 AM, Jason Smith <jh...@iriscouch.com>
>> wrote:
>> >> > 2011/9/2 Daniel Itaboraí <it...@gmail.com>:
>> >> >> Hi there,
>> >> >>
>> >> >> Not sure if I'm this is the right place, but I'm trying to build
>> CouchDB
>> >> >> using build-couchdb. Unfortunately I'm erroring out while trying to
>> >> build
>> >> >> couch_js.
>> >> >>
>> >> >> I was wondering if anyone could give me some pointers on what to do
>> >> next.
>> >> >>
>> >> >> I've paste the output of rake --trace below if it helps
>> >> >>
>> >> >> http://pastebin.com/nMQg6J9i
>> >> >
>> >> > Thanks.
>> >> >
>> >> > Which operating system and version are you on?
>> >> >
>> >> > Are you building from git://github.com/iriscouch/build-couchdb?
>> >> >
>> >> > Did you change to dependencies/couchdb and run any Git commands?
>> >> >
>> >> > I think there is possibly an error beginning from line 211. Usually,
>> >> > when you see a string of bad casts and undeclared identifiers it
>> means
>> >> > a missing or wrong .h file. Hopefully some of your answers will
>> >> > provide a clue.
>> >> >
>> >> > --
>> >> > Iris Couch
>> >> >
>> >>
>> >
>>
>>
>>
>> --
>> Iris Couch
>>
>
>

Re: Build error on couch_js/main.c

Posted by Daniel Itaboraí <it...@gmail.com>.
Jason,

Would you like me to test it with or without the system SpiderMonkey?

Daniel

On Fri, Sep 2, 2011 at 10:26 AM, Jason Smith <jh...@iriscouch.com> wrote:

> Hi, Daniel. Thanks for the update.
>
> The latest version (that I publish at any rate) is from
> git://github.com/iriscouch/build-couchdb
>
> Would you please try with that version and perhaps attach or paste
> your rake.log file when the build completes? Thanks!
>
> 2011/9/2 Daniel Itaboraí <it...@gmail.com>:
> > Thanks for the replies.
> >
> > Jason,
> >
> > I´m using Ubuntu 11.04 64 bits. I am building from the couchone
> repository
> > (git://github.com/couchone/build-couchdb). Now I´m not sure about which
> one
> > I should be using. I´ve followed the install scripts blindly. I haven´t
> had
> > the opportunity(and the know how) to tinker with CouchDB´s build system.
> >
> >
> > Paul,
> >
> > You´re definitely right about a pre-existing SpiderMonkey in the system.
> I
> > installed it a month ago to test some Javascript code. I guess the next
> > logical step would be to remove it and try to build it again. As soon as
> I
> > get home I´ll try that.
> >
> > thanks,
> > Daniel
> >
> > On Fri, Sep 2, 2011 at 2:39 AM, Paul Davis <paul.joseph.davis@gmail.com
> >wrote:
> >
> >> Also if you're not hip to the C, check for things like
> >> /usr/include/js/jsapi.h or similar. Its likely that your OS has a
> >> SpiderMonkey that's getting preferred over what's in build-couch.
> >>
> >> On Fri, Sep 2, 2011 at 12:29 AM, Jason Smith <jh...@iriscouch.com> wrote:
> >> > 2011/9/2 Daniel Itaboraí <it...@gmail.com>:
> >> >> Hi there,
> >> >>
> >> >> Not sure if I'm this is the right place, but I'm trying to build
> CouchDB
> >> >> using build-couchdb. Unfortunately I'm erroring out while trying to
> >> build
> >> >> couch_js.
> >> >>
> >> >> I was wondering if anyone could give me some pointers on what to do
> >> next.
> >> >>
> >> >> I've paste the output of rake --trace below if it helps
> >> >>
> >> >> http://pastebin.com/nMQg6J9i
> >> >
> >> > Thanks.
> >> >
> >> > Which operating system and version are you on?
> >> >
> >> > Are you building from git://github.com/iriscouch/build-couchdb?
> >> >
> >> > Did you change to dependencies/couchdb and run any Git commands?
> >> >
> >> > I think there is possibly an error beginning from line 211. Usually,
> >> > when you see a string of bad casts and undeclared identifiers it means
> >> > a missing or wrong .h file. Hopefully some of your answers will
> >> > provide a clue.
> >> >
> >> > --
> >> > Iris Couch
> >> >
> >>
> >
>
>
>
> --
> Iris Couch
>

Re: Build error on couch_js/main.c

Posted by Jason Smith <jh...@iriscouch.com>.
Hi, Daniel. Thanks for the update.

The latest version (that I publish at any rate) is from
git://github.com/iriscouch/build-couchdb

Would you please try with that version and perhaps attach or paste
your rake.log file when the build completes? Thanks!

2011/9/2 Daniel Itaboraí <it...@gmail.com>:
> Thanks for the replies.
>
> Jason,
>
> I´m using Ubuntu 11.04 64 bits. I am building from the couchone repository
> (git://github.com/couchone/build-couchdb). Now I´m not sure about which one
> I should be using. I´ve followed the install scripts blindly. I haven´t had
> the opportunity(and the know how) to tinker with CouchDB´s build system.
>
>
> Paul,
>
> You´re definitely right about a pre-existing SpiderMonkey in the system. I
> installed it a month ago to test some Javascript code. I guess the next
> logical step would be to remove it and try to build it again. As soon as I
> get home I´ll try that.
>
> thanks,
> Daniel
>
> On Fri, Sep 2, 2011 at 2:39 AM, Paul Davis <pa...@gmail.com>wrote:
>
>> Also if you're not hip to the C, check for things like
>> /usr/include/js/jsapi.h or similar. Its likely that your OS has a
>> SpiderMonkey that's getting preferred over what's in build-couch.
>>
>> On Fri, Sep 2, 2011 at 12:29 AM, Jason Smith <jh...@iriscouch.com> wrote:
>> > 2011/9/2 Daniel Itaboraí <it...@gmail.com>:
>> >> Hi there,
>> >>
>> >> Not sure if I'm this is the right place, but I'm trying to build CouchDB
>> >> using build-couchdb. Unfortunately I'm erroring out while trying to
>> build
>> >> couch_js.
>> >>
>> >> I was wondering if anyone could give me some pointers on what to do
>> next.
>> >>
>> >> I've paste the output of rake --trace below if it helps
>> >>
>> >> http://pastebin.com/nMQg6J9i
>> >
>> > Thanks.
>> >
>> > Which operating system and version are you on?
>> >
>> > Are you building from git://github.com/iriscouch/build-couchdb?
>> >
>> > Did you change to dependencies/couchdb and run any Git commands?
>> >
>> > I think there is possibly an error beginning from line 211. Usually,
>> > when you see a string of bad casts and undeclared identifiers it means
>> > a missing or wrong .h file. Hopefully some of your answers will
>> > provide a clue.
>> >
>> > --
>> > Iris Couch
>> >
>>
>



-- 
Iris Couch

Re: Build error on couch_js/main.c

Posted by Daniel Itaboraí <it...@gmail.com>.
Thanks for the replies.

Jason,

I´m using Ubuntu 11.04 64 bits. I am building from the couchone repository
(git://github.com/couchone/build-couchdb). Now I´m not sure about which one
I should be using. I´ve followed the install scripts blindly. I haven´t had
the opportunity(and the know how) to tinker with CouchDB´s build system.


Paul,

You´re definitely right about a pre-existing SpiderMonkey in the system. I
installed it a month ago to test some Javascript code. I guess the next
logical step would be to remove it and try to build it again. As soon as I
get home I´ll try that.

thanks,
Daniel

On Fri, Sep 2, 2011 at 2:39 AM, Paul Davis <pa...@gmail.com>wrote:

> Also if you're not hip to the C, check for things like
> /usr/include/js/jsapi.h or similar. Its likely that your OS has a
> SpiderMonkey that's getting preferred over what's in build-couch.
>
> On Fri, Sep 2, 2011 at 12:29 AM, Jason Smith <jh...@iriscouch.com> wrote:
> > 2011/9/2 Daniel Itaboraí <it...@gmail.com>:
> >> Hi there,
> >>
> >> Not sure if I'm this is the right place, but I'm trying to build CouchDB
> >> using build-couchdb. Unfortunately I'm erroring out while trying to
> build
> >> couch_js.
> >>
> >> I was wondering if anyone could give me some pointers on what to do
> next.
> >>
> >> I've paste the output of rake --trace below if it helps
> >>
> >> http://pastebin.com/nMQg6J9i
> >
> > Thanks.
> >
> > Which operating system and version are you on?
> >
> > Are you building from git://github.com/iriscouch/build-couchdb?
> >
> > Did you change to dependencies/couchdb and run any Git commands?
> >
> > I think there is possibly an error beginning from line 211. Usually,
> > when you see a string of bad casts and undeclared identifiers it means
> > a missing or wrong .h file. Hopefully some of your answers will
> > provide a clue.
> >
> > --
> > Iris Couch
> >
>

Re: Build error on couch_js/main.c

Posted by Paul Davis <pa...@gmail.com>.
Also if you're not hip to the C, check for things like
/usr/include/js/jsapi.h or similar. Its likely that your OS has a
SpiderMonkey that's getting preferred over what's in build-couch.

On Fri, Sep 2, 2011 at 12:29 AM, Jason Smith <jh...@iriscouch.com> wrote:
> 2011/9/2 Daniel Itaboraí <it...@gmail.com>:
>> Hi there,
>>
>> Not sure if I'm this is the right place, but I'm trying to build CouchDB
>> using build-couchdb. Unfortunately I'm erroring out while trying to build
>> couch_js.
>>
>> I was wondering if anyone could give me some pointers on what to do next.
>>
>> I've paste the output of rake --trace below if it helps
>>
>> http://pastebin.com/nMQg6J9i
>
> Thanks.
>
> Which operating system and version are you on?
>
> Are you building from git://github.com/iriscouch/build-couchdb?
>
> Did you change to dependencies/couchdb and run any Git commands?
>
> I think there is possibly an error beginning from line 211. Usually,
> when you see a string of bad casts and undeclared identifiers it means
> a missing or wrong .h file. Hopefully some of your answers will
> provide a clue.
>
> --
> Iris Couch
>

Re: Build error on couch_js/main.c

Posted by Jason Smith <jh...@iriscouch.com>.
2011/9/2 Daniel Itaboraí <it...@gmail.com>:
> Hi there,
>
> Not sure if I'm this is the right place, but I'm trying to build CouchDB
> using build-couchdb. Unfortunately I'm erroring out while trying to build
> couch_js.
>
> I was wondering if anyone could give me some pointers on what to do next.
>
> I've paste the output of rake --trace below if it helps
>
> http://pastebin.com/nMQg6J9i

Thanks.

Which operating system and version are you on?

Are you building from git://github.com/iriscouch/build-couchdb?

Did you change to dependencies/couchdb and run any Git commands?

I think there is possibly an error beginning from line 211. Usually,
when you see a string of bad casts and undeclared identifiers it means
a missing or wrong .h file. Hopefully some of your answers will
provide a clue.

-- 
Iris Couch