facebook / wangle

Wangle is a framework providing a set of common client/server abstractions for building services in a consistent, modular, and composable way.
Apache License 2.0
3.04k stars 536 forks source link

Build failure #101

Closed lizhanhui closed 6 years ago

lizhanhui commented 7 years ago

Hey, the master code fails to build on Mac.

[ 56%] Linking CXX executable bin/SSLContextManagerTest
Undefined symbols for architecture x86_64:
  "_X509_get_signature_nid", referenced from:
      wangle::SSLContextManager::insert(std::__1::shared_ptr<wangle::ServerSSLContext>, bool, wangle::SSLContextManager::SslContexts&) in libwangle.a(SSLContextManager.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)
make[2]: *** [bin/SSLContextManagerTest] Error 1
make[1]: *** [CMakeFiles/SSLContextManagerTest.dir/all] Error 2
make: *** [all] Error 2

Version of clang is:

Apple LLVM version 8.1.0 (clang-802.0.42)
Target: x86_64-apple-darwin16.6.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
tian-yuan commented 6 years ago

recompile openssl with ./Configure darwin64-x86_64-cc

yfeldblum commented 6 years ago

Possibly this issue: https://github.com/phpbrew/phpbrew/issues/947.