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?

In reply to Devel::Hints compilation error on RHEL7 by mfrei

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.