Public bug reported:

Imported from Debian bug http://bugs.debian.org/1137476:

Package: asterisk
Version: 1:22.9.0+dfsg+~cs6.16.60671434-1
Severity: normal
Tags: sid
control: affects -1 src:openssl
User: [email protected]
Usertags: openssl-4.0

OpenSSL 4.0 is in experimental. This package fails to build against it:
| ../src/pj/ssl_sock_ossl.c: In function ‘init_ossl_ctx’:
| ../src/pj/ssl_sock_ossl.c:1599:29: warning: assignment discards ‘const’ 
qualifier from pointer target type [-Wdiscarded-qualifiers]
|  1599 |                     if ((xn = X509_get_subject_name(x)) == NULL)
|       |                             ^
| ../src/pj/ssl_sock_ossl.c: In function ‘parse_ossl_asn1_time’:
| ../src/pj/ssl_sock_ossl.c:2034:13: error: invalid use of incomplete typedef 
‘ASN1_TIME’ {aka ‘const struct asn1_string_st’}
|  2034 |     utc = tm->type == V_ASN1_UTCTIME;
|       |             ^~
| ../src/pj/ssl_sock_ossl.c:2035:18: error: invalid use of incomplete typedef 
‘ASN1_TIME’ {aka ‘const struct asn1_string_st’}
|  2035 |     p = (char*)tm->data;
|       |                  ^~
| ../src/pj/ssl_sock_ossl.c:2036:13: error: invalid use of incomplete typedef 
‘ASN1_TIME’ {aka ‘const struct asn1_string_st’}
|  2036 |     len = tm->length;
|       |             ^~
| make[6]: *** 
[/build/reproducible-path/asterisk-22.9.0+dfsg+~cs6.16.60671434/third-party/pjproject/source/build/rules.mak:163:
 output/pjlib-x86_64-pc-linux-gnu/ssl_sock_ossl.o] Error 1

Full buildlog
        
https://breakpoint.cc/openssl-rebuild/logs-4/attempted/asterisk_22.9.0+dfsg+~cs6.16.60671434-1_amd64-2026-04-19T11:47:22Z

Sebastian

** Affects: asterisk (Ubuntu)
     Importance: Undecided
         Status: New

** Affects: asterisk (Debian)
     Importance: Undecided
         Status: New


** Tags: ftbfs openssl-4.0

** Bug watch added: Debian Bug tracker #1137476
   https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1137476

** Changed in: asterisk (Debian)
 Remote watch: None => Debian Bug tracker #1137476

** Tags added: ftbfs openssl-4.0

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2154830

Title:
  asterisk: FTBFS with openssl 4.0

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/asterisk/+bug/2154830/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to