Compilation Error
JuanJEA opened this issue · 2 comments
I am trying to install Sofia-SIP with the following steps:
git clone https://github.com/freeswitch/sofia-sip.git
sh autogen.sh
./configure
make
make install
Everything is fine until the ./configure, however once I run make I get the following message:
make[3]: Entering directory /opt/sofia-sip/libsofia-sip-ua/http' make all-am make[4]: Entering directory
/opt/sofia-sip/libsofia-sip-ua/http'
make[4]: Nothing to be done for all-am'. make[4]: Leaving directory
/opt/sofia-sip/libsofia-sip-ua/http'
make[3]: Leaving directory /opt/sofia-sip/libsofia-sip-ua/http' Making all in stun make[3]: Entering directory
/opt/sofia-sip/libsofia-sip-ua/stun'
make all-am
make[4]: Entering directory /opt/sofia-sip/libsofia-sip-ua/stun' LINK stunc ./.libs/libstun.a(stun.o): In function
stun_tls_callback':
stun.c:(.text+0x4b84): undefined reference to OPENSSL_init_ssl' stun.c:(.text+0x4b93): undefined reference to
OPENSSL_init_ssl'
collect2: error: ld returned 1 exit status
make[4]: *** [stunc] Error 1
make[4]: Leaving directory /opt/sofia-sip/libsofia-sip-ua/stun' make[3]: *** [all] Error 2 make[3]: Leaving directory
/opt/sofia-sip/libsofia-sip-ua/stun'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory /opt/sofia-sip/libsofia-sip-ua' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory
/opt/sofia-sip'
make: *** [all] Error 2
I have tried OpenSSL 1.1.1k and OpenSSL 3.0.7 but the result is the same.
Do I need any prerequisites?
Thks
Hi, I think libssl-dev
is what you need here.
centos 没有用,安装openssl-devel还是会报错