https://bugzilla.redhat.com/show_bug.cgi?id=2491638

            Bug ID: 2491638
           Summary: perl-Crypt-SMIME-0.33-2.fc45 FTBFS with OpenSSL 4:
                    SMIME.xs:442:28: error: invalid use of incomplete
                    typedef ‘ASN1_STRING’
           Product: Fedora
           Version: 45
            Status: NEW
         Component: perl-Crypt-SMIME
          Assignee: [email protected]
          Reporter: [email protected]
        QA Contact: [email protected]
                CC: [email protected],
                    [email protected], [email protected]
            Blocks: 2433833 (F45FTBFS,RAWHIDEFTBFS)
  Target Milestone: ---
    Classification: Fedora



perl-Crypt-SMIME-0.33-2.fc45 fails to build in Fedora 45:

gcc -c  -DOPENSSL_LOAD_CONF -DHAVE_GETTIMEOFDAY -DHAVE_SYS_TIME_H -DHAVE_TIME
-DHAVE_TIME_H -D_REENTRANT -D_GNU_SOURCE -O2 -flto=auto -ffat-lto-objects
-fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang
-Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3
-Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1
-fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64
-march=x86-64 -mtune=generic -fasynchronous-unwind-tables
-fstack-clash-protection -fcf-protection -mtls-dialect=gnu2
-fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fwrapv
-fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -O2 -flto=auto -ffat-lto-objects -fexceptions -g
-grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang
-Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3
-Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1
-fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64
-march=x86-64 -mtune=generic -fasynchronous-unwind-tables
-fstack-clash-protection -fcf-protection -mtls-dialect=gnu2
-fno-omit-frame-pointer -mno-omit-leaf-frame-pointer   -DVERSION=\"0.33\"
-DXS_VERSION=\"0.33\" -fPIC "-I/usr/lib64/perl5/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: *** [Makefile:369: SMIME.o] Error 1

This is triggered by upgrading openssl-devel from 1:3.5.7-1.fc45 to
1:4.0.1-1.fc45. OpenSSL 4 intentionally
<https://github.com/openssl/openssl/releases/tag/openssl-4.0.0> made
ASN1_STRING structure opaque. One needs to use functions for accessing its
internals.



Referenced Bugs:

https://bugzilla.redhat.com/show_bug.cgi?id=2433833
[Bug 2433833] Fedora 45 FTBFS Tracker
-- 
You are receiving this mail because:
You are on the CC list for the bug.
https://bugzilla.redhat.com/show_bug.cgi?id=2491638

Report this comment as SPAM: 
https://bugzilla.redhat.com/enter_bug.cgi?product=Bugzilla&format=report-spam&short_desc=Report%20of%20Bug%202491638%23c0

-- 
_______________________________________________
perl-devel mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/[email protected]
Do not reply to spam, report it: 
https://forge.fedoraproject.org/infra/tickets/issues/new

Reply via email to