develooper Front page | perl.perl5.porters | Postings from March 2012

Re: [perl #40652] unclear version error message

Thread Previous | Thread Next
From:
Nicholas Clark
Date:
March 27, 2012 06:06
Subject:
Re: [perl #40652] unclear version error message
Message ID:
20120327130628.GQ9069@plum.flirble.org
On Thu, Nov 02, 2006 at 11:53:39AM -0800, Glenn Linderman wrote:

> It would be great if the error message said something like:
> 
> "Config.pm version (v5.8.8) doesn't match C:\Windows\system32\perl58.dll 
> version (v5.8.3)"

Agree that it would be useful.

> Does Windows perl have $Config{useshrplib} set?  If so, we could change
> configpm (the tool that generates lib/Config.pm) to conditionally say
> something like
> 
>     Perl Config.pm version (v5.8.8) doesn't match shared library version
>    used by C:/Perl/bin/perl.exe (v5.8.3) at C:/Perl/lib/Config.pm line 46.
> 
> I don't know if that would be more or less confusing, however.

I think that's going to be more confusing, as it's going to be 100% wrong.

The desire is to have the path of the (loaded) perl DLL in the error message.
The value of $Config{useshrplib} in Config.pm is going to be the location of
the *correct* perl DLL. The error message is triggered by the (stub) perl.exe
loading the wrong DLL. The wrong DLL might have any path, and it's that
(unknown to %Config::Config) path for the loaded DLL that is desired for the
error message.

Nicholas Clark

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About