[Bug 2254339] New: Use of incompatible pointer type in
perlmulticore.h
by bugzilla@redhat.com
https://bugzilla.redhat.com/show_bug.cgi?id=2254339
Bug ID: 2254339
Summary: Use of incompatible pointer type in perlmulticore.h
Product: Fedora
Version: rawhide
OS: Linux
Status: NEW
Component: perl-Coro-Multicore
Severity: medium
Assignee: ppisar(a)redhat.com
Reporter: paul(a)city-fan.org
QA Contact: extras-qa(a)fedoraproject.org
CC: perl-devel(a)lists.fedoraproject.org, ppisar(a)redhat.com
Target Milestone: ---
Classification: Fedora
When building perl-Compress-LZF using an instrumented gcc to find issues that
will affect GCC 14 (see
https://fedoraproject.org/wiki/Toolchain/PortingToModernC#Special_COPR_re...),
I got this error:
In file included from LZF.xs:5:
/usr/include/perlmulticore.h:195:8: error: initialization of ‘void
(*)(PerlInterpreter *)’ {aka ‘void (*)(struct interpreter *)’} from
incompatible pointer type ‘void (*)(void)’
195 | = { perl_multicore_init, 0 };
| ^~~~~~~~~~~~~~~~~~~
The relevant part of perlmulticore.h is this:
--------------------------------------------------------------------------
/* this struct is shared between all modules, and currently */
/* contain only the two function pointers for release/acquire */
struct perl_multicore_api
{
void (*pmapi_release)(pTHX);
void (*pmapi_acquire)(pTHX);
};
static void perl_multicore_init (void);
static const struct perl_multicore_api perl_multicore_api_init
= { perl_multicore_init, 0 };
--------------------------------------------------------------------------
The parameter mismatch seems to have been introduced in the downstream patch
Coro-Multicore-1.04-Fix-passing-context.patch.
The same issue shows up when building perl-Coro-Multicore itself using the COPR
version of gcc.
Reproducible: Always
Steps to Reproduce:
Try to build perl-Coro-Multicore using the mock configuration shown at
https://fedoraproject.org/wiki/Toolchain/PortingToModernC#Special_COPR_re...
--
You are receiving this mail because:
You are on the CC list for the bug.
https://bugzilla.redhat.com/show_bug.cgi?id=2254339
Report this comment as SPAM: https://bugzilla.redhat.com/enter_bug.cgi?product=Bugzilla&format=report-...
5 months