CentOS上编译myget时报SSL错误的解决办法

开发者福利!热门AI工具限时免费用 购周边即赠Coding Plan Lite,Claude Code、Cursor等20+工具畅享,效率翻倍! 阅读详情

      今天在centos上编译myget,报下面的错误:

make  all-recursive
make[1]: Entering directory `/root/soft/myget-0.1.2'
Making all in src
make[2]: Entering directory `/root/soft/myget-0.1.2/src'
g++  -D_FILE_OFFSET_BITS=64   -o mytget  debug.o advio.o tcp.o url.o utils.o block.o header.o plugin.o proxy.o task.o http.o httpplugin.o ftp.o ftpparser.o ftpplugin.o downloader.o myget.o mytget.o progressbar.o  -lpthread
advio.o: In function `IOStream::write(char*, int, long)':
advio.cpp:(.text+0x709): undefined reference to `SSL_write'
advio.o: In function `IOStream::read(char*, int, long)':
advio.cpp:(.text+0x951): undefined reference to `SSL_read'
advio.cpp:(.text+0x983): undefined reference to `SSL_get_error'
advio.o: In function `IOStream::ssl_connect()':
advio.cpp:(.text+0xc8e): undefined reference to `SSL_connect'
advio.cpp:(.text+0xcb1): undefined reference to `SSL_get_error'
advio.o: In function `IOStream::set_fd(int)':
advio.cpp:(.text+0xd22): undefined reference to `SSL_set_fd'
advio.cpp:(.text+0xd30): undefined reference to `SSL_connect'
advio.cpp:(.text+0xd53): undefined reference to `SSL_get_error'
advio.o: In function `IOStream::set_use_ssl(bool)':
advio.cpp:(.text+0xdfb): undefined reference to `SSL_CTX_free'
advio.cpp:(.text+0xe00): undefined reference to `SSLv23_client_method'
advio.cpp:(.text+0xe08): undefined reference to `SSL_CTX_new'
advio.cpp:(.text+0xe1e): undefined reference to `SSL_new'
advio.cpp:(.text+0xe3d): undefined reference to `SSL_set_fd'
advio.cpp:(.text+0xe54): undefined reference to `SSL_shutdown'
advio.cpp:(.text+0xe84): undefined reference to `SSL_CTX_free'
advio.o: In function `IOStream::~IOStream()':
advio.cpp:(.text+0xea5): undefined reference to `SSL_shutdown'
advio.cpp:(.text+0xecb): undefined reference to `SSL_CTX_free'
advio.o: In function `IOStream::~IOStream()':
advio.cpp:(.text+0xef9): undefined reference to `SSL_shutdown'
advio.cpp:(.text+0xf1f): undefined reference to `SSL_CTX_free'
mytget.o: In function `main':
mytget.cpp:(.text+0x2db): undefined reference to `SSL_load_error_strings'
mytget.cpp:(.text+0x2e0): undefined reference to `SSL_library_init'
collect2: ld returned 1 exit status
make[2]: *** [mytget] Error 1
make[2]: Leaving directory `/root/soft/myget-0.1.2/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/soft/myget-0.1.2'
make: *** [all] Error 2

    然后我直接复制里面的g++编译语句,后面加上-lssl, 问题解决。

下载编译安装Apache HTTP Server 2.4.23以及配置HTTP/HTTPS反向代理 一,依赖软件:   - Apache Portable Runtime (APR) 1.5.2 (大小807KB) - Apache Portable Runtime Utility (APR-Util) 1.5.4(大小678KB) - Perl-Compatible Regular Expressions Library (PCRE) 9.39 (大小1.48MB)   如果没 阅读详情

相关推荐

【0096】linux编译OpenSSL库报错:undefined reference to symbol ‘SSLv23_client_method@@OPENSSL_1.0.0‘

OpenSSL是用于传输层安全 (TLS) 协议(以前称为安全套接字层 (SSL) 协议)的强大、商业级、功能齐全的开源工具包。协议实现基于全强度通用密码库,也可以单独使用。openSSL最新的版本是openssl-3.0.4。其下载地址是:https://github.com/openssl/openssl/releases/tag/openssl-3.0.4。...

Postgres 数据库内核开发工程师 2231

apache安装报错undefined reference ssl

apache安装报错undefined reference ssl 因为SSL发现漏洞,需要更换openssl-1.0.1g版本,编译安装后,apache httpd2.4.9提示还是旧版本的SSL,于是重新编译安装apache httpd...

weixin_33708432的博客 2942

【0092】undefined reference to symbol ‘SSLv23_client_method@@OPENSSL_1.0.0‘

最近在升级OpenSSL库的时候,遇到了报错信息: 尝试过很多的方案,包括编译时候添加许多相关的选项参数,然而最终都以失败而告终。通过再三研究,最终解决了这个问题,现在把其解决方案分享给大家。 ...

Postgres 数据库内核开发工程师 1258

undefined reference to `SSL_get_current_cipher\' 链接OpenSSL-lssl

这两天由于工作需要,换了个编译环境,以前是物理机上编译,换到虚拟机上,都是CentOS5.7版本,不知道什么地方不一样,完全相同的工程,换到虚拟机上后链接不过,报错:/usr/lib64/mysql/libmysqlclient.a(client.o): In function `mysql_close_free_options':(.text+0xd1f): undefined referenc

doubleface999的博客 1万+

【已解决】DevC++下配置openssl

配置环境: Windows7 x64,DevC++ 5.11,Win64OpenSSL-1_1_1c 编译时出现如下问题: [Error] openssl/ssl.h: No such file or directory 解决方法: 在DevC++中,工具->编译选项->目录->C包含文件(或C++包含文件),添加如下目录:【openssl安装目录】\include ...

WINGREZ‘S BLOG 7789

linux openssl 编译错误,openssl gcc编译时出错

本人巨新的新手,前来取经~我用的是linux版本是ubuntu9.10gcc版本是4.4.1把openssl头文件放到了usr/include/openssl下libcrpto.a放在home/xiahuangshuai/ssl/lib下在用gcc编译的时候用gccssl_client.c-oclient-lcrypto它报的是/usr/bin/ld:cannotfind-l...

weixin_39919195的博客 5037

openssl编程编译错误undefined reference to `SSL_get1_peer_certificate‘解决方法

问题: [100%] Linking C executable example_ssl_serv CMakeFiles/example_ssl_serv.dir/example_ssl_serv.c.o: In function `main': example_ssl_serv.c:(.text+0x49e): undefined reference to `SSL_get1_peer_certificate' collect2: error: ld returned 1 exit status CMa

sinat_41928334的博客 1万+

linux报错undefined reference to `SSL_CTX_set_alpn_protos‘

…/lib/libmosquitto.so.1: undefined reference to `SSL_CTX_set_alpn_protos’ collect2: error: ld returned 1 exit status make[1]: *** [mosquitto_pub] Error 1 原因:openssl版本过旧 解决方法:安装新版本 sudo apt-get install libssl-dev

锅锅的博客 3852

树莓派编译有关openssl库的例程代码报错解决方法

gcc democar.c -I ./curl-7.71.1/_install/include/ -L ./curl-7.71.1/_install/lib/ -lcurl 当我们使用上面的指令编译会报错 ./curl-7.71.1/_install/lib//libcurl.so: undefined reference to `SSL_CTX_set_keylog_callback@OPENSSL_1_1_1' ./curl-7.71.1/_install/lib//libcurl.so: undef

H_A666的博客 885

undefined reference to错误的解决方法

对于动态链接库,实际的符号定位是在运行期进行的.在编译.so的时候,如果没有把它需要的库和他一起进行联编,比如libx.so 需要使用uldict, 但是忘记在编译libx.so的时候加上-luldict的话,在编译libx.so的时候不会报错,因为这个时候libx.so被认为是一个库,它里面存在一些不知道具体实现的符号是合法的,是可以在运行期指定或者编译另外的二进制程序的时候指定。一般情况链接的时候我们采用-L的方式指定查找路径,调用动态链接库的时候采用LD_LIBRARY_PATH的方式指定链接路径。

顺其自然~专栏 2万+

centos 6.5(centos7)下安装thrift 0.9.1详细教程

2019独角兽企业重金招聘Python工程师标准>>> ...

weixin_34292287的博客 543

undefined reference to `SSL_library_init'错误

编译过程中出现以下错误 [root@localhost apps]#g++ -o clientclient.o client.o: In function `main': client.cpp:(.text+0x15): undefinedreference to `SSL_library_init' client.cpp:(.text+0x1a): undefinedrefere

guozhiyingguo的博客 2万+

漫话Redis源码之七十四

/* Wrapper around redisSecureConnection to avoid hiredis_ssl dependencies if * not building with TLS support. */ int cliSecureConnection(redisContext *c, cliSSLconfig config, const char **err) { #ifdef USE_OPENSSL static SSL_CTX *ssl_ctx = NULL;...

认知 行动 坚持 834

yum命令处理时报:undefined symbol: SSL_load_error_strings

  1. 问题 使用yum时出现下列错误:     2. SSL_load_error_strings错误 在后台运行 # openssl 运行不了!   3. 重新覆盖安装openssl # rpm -ivh --replacepkgs openssl-1.0.0-20.el6_2.5.x86_64.rpm # openssl OpenSSL&gt...

zhb1208的专栏 2936

使用 OpenSSL 库,gcc 出现报错 undefined reference to 的解决方法

问题描述 使用 OpenSSL 库函数编程时,采用 gcc 命令编译运行.c程序,可以成功编译,生成.o文件。但是无法运行,生成可执行文件,产生如下错误。 /usr/bin/ld: /tmp/ccSAMjsz.o: in function `https_init': test02_ssl_https.c:(.text+0x4bf): undefined reference to `TLS_method' /usr/bin/ld: test02_ssl_https.c:(.text+0x4c7): undef

dialogueeeee的博客 1万+

android jni openssl,c++ - Android NDK linking OpenSSL - Stack Overflow

I want to use openssl to my android ndk project.But when I build it, I got these errors:Error:(38) undefined reference to SSL_library_init'Error:(39) undefined reference toSSL_load_error_strings'Error...

weixin_33321740的博客 252

交叉编译百度开放云的MQTT-c时遇到的问题总结

  MQTT-c 依赖photo库  photo库依赖libssl和libcrypto两个库,这两个库包在openssl中  OpenSSL 是一个强大的安全套接字层密码库,囊括主要的密码算法、常用的密钥和证书封装管理功能及SSL协议,并提供丰富的应用程序供测试或其它目的使用。 昨天编译MQTT-c 出现错误: arm-linux-gcc -c src/PublisherSync.c -I/...

江南雨 2106
上一篇: C++中的ifdef,ifndef,error宏使用
下一篇: Squid-3.1.6在CentOS上编译出错提示缺少libltd库
pendle
博客等级 码龄20年 44粉丝 78原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值