-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
Fix openssl1.1.1 problem #56366
Fix openssl1.1.1 problem #56366
Conversation
你的PR提交成功,感谢你对开源项目的贡献! |
❌ The PR is not created using PR's template. You can refer to this Demo. |
eca3481
to
8559059
Compare
… fix_openssl_bug
…e/Paddle into fix_openssl_bug
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This reverts commit 422a565.
* fix openssl bug * fix openssl bug * fix openssl bug * test * upgrade openssl version * fix * fix * update * fix openssl bug * fix * Update ci_dockerfile.sh --------- Co-authored-by: YUNSHEN XIE <1084314248@qq.com>
PR types
Bug fixes
PR changes
Others
Description
背景:

PR50791之前为了在镜像里打入python3.10,python3.11,将镜像里的Openssl从1.0.2升级到1.1.1会导致一些本地openssl不是1.1.1的用户在import paddle时候报错如下:
导致的问题
升级之后libpaddle.so依赖了libssl.so1.1.1和libcrypto.so

原因
第三方库第三方库brpc.cmake中find_package(OPENSSL)在openssl1.0.2时得到的是静态库,升级为1.1.1后得到的是动态库libssl.so,故导致libpaddle.so link了libssl.so
解决办法:
解除依赖,用find_library找到libssl.a和libcrypto.a代替libssl.so和libcrypto.so