之前在服务器上用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
|