Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

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' 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/ dl_load_file(/usr/lib/perl5/5.8.8/x86_64-linux-thread-multi/auto/Time/ +HiRes/,0): /usr/lib/perl5/5.8.8/ /usr/lib/perl5/5.8.8/warnings/ /usr/lib/perl5/5.8.8/Exporter/ /usr/lib/perl5/5.8.8/ /usr/lib/perl5/5.8.8/ /usr/lib/perl5/5.8.8/ /usr/lib/perl5/5.8.8/x86_64-linux-thread-multi/Time/ /usr/lib/perl5/5.8.8/ /usr/lib/perl5/5.8.8/ /usr/lib/perl5/5.8.8/x86_64-linux-thread-multi/ /usr/lib/perl5/5.8.8/x86_64-linux-thread-multi/

Replies are listed 'Best First'.
Re^2: Debugging module version conflicts
by Random_Walk (Prior) 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,

    Pereant, qui ante nos nostra dixerunt!

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://616566]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (5)
As of 2018-01-16 13:58 GMT
Find Nodes?
    Voting Booth?
    How did you see in the new year?

    Results (180 votes). Check out past polls.