Re: weirdness with CPAN modules that use Data::Dumper



On 06/30/2007 01:34 AM, Joseph Brenner wrote:
I've got a CPAN module I've written that has Data::Dumper
listed in PREREQ_PM, because it has some tests that use it.
These tests are failing with this odd message:

t/relate...........Can't load '/home/david/cpantesting/perl-5.8.8/lib/5.8.8/i686-linux/auto/Data/Dumper/Dumper.so' for module Data::Dumper: /home/david/cpantesting/perl-5.8.8/lib/5.8.8/i686-linux/auto/Data/Dumper/Dumper.so: undefined symbol: PL_sv_undef at /home/david/cpantesting/perl-5.8.8/lib/5.8.8/i686-linux/XSLoader.pm line 70.
at /home/david/cpantesting/perl-5.8.8/lib/5.8.8/i686-linux/Data/Dumper.pm line 36
Compilation failed in require at /home/david/_/_/perl-5.8.8/.cpan/build/App-Relate-0.03-4hkFGt/t/../relate line 44.

Any clues as to what this might be about?


App::Relate is the most difficult CPAN module I've ever installed. It has many dependencies, and one of those (Test::File::Contents) uses Module::Build. My CPAN doesn't do Module::Build, so I had to delve into the swamp myself.

Your module builds, tests and installs correctly after its many prerequisites are installed. Maybe you have two different versions of Data::Dumper or two different versions of Perl installed, and they are conflicting.

Data::Dumper, strict, warnings, Env, FindBin, Carp, and File::Copy are parts of Perl 5.8.8. AFAIK, you don't need to list them in PREREQ_PM if you "use" the right version of Perl.

.



Relevant Pages