Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Debugging module version conflicts

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


in reply to Debugging module version conflicts

What do you get when you run:

perl -MTime::HiRes -e "print $Time::HiRes::XS_VERSION"
and
perl -MTime::HiRes -e "print $Time::HiRes::VERSION"
Looking at Hires.pm, it seems to me that $XS_VERSION and $VERSION should be the same, and I therefore expect that the above two commands both produce the same output - and that the output is an error message very similar to the one you reported.

That being the case, it would appear that the object version (ie the version of the dll/so) is 1.86, whereas the version of the '.pm' file is 1.66.

This usually means that there was a botched install of the module at some stage .... or perhaps a botched install of ActivePerl. (You haven't perchance installed build 819 over the top of an earlier 5.8 build ?).

Mind you, I have no experience of eclipse/EPIC ...

Cheers,
Rob


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

    Hi Rob,

    one problem is it all works fine localy on the command line ...

    C:\Perl\lib\Time>set PERL_DL_DEBUG=1 C:\Perl\lib\Time>perl -MTime::HiRes=usleep -le "usleep 10;\ print $Time::HiRes::VE +RSION;\ print $Time::HiRes::XS +_VERSION" DynaLoader.pm loaded (C:/Perl/lib C:/Perl/site/lib ., \lib) DynaLoader::bootstrap for Time::HiRes (auto/Time/HiRes/HiRes.dll) 1.66 1.66 C:\Perl\lib\Time>perl -v This is perl, v5.8.7 built for MSWin32-x86-multi-thread (with 7 registered patches, see perl -V for more detail) Copyright 1987-2005, Larry Wall Binary build 813 [148120] provided by ActiveState http://www.ActiveSta +te.com ActiveState is a division of Sophos. Built Jun 6 2005 13:36:37 Perl may be copied only under the terms of either the Artistic License + or the GNU General Public License, which may be found in the Perl 5 source ki +t. Complete documentation for Perl, including FAQ lists, should be found +on this system using `man perl' or `perldoc perl'. If you have access to + the Internet, point your browser at http://www.perl.org/, the Perl Home Pa +ge.

    problem lies somewhere in the integration between my local Perl and something Eclipse/EPIC is snaffling from the CVS repo. I am trying to persuade Eclipse to set the PERL_DL_DEBUG env variable as almut suggested then perhaps I can find from where it is bringing in the wrong XS. Unfortunately my Eclipse debug dialogue is missing the 'Environment' tab.

    Cheers,
    R.

    Pereant, qui ante nos nostra dixerunt!
      Unfortunately my Eclipse debug dialogue is missing the 'Environment' tab.

      You could also set it from within your script, e.g.

      #!/usr/bin/perl BEGIN { $ENV{PERL_DL_DEBUG} = 1 } use Time::HiRes; # ...

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (9)
As of 2014-07-13 11:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

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








    Results (249 votes), past polls