Openssl webrtc2sip编译错误

Openssl webrtc2sip编译错误,openssl,webrtc,redhat,rhel,Openssl,Webrtc,Redhat,Rhel,在Red Hat Enterprise Linux Server 6.4版(圣地亚哥)中编译WebRTC2IP时出现以下错误 /usr/local/lib/libtinyNET.so: undefined reference to `EC_KEY_free' /usr/local/lib/libtinyNET.so: undefined reference to `SSL_export_keying_material' /usr/local/lib/libtinyNET.so: undefine

在Red Hat Enterprise Linux Server 6.4版(圣地亚哥)中编译WebRTC2IP时出现以下错误

/usr/local/lib/libtinyNET.so: undefined reference to `EC_KEY_free'
/usr/local/lib/libtinyNET.so: undefined reference to `SSL_export_keying_material'
/usr/local/lib/libtinyNET.so: undefined reference to `SSL_CTX_set_tlsext_use_srtp'
/usr/local/lib/libtinyNET.so: undefined reference to `SSL_get_selected_srtp_profile'
/usr/local/lib/libtinyNET.so: undefined reference to `EC_KEY_new_by_curve_name'
collect2: ld returned 1 exit status
make[1]: *** [webrtc2sip] Error 1
make[1]: Leaving directory `/root/webrtc2sip'
make: *** [all] Error 2
注: Doubango配置选项:

./configure --with-ssl --with-srtp --with-vpx --with-speexdsp --with-ffmpeg --with-opus
它没有任何问题

我看到一些关于相同错误的帖子()

我发现这是因为ssl的两个版本。但我没有得到我的案子的确切情况

我通过以下步骤安装了openssl:

wget http://www.openssl.org/source/openssl-1.0.1c.tar.gz
tar -xvzf openssl-1.0.1c.tar.gz
cd openssl-1.0.1c
./config shared --prefix=/usr/local --openssldir=/usr/local/openssl && make && make install
当我检查openssl版本时,我会得到以下信息:

[root@cluster ~]# openssl version
OpenSSL 1.0.1c 10 May 2012
[root@cluster ~]# rpm -qa | grep openssl
openssl098e-0.9.8e-17.el6_2.2.x86_64
openssl-1.0.0-27.el6.x86_64
openssl-devel-1.0.0-27.el6.x86_64

有谁能指导我如何解决这个编译问题吗?

你能用一个冗长的shell重新运行失败的make步骤吗,比如
makeshell=“/bin/bash-x”
。然后将打印给出链接器错误的命令。这可以让您深入了解链接步骤中使用的是哪个openssl库。我已经尝试避免使用ssl,而且它是这样工作的。doubango框架和webrtc2sip都可以在不使用ssl的情况下编译。usr/lib64&usr/local/lib64下的libssl.so可以在之后删除和编译。虽然想要音频支持的人必须使用libssl编译turn服务器,这是强制性的。