/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
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
I finally found this post http://comments.gmane.org/gmane.comp.db.couchdb.user/12524.
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.