RejectedSoftware Forums

Sign up

Use LibreSSL instead of OpenSSL

Hi, I'm trying to use vibe.d in order to connect to MongoDB.

When building a vibe.d project with DUB I get the following error:

Linking...
ld: warning: directory not found for option '-L/usr/local/opt/openssl/lib'
ld: library not found for -lssl
clang: error: linker command failed with exit code 1 (use -v to see invocation)

I checked my computer (macOS High Sierra 10.13.6) and I have installed LibreSSL 2.2.7 rather than OpenSSL.

Therefore I would like to link LibreSSL to vibe.d if possible.

Re: Use LibreSSL instead of OpenSSL

On Sat, 14 Jul 2018 16:55:41 GMT, Ivo wrote:

Hi, I'm trying to use vibe.d in order to connect to MongoDB.

When building a vibe.d project with DUB I get the following error:

Linking...
ld: warning: directory not found for option '-L/usr/local/opt/openssl/lib'
ld: library not found for -lssl
clang: error: linker command failed with exit code 1 (use -v to see invocation)

I checked my computer (macOS High Sierra 10.13.6) and I have installed LibreSSL 2.2.7 rather than OpenSSL.

Therefore I would like to link LibreSSL to vibe.d if possible.

I'm not sure how much the relevant APIs have been changed in LibreSSL, but the main obstacle is likely to get a set of bindings ready, unless LibreSSL has significantly simplified their code base. OpenSSL at least has always been rather painful in that regard.

I've opened a ticket so that this doesn't get lost: #2192