I cannot compile Asterisk, with SRTP 1.4.4.
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:
[quote]# 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’
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.[/quote]
Can you let me know what am I missing? Thanks.