Re: Erlang 17.3: can't load crypto library on OSX Lion

Nicolas Charpentier <[email protected]>
Newsgroups gmane.comp.lang.erlang.bugs
Message-ID <[email protected]>
Hi Ali,

> Hi all,
>
> It looks like the crypto application in Erlang/OTP 17.3 fails on OSX Lion
> as described here:
> https://trac.macports.org/ticket/45114
> https://github.com/Homebrew/homebrew/pull/32363
>
> Any input on why this would happen?

It might be a problem related to the version of openssl used during the
link of crypto.so.

I can reproduce it on Maverick.
crypto refuses to start with libcrypto.0.9.8 is used, but start correctly
with libcrypto.1.0.0

Either it's a compilation problem (mismatch of the header used for the
compilation and the lib used to link) or a dependency on openssl 1.0.0 has
been introduced in 17.3

You can see the lib dynamique used by crypto.so with
dyldinfo -dylibs $ROOT/lib/crypto-3.4/priv/lib/crypto.so

When it doesn't work, it depends on /usr/lib/libcrypto.0.9.8.dylib

You can change this dependency with ( the example assumes macport to be
installed)
install_name_tool -change /usr/lib/libcrypto.0.9.8.dylib
/opt/local/lib/libcrypto.1.0.0.dylib
$ROOT/lib/crypto-3.4/priv/lib/crypto.so

Hope it helps

/Nicolas



_______________________________________________
erlang-bugs mailing list
[email protected]
http://erlang.org/mailman/listinfo/erlang-bugs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.