[Pkg-openssl-devel] Bug#1138308: libesmtp: FTBFS with openssl 4.0
Sebastian Andrzej Siewior
sebastian at breakpoint.cc
Sat May 30 16:50:50 BST 2026
Package: libesmtp
Version: 1.1.0-3.2
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:
| [17/34] cc -Ilibesmtp.so.6.2.0.p -I. -I.. -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c11 -D_POSIX_C_SOURCE=200809L -D_DEFAULT_SOURCE -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/libesmtp-1.1.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -pthread -MD -MQ libesmtp.so.6.2.0.p/smtp-tls.c.o -MF libesmtp.so.6.2.0.p/smtp-tls.c.o.d -o libesmtp.so.6.2.0.p/smtp-tls.c.o -c ../smtp-tls.c
| FAILED: [code=1] libesmtp.so.6.2.0.p/smtp-tls.c.o
| cc -Ilibesmtp.so.6.2.0.p -I. -I.. -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c11 -D_POSIX_C_SOURCE=200809L -D_DEFAULT_SOURCE -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/libesmtp-1.1.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -pthread -MD -MQ libesmtp.so.6.2.0.p/smtp-tls.c.o -MF libesmtp.so.6.2.0.p/smtp-tls.c.o.d -o libesmtp.so.6.2.0.p/smtp-tls.c.o -c ../smtp-tls.c
| ../smtp-tls.c: In function ‘check_acceptable_security’:
| ../smtp-tls.c:573:66: error: invalid use of incomplete typedef ‘ASN1_IA5STRING’ {aka ‘struct asn1_string_st’}
| 573 | const char *ia5str = (const char *) name->d.ia5->data;
| | ^~
| ../smtp-tls.c:574:46: error: invalid use of incomplete typedef ‘ASN1_IA5STRING’ {aka ‘struct asn1_string_st’}
| 574 | size_t ia5len = name->d.ia5->length;
| | ^~
| ../smtp-tls.c:589:29: warning: initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
| 589 | X509_NAME *subj = X509_get_subject_name (cert);
| | ^~~~~~~~~~~~~~~~~~~~~
| ../smtp-tls.c:604:26: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
| 604 | && (cn = X509_NAME_ENTRY_get_data (
| | ^
| ../smtp-tls.c: In function ‘rsp_starttls’:
| ../smtp-tls.c:686:15: warning: ‘X509_NAME_get_text_by_NID’ is deprecated: Since OpenSSL 4.0 [-Wdeprecated-declarations]
| 686 | X509_NAME_get_text_by_NID (X509_get_subject_name (cert),
| | ^~~~~~~~~~~~~~~~~~~~~~~~~
| In file included from /usr/include/openssl/x509v3.h:27,
| from ../smtp-tls.c:55:
| /usr/include/openssl/x509.h:1041:27: note: declared here
| 1041 | OSSL_DEPRECATEDIN_4_0 int X509_NAME_get_text_by_NID(const X509_NAME *name,
| | ^~~~~~~~~~~~~~~~~~~~~~~~~
| ninja: build stopped: subcommand failed.
Full buildlog
https://breakpoint.cc/openssl-rebuild/logs-4/attempted/libesmtp_1.1.0-3.2_amd64-2026-04-19T07:37:55Z
Sebastian
More information about the Pkg-openssl-devel
mailing list