#1138332 sofia-sip: FTBFS with openssl 4.0

Package:
sofia-sip
Source:
sofia-sip
Submitter:
Sebastian Andrzej Siewior
Date:
2026-06-11 09:29:02 UTC
Severity:
normal
Tags:
#1138332#5
Date:
2026-05-30 15:55:15 UTC
From:
To:
OpenSSL 4.0 is in experimental. This package fails to build against it:

| ../../../libsofia-sip-ua/stun/stun.c: In function 'stun_tls_callback':
| ../../../libsofia-sip-ua/stun/stun.c:1356:23: error: implicit declaration of function 'TLSv1_client_method'; did you mean 'TLS_client_method'? [-Wimplicit-function-declaration]
|  1356 |     ctx = SSL_CTX_new(TLSv1_client_method());
|       |                       ^~~~~~~~~~~~~~~~~~~
|       |                       TLS_client_method
| ../../../libsofia-sip-ua/stun/stun.c:1356:23: error: passing argument 1 of 'SSL_CTX_new' makes pointer from integer without a cast [-Wint-conversion]
|  1356 |     ctx = SSL_CTX_new(TLSv1_client_method());
|       |                       ^~~~~~~~~~~~~~~~~~~~~
|       |                       |
|       |                       int


Full buildlog
https://breakpoint.cc/openssl-rebuild/logs-4/attempted/sofia-sip_1.12.11+20110422.1+1e14eea~dfsg-6.1_amd64-2026-04-19T13:11:54Z

Sebastian

#1138332#12
Date:
2026-06-11 09:26:49 UTC
From:
To:
Please find attached a patch that fixes this issue.