PR #22602 opened by linkmauve
URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/22602
Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/22602.patch

Fixes a regression introduced with DTLS support in:
openssl: 87b09f3931fea37a8578d90c6700d73031dc958f
gnutls: 6f2d23a009284460590c21df49b31ad1d7c52630
mbedtls: 55f5cfafebe99810575c4d37ce9360f21746c975
schannel: 90fa9636efff84ec5a4b06815722c08188dca551

Otherwise, building libavformat will fail to link with those errors:
```
/usr/bin/ld: libavformat/libavformat.so: undefined reference to 
`ff_udp_set_remote_addr'
/usr/bin/ld: libavformat/libavformat.so: undefined reference to 
`ff_udp_set_remote_addr'
/usr/bin/ld: libavformat/libavformat.so: undefined reference to 
`ff_udp_get_last_recv_addr'
/usr/bin/ld: libavformat/libavformat.so: undefined reference to 
`ff_udp_get_last_recv_addr'
/usr/bin/ld: libavformat/libavformat.so: undefined reference to 
`ff_udp_set_remote_addr'
```


>From c5e2dab89b70f366e60378ed3fa3557e64af9ca8 Mon Sep 17 00:00:00 2001
From: Link Mauve <[email protected]>
Date: Tue, 24 Mar 2026 15:12:35 +0100
Subject: [PATCH] Add a dependency on protocol_udp to protocol_tls

Fixes a regression introduced with DTLS support in:
openssl: 87b09f3931fea37a8578d90c6700d73031dc958f
gnutls: 6f2d23a009284460590c21df49b31ad1d7c52630
mbedtls: 55f5cfafebe99810575c4d37ce9360f21746c975
schannel: 90fa9636efff84ec5a4b06815722c08188dca551

Otherwise, building libavformat will fail to link with those errors:
/usr/bin/ld: libavformat/libavformat.so: undefined reference to 
`ff_udp_set_remote_addr'
/usr/bin/ld: libavformat/libavformat.so: undefined reference to 
`ff_udp_set_remote_addr'
/usr/bin/ld: libavformat/libavformat.so: undefined reference to 
`ff_udp_get_last_recv_addr'
/usr/bin/ld: libavformat/libavformat.so: undefined reference to 
`ff_udp_get_last_recv_addr'
/usr/bin/ld: libavformat/libavformat.so: undefined reference to 
`ff_udp_set_remote_addr'
---
 configure | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure b/configure
index 8f9fb04115..c0ccb46c53 100755
--- a/configure
+++ b/configure
@@ -4060,7 +4060,7 @@ securetransport_conflict="openssl gnutls libtls mbedtls"
 srtp_protocol_select="rtp_protocol srtp"
 tcp_protocol_select="network"
 tls_protocol_deps_any="gnutls openssl schannel securetransport libtls mbedtls"
-tls_protocol_select="tcp_protocol"
+tls_protocol_select="tcp_protocol udp_protocol"
 # TODO: Support libtls.
 dtls_protocol_deps_any="openssl schannel gnutls mbedtls"
 dtls_protocol_select="udp_protocol"
-- 
2.52.0

_______________________________________________
ffmpeg-devel mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to