#1138477 r-cran-openssl: FTBFS with openssl 4.0

Package:
r-cran-openssl
Source:
r-cran-openssl
Description:
GNU R toolkit for encryption, signatures and certificates based on OpenSSL
Submitter:
Sebastian Andrzej Siewior
Date:
2026-06-12 07:57:03 UTC
Severity:
normal
Tags:
#1138477#5
Date:
2026-05-30 16:22:08 UTC
From:
To:
OpenSSL 4.0 is in experimental. This package fails to build against it:

| x86_64-linux-gnu-gcc -I"/usr/share/R/include" -DNDEBUG -DSTRICT_R_HEADERS -DR_NO_REMAP      -fpic  -g -O2 -ffile-prefix-map=/build/reproducible-path/r-base-4.5.3.20260417=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2  -c cert.c -o cert.o
| cert.c: In function ‘R_cert_info’:
| cert.c:28:8: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
|    28 |   name = X509_get_subject_name(cert);
|       |        ^
| cert.c:37:8: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
|    37 |   name = X509_get_issuer_name(cert);
|       |        ^
| cert.c:53:58: error: invalid use of incomplete typedef ‘ASN1_BIT_STRING’ {aka ‘const struct asn1_string_st’}
|    53 |   SET_VECTOR_ELT(out, 3, Rf_allocVector(RAWSXP, signature->length));
|       |                                                          ^~
| cert.c:54:44: error: invalid use of incomplete typedef ‘ASN1_BIT_STRING’ {aka ‘const struct asn1_string_st’}
|    54 |   memcpy(RAW(VECTOR_ELT(out, 3)), signature->data, signature->length);
|       |                                            ^~
| cert.c:54:61: error: invalid use of incomplete typedef ‘ASN1_BIT_STRING’ {aka ‘const struct asn1_string_st’}
|    54 |   memcpy(RAW(VECTOR_ELT(out, 3)), signature->data, signature->length);
|       |                                                             ^~
| make[1]: *** [/usr/lib/R/etc/Makeconf:190: cert.o] Error 1

Full buildlog
https://breakpoint.cc/openssl-rebuild/logs-4/attempted/r-cran-openssl_2.3.4+dfsg-1_amd64-2026-04-19T13:21:41Z

Sebastian

#1138477#12
Date:
2026-06-10 09:44:09 UTC
From:
To:
Dear Maintainer,

The bug is fixed upstream https://github.com/jeroen/openssl/commit/0afd52e18fcd2a0aca18d3389a3942c64fda417f

#1138477#19
Date:
2026-06-12 07:49:05 UTC
From:
To:
Thank you I uploaded the new upstream version that fixes the bug.

Le Wed, Jun 10, 2026 at 11:44:09AM +0200, Ravi Kant Sharma a écrit :