[Home]

Summary:ASTERISK-24799: [patch] make fails with undefined reference to SSLv3_client_method
Reporter:Alexander Traud (traud)Labels:
Date Opened:2015-02-17 02:31:20.000-0600Date Closed:2015-02-19 09:22:13.000-0600
Priority:MinorRegression?Yes
Status:Closed/CompleteComponents:Channels/chan_sip/TCP-TLS
Versions:1.8.32.2 11.16.0 12.8.1 13.2.0 Frequency of
Occurrence
Constant
Related
Issues:
Environment:Attachments:( 0) no-ssl3-method.patch
Description:Asterisk is not able to link, gives following error message:
{noformat}tcptls.o: In function `__ssl_setup':
main/tcptls.c:773: undefined reference to `SSLv3_client_method'
collect2: error: ld returned 1 exit status
make[1]: *** [asterisk] Error 1
make: *** [main] Error 2{noformat}

Some distributions are going to disable SSLv3 in OpenSSL at compile time. For example, Debian does this in their upcoming OpenSSL 1.0.2 release (issue #[768476|https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=768476#10]). Therefore, this patch adds a test for the definition of OPENSSL_NO_SSL3_METHOD. This avoids the above link error and Asterisk is made.

This patch was tested in Ubuntu 14.04 LTS against the current (but still experimental) Debian package, which includes the (final) release of OpenSSL 1.0.2 from January 2015:{noformat}sudo apt-key adv --keyserver keys.gnupg.net --recv-keys 8B48AD6246925553
# Ubuntu > System Settings > Software & Updates > Other Software > Add:
# deb http://ftp.debian.org/debian experimental main
sudo apt-get update
sudo apt-get -t experimental install libssl-dev{noformat}
Comments:By: Matt Jordan (mjordan) 2015-02-19 09:05:44.509-0600

The patch looks correct - thanks for the contribution!