全网首发:编译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博客

相关推荐
Bruce_Liuxiaowei11 小时前
SSH主机密钥验证失败(Host key verification failed)深度解析与解决方案
运维·网络·ssh
CCI34412 小时前
Remote ssh无法连接?
运维·ssh
张童瑶1 天前
Linux SSH隧道代理转发及多层转发
linux·运维·ssh
m0_738120722 天前
应急响应——知攻善防蓝队靶机Web-1溯源过程
前端·网络·python·安全·web安全·ssh
qinyia2 天前
通过 Wisdom SSH AI 助手部署和配置 Nginx Web 服务器
人工智能·nginx·ssh
Trouvaille ~2 天前
【LInux】进程程序替换与shell实现:从fork到exec的完整闭环
linux·运维·c语言·c++·ssh·进程替换·基础入门
秦时明月天明3 天前
GitLab SSH Key 过期:git pull failed : remote your ssh key has expired
git·ssh·gitlab
白里透白的小白4 天前
复盘 Git+GitHub SSH 配置:从权限报错到免密推送的全流程解决方案
git·ssh·github·版本控制
西京刀客4 天前
Mac下ssh终端之iTerm2 (Oh My Zsh + powerlevel10k)
运维·macos·ssh·iterm2
jimy14 天前
在一台电脑上生成多个ssh公钥并添加到不同GitHub账号
运维·ssh·github