Summary: | ASTERISK-22184: SRTP not detected | ||
Reporter: | Floren (teck) | Labels: | |
Date Opened: | 2013-07-23 02:09:20 | Date Closed: | 2013-07-23 07:01:38 |
Priority: | Minor | Regression? | |
Status: | Closed/Complete | Components: | Resources/res_srtp |
Versions: | 11.5.0 | Frequency of Occurrence | |
Related Issues: | |||
Environment: | CentOS 6.4 x86_64 | Attachments: | |
Description: | I cannot compile Asterisk, with SRTP.
I've build the libsrtp libraries with CentOS and pkgconfig standards, but Asterisk refuses to detect the libs. Steps To Reproduce On a CentOS minimal setup, install the libraries: {noformat} # rpm -ivh --nosignature http://rpm.axivo.com/redhat/axivo-release-6-1.noarch.rpm # yum --enablerepo=axivo install libsrtp-devel # find /usr/include -name srtp.h /usr/include/srtp/srtp.h /usr/include/openssl/srtp.h $ cd SOURCES/asterisk-11.5.0 $ ./configure --host=x86_64-redhat-linux-gnu --build=x86_64-redhat-linux-gnu --program-prefix= --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-asound --with-bluetooth --with-cap --with-cpg --with-crypto --with-dahdi --with-gsm --with-iconv --with-iksemel --with-inotify --with-ldap --with-libcurl --with-libxml2 --with-ltdl --with-lua --with-mysqlclient --with-netsnmp --with-ogg --with-postgres --with-popt --with-pri --with-radius --with-spandsp --with-srtp --with-ss7 --with-speex --with-speexdsp --with-sqlite3 --with-ssl --with-tds --with-unixodbc --with-vorbis 'LDFLAGS=-lm -Wl,--as-needed -Wl,--strip-all' {noformat} checking for SSL_CTX_set_tlsext_use_srtp in -lssl... yes checking for openssl/ssl.h... (cached) yes checking for srtp_init in -lsrtp... yes checking srtp/srtp.h usability... no checking srtp/srtp.h presence... no checking for srtp/srtp.h... no checking for srtp_shutdown in -lsrtp... yes checking for srtp/srtp.h... (cached) no ... checking for mandatory modules: ALSA BLUETOOTH CAP COROSYNC CRYPTO DAHDI GSM ICONV IKSEMEL INOTIFY LDAP LIBXML2 LTDL LUA MYSQLCLIENT NETSNMP OGG PGSQL POPT PRI RADIUS SPANDSP SS7 SPEEX SPEEX_PREPROCESS SPEEXDSP SQLITE3 SRTP OPENSSL FREETDS UNIXODBC VORBIS... fail configure: *** configure: *** The SRTP installation appears to be missing or broken. configure: *** Either correct the installation, or run configure configure: *** including --without-srtp. | ||
Comments: | By: Matt Jordan (mjordan) 2013-07-23 07:01:32.505-0500 Thanks for your comments. This does not appear to be a bug report and we are closing it. We appreciate the difficulties you are facing, but it would make more sense to raise your question in the support tracker, http://www.asterisk.org/support. By: Floren (teck) 2013-07-23 13:03:49.104-0500 Hi Matt, From my perspective I see it as a bug. The srtp package I use is identical to Fedora 19. If Asterisk is dependent on a specific srtp version, it should be mentioned... as current libsrtp is not detected by Asterisk. I am an experienced packager for Redhat as well Linux administrator, been doing this for last 10 years at work. Regards, Floren By: Floren (teck) 2013-07-23 17:23:01.179-0500 I got it solved. The crucial option for srtp is --program-prefix: {noformat} export CFLAGS="%{optflags} -fPIC" %configure --program-prefix=%{_prefix} --disable-static {noformat} You can get the precompiled libs for CentOS/Redhat 6 only at http://rpm.axivo.com. Regards, Floren |