#1140354 libcrypt-smime-perl: FTBFS with openssl 4.0

Package:
libcrypt-smime-perl
Source:
libcrypt-smime-perl
Description:
S/MIME message signing, verification, encryption and decryption module
Submitter:
Sebastian Andrzej Siewior
Date:
2026-08-12 16:09:01 UTC
Severity:
normal
Tags:
#1140354#5
Date:
2026-06-18 21:37:26 UTC
From:
To:
OpenSSL 4.0 is in experimental. This package fails to build against it:

| x86_64-linux-gnu-gcc -c  -DOPENSSL_LOAD_CONF -DHAVE_GETTIMEOFDAY -DHAVE_SYS_TIME_H -DHAVE_TIME -DHAVE_TIME_H -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/libcrypt-smime-perl-0.33=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2   -DVERSION=\"0.33\" -DXS_VERSION=\"0.33\" -fPIC "-I/usr/lib/x86_64-linux-gnu/perl/5.40/CORE"   SMIME.c
| SMIME.xs: In function ‘CMS_get_smimecaps’:
| SMIME.xs:439:9: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
|   439 |     cap = X509_ATTRIBUTE_get0_type(attr, 0);
|       |         ^
| SMIME.xs:442:28: error: invalid use of incomplete typedef ‘ASN1_STRING’ {aka ‘struct asn1_string_st’}
|   442 |     p = cap->value.sequence->data;
|       |                            ^~
| SMIME.xs:444:52: error: invalid use of incomplete typedef ‘ASN1_STRING’ {aka ‘struct asn1_string_st’}
|   444 |         ASN1_item_d2i(NULL, &p, cap->value.sequence->length, ASN1_ITEM_rptr(X509_ALGORS));
|       |                                                    ^~
| make[1]: *** [Makefile:366: SMIME.o] Error 1

Full buildlog
https://breakpoint.cc/openssl-rebuild/logs-4/attempted/libcrypt-smime-perl_0.33-1_amd64-2026-06-16T23:43:52Z

Sebastian

#1140354#12
Date:
2026-08-11 12:15:32 UTC
From:
To:
This was fixed in 0.34.

Closed bug report: https://rt.cpan.org/Public/Bug/Display.html?id=180472
<https://rt.cpan.org/Public/Bug/Display.html?id=180472>

Diff:
https://metacpan.org/release/MIKAGE/Crypt-SMIME-0.34/diff/MIKAGE/Crypt-SMIME-0.33
<https://metacpan.org/release/MIKAGE/Crypt-SMIME-0.34/diff/MIKAGE/Crypt-SMIME-0.33>

#1140354#17
Date:
2026-08-12 15:46:43 UTC
From:
To:
Thanks for the pointer!
Uploading to Debian/unstable …


Cheers,
gregor

#1140354#22
Date:
2026-08-12 16:06:15 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
libcrypt-smime-perl, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1140354@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
gregor herrmann <gregoa@debian.org> (supplier of updated libcrypt-smime-perl package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Wed, 12 Aug 2026 17:43:41 +0200
Source: libcrypt-smime-perl
Architecture: source
Version: 0.34-1
Distribution: unstable
Urgency: medium
Maintainer: Debian Perl Group <pkg-perl-maintainers@lists.alioth.debian.org>
Changed-By: gregor herrmann <gregoa@debian.org>
Closes: 1140354
Changes:
 libcrypt-smime-perl (0.34-1) unstable; urgency=medium
 .
   * Team upload.
   * Import upstream version 0.34.
     - Fixed a build issue with OpenSSL 4.0
     (Closes: #1140354)
Checksums-Sha1:
 52a2933d456ca78a8de8c268f15ecd5e2ec0336b 2695 libcrypt-smime-perl_0.34-1.dsc
 31245c786ab0ef3aec319d177fe2ce4b3766b6be 29978 libcrypt-smime-perl_0.34.orig.tar.gz
 cdfd17c232bdadc922a7dda38e44d77edad9ef05 3544 libcrypt-smime-perl_0.34-1.debian.tar.xz
 c4c32adc4adb5a5a5219304fc70f1e635aa15ec9 75840 libcrypt-smime-perl_0.34-1.git.tar.xz
 ece7c79d2bd15cb9c81dac8e4bccdccde370aea4 17596 libcrypt-smime-perl_0.34-1_source.buildinfo
Checksums-Sha256:
 0e266583ae915b60d8adbd93cd0d77e5f17d6ae5176a06edea94eacdfe00727f 2695 libcrypt-smime-perl_0.34-1.dsc
 a340ea669356f4a00608c6d1ef141c10ce10dce0232e976fe8db79f16fd6e535 29978 libcrypt-smime-perl_0.34.orig.tar.gz
 9fada50f5d95e6c4cffe7fbc80e995b3bc3427e9178d555c913f0da780b0bdfd 3544 libcrypt-smime-perl_0.34-1.debian.tar.xz
 7c4ba193615ea4301d8fd2b7212b078b246af85bb60cfa18ae87f47e3fba1c43 75840 libcrypt-smime-perl_0.34-1.git.tar.xz
 cd1a42e0537e3ecb4d2ceb517c4f1f59db1dda29f4678d0a1dffefcd2512e53b 17596 libcrypt-smime-perl_0.34-1_source.buildinfo
Files:
 88cef6a6da77aff1a7165e7c9308c8f5 2695 perl optional libcrypt-smime-perl_0.34-1.dsc
 41d18832d6ab6b0e84443849983e0846 29978 perl optional libcrypt-smime-perl_0.34.orig.tar.gz
 c10c35ed78cf93e8cfdafe1d6e61d5fe 3544 perl optional libcrypt-smime-perl_0.34-1.debian.tar.xz
 56748e2f5c23202e4775edf4ad35969e 75840 perl None libcrypt-smime-perl_0.34-1.git.tar.xz
 f1d12ced28c274430c81aed127daff18 17596 perl optional libcrypt-smime-perl_0.34-1_source.buildinfo
Git-Tag-Info: tag=cd7b8ab99e74760c57bc0218bf18c6362dac2786 fp=d1e1316e93a760a8104d85fabb3a68018649aa06
Git-Tag-Tagger: gregor herrmann <gregoa@debian.org>
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEN02M5NuW6cvUwJcqYG0ITkaDwHkFAmp8lZUACgkQYG0ITkaD
wHlFvRAAo5uDd6RZeHok63Hb4v95oIvjpIejP1RqmCq0CkfNizXjmPg0ItzpqcA1
/FY+Zsuapi2mIaxGuwFGuv2MZRRuqPBoL7GMbcvBWoELD8h/b8MzMbs3RGSry8eS
ZBvGsuV4E4P9p3+iTZ5mab0jHy/aVWg8NzRlJD9F73jQ8OPObVd00S3pHmuUcvti
PRxFR7gsy2EEAfD2L9/tzHHCUYOUeDrdc9bA+/9TOyabaTBTnwJ0k3Ly3FKM0pm6
+4zvsi5EILFAdvbxvhIu0bZkk9PFvmkJHUHv/4phtQj5Bo03u5DiR2cMIZnJXW3H
dpjnmPs+5b+RN14a4QXDEghMW/wpG2x8DAhXF5N2L3P6vpBJEfs6ZMSH+OUr+1IH
0wkQlYeiqDL4U54qtkTnRdgyPVUH/5bewI0OE8n3ZKCNx2tTN7gXJadV1wjPVrlV
uwikGhcDhU0B2ck6xGUmsCVPwbT6kflUxAeJMPKSXoQcM8txSVT07yDB443bl/Ea
uXn1oaVmXg/+AJ282NLloGNqTKO8VfN5N9vhDfW3tB4KIdywhKlkUYyUsBP3FXgE
HLlOkjHMAsG4vUHGFO6ygNS01c4o3K5hpFOyxTcp4S1p1MzbGkHfMXJxMFxQaeuh
5VCC7D+kfO/wvNGHPbdajnmbB1xXE8A4GA0ylmzFHEAYQIGHjbk=
=tLtz
-----END PGP SIGNATURE-----