找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 2034|回复: 3

【求助】编译官方openwrt时openssl处报错

[复制链接]
发表于 2019-10-15 18:53 | 显示全部楼层 |阅读模式

之前在服务器上用ubuntu16能够编译,现在服务器到期了,用自己的机子不能编译,现在是ubuntu19.04。希望有大佬能解救,实在是不想重装了。

看样子像是openssl库的问题,但换openssl没能解决。






报错信息如下:


[ 23%] Built target cmcurl

make[6]: Entering directory '/home/zhj/文档/openwrt/build_dir/host/cmake-3.15.1'

make[6]: Leaving directory '/home/zhj/文档/openwrt/build_dir/host/cmake-3.15.1'

make[6]: Entering directory '/home/zhj/文档/openwrt/build_dir/host/cmake-3.15.1'

[ 23%] Linking C executable curltest

/usr/bin/ld: lib/libcmcurl.a(openssl.c.o): in function `Curl_ossl_sha256sum':

openssl.c.text+0x11c): undefined reference to `EVP_MD_CTX_create'

/usr/bin/ld: openssl.c.text+0x157): undefined reference to `EVP_MD_CTX_destroy'

/usr/bin/ld: lib/libcmcurl.a(openssl.c.o): in function `Curl_ossl_md5sum':

openssl.c.text+0x1ac): undefined reference to `EVP_MD_CTX_create'

/usr/bin/ld: openssl.c.text+0x1e7): undefined reference to `EVP_MD_CTX_destroy'

/usr/bin/ld: lib/libcmcurl.a(openssl.c.o): in function `ossl_get_ssl_conn_index':

openssl.c.text+0xf30): undefined reference to `SSL_get_ex_new_index'

/usr/bin/ld: lib/libcmcurl.a(openssl.c.o): in function `ossl_get_ssl_sockindex_index':

openssl.c.text+0xf60): undefined reference to `SSL_get_ex_new_index'

/usr/bin/ld: lib/libcmcurl.a(openssl.c.o): in function `Curl_ossl_cleanup':

openssl.c.text+0x1215): undefined reference to `EVP_cleanup'

/usr/bin/ld: openssl.c.text+0x121a): undefined reference to `ENGINE_cleanup'

/usr/bin/ld: openssl.c.text+0x121f): undefined reference to `ERR_free_strings'

/usr/bin/ld: openssl.c.text+0x122b): undefined reference to `CONF_modules_free'

/usr/bin/ld: lib/libcmcurl.a(openssl.c.o): in function `ossl_connect_step1':

openssl.c.text+0x207f): undefined reference to `sk_pop_free'

/usr/bin/ld: openssl.c.text+0x2bb6): undefined reference to `sk_pop'

/usr/bin/ld: openssl.c.text+0x2bf3): undefined reference to `sk_num'

/usr/bin/ld: openssl.c.text+0x2c1c): undefined reference to `sk_pop_free'

/usr/bin/ld: lib/libcmcurl.a(openssl.c.o): in function `Curl_ossl_init':

openssl.c.text+0x339f): undefined reference to `SSL_load_error_strings'

/usr/bin/ld: openssl.c.text+0x33a4): undefined reference to `SSL_library_init'

/usr/bin/ld: openssl.c.text+0x33b9): undefined reference to `OPENSSL_add_all_algorithms_noconf'

/usr/bin/ld: lib/libcmcurl.a(openssl.c.o): in function `servercert':

openssl.c.text+0x3a74): undefined reference to `sk_num'

/usr/bin/ld: openssl.c.text+0x3ad9): undefined reference to `sk_value'

/usr/bin/ld: openssl.c.text+0x3d17): undefined reference to `sk_num'

/usr/bin/ld: openssl.c.text+0x3d79): undefined reference to `sk_value'

/usr/bin/ld: openssl.c.text+0x3fe8): undefined reference to `sk_num'

/usr/bin/ld: openssl.c.text+0x4004): undefined reference to `sk_num'

/usr/bin/ld: openssl.c.text+0x4018): undefined reference to `sk_value'

/usr/bin/ld: openssl.c.text+0x4152): undefined reference to `sk_num'

collect2: error: ld returned 1 exit status

make[6]: *** [Utilities/cmcurl/CMakeFiles/curltest.dir/build.make:88: Utilities/cmcurl/curltest] Error 1

make[6]: Leaving directory '/home/zhj/文档/openwrt/build_dir/host/cmake-3.15.1'

make[5]: *** [CMakeFiles/Makefile2:1358: Utilities/cmcurl/CMakeFiles/curltest.dir/all] Error 2

make[5]: Leaving directory '/home/zhj/文档/openwrt/build_dir/host/cmake-3.15.1'

make[4]: *** [Makefile:163: all] Error 2

make[4]: Leaving directory '/home/zhj/文档/openwrt/build_dir/host/cmake-3.15.1'

make[3]: *** [Makefile:50: /home/zhj/文档/openwrt/build_dir/host/cmake-3.15.1/.built] Error 2

make[3]: Leaving directory '/home/zhj/文档/openwrt/tools/cmake'

time: tools/cmake/compile#0.14#0.02#0.17

make[2]: *** [tools/Makefile:159: tools/cmake/compile] Error 2

make[2]: Leaving directory '/home/zhj/文档/openwrt'

make[1]: *** [tools/Makefile:155: /home/zhj/文档/openwrt/staging_dir/target-mipsel_24kc_musl/stamp/.tools_compile_yynyynnyyynyyyyynyynyyyyynyyyyyyyyyyyyyyynynynnyyynnyyy] Error 2

make[1]: Leaving directory '/home/zhj/文档/openwrt'

make: *** [/home/zhj/文档/openwrt/include/toplevel.mk:227:world] 错误 2




我的恩山、我的无线 The best wifi forum is right here.
发表于 2019-10-15 19:40 | 显示全部楼层
openwrt不需要openssl也可以运行的,要求太高了
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-10-15 20:00 来自手机 | 显示全部楼层
目录不要有中文

点评

谢谢,没意识到ubuntu文档文件夹路径是中文  详情 回复 发表于 2019-10-15 20:45
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2019-10-15 20:45 | 显示全部楼层

谢谢,没意识到ubuntu文档文件夹路径是中文
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-4-18 08:31

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

快速回复 返回顶部 返回列表