freeswitch / sofia-sip

Sofia-SIP is an open-source SIP User-Agent library, compliant with the IETF RFC3261 specification.
GNU Lesser General Public License v2.1
270 stars 175 forks source link

Compilation Error #216

Open JuanJEA opened 1 year ago

JuanJEA commented 1 year ago

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 functionstun_tls_callback': stun.c:(.text+0x4b84): undefined reference to OPENSSL_init_ssl' stun.c:(.text+0x4b93): undefined reference toOPENSSL_initssl' 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

a-rose commented 1 year ago

Hi, I think libssl-dev is what you need here.

lxl-595 commented 11 months ago

centos 没有用,安装openssl-devel还是会报错