Bug 2259171 - perl-CGI-SpeedyCGI-2.22-52.fc40 FTBFS: speedy_perl.c:918:29: error: passing argument 2 of ‘perl_parse’ from incompatible pointer type
Summary: perl-CGI-SpeedyCGI-2.22-52.fc40 FTBFS: speedy_perl.c:918:29: error: passing a...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: perl-CGI-SpeedyCGI
Version: 40
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Robert Scheck
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: F40FTBFS
TreeView+ depends on / blocked
 
Reported: 2024-01-19 09:47 UTC by Petr Pisar
Modified: 2024-03-23 00:26 UTC (History)
3 users (show)

Fixed In Version: perl-CGI-SpeedyCGI-2.22-54.fc40
Clone Of:
Environment:
Last Closed: 2024-03-23 00:26:22 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Petr Pisar 2024-01-19 09:47:32 UTC
perl-CGI-SpeedyCGI-2.22-52.fc40 fails to build in Fedora 40:

gcc -c  -I../src -I. -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 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -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   -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer   -DVERSION=\"2.22\" -DXS_VERSION=\"2.22\" -fPIC "-I/usr/lib64/perl5/CORE"  -DSPEEDY_PROGNAME=\"speedy_backend\" -DSPEEDY_VERSION=\"2.22\" -DSPEEDY_BACKEND speedy_perl.c
speedy_perl.c: In function ‘speedy_perl_init’:
speedy_perl.c:918:29: error: passing argument 2 of ‘perl_parse’ from incompatible pointer type [-Wincompatible-pointer-types]
  918 |     if (perl_parse(my_perl, xs_init,
      |                             ^~~~~~~
      |                             |
      |                             void (*)(void)
In file included from /usr/lib64/perl5/CORE/perl.h:6188,
                 from ../src/speedy_inc_perl.h:25,
                 from speedy.h:1,
                 from speedy_perl.c:20:
/usr/lib64/perl5/CORE/proto.h:3472:47: note: expected ‘XSINIT_t’ {aka ‘void (*)(struct interpreter *)’} but argument is of type ‘void (*)(void)’
 3472 | perl_parse(PerlInterpreter *my_perl, XSINIT_t xsinit, int argc, char **argv, char **env);
      |                                      ~~~~~~~~~^~~~~~

A difference between passing and failing build root is at <https://koschei.fedoraproject.org/build/17079679>. This failure is probably triggered by upgrading gcc from 13.2.1-6.fc40 to 14.0.1-0.1.fc40.

Comment 1 Aoife Moloney 2024-02-15 23:10:38 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 40 development cycle.
Changing version to 40.

Comment 2 Fedora Update System 2024-03-02 21:07:34 UTC
FEDORA-2024-d6b58b2508 (perl-CGI-SpeedyCGI-2.22-54.fc40) has been submitted as an update to Fedora 40.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-d6b58b2508

Comment 3 Fedora Update System 2024-03-03 02:10:13 UTC
FEDORA-2024-d6b58b2508 has been pushed to the Fedora 40 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-d6b58b2508`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-d6b58b2508

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 4 Fedora Update System 2024-03-23 00:26:22 UTC
FEDORA-2024-d6b58b2508 (perl-CGI-SpeedyCGI-2.22-54.fc40) has been pushed to the Fedora 40 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.