[MacPorts] #45114: erlang @17.3_0+hipe+ssl: can't load crypto library

MacPorts noreply at macports.org
Wed May 13 13:26:17 PDT 2015


#45114: erlang @17.3_0+hipe+ssl: can't load crypto library
-----------------------+-------------------------
  Reporter:  dedalo@…  |      Owner:  ciserlohn@…
      Type:  defect    |     Status:  new
  Priority:  Normal    |  Milestone:
 Component:  ports     |    Version:  2.3.1
Resolution:            |   Keywords:
      Port:  erlang    |
-----------------------+-------------------------

Comment (by zany_macports@…):

 Seems to be a conflict when loading the native libs from the NIF. I
 enabled debug output and got

 > CRYPTO: INCOMPATIBLE SSL VERSION lib=90819f header=1000201f

 Looks to me that the Erlang port compiled against the OpenSSL port
 (@1.0.2a) but somehow pulls in the old pre-installed version (0.9.8).

 Setting DYLD_PRINT_LIBRARIES I see that the NIF
 /opt/local/lib/erlang/lib/crypto-3.5/priv/lib/crypto.so pulls in
 /opt/local/lib/libcrypto.1.0.0.dylib as wanted.
 However the Eshell pulls in /usr/lib/libcrypto.0.9.8.dylib way before that
 point and that takes precedence.

 A quick check shows ApplicationServices framework, PasswordServer
 framework, and libsasl linking in the old version. Well no way around that
 then.

 My ''Solution'' here is to hide the current OpenSSL (i.e. move the
 pkgconfig -- you might be better off to uninstall but there are a lot of
 ports dependent on OpenSSL...) then install Erlang from source (-s flag).

 A slightly better fix might be to change the port to compile Erlang
 against the pre-installed system version of OpenSSL always.

-- 
Ticket URL: <https://trac.macports.org/ticket/45114#comment:8>
MacPorts <https://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list