Opened 7 years ago

Last modified 6 years ago

#56261 assigned defect

erlang: file not found: /opt/local/lib/libcrypto.1.0.0.dylib

Reported by: conradwt (Conrad Taylor) Owned by: ci42
Priority: Normal Milestone:
Component: ports Version: 2.4.2
Keywords: Cc:
Port: erlang

Description

When I attempt to install "sudo port install erlang +hipe +ssl +wxwidgets", the build fails with the following error message:

file not found: /opt/local/lib/libcrypto.1.0.0.dylib

After doing some research, I can only find the following libraries within /opt/local/lib:

-rw-r--r--     1 root      admin    1444468 Nov  9 18:38 libcrypto.42.dylib
-rw-r--r--     1 root      admin    2686960 Nov  9 18:38 libcrypto.a
lrwxr-xr-x     1 root      admin         18 Nov  9 18:38 libcrypto.dylib -> libcrypto.42.dylib

Attachments (1)

main.log (360.3 KB) - added by conradwt (Conrad Taylor) 7 years ago.
erlang 20.3 build error

Download all attachments as: .zip

Change History (3)

Changed 7 years ago by conradwt (Conrad Taylor)

Attachment: main.log added

erlang 20.3 build error

comment:1 Changed 7 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ci42 removed
Owner: set to ci42
Status: newassigned
Summary: file not found: /opt/local/lib/libcrypto.1.0.0.dyliberlang: file not found: /opt/local/lib/libcrypto.1.0.0.dylib

Looks like you have libressl installed instead of openssl. MacPorts currently uses openssl by default but allows libressl to be used instead. Most ports that use the openssl api should support either openssl or libressl, but sometimes there are problems. In this case, the problem might be that one of erlang's dependencies uses openssl, and the version of that dependency that you have installed was built using openssl not libressl, either because you received a binary from our build server, or because you built and installed it while openssl was installed on your system and you later deactivated openssl and installed libressl in its place. Usually the MacPorts "rev-upgrade" feature automatically detects any such problems and rebuilds any affected ports, but in this case the problem may not have been detected. So we need to figure out which of erlang's dependencies is the culprit and why it wasn't rebuilt.

The log you attached does not show as much detail as I would like because erlang's build system uses silent rules. The erlang port should disable silent rules in the build system. Until the maintainer makes that change, you can achieve the equivalent by running:

sudo port clean erlang
sudo port install erlang +hipe +ssl +wxwidgets configure.post_args=--disable-silent-rules

If you attach the new main.log after doing that, it might help us diagnose the problem better.

comment:2 Changed 6 years ago by conradwt (Conrad Taylor)

This issue has been resolved by replacing LibreSSL with OpenSSL.

Note: See TracTickets for help on using tickets.