# Janus build fails when using latest version of libsrtp (2.6.0)

**URL:** <https://janus.discourse.group/t/janus-build-fails-when-using-latest-version-of-libsrtp-2-6-0/998>\
**Category:** General\
**Created:** [April 15, 2024, 8:23pm UTC](https://janus.discourse.group/t/janus-build-fails-when-using-latest-version-of-libsrtp-2-6-0/998 "2024-04-15T20:23:58Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![turtle](https://avatars.discourse-cdn.com/v4/letter/t/ecb155/32.png) [@turtle](https://janus.discourse.group/u/turtle)\
**Post date:** [April 15, 2024, 8:23pm UTC](https://janus.discourse.group/t/janus-build-fails-when-using-latest-version-of-libsrtp-2-6-0/998/1 "2024-04-15T20:23:58Z")

</div>

When building janus using the latest libsrtp version 2.6.0, the build fails

```auto
plugins/janus_sip.c:7541:13: error: too few arguments to function ‘srtp_protect_rtcp’
 7541 | int res = srtp_protect_rtcp(session->media.video_srtp_out, &sbuf, &protected);
      | ^ ~~~~~~~~~~~~~~~~
In file included from plugins/../rtpsrtp.h:17,
                 from plugins/janus_sip.c:691:
/usr/include/srtp2/srtp.h:1149:19: note: declared here
 1149 | srtp_err_status_t srtp_protect_rtcp(srtp_t ctx,
      | ^ ~~~~~~~~~~~~~~~~
make[2]: *** [Makefile:2207: plugins/libjanus_sip_la-janus_sip.lo] Error 1

```

I know the guideline is to use libsrtp v2.2.0, but are there any plans to upgrade to the latest version of libsrtp?

---

<div class="post-metadata">

**Author:** ![atoppi](https://yyz2.discourse-cdn.com/free1/user_avatar/janus.discourse.group/atoppi/32/8_2.png) [@atoppi](https://janus.discourse.group/u/atoppi)\
**Post date:** [April 15, 2024, 11:35pm UTC](https://janus.discourse.group/t/janus-build-fails-when-using-latest-version-of-libsrtp-2-6-0/998/2 "2024-04-15T23:35:47Z")

</div>

We are aware that the most recent libsrtp iterations have changed some APIs.  
Didn’t try myself v2.6.0, however I’m pretty sure that v2.5.0 is fully compatible.

---

<div class="post-metadata">

**Author:** ![lorenzo](https://yyz2.discourse-cdn.com/free1/user_avatar/janus.discourse.group/lorenzo/32/425_2.png) [@lorenzo](https://janus.discourse.group/u/lorenzo)\
**Post date:** [April 16, 2024, 8:36am UTC](https://janus.discourse.group/t/janus-build-fails-when-using-latest-version-of-libsrtp-2-6-0/998/3 "2024-04-16T08:36:05Z")

</div>

@turtle are you sure you didn’t try the libsrtp master, rather than the 2.6.0 release? The changelog for 2.6.0 doesn’t mention any of the signature changes we saw in master, which makes me think those are not in there yet.

---

<div class="post-metadata">

**Author:** ![turtle](https://avatars.discourse-cdn.com/v4/letter/t/ecb155/32.png) [@turtle](https://janus.discourse.group/u/turtle)\
**Post date:** [April 16, 2024, 10:15pm UTC](https://janus.discourse.group/t/janus-build-fails-when-using-latest-version-of-libsrtp-2-6-0/998/4 "2024-04-16T22:15:56Z")

</div>

@lorenzo, I indeed mistakenly built libsrtp master instead of v2.6.0. I can confirm that v2.6.0 works fine.
