You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@couchdb.apache.org by Jochen Kempf <jo...@gmail.com> on 2011/05/04 00:31:51 UTC

Ubuntu 11.0.4 crashes Couchdb 1.0.2 install

Hi,

after upgrading to Ubuntu 11.0.4 I cannot use an installed Couchdb 1.0.2
anymore.

There is simply no http connection possible on localhost to
http://localhost:5984/

Trying to reinstall couchdb fails with undefined reference to
`JS_GetStringChars'
couchjs-utf8.o: In function `enc_string':
/apache-couchdb-1.0.2/src/couchdb/priv/couch_js/utf8.c:132: undefined
reference to `JS_GetStringChars'

I have no idea what to do to get CouchDB running again.

Anyone can help me?

Re: Ubuntu 11.0.4 crashes Couchdb 1.0.2 install

Posted by Robert Newson <ro...@gmail.com>.
Sounds like you have upgraded to an incompatible version of
spidermonkey (packaged as xulrunner in Ubuntu, I think).

B.

On 3 May 2011 23:31, Jochen Kempf <jo...@gmail.com> wrote:
> Hi,
>
> after upgrading to Ubuntu 11.0.4 I cannot use an installed Couchdb 1.0.2
> anymore.
>
> There is simply no http connection possible on localhost to
> http://localhost:5984/
>
> Trying to reinstall couchdb fails with undefined reference to
> `JS_GetStringChars'
> couchjs-utf8.o: In function `enc_string':
> /apache-couchdb-1.0.2/src/couchdb/priv/couch_js/utf8.c:132: undefined
> reference to `JS_GetStringChars'
>
> I have no idea what to do to get CouchDB running again.
>
> Anyone can help me?
>

Re: Ubuntu 11.0.4 crashes Couchdb 1.0.2 install

Posted by Paul Davis <pa...@gmail.com>.
On Thu, May 5, 2011 at 11:34 AM, Jochen Kempf <jo...@gmail.com> wrote:
> Thanks for the link.
>
> However, I don't really understand how to fix which file.
>
> Istn't there a simple solution like the one I tried - uninstalling xulrunner
> 2.0 and reinstalling xulrunner 1.9.2.17?
>
>
>
>
> 2011/5/5 Paul Davis <pa...@gmail.com>
>
>> On Thu, May 5, 2011 at 10:49 AM, Jochen Kempf <jo...@gmail.com>
>> wrote:
>> > Hi Paul,
>> >
>> > I tried to fix by uninstalling xulrunner-2.0 and reinstalling
>> > xulrunner-1.9.2.17
>> >
>> > Running xulrunner -v shows "xulrunner-1.9.2.17", but the make still fails
>> > with
>> > "couchjs-http.o: In function `status':
>> > http.c:(.text+0x78d): undefined reference to `INT_FITS_IN_JSVAL'
>> > collect2: ld returned 1 exit status"
>> >
>> >
>> > Where can I find the downstream patch?
>> >
>> >
>> >
>> > 2011/5/3 Paul Davis <pa...@gmail.com>
>> >
>> >> On Tue, May 3, 2011 at 6:31 PM, Jochen Kempf <jo...@gmail.com>
>> >> wrote:
>> >> > Hi,
>> >> >
>> >> > after upgrading to Ubuntu 11.0.4 I cannot use an installed Couchdb
>> 1.0.2
>> >> > anymore.
>> >> >
>> >> > There is simply no http connection possible on localhost to
>> >> > http://localhost:5984/
>> >> >
>> >> > Trying to reinstall couchdb fails with undefined reference to
>> >> > `JS_GetStringChars'
>> >> > couchjs-utf8.o: In function `enc_string':
>> >> > /apache-couchdb-1.0.2/src/couchdb/priv/couch_js/utf8.c:132: undefined
>> >> > reference to `JS_GetStringChars'
>> >> >
>> >> > I have no idea what to do to get CouchDB running again.
>> >> >
>> >> > Anyone can help me?
>> >> >
>> >>
>> >> The version of Spidermonkey in 11.04 isn't officially supported in
>> >> CouchDB trunk yet. Ubuntu has a downstream patch that fixes it.
>> >>
>> >> This is near the top of my todo list to get fixed so keep a look out for
>> >> that.
>> >>
>> >
>>
>> https://issues.apache.org/jira/browse/COUCHDB-1078
>>
>

I haven't tested this patch personally, but theoretically this is what
you'd need to do to get it to build:

    $ cd /path/to/couchdb/
    $ wget https://issues.apache.org/jira/secure/attachment/12472248/mozjs2.0.patch
    $ patch -p1 < mozjs2.0.patch
    $ ./bootstrap && ./configure && make

Ubuntu has moved more aggressively to using the newer SpiderMonkey
API's. Unfortunately we need to be able to simultaneously support
older versions of SpiderMonkey so its taken us a bit longer to get
support into trunk. I (or any other motivated person) still need to
sit down and figure out the best way to get our build system to
maintain the current level of support while extending to the new API.

Re: Ubuntu 11.0.4 crashes Couchdb 1.0.2 install

Posted by Jochen Kempf <jo...@gmail.com>.
Thanks for the link.

However, I don't really understand how to fix which file.

Istn't there a simple solution like the one I tried - uninstalling xulrunner
2.0 and reinstalling xulrunner 1.9.2.17?




2011/5/5 Paul Davis <pa...@gmail.com>

> On Thu, May 5, 2011 at 10:49 AM, Jochen Kempf <jo...@gmail.com>
> wrote:
> > Hi Paul,
> >
> > I tried to fix by uninstalling xulrunner-2.0 and reinstalling
> > xulrunner-1.9.2.17
> >
> > Running xulrunner -v shows "xulrunner-1.9.2.17", but the make still fails
> > with
> > "couchjs-http.o: In function `status':
> > http.c:(.text+0x78d): undefined reference to `INT_FITS_IN_JSVAL'
> > collect2: ld returned 1 exit status"
> >
> >
> > Where can I find the downstream patch?
> >
> >
> >
> > 2011/5/3 Paul Davis <pa...@gmail.com>
> >
> >> On Tue, May 3, 2011 at 6:31 PM, Jochen Kempf <jo...@gmail.com>
> >> wrote:
> >> > Hi,
> >> >
> >> > after upgrading to Ubuntu 11.0.4 I cannot use an installed Couchdb
> 1.0.2
> >> > anymore.
> >> >
> >> > There is simply no http connection possible on localhost to
> >> > http://localhost:5984/
> >> >
> >> > Trying to reinstall couchdb fails with undefined reference to
> >> > `JS_GetStringChars'
> >> > couchjs-utf8.o: In function `enc_string':
> >> > /apache-couchdb-1.0.2/src/couchdb/priv/couch_js/utf8.c:132: undefined
> >> > reference to `JS_GetStringChars'
> >> >
> >> > I have no idea what to do to get CouchDB running again.
> >> >
> >> > Anyone can help me?
> >> >
> >>
> >> The version of Spidermonkey in 11.04 isn't officially supported in
> >> CouchDB trunk yet. Ubuntu has a downstream patch that fixes it.
> >>
> >> This is near the top of my todo list to get fixed so keep a look out for
> >> that.
> >>
> >
>
> https://issues.apache.org/jira/browse/COUCHDB-1078
>

Re: Ubuntu 11.0.4 crashes Couchdb 1.0.2 install

Posted by Paul Davis <pa...@gmail.com>.
On Thu, May 5, 2011 at 10:49 AM, Jochen Kempf <jo...@gmail.com> wrote:
> Hi Paul,
>
> I tried to fix by uninstalling xulrunner-2.0 and reinstalling
> xulrunner-1.9.2.17
>
> Running xulrunner -v shows "xulrunner-1.9.2.17", but the make still fails
> with
> "couchjs-http.o: In function `status':
> http.c:(.text+0x78d): undefined reference to `INT_FITS_IN_JSVAL'
> collect2: ld returned 1 exit status"
>
>
> Where can I find the downstream patch?
>
>
>
> 2011/5/3 Paul Davis <pa...@gmail.com>
>
>> On Tue, May 3, 2011 at 6:31 PM, Jochen Kempf <jo...@gmail.com>
>> wrote:
>> > Hi,
>> >
>> > after upgrading to Ubuntu 11.0.4 I cannot use an installed Couchdb 1.0.2
>> > anymore.
>> >
>> > There is simply no http connection possible on localhost to
>> > http://localhost:5984/
>> >
>> > Trying to reinstall couchdb fails with undefined reference to
>> > `JS_GetStringChars'
>> > couchjs-utf8.o: In function `enc_string':
>> > /apache-couchdb-1.0.2/src/couchdb/priv/couch_js/utf8.c:132: undefined
>> > reference to `JS_GetStringChars'
>> >
>> > I have no idea what to do to get CouchDB running again.
>> >
>> > Anyone can help me?
>> >
>>
>> The version of Spidermonkey in 11.04 isn't officially supported in
>> CouchDB trunk yet. Ubuntu has a downstream patch that fixes it.
>>
>> This is near the top of my todo list to get fixed so keep a look out for
>> that.
>>
>

https://issues.apache.org/jira/browse/COUCHDB-1078

Re: Ubuntu 11.0.4 crashes Couchdb 1.0.2 install

Posted by Jochen Kempf <jo...@gmail.com>.
Hi Paul,

I tried to fix by uninstalling xulrunner-2.0 and reinstalling
xulrunner-1.9.2.17

Running xulrunner -v shows "xulrunner-1.9.2.17", but the make still fails
with
"couchjs-http.o: In function `status':
http.c:(.text+0x78d): undefined reference to `INT_FITS_IN_JSVAL'
collect2: ld returned 1 exit status"


Where can I find the downstream patch?



2011/5/3 Paul Davis <pa...@gmail.com>

> On Tue, May 3, 2011 at 6:31 PM, Jochen Kempf <jo...@gmail.com>
> wrote:
> > Hi,
> >
> > after upgrading to Ubuntu 11.0.4 I cannot use an installed Couchdb 1.0.2
> > anymore.
> >
> > There is simply no http connection possible on localhost to
> > http://localhost:5984/
> >
> > Trying to reinstall couchdb fails with undefined reference to
> > `JS_GetStringChars'
> > couchjs-utf8.o: In function `enc_string':
> > /apache-couchdb-1.0.2/src/couchdb/priv/couch_js/utf8.c:132: undefined
> > reference to `JS_GetStringChars'
> >
> > I have no idea what to do to get CouchDB running again.
> >
> > Anyone can help me?
> >
>
> The version of Spidermonkey in 11.04 isn't officially supported in
> CouchDB trunk yet. Ubuntu has a downstream patch that fixes it.
>
> This is near the top of my todo list to get fixed so keep a look out for
> that.
>

Re: Ubuntu 11.0.4 crashes Couchdb 1.0.2 install

Posted by Paul Davis <pa...@gmail.com>.
On Tue, May 3, 2011 at 6:31 PM, Jochen Kempf <jo...@gmail.com> wrote:
> Hi,
>
> after upgrading to Ubuntu 11.0.4 I cannot use an installed Couchdb 1.0.2
> anymore.
>
> There is simply no http connection possible on localhost to
> http://localhost:5984/
>
> Trying to reinstall couchdb fails with undefined reference to
> `JS_GetStringChars'
> couchjs-utf8.o: In function `enc_string':
> /apache-couchdb-1.0.2/src/couchdb/priv/couch_js/utf8.c:132: undefined
> reference to `JS_GetStringChars'
>
> I have no idea what to do to get CouchDB running again.
>
> Anyone can help me?
>

The version of Spidermonkey in 11.04 isn't officially supported in
CouchDB trunk yet. Ubuntu has a downstream patch that fixes it.

This is near the top of my todo list to get fixed so keep a look out for that.