[OpenIndiana-discuss] Building couchdb

Moinak Ghosh moinakg at belenix.org
Sat Nov 6 04:47:13 UTC 2010


On Sat, Nov 6, 2010 at 2:33 AM, Paul Johnston
<Paul.A.Johnston at manchester.ac.uk> wrote:
>  Hi
> Continuing my attempt to build couchdb.
> Just wondering if anyone has sucessfully built it on OpenIndiana?
> I've got it to build but running it I get:
>
> paulj at openindiana:~/Downloads/apache-couchdb-1.0.1$ pfexec
> /usr/local/bin/couchdb
> Apache CouchDB 1.0.1 (LogLevel=info) is starting.
>
...
> =INFO REPORT==== 5-Nov-2010::20:57:50 ===
>    application: couch
>    exited: {bad_return,{{couch_app,start,
>                                    [normal,
>                                     ["/usr/local/etc/couchdb/default.ini",
>                                      "/usr/local/etc/couchdb/local.ini"]]},
>                         {'EXIT',"ld.so.1: beam.smp: fatal: relocation error:
> file /usr/lib/libicuuc.so.40: symbol __1cG__CrunKpure_error6F_v_: referenced
> symbol not found"}}}
>    type: temporary
>
> Now it seems I'm really close but there seems to be a problem with libicuuc
> I got icu from:
> 499  pfexec pkg install library/icu
> 500  pfexec pkg install developer/icu
>
> Love the message CrunKpure :-)
> Any thoughts?
>

   That is a symbol from SUN Studio's C++ runtime lib:
   echo "__1cG__CrunKpure_error6F_v_" | /opt/SUNWspro/bin/c++filt
   void __Crun::pure_error()

   /usr/bin/nm /usr/lib/libCrun.so.1 | grep __1cG__CrunKpure_error6F_v_
   [365]	|     30008|        47|FUNC |GLOB |0    |12
|__1cG__CrunKpure_error6F_v_

   This looks like libicuuc is not linked properly. Since CouchDB is in
   Erlang as a workaround you can preload that library via this env
   variable:
   LD_PRELOAD=/usr/lib/libCrun.so.1

Regards,
Moinak.
-- 
================================
http://www.belenix.org/
http://moinakg.wordpress.com/



More information about the OpenIndiana-discuss mailing list