[erlang-questions] erlang fails to load crypto on solaris 10 x86_64

Venu Middela <>
Thu Nov 8 05:24:53 CET 2012





Hi All, 


Trying to load crypto module on  solaris 10 x86_64, getting the following error.
I've seen previous posts similar to this one, but none of the solutions/work-arounds provided in those threads helped resolve the error below...recompiled openssl few times with multiple different options, recompiled erlang a few times with different combinations of arguments...
Erlang R15B01 (erts-5.9.1) [source] [64-bit] [smp:2:2] [async-threads:0] [hipe] [kernel-poll:false]Eshell V5.9.1  abort with ^G)1> l(crypto).{error,on_load_failure}=ERROR REPORT==== 7-Nov-2012::22:13:54 ===Unable to load crypto library. Failed with error:"load_failed, Failed to load NIF library: 'ld.so.1: beam.smp: fatal: relocation error: file /usr/local/lib/erlang/lib/crypto-2.1/priv/lib/crypto.so: symbol DES_ede3_cfb_encrypt: referenced symbol not found'"OpenSSL might not be installed on this system.
=ERROR REPORT==== 7-Nov-2012::22:13:54 ===The on_load function for module crypto returned {error,                                                 {load_failed,                                                  "Failed to load NIF library: 'ld.so.1: beam.smp: fatal: relocation error: file /usr/local/lib/erlang/lib/crypto-2.1/priv/lib/crypto.so: symbol DES_ede3_cfb_encrypt: referenced symbol not found'"}} 2> q().

here are ldd and file outputs for crypto.so
/usr/local/lib/erlang/lib/crypto-2.1/priv/lib# ldd crypto.so         libcrypto.so.0.9.7 =>    /usr/sfw/lib/64/libcrypto.so.0.9.7        libssl.so.0.9.7 =>       /usr/sfw/lib/64/libssl.so.0.9.7        libc.so.1 =>     /lib/64/libc.so.1        libsocket.so.1 =>        /lib/64/libsocket.so.1        libnsl.so.1 =>   /lib/64/libnsl.so.1        libmp.so.2 =>    /lib/64/libmp.so.2        libmd.so.1 =>    /lib/64/libmd.so.1        libscf.so.1 =>   /lib/64/libscf.so.1        libdoor.so.1 =>  /lib/64/libdoor.so.1        libuutil.so.1 =>         /lib/64/libuutil.so.1        libgen.so.1 =>   /lib/64/libgen.so.1        libcrypto_extra.so.0.9.7 =>      /usr/sfw/lib/amd64/libcrypto_extra.so.0.9.7        libssl_extra.so.0.9.7 =>         /usr/sfw/lib/amd64/libssl_extra.so.0.9.7        libm.so.2 =>     /lib/64/libm.so.2

#file /usr/local/lib/erlang/lib/crypto-2.1/priv/lib# ldd crypto.so /usr/local/lib/erlang/lib/crypto-2.1/priv/lib/crypto.so:        ELF 64-bit LSB dynamic lib AMD64 Version 1, dynamically linked, not stripped

any ideas how to load crypto on 64bit Erlang R15B01 on solaris10x86_64.
Thanks,Venu

 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20121107/ba8f322c/attachment.html>


More information about the erlang-questions mailing list