On Sat, 26 May 2018 09:39:13 +0200, Sönke Ludwig wrote:
Am 25.05.2018 um 23:59 schrieb Carl Sturtivant:
Just made the hello project
dub init hello --type:vibe.d.
I do have libssl-dev installed: 1.1.0g-2ubuntu4 the default for Ubuntu 18.04 which I had to install explicitly, else linking failed saying libssl and libcrypto could not be found.
Everything builds with dmd 2.080.0, but linking fails as below. Please help.
Linking... ../../../.dub/packages/vibe-d-0.8.3/vibe-d/tls/.dub/build/openssl-debug-linux.posix-x86_64-dmd_2080-3B2D6460E8C1CDAAD90DC538F2C96CA8/libvibe-d_tls.a(openssl_f0_569.o): In function `_D4vibe6stream7openssl14OpenSSLContext6__ctorMFNfEQBwQBu3tls14TLSContextKindEQCxQCvQBb10TLSVersionZ9__lambda3MFNbNeZv': /home/carl/Documents/vibed/hello/../../../.dub/packages/vibe-d-0.8.3/vibe-d/tls/vibe/stream/openssl.d:467: undefined reference to `SSLv23_client_method' (...)
Ubuntu 18.04 has switched to OpenSSL 1.1.x, which means that the
corresponding "openssl-1.1" configuration of vibe-d:tls now needs to be
selected. There are two possible ways, using the command line or using
the package recipe.
The command line way is "dub --override-config=vibe-d:tls/openssl-1.1",
using the package recipe is described in the [HTTPS section of the
docs]. For public packages I'd recommend to stick with the command
line switch, so that the end user keeps the full flexibility, whereas
for closed environments using the package recipe is absolutely fine.
My plan is to make 1.1 the default with the 0.8.5 release, so that there
is still some time for derived distros to catch up (and for more people
Thanks, I'm really happy that OpenSSL 1.1.x is already currently supported.