OpenSSLCrypto: Undefined symbols for architecture x86_64: "_OSSL_PROVIDER_load"

29 Views Asked by At

I got this error running cmake and make installing azerothcore.

Undefined symbols for architecture x86_64:
  "_OSSL_PROVIDER_load", referenced from:
      OpenSSLCrypto::threadsSetup() in libcommon.a(OpenSSLCrypto.cpp.o)
  "_OSSL_PROVIDER_set_default_search_path", referenced from:
      OpenSSLCrypto::threadsCleanup() in libcommon.a(OpenSSLCrypto.cpp.o)
  "_OSSL_PROVIDER_unload", referenced from:
      OpenSSLCrypto::threadsCleanup() in libcommon.a(OpenSSLCrypto.cpp.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
1

There are 1 best solutions below

0
Stefano Borzì On BEST ANSWER

I've solved it with the following steps:

  • remove all the references about openssl from .bash_profile
  • uninstall all the openssl versions
  • install openssl@3 using brew install openssl@3
  • run cmake again