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

            Bug ID: 2491639
           Summary: perl-Crypt-SSLeay-0.72-50.fc45 FTBFS with OpenSSL 4:
                    SSLeay.xs:524:53: error: invalid use of incomplete
                    typedef ‘ASN1_TIME’
           Product: Fedora
           Version: 45
               URL: https://koschei.fedoraproject.org//package/perl-Crypt-
                    SSLeay
            Status: NEW
         Component: perl-Crypt-SSLeay
          Assignee: [email protected]
          Reporter: [email protected]
        QA Contact: [email protected]
                CC: [email protected], [email protected],
                    [email protected],
                    [email protected], [email protected]
            Blocks: 2433833 (F45FTBFS,RAWHIDEFTBFS)
  Target Milestone: ---
    Classification: Fedora



perl-Crypt-SSLeay-0.72-50.fc45 fails to build in Fedora 45:

gcc -c   -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.72\"
-DXS_VERSION=\"0.72\" -fPIC "-I/usr/lib64/perl5/CORE"   SSLeay.c
SSLeay.c: In function ‘XS_Crypt__SSLeay__CTX_new’:
SSLeay.c:288:17: warning: unused variable ‘packname’ [-Wunused-variable]
  288 |         SV*     packname = ST(0)
      |                 ^~~~~~~~
SSLeay.c: In function ‘XS_Crypt__SSLeay__Conn_new’:
SSLeay.c:599:17: warning: unused variable ‘packname’ [-Wunused-variable]
  599 |         SV*     packname = ST(0)
      |                 ^~~~~~~~
SSLeay.xs: In function ‘XS_Crypt__SSLeay__X509_get_notBeforeString’:
SSLeay.xs:516:54: error: invalid use of incomplete typedef ‘ASN1_TIME’ {aka
‘struct asn1_string_st’}
  516 |             RETVAL = (char *)X509_get_notBefore(cert)->data;
      |                                                      ^~
SSLeay.xs: In function ‘XS_Crypt__SSLeay__X509_get_notAfterString’:
SSLeay.xs:524:53: error: invalid use of incomplete typedef ‘ASN1_TIME’ {aka
‘struct asn1_string_st’}
  524 |             RETVAL = (char *)X509_get_notAfter(cert)->data;
      |                                                     ^~
make: *** [Makefile:357: SSLeay.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 made asn1_string_st structure opaque
and its internals need to be accesses with function calls.



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=2491639

Report this comment as SPAM: 
https://bugzilla.redhat.com/enter_bug.cgi?product=Bugzilla&format=report-spam&short_desc=Report%20of%20Bug%202491639%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