You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@couchdb.apache.org by Jason Smith <jh...@iriscouch.com> on 2011/11/06 19:48:40 UTC

Re: Build error on couch_js/main.c

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>.
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
>