xiaoliuandwo
xiaoliuandwo
采纳率0%
2021-01-25 17:46 阅读 56

安装freeswitch1.10编译cmake-3.13.3时报错

 在首次安装freeswitch1.10时openssl为1.0.2K版本,freeswitch相关模块编译安装OK。

后来升级了openssl 1.1.1b,因需要安装freeswitch模块再次编译整机编译时报错

[root@fstest3_0 cmake-3.13.3]# ./bootstrap 
---------------------------------------------
CMake 3.13.3, Copyright 2000-2018 Kitware, Inc. and Contributors
Found GNU toolchain
C compiler on this system is: gcc       
C++ compiler on this system is: g++  -std=gnu++1y     
Makefile processor on this system is: gmake
g++ has setenv
g++ has unsetenv
g++ does not have environ in stdlib.h
g++ has stl wstring
g++ has <ext/stdio_filebuf.h>
---------------------------------------------
gmake: `cmake' is up to date.
loading initial cache file /usr/local/src/freeswitch-1.10.5.-release/cmake-3.13.3/Bootstrap.cmk/InitialCacheFlags.cmake
-- Configuring done
-- Generating done
-- Build files have been written to: /usr/local/src/freeswitch-1.10.5.-release/cmake-3.13.3
---------------------------------------------
CMake has bootstrapped.  Now run gmake.
[root@fstest3_0 cmake-3.13.3]# gmake
[  2%] Built target cmsys
[  3%] Built target cmsys_c
[  3%] Built target cmsysTestsC
[  3%] Built target testConsoleBufChild
[  3%] Built target cmsysTestDynload
[  3%] Built target cmsysTestProcess
[  4%] Built target cmsysTestsCxx
[  5%] Built target cmsysTestSharedForward
[  6%] Built target kwiml_test
[  7%] Built target cmlibrhash
[  9%] Built target cmzlib
[ 24%] Built target cmcurl
[ 24%] Linking C executable curltest
lib/libcmcurl.a(openssl.c.o): In function `sk_X509_EXTENSION_num':
openssl.c:(.text+0xc8): undefined reference to `OPENSSL_sk_num'
lib/libcmcurl.a(openssl.c.o): In function `sk_X509_EXTENSION_value':
openssl.c:(.text+0xea): undefined reference to `OPENSSL_sk_value'
lib/libcmcurl.a(openssl.c.o): In function `sk_X509_num':
openssl.c:(.text+0x104): undefined reference to `OPENSSL_sk_num'
lib/libcmcurl.a(openssl.c.o): In function `sk_X509_value':
openssl.c:(.text+0x126): undefined reference to `OPENSSL_sk_value'
lib/libcmcurl.a(openssl.c.o): In function `sk_X509_pop':
openssl.c:(.text+0x140): undefined reference to `OPENSSL_sk_pop'
lib/libcmcurl.a(openssl.c.o): In function `sk_X509_pop_free':
openssl.c:(.text+0x165): undefined reference to `OPENSSL_sk_pop_free'
lib/libcmcurl.a(openssl.c.o): In function `sk_GENERAL_NAME_num':
openssl.c:(.text+0x17f): undefined reference to `OPENSSL_sk_num'
lib/libcmcurl.a(openssl.c.o): In function `sk_GENERAL_NAME_value':
openssl.c:(.text+0x1a1): undefined reference to `OPENSSL_sk_value'
lib/libcmcurl.a(openssl.c.o): In function `verifyhost':
openssl.c:(.text+0x1e35): undefined reference to `ASN1_STRING_get0_data'
openssl.c:(.text+0x207d): undefined reference to `ASN1_STRING_get0_data'
lib/libcmcurl.a(openssl.c.o): In function `ossl_connect_step1':
openssl.c:(.text+0x32d5): undefined reference to `TLS_client_method'
openssl.c:(.text+0x368e): undefined reference to `SSL_CTX_set_options'
openssl.c:(.text+0x3a68): undefined reference to `SSL_CTX_set_ciphersuites'
openssl.c:(.text+0x3ac8): undefined reference to `SSL_CTX_set_post_handshake_auth'
openssl.c:(.text+0x3cd4): undefined reference to `SSL_CTX_set_keylog_callback'
lib/libcmcurl.a(openssl.c.o): In function `get_cert_chain':
openssl.c:(.text+0x4b68): undefined reference to `X509_get_version'
openssl.c:(.text+0x4dc9): undefined reference to `X509_get0_extensions'
openssl.c:(.text+0x4de9): undefined reference to `X509_get0_notBefore'
openssl.c:(.text+0x4e71): undefined reference to `X509_get0_notAfter'
openssl.c:(.text+0x4f5e): undefined reference to `EVP_PKEY_get0_RSA'
openssl.c:(.text+0x4f87): undefined reference to `RSA_get0_key'
openssl.c:(.text+0x506e): undefined reference to `EVP_PKEY_get0_DSA'
openssl.c:(.text+0x5099): undefined reference to `DSA_get0_pqg'
openssl.c:(.text+0x50b7): undefined reference to `DSA_get0_key'
openssl.c:(.text+0x5168): undefined reference to `EVP_PKEY_get0_DH'
openssl.c:(.text+0x5193): undefined reference to `DH_get0_pqg'
openssl.c:(.text+0x51b1): undefined reference to `DH_get0_key'
lib/libcmcurl.a(openssl.c.o): In function `pkp_pin_peer_pubkey':
openssl.c:(.text+0x5433): undefined reference to `X509_get_X509_PUBKEY'
openssl.c:(.text+0x5481): undefined reference to `X509_get_X509_PUBKEY'
lib/libcmcurl.a(openssl.c.o): In function `servercert':
openssl.c:(.text+0x57d3): undefined reference to `X509_get0_notBefore'
openssl.c:(.text+0x585c): undefined reference to `X509_get0_notAfter'
lib/libcmcurl.a(openssl.c.o): In function `Curl_ossl_version':
openssl.c:(.text+0x6d4b): undefined reference to `OpenSSL_version_num'
lib/libcmcurl.a(openssl.c.o): In function `Curl_ossl_md5sum':
openssl.c:(.text+0x6ebb): undefined reference to `EVP_MD_CTX_new'
openssl.c:(.text+0x6f15): undefined reference to `EVP_MD_CTX_free'
lib/libcmcurl.a(openssl.c.o): In function `Curl_ossl_sha256sum':
openssl.c:(.text+0x6f40): undefined reference to `EVP_MD_CTX_new'
openssl.c:(.text+0x6f9a): undefined reference to `EVP_MD_CTX_free'
collect2: error: ld returned 1 exit status
gmake[2]: *** [Utilities/cmcurl/curltest] Error 1
gmake[1]: *** [Utilities/cmcurl/CMakeFiles/curltest.dir/all] Error 2
gmake: *** [all] Error 2

小白怀疑openssl版本混乱依赖库查找异常导致无法找到对应函数实现。

不知具体修改方式求大佬指点,如何处理,谢谢


 

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享

1条回答 默认 最新

  • rubikchen 502203305 2021-01-25 18:06

    下载openssl代码来编译后替换。

    点赞 评论 复制链接分享

相关推荐