Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build failure on Mac #127

Open
sudison opened this issue Apr 12, 2018 · 2 comments
Open

Build failure on Mac #127

sudison opened this issue Apr 12, 2018 · 2 comments

Comments

@sudison
Copy link

sudison commented Apr 12, 2018

Build failure with the following message:

Undefined symbols for architecture x86_64:
"_X509_get_signature_nid", referenced from:
wangle::SSLContextManager::insert(std::__1::shared_ptrwangle::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)

The solution is to specify correct openssl directory, such as:

cmake -DOPENSSL_ROOT_DIR=/usr/local/opt/openssl -DOPENSSL_LIBRARIES=/usr/local/opt/openssl/lib/

@brefsdal
Copy link

This is fixed using openssl-1.0.2+. Wangle builds for me on OSX using openssl-1.0.2o and the cmake command above.

@kivikakk
Copy link

This worked for me, but I had to clean the environment first (git clean -fdx) before I'd stop getting the error, despite running cmake. Left over object files, I guess.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants