Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Devel::Hints compilation error on RHEL7

by mfrei (Initiate)
on Aug 05, 2020 at 19:33 UTC ( [id://11120351]=perlquestion: print w/replies, xml ) Need Help??

mfrei has asked for the wisdom of the Perl Monks concerning the following question:

I am trying to install perl-Devel-Hints v0-21 on RHEL7. The Perl version is perl-5.16.3-295.el7.x86_64. When 'cpanm' tries to build it, I get the following error:
Building and testing Devel-Hints-0.21 cp Hints.pm blib/lib/Devel/Hints.pm /usr/bin/perl "-Iinc" /home/myuser/perl5/lib/perl5/ExtUtils/xsubpp -t +ypemap /usr/share/perl5/ExtUtils/typemap -typemap typemap Hints.xs > + Hints.xsc && mv Hints.xsc Hints.c Please specify prototyping behavior for Hints.xs (see perlxs manual) gcc -c -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -fstack +-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BI +TS=64 -Wno-format-security -DVERSION=\"0.21\" -DXS_VERSION=\"0.21\" + -fPIC "-I/usr/lib64/perl5/CORE" Hints.c Hints.xs: In function 'cop_stashpv': Hints.xs:186:44: error: macro "CopSTASHPV_set" requires 3 arguments, b +ut only 2 given SET(stashpv, CopSTASHPV_set(cop, value)); ^ Hints.xs:186:18: error: 'CopSTASHPV_set' undeclared (first use in this + function) SET(stashpv, CopSTASHPV_set(cop, value)); ^ Hints.xs:37:17: note: in definition of macro 'SET' s; \ ^ Hints.xs:186:18: note: each undeclared identifier is reported only onc +e for each function it appears in SET(stashpv, CopSTASHPV_set(cop, value)); ^ Hints.xs:37:17: note: in definition of macro 'SET' s; \ ^ Hints.xs: In function 'cop_arybase': Hints.xs:19:30: error: 'COP' has no member named 'cop_arybase' #define CopARYBASE_set(c,v) c->cop_arybase = v ^ Hints.xs:37:17: note: in definition of macro 'SET' s; \ ^ Hints.xs:231:18: note: in expansion of macro 'CopARYBASE_set' SET(arybase, CopARYBASE_set(cop, value)); ^ Hints.xs:16:28: error: 'COP' has no member named 'cop_arybase' #define CopARYBASE_get(c) c->cop_arybase ^ Hints.xs:233:12: note: in expansion of macro 'CopARYBASE_get'
I have searched high and wide and cannot find out how to fix this. I did find a bug item, but it just says it was fixed in GitHub. Does anyone have a solution for this?

Replies are listed 'Best First'.
Re: Devel::Hints compilation error on RHEL7
by haukex (Archbishop) on Aug 05, 2020 at 19:54 UTC

    Those errors look very similar to CPAN Testers results such as this one, and the matrix shows that the last Perl release that the module worked on was 5.14.4, and on 5.16 and up doesn't build.

    I did find a bug item, but it just says it was fixed in GitHub.

    Where did you find this? Can you provide a link?

    By the way, the last release of the module is almost 10 years ago now. Since it deals with Perl's internals, why do you need it?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://11120351]
Approved by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (7)
As of 2024-04-19 09:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found