FWIW, I can reproduce the problem with Config.pm outside of Devel::CheckLib.pm:

C:\test>perl -MConfig -E"say for @Config{ qw[ccflags ldflags] }" &Config::AUTOLOAD failed on Config::launcher at C:/Perl64/lib/Config.p +m line 76. BEGIN failed--compilation aborted at C:/Perl64/lib/ActivePerl/Config.p +m line 4. Compilation failed in require at C:/Perl64/lib/Config_heavy.pl line 11 +. BEGIN failed--compilation aborted at C:/Perl64/lib/Config_heavy.pl lin +e 15. Compilation failed in require at C:/Perl64/lib/Config.pm line 74. C:\test>perl -MConfig -E"say @Config{ qw[ccflags ldflags ]}" -nologo -GF -W3 -MD -Zi -DNDEBUG -Ox -GL -fp:precise -DWIN32 -D_CONSOL +E -DNO_STRICT -DHAVE_DES_FCRYPT -DWIN64 -DCONSERVATIVE -DUSE_SITECUST +OMIZE -DPRIVLIB_LAST_IN_INC -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_S +YS -DUSE_PERLIO -DPERL_MSVCRT_READFIX-nologo -nodefaultlib -debug -op +t:ref,icf -ltcg -libpath:"C:\Perl64\lib\CORE" -machine:AMD64

But I've still no real idea why that happens.

My best guess is that %Config is some kind of tied or magic-applied hash and it doesn't like having its elements aliased.


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

In reply to Re: Devel::CheckLib problem by BrowserUk
in thread Devel::CheckLib problem by syphilis

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.