[asterisk-bugs] [JIRA] (ASTERISK-24436) Missing header in res/res_srtp.c when compiling against libsrtp-1.5.0

Matt Jordan (JIRA) noreply at issues.asterisk.org
Sun Oct 26 20:50:29 CDT 2014


     [ https://issues.asterisk.org/jira/browse/ASTERISK-24436?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Matt Jordan closed ASTERISK-24436.
----------------------------------


> 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
>
> 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