laziness, impatience, and hubris | |
PerlMonks |
Re^4: Missing bufferoverflowU.libby BrowserUk (Patriarch) |
on Mar 14, 2009 at 03:17 UTC ( [id://750555]=note: print w/replies, xml ) | Need Help?? |
Or is there still some real need for that library ? There doesn't appear to be, as my hacked bufferoverflowU.lib was sufficient to allow the build to complete. As does the real thing now I've got my hands on a copy. So just removing it from the config would probably be the best solution, now that I know. However, whichever way I do it, I'm still getting the same runtime error when I try to load the resultant dll:
This is the 'manifest' issue. Looking in the blib, the manifest has been produced and it's contents appear to match the imports contained in the dll. But if I try to extract the manifect from the dll, it isn't there which suggests to me that the generated makefile has never attempted (or attempted but failed) to attach the manifest. There is nothing in the console output from the make to suggest that it was ever attempted. Looking at the makefile, there is a manifest target:
But if I attempt to invoke that target:
Which is unsurprising really as the only place that target ever appears as a dependancy is under the 'phony' target. And the 'manifest' target itself has no dependancies and so will never be invoked. Quite how/when that target is ever meant to be invoked is beyond me? If I hack the makefile and change the manifest target to:
I can the invoke it manually and it completes correctly. After that, make test and make install run perfectly and the module is useable and works. So, my conclusion is that the makefile is borked and probably always has been since the manifest handling was added, but because almost no one uses the MS compiler suites, it simply never showed up. To fix the problem properly, two things are left to be done.
For now, as I have other windmills I'm currently tilting at, I'm going to code up a perl script (fixmakefile.pl) to patch the makefile after the makefile.pl generation step. Update: Here my fixmakefile.pl for any other intrepid Win64/2008SDK users until the powers that be work out how to do this properly. Stick it somewhere in your path (eg. perl64/bin) and invoke it without parameters between the first two steps of the build sequence:
fixmakefile.pl
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
In Section
Seekers of Perl Wisdom
|
|