So I'm trying to create a coverage report for my scripts but I get the following error:
Can't load '/usr/pkgs/perl/5.14.1/lib64/module/x86_64-linux/auto/Data/ +Dumper/Dumper.so' for module Data::Dumper: /usr/pkgs/perl/5.14.1/lib6 +4/module/x86_64-linux/auto/Data/Dumper/Dumper.so: undefined symbol: P +L_hints at /usr/pkgs/perl/5.26.1/lib64/5.26.1/XSLoader.pm line 96. at /usr/pkgs/perl/5.14.1/lib64/module/x86_64-linux/Data/Dumper.pm li +ne 36. Compilation failed in require at /disk/19.04.003/bin/script.pl line 13 +8. BEGIN failed--compilation aborted at /disk/19.04.003/bin/script.pl lin +e 138.
On line 36 of Dumper.pm the code is:
XSLoader::load( 'Data::Dumper' ) unless $Useperl;
And on line 96 of XSLoader.pm the code is:
# Many dynamic extension loading problems will appear to come from # this section of code: XYZ failed at line 123 of DynaLoader.pm. # Often these errors are actually occurring in the initialisation # C code of the extension XS file. Perl reports the error as being # in this perl code simply because this was the last perl code # it executed. my $libref = dl_load_file($file, 0) or do { require Carp; Carp::croak("Can't load '$file' for module $module: " . dl_error() +); };
The way I did the coverage report:
setenv PERL5LIB /disk/coverage/perl/lib setenv PERL5OPT -MDevel::Cover setenv DEVEL_COVER_DB_FORMAT JSON
How should I debug such issue? Where should I start?

In reply to undefined symbol: PL_hints by ovedpo15

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.