[Pkg-openssl-devel] Bug#1138430: perdition: FTBFS with openssl 4.0

Sebastian Andrzej Siewior sebastian at breakpoint.cc
Sat May 30 17:13:18 BST 2026


Package: perdition
Version: 2.2-4
Severity: normal
Tags: sid
control: affects -1 src:openssl
User: pkg-openssl-devel at lists.alioth.debian.org
Usertags: openssl-4.0

OpenSSL 4.0 is in experimental. This package fails to build against it:

| gcc -DHAVE_CONFIG_H -I. -I.. -DPERDITION_LIBDIR=\"/usr/lib/x86_64-linux-gnu\" -DPERDITION_SYSCONFDIR=\"/etc/perdition\" -DPERDITION_LOCALSTATEDIR=\"/var\" -I/usr/include   -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/perdition-2.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o ssl.o ssl.c
| ssl.c: In function ‘perdition_ssl_ctx’:
| ssl.c:713:25: warning: ‘PEM_read_DHparams’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
|   713 |                         dh = PEM_read_DHparams(dhfp, NULL, NULL, NULL);
|       |                         ^~
| In file included from /usr/include/openssl/ssl.h:39,
|                  from io.h:70,
|                  from ssl.h:36,
|                  from ssl.c:46:
| /usr/include/openssl/pem.h:480:1: note: declared here
|   480 | DECLARE_PEM_rw_attr(OSSL_DEPRECATEDIN_3_0, DHparams, DH)
|       | ^~~~~~~~~~~~~~~~~~~
| ssl.c:734:33: warning: ‘DH_free’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
|   734 |                                 DH_free(dh);
|       |                                 ^~~~~~~
| In file included from /usr/include/openssl/dsa.h:31,
|                  from /usr/include/openssl/x509.h:39,
|                  from /usr/include/openssl/x509v3.h:27,
|                  from ssl.c:44:
| /usr/include/openssl/dh.h:211:28: note: declared here
|   211 | OSSL_DEPRECATEDIN_3_0 void DH_free(DH *dh);
|       |                            ^~~~~~~
| ssl.c:745:17: warning: ‘EC_KEY_new_by_curve_name’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
|   745 |                 EC_KEY *ecdh = EC_KEY_new_by_curve_name (NID_X9_62_prime256v1);
|       |                 ^~~~~~
| In file included from /usr/include/openssl/x509.h:35:
| /usr/include/openssl/ec.h:1017:31: note: declared here
|  1017 | OSSL_DEPRECATEDIN_3_0 EC_KEY *EC_KEY_new_by_curve_name(int nid);
|       |                               ^~~~~~~~~~~~~~~~~~~~~~~~
| ssl.c:752:25: warning: ‘EC_KEY_free’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
|   752 |                         EC_KEY_free (ecdh);
|       |                         ^~~~~~~~~~~
| /usr/include/openssl/ec.h:1022:28: note: declared here
|  1022 | OSSL_DEPRECATEDIN_3_0 void EC_KEY_free(EC_KEY *key);
|       |                            ^~~~~~~~~~~
| ssl.c: In function ‘__perdition_ssl_check_common_name’:
| ssl.c:914:14: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
|   914 |         name = X509_get_subject_name(cert);
|       |              ^
| ssl.c:930:19: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
|   930 |                 e = X509_NAME_get_entry(name, i);
|       |                   ^
| ssl.c:937:22: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
|   937 |                 data = X509_NAME_ENTRY_get_data(e);
|       |                      ^
| ssl.c:944:59: error: invalid use of incomplete typedef ‘ASN1_STRING’ {aka ‘struct asn1_string_st’}
|   944 |                 if (!__perdition_ssl_compare_key(key, data->data, data->length))
|       |                                                           ^~
| ssl.c:944:71: error: invalid use of incomplete typedef ‘ASN1_STRING’ {aka ‘struct asn1_string_st’}
|   944 |                 if (!__perdition_ssl_compare_key(key, data->data, data->length))
|       |                                                                       ^~
| make[5]: *** [Makefile:680: ssl.o] Error 1

Full buildlog
 	https://breakpoint.cc/openssl-rebuild/logs-4/attempted/perdition_2.2-4_amd64-2026-04-19T13:57:35Z

Sebastian



More information about the Pkg-openssl-devel mailing list