Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Debugging module version conflicts

by almut (Canon)
on May 21, 2007 at 14:04 UTC ( #616566=note: print w/ replies, xml ) Need Help??


in reply to Debugging module version conflicts

Is there an way to see where Autoloader is getting the conflicting version from ?

You can set the environment variable PERL_DL_DEBUG to 1 to have DynaLoader print out some info, among which - if you have a recent Perl - you should find the absolute path to the .so file (-> dl_load_file).  To see the paths to the loaded .pm files, just print out %INC hash's values.

Doing both at the same time (on my system) gives:

$ PERL_DL_DEBUG=1 perl -MTime::HiRes -e 'print join "\n", values %INC' DynaLoader.pm loaded (/usr/lib/perl5/5.8.8/x86_64-linux-thread-multi / +usr/lib/perl5/5.8.8 /usr/lib/perl5/site_perl/5.8.8/x86_64-linux-threa +d-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/ +lib/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/ +vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl ., /lib64 /usr/lib64 /us +r/local/lib64) DynaLoader::bootstrap for Time::HiRes (auto/Time/HiRes/HiRes.so) dl_load_file(/usr/lib/perl5/5.8.8/x86_64-linux-thread-multi/auto/Time/ +HiRes/HiRes.so,0): /usr/lib/perl5/5.8.8/Carp.pm /usr/lib/perl5/5.8.8/warnings/register.pm /usr/lib/perl5/5.8.8/Exporter/Heavy.pm /usr/lib/perl5/5.8.8/Exporter.pm /usr/lib/perl5/5.8.8/vars.pm /usr/lib/perl5/5.8.8/strict.pm /usr/lib/perl5/5.8.8/x86_64-linux-thread-multi/Time/HiRes.pm /usr/lib/perl5/5.8.8/warnings.pm /usr/lib/perl5/5.8.8/AutoLoader.pm /usr/lib/perl5/5.8.8/x86_64-linux-thread-multi/Config.pm /usr/lib/perl5/5.8.8/x86_64-linux-thread-multi/DynaLoader.pm


Comment on Re: Debugging module version conflicts
Select or Download Code
Re^2: Debugging module version conflicts
by Random_Walk (Parson) on May 22, 2007 at 12:06 UTC

    That did the trick. Some injudicious copying of perl addins from another machine had put the .dll but not the .pm into the CVS tree. The CVS code comes first in the path so the local .pm tried to load the wrong .dll out the CVS. This was obviously clear when I set the debug in a BEGIN block. Cleaned up the CVS tree and everything is now OK.

    Thanks a million,
    R.

    Pereant, qui ante nos nostra dixerunt!

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://616566]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (6)
As of 2014-07-12 17:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (240 votes), past polls