[Pkg-middleware-maintainers] Bug#1006562: qpid-proton: FTBFS with OpenSSL 3.0

Sebastian Andrzej Siewior sebastian at breakpoint.cc
Sun Feb 27 20:27:23 GMT 2022


Source: qpid-proton
Version: 0.22.0-5.1
Severity: important
Tags: bookworm sid
User: pkg-openssl-devel at lists.alioth.debian.org
Usertags: ftbfs-3.0

Your package is failing to build using OpenSSL 3.0 with the
following error:

| [ 11%] Building C object proton-c/CMakeFiles/qpid-proton-core.dir/src/ssl/openssl.c.o
| cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/proton-c && /usr/bin/cc -Dqpid_proton_core_EXPORTS -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/proton-c/src -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/proton-c/include -I/<<PKGBUILDDIR>>/proton-c/src -I/<<PKGBUILDDIR>>/proton-c/include -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fvisibility=hidden -fPIC -Werror -Wall -pedantic-errors -Wstrict-prototypes -Wc++-compat -Wvla -Wsign-compare -Wwrite-strings -std=c99  -MD -MT proton-c/CMakeFiles/qpid-proton-core.dir/src/ssl/openssl.c.o -MF CMakeFiles/qpid-proton-core.dir/src/ssl/openssl.c.o.d -o CMakeFiles/qpid-proton-core.dir/src/ssl/openssl.c.o -c /<<PKGBUILDDIR>>/proton-c/src/ssl/openssl.c
| /<<PKGBUILDDIR>>/proton-c/src/ssl/openssl.c: In function ‘get_dh2048’:
| /<<PKGBUILDDIR>>/proton-c/src/ssl/openssl.c:403:3: error: ‘DH_new’ is deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations]
|   403 |   DH *dh = DH_new();
|       |   ^~
| In file included from /usr/include/openssl/dsa.h:51,
|                  from /usr/include/openssl/x509.h:37,
|                  from /usr/include/openssl/ssl.h:31,
|                  from /<<PKGBUILDDIR>>/proton-c/src/ssl/openssl.c:45:
| /usr/include/openssl/dh.h:199:27: note: declared here
|   199 | OSSL_DEPRECATEDIN_3_0 DH *DH_new(void);
|       |                           ^~~~~~
| /<<PKGBUILDDIR>>/proton-c/src/ssl/openssl.c:411:7: error: ‘DH_set0_pqg’ is deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations]
|   411 |       || !DH_set0_pqg(dh, dhp_bn, NULL, dhg_bn)) {
|       |       ^~
| In file included from /usr/include/openssl/dsa.h:51,
|                  from /usr/include/openssl/x509.h:37,
|                  from /usr/include/openssl/ssl.h:31,
|                  from /<<PKGBUILDDIR>>/proton-c/src/ssl/openssl.c:45:
| /usr/include/openssl/dh.h:255:27: note: declared here
|   255 | OSSL_DEPRECATEDIN_3_0 int DH_set0_pqg(DH *dh, BIGNUM *p, BIGNUM *q, BIGNUM *g);
|       |                           ^~~~~~~~~~~
| /<<PKGBUILDDIR>>/proton-c/src/ssl/openssl.c:412:5: error: ‘DH_free’ is deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations]
|   412 |     DH_free(dh);
|       |     ^~~~~~~
| In file included from /usr/include/openssl/dsa.h:51,
|                  from /usr/include/openssl/x509.h:37,
|                  from /usr/include/openssl/ssl.h:31,
|                  from /<<PKGBUILDDIR>>/proton-c/src/ssl/openssl.c:45:
| /usr/include/openssl/dh.h:200:28: note: declared here
|   200 | OSSL_DEPRECATEDIN_3_0 void DH_free(DH *dh);
|       |                            ^~~~~~~
| /<<PKGBUILDDIR>>/proton-c/src/ssl/openssl.c: In function ‘pn_ssl_domain’:
| /<<PKGBUILDDIR>>/proton-c/src/ssl/openssl.c:547:5: error: ‘DH_free’ is deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations]
|   547 |     DH_free(dh);
|       |     ^~~~~~~
| In file included from /usr/include/openssl/dsa.h:51,
|                  from /usr/include/openssl/x509.h:37,
|                  from /usr/include/openssl/ssl.h:31,
|                  from /<<PKGBUILDDIR>>/proton-c/src/ssl/openssl.c:45:
| /usr/include/openssl/dh.h:200:28: note: declared here
|   200 | OSSL_DEPRECATEDIN_3_0 void DH_free(DH *dh);
|       |                            ^~~~~~~
| cc1: all warnings being treated as errors
| make[4]: *** [proton-c/CMakeFiles/qpid-proton-core.dir/build.make:437: proton-c/CMakeFiles/qpid-proton-core.dir/src/ssl/openssl.c.o] Error 1
| make[4]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
| make[3]: *** [CMakeFiles/Makefile2:1268: proton-c/CMakeFiles/qpid-proton-core.dir/all] Error 2
| make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
| make[2]: *** [Makefile:149: all] Error 2
| make[2]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
| dh_auto_build: error: cd obj-x86_64-linux-gnu && make -j1 all docs VERBOSE=1 returned exit code 2
| make[1]: *** [debian/rules:33: override_dh_auto_build] Error 25

For more information see:
https://www.openssl.org/docs/man3.0/man7/migration_guide.html

Sebastian



More information about the Pkg-middleware-maintainers mailing list