Friday, August 19, 2011

Compiling CouchDB

So I was getting my geek on and trying to compile the latest version of CouchDB on my linux box and I kept running into a problem.

/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


At the bottom the user mentions that he uninstalls Firefox 4 and it works. It seems that it is because Firefox 4 brings in a newer version of SpiderMonkey that was causing the compile to fail. The library that was causing the issue is libmozjs4d. Once I uninstalled this version of SpiderMonkey everything compiled fine.


No comments:

Post a Comment