全网首发:编译libssh,产生类似undefined reference to `EVP_aes_256_ctr@OPENSSL_1_1_0‘的大量错误

具体错误

前面和后面的:

复制代码
/opt/linux/x86-arm/aarch64-mix210-linux/host_bin/../lib/gcc/aarch64-linux-gnu/7.3.0/../../../../aarch64-linux-gnu/bin/ld: warning: libcrypto.so.1.1, needed by ../lib/libssh.so.4.10.1, not found (try using -rpath or -rpath-link)
/opt/linux/x86-arm/aarch64-mix210-linux/host_bin/../lib/gcc/aarch64-linux-gnu/7.3.0/../../../../aarch64-linux-gnu/bin/ld: warning: libz.so.1, needed by ../lib/libssh.so.4.10.1, not found (try using -rpath or -rpath-link)
/opt/linux/x86-arm/aarch64-mix210-linux/host_bin/../lib/gcc/aarch64-linux-gnu/7.3.0/../../../../aarch64-linux-gnu/bin/ld: ../lib/libssh.so.4.10.1: undefined reference to `EVP_MD_CTX_free@OPENSSL_1_1_0'
/opt/linux/x86-arm/aarch64-mix210-linux/host_bin/../lib/gcc/aarch64-linux-gnu/7.3.0/../../../../aarch64-linux-gnu/bin/ld: ../lib/libssh.so.4.10.1: undefined reference to `EVP_DecryptFinal@OPENSSL_1_1_0'
......
/opt/linux/x86-arm/aarch64-mix210-linux/host_bin/../lib/gcc/aarch64-linux-gnu/7.3.0/../../../../aarch64-linux-gnu/bin/ld: ../lib/libssh.so.4.10.1: undefined reference to `EVP_CipherInit_ex@OPENSSL_1_1_0'
/opt/linux/x86-arm/aarch64-mix210-linux/host_bin/../lib/gcc/aarch64-linux-gnu/7.3.0/../../../../aarch64-linux-gnu/bin/ld: ../lib/libssh.so.4.10.1: undefined reference to `EC_KEY_get0_public_key@OPENSSL_1_1_0'
/opt/linux/x86-arm/aarch64-mix210-linux/host_bin/../lib/gcc/aarch64-linux-gnu/7.3.0/../../../../aarch64-linux-gnu/bin/ld: ../lib/libssh.so.4.10.1: undefined reference to `EVP_aes_256_ctr@OPENSSL_1_1_0'
collect2: error: ld returned 1 exit status
make[2]: *** [examples/CMakeFiles/libssh_scp.dir/build.make:146: examples/libssh_scp] Error 1
make[1]: *** [CMakeFiles/Makefile2:252: examples/CMakeFiles/libssh_scp.dir/all] Error 2
make: *** [Makefile:156: all] Error 2
  • 解决办法

warning: libcrypto.so.1.1, needed by ../lib/libssh.so.4.10.1, not found (try using -rpath or -rpath--CSDN博客

相关推荐
fei_sun8 小时前
获取ssh密钥
运维·ssh
java搬砖工-苤-初心不变10 小时前
解决 Go 模块与 GitLab 私有仓库权限问题:SSH、HTTPS 和自动认证指南
golang·ssh·gitlab
盗理者15 小时前
在win11 环境下 新安装 WSL ubuntu + 换国内镜像源 + ssh + 桌面环境 + Pyhton 环境 + vim 设置插件安装
ubuntu·ssh·vim
佩奇的技术笔记16 小时前
技巧:使用 ssh 设置隧道代理访问 github
运维·ssh·github
java搬砖工-苤-初心不变20 小时前
解决 Git 通过 SSH 克隆仓库时自动转换为 HTTPS 的问题
git·https·ssh
@BreCaspian1 天前
生成 SSH Key 并配置 GitHub/GitLab 详细教程
ssh·gitlab·github
水星灭绝2 天前
orangepi zero烧录及SSH联网
运维·ssh
CZIDC3 天前
win11 系统环境下 新安装 WSL ubuntu + ssh + gnome 桌面环境
数据库·ubuntu·ssh
wangjun51593 天前
jenkins 参数化发布到服务器 publish over ssh、label、Parameterized publishing
服务器·ssh·jenkins
只是橘色仍温柔4 天前
xshell可以ssh连接,但vscode不行
运维·vscode·ssh