Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 631462 - net-misc/asterisk-13.17.0|2 fails to compile with USE=srtp and net-libs/libsrtp-2.1.0
Summary: net-misc/asterisk-13.17.0|2 fails to compile with USE=srtp and net-libs/libsr...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Tony Vroon (RETIRED)
URL: https://issues.asterisk.org/jira/brow...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-09-20 04:49 UTC by Attila Tóth
Modified: 2017-09-22 14:37 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
asterisk_libsrtp_2_1_macro_define_change.diff (asterisk_libsrtp_2_1_macro_define_change.diff,464 bytes, patch)
2017-09-20 04:49 UTC, Attila Tóth
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Attila Tóth 2017-09-20 04:49:07 UTC
Created attachment 495484 [details, diff]
asterisk_libsrtp_2_1_macro_define_change.diff

Error message during compile:
In file included from res_srtp.c:45:0:
res_srtp.c: In function ‘policy_set_suite’:
srtp/srtp_compat.h:8:21: error: ‘SRTP_AES_ICM’ undeclared (first use in this function)
 #define AES_128_ICM SRTP_AES_ICM
                     ^
res_srtp.c:267:20: note: in expansion of macro ‘AES_128_ICM’
   p->cipher_type = AES_128_ICM;
                    ^~~~~~~~~~~
srtp/srtp_compat.h:8:21: note: each undeclared identifier is reported only once for each function it appears in
 #define AES_128_ICM SRTP_AES_ICM
                     ^
res_srtp.c:267:20: note: in expansion of macro ‘AES_128_ICM’
   p->cipher_type = AES_128_ICM;
                    ^~~~~~~~~~~

Reason pointed out in this upstream ticket:
https://issues.asterisk.org/jira/browse/ASTERISK-27253
Patch for this ticket solves the problem.

Maybe it's already handled in asterisk-13.17.2 - I have to sync and check it out.
Comment 1 Attila Tóth 2017-09-20 08:00:24 UTC
net-misc/asterisk-13.17.2 is also affected.
Comment 2 Tony Vroon (RETIRED) gentoo-dev 2017-09-22 14:37:13 UTC
The dependency is on libsrtp:0, this was already explicit in the 11 ebuilds but 13.7.2 had it wrong. Fixed now.