[Bug 2254339] New: Use of incompatible pointer type in perlmulticore.h

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx
          Reporter: paul@xxxxxxxxxxxx
        QA Contact: extras-qa@xxxxxxxxxxxxxxxxx
                CC: perl-devel@xxxxxxxxxxxxxxxxxxxxxxx, ppisar@xxxxxxxxxx
  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_repository_with_instrumented_GCC),
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_repository_with_instrumented_GCC


-- 
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-spam&short_desc=Report%20of%20Bug%202254339%23c0
--
_______________________________________________
perl-devel mailing list -- perl-devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to perl-devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
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/perl-devel@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue




[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Legacy Announce]     [Fedora PHP Devel]     [Kernel Devel]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite Information]

  Powered by Linux