On Wed, Mar 6, 2013 at 3:22 PM, Reini Urban <rur...@x-ray.at> wrote: > On Wed, Mar 6, 2013 at 2:48 AM, Roderich Schupp wrote: >> Why do you want to use PAR::Packer on Cygwin at all? >> If you just want to create a standalone executable from a Perl application: >> Are you aware that the resulting executable still needs a Cygwin >> environment to run? >> >> Now for your current problem with >> >>> windres -i winres\pp.rc -o ppresource.coff --input-format=rc >>> --output-format=coff --target=pe-i386 >> >> Find this line in myldr/Makefile and change the backslash in >> "winres\pp.rc" to a forward slash, then >> retry "make". >> >> Note that I haven't tried building PAR::Packer on Cygwin in ages, so >> no guarantee that this will be >> the last of your problems (or whether it will work at all). > > prerequisite ExtUtils::MakeMaker 6.59 is best ignored - it would > overwrite special cygwin rebase handling, and is not needed. > PAR-1.007 tested ok > > PAR-Packer-1.013: > windres -F pei-i386 -i winres/pp.rc -o winres/pp.res > windres -o ppresource.coff winres/pp.res > windres: unexpected version string length 68 != 32 + 8 > > That's a known mingw/cygwin binutils bug, and should be not fatal. The > resource can be purely optional. > Patch attached
And there are two more problems with PAR-Packer-1.013, unrelated to mingw/cygwin: 1. -Mblib within myldr fails to find PAR::Filter::PodStrip you need to use -Mblib -Mblib=.. 2. myldr/blib/lib/PAR/StrippedPARL/Static.pm cannot be found when PAR::StrippedPARL::Static is not installed, You did not add myldr to libscan (preferred), and did not add myldr to -Mblib. All this because of a wrong logic in the main Makefile.PL ("double negation always causes trouble") You need to release-test it with PAR modules uninstalled. And then there are still more failing tests, which looks like wrong tests. The code looks so obfuscated compared to when I last looked at it, sorry I cannot really help you out on this mess today. Also the identation looks horrible. Revised patch attached. -- Reini Urban http://cpanel.net/ http://www.perl-compiler.org/
PAR-Packer-1.013.patch
Description: Binary data