vibe-d/vibe.d

build fails linking ssl - mac

samlotti opened this issue · 1 comments

Hi,

I'm trying to run vibe.d from basic install.

using:

dub init hello --type=vibe.d

"dependencies": {
	"vibe-d": "~>0.9"
},

dub

    Linking hello
Undefined symbols for architecture x86_64:
  "_ERR_new", referenced from:
      __D4vibe6stream7openssl11setSSLErrorFNbNeAyaQdiQgZv in libvibe-d_tls.a(openssl_1d8_448.o)
  "_ERR_set_debug", referenced from:
      __D4vibe6stream7openssl11setSSLErrorFNbNeAyaQdiQgZv in libvibe-d_tls.a(openssl_1d8_448.o)
  "_ERR_set_error", referenced from:
      __D4vibe6stream7openssl11setSSLErrorFNbNeAyaQdiQgZv in libvibe-d_tls.a(openssl_1d8_448.o)
  "_SSL_get1_peer_certificate", referenced from:
      __D4vibe6stream7openssl13OpenSSLStream6__ctorMFNfSQBv8internal14interfaceproxy__T14InterfaceProxyTCQDs4coreQDv6StreamZQBlCQEpQEnQEj14OpenSSLContextEQFpQFn3tls14TLSStreamStateAyaSQGtQDb3net14NetworkAddressAQBfZ10__lambda18MFNbNeZPS6deimosQIo5types7x509_st in libvibe-d_tls.a(openssl_1cb_4f0.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Error: linker exited with status 1
Error /Library/D/dmd/bin/dmd failed with exit code 1.

open ssl on mac:
LibreSSL 2.8.3

dub --version
DUB version 1.33.1, built on Jul 15 2023

dmd --version
DMD64 D Compiler v2.104.2

macOS Menterey
Version 12.6.4

Any help appreciated,
Thank you
-Sam

I did getting it linked using:
dub --override-config vibe-d:tls/openssl-1.1