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
gRPC doesn't build with OpenSSL anymore - under Debian only. #10589
Comments
The problem is that this version of debian ships with OpenSSL 1.1 which has breaking changes in the API. See https://wiki.openssl.org/index.php/OpenSSL_1.1.0_Changes#Downloads If we want to support both 1.0.2 and 1.1, we need to link with an API compatibility layer that can be downloaded here: https://wiki.openssl.org/images/e/ed/Openssl-compat.tar.gz @nicolasnoble, do you have a strong opinion on what to do here? 1.1 has also deprecated other functions that we are using and causing some errors:
|
Hm, well, yes, we'd need to make it work for both OpenSSL 1.0.x and 1.1.x. I'm glad we've caught that early, because this will become a broader issue later on, especially with other build systems such as node.js. Did they really break the API in a minor release ? That's... unfortunate. Isn't there any way to do anything that would work for both ? In worst case scenario, the compatibility layer may be a bit bloated, but fortunately, is easy to implement ourselves. The |
This is also an issue when compiling on Arch linux now. |
Does any workaround exist? Perhaps using OpenSSL 1.0 would be sufficient. @JelteF, I am also on Arch Linux. Did you manage to solve the issue and if yes, how? Thank you! |
I was following this but forgot to mention how I solved. See this for reference. Basically the build becomes:
Hope this'll help! |
Thank you a lot, @giorgioazzinnaro! |
For anyone else who is confused as to why @giorgioazzinnaro's answer is not working, make sure you have pkg-config installed! |
once this is fixed, we'll need a distrib test for this -> anything "supported" that doesn't have a test will be broken in the future. |
…t_verifier.c in order to partially resolve grpc#10589. There are a total of four files require modification and this is the only one in which a wrapper-type function is necessary.
…t_verifier.c in order to partially resolve grpc#10589. There are a total of four files require modification and this is the only one in which a wrapper-type function is necessary.
…d use TLS_*method as appropriate and follow up with a set_min/max version call. TLSv1_2_*methods are deprecated in OpenSSL 1.1. This is part 2 of 2 for addressing grpc#10589
…d use TLS_*method as appropriate and follow up with a set_min/max version call. TLSv1_2_*methods are deprecated in OpenSSL 1.1. This is part 2 of 2 for addressing grpc#10589
…d use TLS_*method as appropriate and follow up with a set_min/max version call. TLSv1_2_*methods are deprecated in OpenSSL 1.1. This is part 2 of 2 for addressing grpc#10589
…d use TLS_*method as appropriate and follow up with a set_min/max version call. TLSv1_2_*methods are deprecated in OpenSSL 1.1. This is part 2 of 2 for addressing grpc#10589
Reproduction steps:
Output:
The text was updated successfully, but these errors were encountered: