Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^2: Visual C 9.0 and dll hell

by wherrera (Novice)
on May 10, 2008 at 04:49 UTC ( [id://685832]=note: print w/replies, xml ) Need Help??


in reply to Re: Visual C 9.0 and dll hell
in thread Visual C 9.0 and dll hell

Thanks! That did _not_ fix the problem, but pointed me via the code in those lines (the patch is already there in my version) to where the current version of MakeMaker reads the compiler version from the file "config_heavy.pl", which was where I had to change things. That gets the mt program to run, properly I hope...thanks!

Replies are listed 'Best First'.
Re^3: Visual C 9.0 and dll hell
by syphilis (Archbishop) on May 10, 2008 at 09:59 UTC
    To (perhaps) answer the question you raised in your initial post to this thread, the following patch to lib/ActivePerl/Config.pm would (afaict) take care of the whole thing for you:
    --- Config.pm_orig Mon Jul 23 13:49:44 2007 +++ Config.pm Sat May 10 19:33:34 2008 @@ -81,7 +81,11 @@ } if ($COMPILER_ENV{$key} && !$compiler_env_initialized++) { - if ($^O eq "MSWin32" && (_gcc_requested() || !find_prog(_orig_con +f("cc")))) { + if ($^O eq "MSWin32" && !_gcc_requested() && find_prog(_orig_c +onf("cc"))) { + my @ccversion = split / /, `cl 2>&1`; + _override("ccversion", $ccversion[7]); + } + elsif ($^O eq "MSWin32" && (_gcc_requested() || !find_prog(_orig_ +conf("cc")))) { if (my $gcc = find_prog("gcc")) { # assume MinGW or similar is available $gcc =~ s,\\,/,g;
    I'm not sure that's the best way to determine the compiler version, and I'm not even sure that my logic is correct anyway, but it doesn't seem to break anything for me, and it should override the existing $Config{ccversion} with the appropriate value.

    I'll submit it as a bug report to ActiveState. They'll probably want to change my code (if they decide to implement the fix), but at least it demonstrates that only a minor amendment to lib/ActivePerl/Config.pm is necessary in order to have the whole thing dealt with automatically.

    Cheers,
    Rob
    Update: As of ActiveState build 1003 lib/ActivePerl/Config.pm has been patched to fix the problem that was the basis of the thread. (Unsurprisingly, the patch applied was not exactly the same as the one provided above.)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (2)
As of 2024-04-25 20:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found