Click here to get back home

weirdness with CPAN modules that use Data::Dumper

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
weirdness with CPAN modules that use Data::Dumper Joseph Brenner 06-30-2007
Posted by Joseph Brenner on June 30, 2007, 2:34 am
Please log in for more thread options



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?


Posted by Mumia W. on June 30, 2007, 8:18 am
Please log in for more thread options


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.


Posted by Joseph Brenner on July 25, 2007, 4:00 pm
Please log in for more thread options




> 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.

Sorry about that. To some extent it was a design decision
on my part to not worry about adding dependencies.
I figured CPANPLUS was probably good enough to take care of
them these days.

But I do agree that the whole system is a bit of a mess
(the finished product, the "relate" script is a little slower
than I'd like) and could probably use some re-thinking.

And Test::File::Contents is a module I've soured on for other reasons
(it doesn't give you enough context about the reason for a
failure to be worth the small convenience). I'll probably drop
it from future releases.

> 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.

The error isn't happening on my machine. It's an automatic
failure report from the cpan-testers. Perhaps I should send a
note to "cpan-testers@perl.org" (or even "david@cantrell.org.uk"
about it)...

> 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.

My understanding is that it's best to list everything in
PREREQ_PM to cover odd situations where an installation has
choosen not to include all of the standard library.

One thing I've been playing with though is to avoid doing "use
Data::Dumper", instead I do requires of it, but only if the
$DEBUG flag has been turned on. Arguably I could just drop it
from PREREQ_PM since in normal use it won't be needed...


Similar ThreadsPosted
Reading Data::Dumper output February 8, 2008, 12:11 pm
ANNOUNCE: Code::Dumper - a ::Dumper for code. Available on CPAN November 21, 2005, 11:03 am
SOAP::Lite weirdness April 6, 2006, 8:07 am
Reusing SQL data-related logic, replacing weird modules and improving Class::DBI July 2, 2005, 1:23 am
Digest::SHA1 b64digest weirdness May 10, 2005, 1:33 pm
download all CPAN modules ? August 25, 2004, 10:35 pm
To publish on CPAN or not? And architectural q. on modules. November 29, 2007, 12:56 pm
How to find all modules, required by a given CPAN module September 4, 2005, 2:25 am
querying modules dependency tree on CPAN November 19, 2004, 1:54 am
General question on CPAN perl modules March 13, 2005, 6:34 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap