On Thu, Jul 20, 2023 at 02:20:59AM +0200, Kevin Kofler via devel wrote:
> Richard W.M. Jones wrote:
> > 
> /home/rjones/d/fedora/polymake/rawhide/polymake-4.10/lib/core/src/perl/RefHash.xxs:737:11:
> > error: ‘Perl_ck_fun’ was not declared in this scope; did you mean
> > ‘Perl_cx_dup’?
> >   737 |    return Perl_ck_fun(aTHX_ o);
> >       |           ^~~~~~~~~~~
> >       |           Perl_cx_dup
> > ninja: build stopped: subcommand failed.
> 
> As I understand it, this function is included in the public (at least, it is 
> declared EXT, so it should not be hidden) PL_check array (several times, the 
> first time at index 2), so I believe something like:
> #define Perl_ck_fun (PL_check[2])
> should work.

That seems possible, although it's a bit of a hack to misuse the array
like this:

https://github.com/Perl/perl5/blob/ccfa6b533228ad41e4dbc5576cd43081b8fd2a13/opcode.h#L1431

I suppose if polymake is going to fiddle with Perl internals anyway,
then why not.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
nbdkit - Flexible, fast NBD server with plugins
https://gitlab.com/nbdkit/nbdkit
_______________________________________________
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
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/devel@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to