[asterisk-bugs] [JIRA] (ASTERISK-24436) Missing header in res/res_srtp.c when compiling against libsrtp-1.5.0
Alexander Traud (JIRA)
noreply at issues.asterisk.org
Tue Jun 7 09:15:56 CDT 2016
[ https://issues.asterisk.org/jira/browse/ASTERISK-24436?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alexander Traud closed ASTERISK-24436.
--------------------------------------
Resolution: Fixed
> Missing header in res/res_srtp.c when compiling against libsrtp-1.5.0
> ---------------------------------------------------------------------
>
> Key: ASTERISK-24436
> URL: https://issues.asterisk.org/jira/browse/ASTERISK-24436
> Project: Asterisk
> Issue Type: Bug
> Security Level: None
> Components: Resources/res_srtp
> Affects Versions: 11.13.0
> Environment: CentOS 6.5 x86_64, Asterisk 11.13.0 and libsrtp 1.5.0
> Reporter: Patrick Laimbock
> Severity: Minor
> Target Release: 1.8.32.0, 11.14.0, 12.7.0, 13.1.0
>
> Attachments: asterisk_with_libsrtp1.5.x.patch
>
>
> Compilation of 11.13.0 against libsrtp 1.5.0 fails with the following error:
> gcc -o res_srtp.o -c res_srtp.c -MD -MT res_srtp.o -MF .res_srtp.o.d -MP -pthread -I/home/mockbuild/rpmbuild/BUILD/asterisk-11.13.0/include -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -Werror-implicit-function-declaration -I/usr/include/libxml2 -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fPIC -DAST_MODULE=\"res_srtp\" -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -Werror-implicit-function-declaration
> res_srtp.c: In function 'ast_srtp_get_random':
> res_srtp.c:307: error: implicit declaration of function 'crypto_get_random'
> make[1]: *** [res_srtp.o] Error 1
> This seems to be caused by a missing header. The following pseudo patch fixes the problem for me:
> ASTERISK_FILE_VERSION(__FILE__, "$Revision: 413587 $")
> #include <srtp/srtp.h>
> +#include <srtp/crypto_kernel.h>
> #include "asterisk/lock.h"
--
This message was sent by Atlassian JIRA
(v6.2#6252)
More information about the asterisk-bugs
mailing list