#1137386 alpine: FTBFS with openssl 4.0

Package:
alpine
Source:
alpine
Description:
Text-based email client, friendly for novices but powerful
Submitter:
Sebastian Andrzej Siewior
Date:
2026-05-23 20:21:02 UTC
Severity:
normal
Tags:
#1137386#5
Date:
2026-05-23 13:22:50 UTC
From:
To:
OpenSSL 4.0 is in experimental. This package fails to build against it:

|If you get No such file error messages for files x509.h, ssl.h,
|pem.h, buffer.h, bio.h, and crypto.h, that means that OpenSSL
|is not installed on your system. Either install OpenSSL first
|or build with command: make slx SSLTYPE=none
|`cat CCTYPE` -c `cat CFLAGS` `cat OSCFLAGS` -c osdep.c
|osdep.c: In function ‘ssl_validate_cert’:
|osdep.c:698:12: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
|  698 |      cname = X509_get_subject_name(cert);
|      |            ^
|osdep.c:700:15: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
|  700 |         if((e = X509_NAME_get_entry(cname, j)) != NULL){
|      |               ^
|osdep.c:716:64: error: invalid use of incomplete typedef ‘ASN1_IA5STRING’ {aka ‘struct asn1_string_st’}
|  716 |                      (name->type = GEN_DNS) && (s = name->d.ia5->data) &&
|      |                                                                ^~

Full buildlog
https://breakpoint.cc/openssl-rebuild/logs-4/attempted/alpine_2.26+dfsg-5_amd64-2026-04-19T07:53:37Z

Sebastian

#1137386#12
Date:
2026-05-23 20:18:22 UTC
From:
To:
Hello.

We have received this from the Debian bug system.

I have not tested the git version, so I can't tell if this is also
reproducible there.

Ideally, I'd like to have a fix for this in the Debian package,
which is based on version 2.26.

Thanks.
----- Forwarded message from Sebastian Andrzej Siewior <sebastian@breakpoint.cc> ----- Date: Sat, 23 May 2026 15:22:50 +0200 From: Sebastian Andrzej Siewior <sebastian@breakpoint.cc> To: submit@bugs.debian.org Subject: Bug#1137386: alpine: FTBFS with openssl 4.0 Resent-CC: pkg-openssl-devel@alioth-lists.debian.net, asheesh@asheesh.org Package: alpine Version: 2.26+dfsg-5 Severity: normal Tags: sid control: affects -1 src:openssl User: pkg-openssl-devel@lists.alioth.debian.org Usertags: openssl-4.0 OpenSSL 4.0 is in experimental. This package fails to build against it: |If you get No such file error messages for files x509.h, ssl.h, |pem.h, buffer.h, bio.h, and crypto.h, that means that OpenSSL |is not installed on your system. Either install OpenSSL first |or build with command: make slx SSLTYPE=none |`cat CCTYPE` -c `cat CFLAGS` `cat OSCFLAGS` -c osdep.c |osdep.c: In function ‘ssl_validate_cert’: |osdep.c:698:12: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] | 698 | cname = X509_get_subject_name(cert); | | ^ |osdep.c:700:15: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] | 700 | if((e = X509_NAME_get_entry(cname, j)) != NULL){ | | ^ |osdep.c:716:64: error: invalid use of incomplete typedef ‘ASN1_IA5STRING’ {aka ‘struct asn1_string_st’} | 716 | (name->type = GEN_DNS) && (s = name->d.ia5->data) && | | ^~ Full buildlog https://breakpoint.cc/openssl-rebuild/logs-4/attempted/alpine_2.26+dfsg-5_amd64-2026-04-19T07:53:37Z Sebastian
----- End forwarded message -----
#1137386#15
Date:
2026-05-23 20:18:22 UTC
From:
To:
Hello.

We have received this from the Debian bug system.

I have not tested the git version, so I can't tell if this is also
reproducible there.

Ideally, I'd like to have a fix for this in the Debian package,
which is based on version 2.26.

Thanks.
----- Forwarded message from Sebastian Andrzej Siewior <sebastian@breakpoint.cc> ----- Date: Sat, 23 May 2026 15:22:50 +0200 From: Sebastian Andrzej Siewior <sebastian@breakpoint.cc> To: submit@bugs.debian.org Subject: Bug#1137386: alpine: FTBFS with openssl 4.0 Resent-CC: pkg-openssl-devel@alioth-lists.debian.net, asheesh@asheesh.org Package: alpine Version: 2.26+dfsg-5 Severity: normal Tags: sid control: affects -1 src:openssl User: pkg-openssl-devel@lists.alioth.debian.org Usertags: openssl-4.0 OpenSSL 4.0 is in experimental. This package fails to build against it: |If you get No such file error messages for files x509.h, ssl.h, |pem.h, buffer.h, bio.h, and crypto.h, that means that OpenSSL |is not installed on your system. Either install OpenSSL first |or build with command: make slx SSLTYPE=none |`cat CCTYPE` -c `cat CFLAGS` `cat OSCFLAGS` -c osdep.c |osdep.c: In function ‘ssl_validate_cert’: |osdep.c:698:12: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] | 698 | cname = X509_get_subject_name(cert); | | ^ |osdep.c:700:15: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] | 700 | if((e = X509_NAME_get_entry(cname, j)) != NULL){ | | ^ |osdep.c:716:64: error: invalid use of incomplete typedef ‘ASN1_IA5STRING’ {aka ‘struct asn1_string_st’} | 716 | (name->type = GEN_DNS) && (s = name->d.ia5->data) && | | ^~ Full buildlog https://breakpoint.cc/openssl-rebuild/logs-4/attempted/alpine_2.26+dfsg-5_amd64-2026-04-19T07:53:37Z Sebastian
----- End forwarded message -----