[erlang-questions] Can't load crypto module after installing R15 in Solaris 10 x86
claudef@REDACTED
claudef@REDACTED
Mon Apr 30 19:38:13 CEST 2012
Dear Erisa,
I've just finished to build the Riak, Erlang from its source under a SUSE
LINUX on a S390 machine, now having the crypto support. In order to make
it work, I needed to download the source of the OpenSSL package and
rebuild it completely. I also needed to add some flags for "gcc" compiler
to allow a successful build as the standard Erlang build showed some
conflicts with shared modules.
This is what I did during the OpenSSL install:
./config no-shared
This is what I did during the Erlang install:
export CFLAGS="$CFLAGS -fPIC"
export CXXFLAGS="$CXXFLAGS -fPIC"
export CC="gcc -fPIC"
./configure --with-ssl --with-ssl-lib=SSL_LIBRARY_PATH
Yes, the conflict showed up in the crypto module,
Not sure, if it applies to the Sun environment. but give it a trial,
Regards,
Claude
Claude Falbriard
Certified IT Specialist L2 - Middleware
AMS Hortolândia / SP - Brazil
phone: +55 19 9837 0789
cell: +55 13 8117 3316
e-mail: claudef@REDACTED
From: Erisa Dervishi <erisa85d@REDACTED>
To: erlang-questions@REDACTED
Date: 30/04/2012 14:17
Subject: [erlang-questions] Can't load crypto module after
installing R15 in Solaris 10 x86
Sent by: erlang-questions-bounces@REDACTED
Hi all,
I have installed Erlang OTP R15, in Solaris 10 x86.
When I try to load the crypto module I get the following error:
Erlang R15B (erts-5.9) [source] [smp:16:16] [async-threads:0]
[kernel-poll:false]
Eshell V5.9 (abort with ^G)
1> l(crypto).
=ERROR REPORT==== 30-Apr-2012::16:29:45 ===
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/otp_R15B/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,on_load_failure}
=ERROR REPORT==== 30-Apr-2012::16:29:45 ===
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/otp_R15B/lib/erlang/lib/crypto-2.1/priv/lib/crypto.so: symbol
DES_ede3_cfb_encrypt: referenced symbol not found'"}}
OpenSSL is installed. As suggested in the Erlang documentation, I
installed it from http://www.openssl.org/source/
(version: openssl-0.9.8w.tar.gz)
I tried several suggestions after googling but nothing helped.
Any help to get this straight would be appreciated :)
Thanks,
Erisa
_______________________________________________
erlang-questions mailing list
erlang-questions@REDACTED
http://erlang.org/mailman/listinfo/erlang-questions
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20120430/329b6082/attachment.htm>
More information about the erlang-questions
mailing list