You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@couchdb.apache.org by Mehdi El Fadil <me...@mango-is.com> on 2011/02/22 19:34:10 UTC

couchdb 1.0.2 source compilation problem in debian squeeze

Hello,

I have a problem installing couchdb 1.0.2 On Crunchbang linux (based on
Debian Squeeze, pretty much the same).

Few weeks ago installing same couchdb version in a virtual machine with the
same system went very fine, following instructions from the couchdb
guide<http://guide.couchdb.org/editions/1/en/source.html>
.

Today, just few updates away, the 'make' step fails, this happens in two
machines with the same distro on it. Here is part of the output of the
command, the full log is attached.

> couchjs-http.o: In function `status':
> /home/c-user/downloads/apache-couchdb-1.0.2/src/couchdb/priv/couch_js/http.c:289:
> undefined reference to `INT_FITS_IN_JSVAL'
> couchjs-main.o: In function `seal':
> /home/c-user/downloads/apache-couchdb-1.0.2/src/couchdb/priv/couch_js/main.c:209:
> undefined reference to `JS_SealObject'
> couchjs-main.o: In function `readfp':
> /home/c-user/downloads/apache-couchdb-1.0.2/src/couchdb/priv/couch_js/main.c:134:
> undefined reference to `js_fgets'
> couchjs-main.o: In function `evalcx':
> /home/c-user/downloads/apache-couchdb-1.0.2/src/couchdb/priv/couch_js/main.c:62:
> undefined reference to `JS_GetStringChars'
> couchjs-utf8.o: In function `enc_string':
> /home/c-user/downloads/apache-couchdb-1.0.2/src/couchdb/priv/couch_js/utf8.c:132:
> undefined reference to `JS_GetStringChars'
> collect2: ld returned 1 exit status
> make[4]: *** [couchjs] Error 1
> make[4]: Leaving directory
> `/home/c-user/downloads/apache-couchdb-1.0.2/src/couchdb/priv'
> make[3]: *** [all-recursive] Error 1
> make[3]: Leaving directory
> `/home/c-user/downloads/apache-couchdb-1.0.2/src/couchdb'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory
> `/home/c-user/downloads/apache-couchdb-1.0.2/src'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/c-user/downloads/apache-couchdb-1.0.2'
> make: *** [all] Error 2
>

The closest situation that I have found online is the following, but I am
not sure that the proposed solution (related to js-1.7.0 from mozilla) would
work in my case.
http://web.archiveorange.com/archive/v/oW6Dz2nhI12VkIEAOUzB

Has anyone got an idea about a possible solution?

Thanks in advance for your help,

mehdi

P.S.: this is my first post here, but I am following the mailing lists since
some weeks already. thanks all for the precious information that you give
here. and congrats to the devs, couchdb looks great.

Re: couchdb 1.0.2 source compilation problem in debian squeeze

Posted by Anup Bishnoi <pi...@gmail.com>.
Weird. Does anyone know why this could be so

On Thu, Feb 24, 2011 at 2:46 AM, Mehdi El Fadil
<me...@mango-is.com>wrote:

> Hi,
>
> thanks all for your tips.
>
> neither the extra installs nor the build-dep did not work for me but I
> found
> the cause of my problems: firefox 4 beta. After removing it completely i
> could compile with no problem.
>

Re: couchdb 1.0.2 source compilation problem in debian squeeze

Posted by Mehdi El Fadil <me...@mango-is.com>.
Hi,

thanks all for your tips.

neither the extra installs nor the build-dep did not work for me but I found
the cause of my problems: firefox 4 beta. After removing it completely i
could compile with no problem.

Re: couchdb 1.0.2 source compilation problem in debian squeeze

Posted by Wayne Conrad <wc...@yagni.com>.
On Debian... um, whatever "testing" is called these days, this worked 
for me:

$ apt-get build-dep couchdb

That gets you all the goodies needed to build a package.  After that, 
1.0.2 compiled fine.

Re: couchdb 1.0.2 source compilation problem in debian squeeze

Posted by Aravinda VK <ha...@gmail.com>.
For me, following worked in Debian squeeze for Couchdb 1.0.2

apt-get install libcurl4-openssl-dev libicu-dev spidermonkey-bin
libmozjs-dev

then try configure;make;make install

On Wed, Feb 23, 2011 at 12:04 AM, Mehdi El Fadil <mehdi.elfadil@mango-is.com
> wrote:

> Hello,
>
> I have a problem installing couchdb 1.0.2 On Crunchbang linux (based on
> Debian Squeeze, pretty much the same).
>
> Few weeks ago installing same couchdb version in a virtual machine with the
> same system went very fine, following instructions from the couchdb guide<http://guide.couchdb.org/editions/1/en/source.html>
> .
>
> Today, just few updates away, the 'make' step fails, this happens in two
> machines with the same distro on it. Here is part of the output of the
> command, the full log is attached.
>
>> couchjs-http.o: In function `status':
>> /home/c-user/downloads/apache-couchdb-1.0.2/src/couchdb/priv/couch_js/http.c:289:
>> undefined reference to `INT_FITS_IN_JSVAL'
>> couchjs-main.o: In function `seal':
>> /home/c-user/downloads/apache-couchdb-1.0.2/src/couchdb/priv/couch_js/main.c:209:
>> undefined reference to `JS_SealObject'
>> couchjs-main.o: In function `readfp':
>> /home/c-user/downloads/apache-couchdb-1.0.2/src/couchdb/priv/couch_js/main.c:134:
>> undefined reference to `js_fgets'
>> couchjs-main.o: In function `evalcx':
>> /home/c-user/downloads/apache-couchdb-1.0.2/src/couchdb/priv/couch_js/main.c:62:
>> undefined reference to `JS_GetStringChars'
>> couchjs-utf8.o: In function `enc_string':
>> /home/c-user/downloads/apache-couchdb-1.0.2/src/couchdb/priv/couch_js/utf8.c:132:
>> undefined reference to `JS_GetStringChars'
>> collect2: ld returned 1 exit status
>> make[4]: *** [couchjs] Error 1
>> make[4]: Leaving directory
>> `/home/c-user/downloads/apache-couchdb-1.0.2/src/couchdb/priv'
>> make[3]: *** [all-recursive] Error 1
>> make[3]: Leaving directory
>> `/home/c-user/downloads/apache-couchdb-1.0.2/src/couchdb'
>> make[2]: *** [all-recursive] Error 1
>> make[2]: Leaving directory
>> `/home/c-user/downloads/apache-couchdb-1.0.2/src'
>> make[1]: *** [all-recursive] Error 1
>> make[1]: Leaving directory `/home/c-user/downloads/apache-couchdb-1.0.2'
>> make: *** [all] Error 2
>>
>
> The closest situation that I have found online is the following, but I am
> not sure that the proposed solution (related to js-1.7.0 from mozilla) would
> work in my case.
> http://web.archiveorange.com/archive/v/oW6Dz2nhI12VkIEAOUzB
>
> Has anyone got an idea about a possible solution?
>
> Thanks in advance for your help,
>
> mehdi
>
> P.S.: this is my first post here, but I am following the mailing lists
> since some weeks already. thanks all for the precious information that you
> give here. and congrats to the devs, couchdb looks great.
>



-- 
Regards
Aravinda | ಅರವಿಂದ
http://aravindavk.in