in reply to Re^2: Win32::Exe - Resource section creation fails
in thread Win32::Exe - Resource section creation fails

Now I executed the test of Par::Packer

Here you can see the result:

C:\Temp\PAR-Packer-1.006>dmake test C:\Perl\bin\perl.exe -e "chmod(oct('0600'), '..\blib\lib\PAR\StrippedP +ARL\Static.pm');" C:\Perl\bin\perl.exe encode_append.pl static.exe ..\blib\lib\PAR\Strip +pedPARL\Static.pm C:\Perl\bin\perl.exe -e "chmod(oct('0444'), '..\blib\lib\PAR\StrippedP +ARL\Static.pm');" C:\Perl\bin\perl.exe -e "chmod(oct('0600'), '..\blib\lib\PAR\StrippedP +ARL\Dynamic.pm');" C:\Perl\bin\perl.exe encode_append.pl par.exe ..\blib\lib\PAR\Stripped +PARL\Dynamic.pm C:\Perl\bin\perl.exe -e "chmod(oct('0444'), '..\blib\lib\PAR\StrippedP +ARL\Dynamic.pm');" C:\Perl\bin\perl.exe "-MExtUtils::Command::MM" "-e" "test_harness(0, ' +inc', 'blib\lib', 'blib\arch')" t/00-pod.t t/10-pa rl-generation.t t/20-pp.t t/30-current_exec.t t/40-packer_cd_option.t t/00-pod.t ............... skipped: Set environment variable PERL_TEST +_POD=1 to test POD t/10-parl-generation.t ... ok t/20-pp.t ................ 31/34 No resource section found in file par +lW2ct.exe at C:/Perl/site/lib/Win32/Exe.pm line 34 8. No resource section found in file parlW2ct.exe at C:/Perl/site/lib/Win +32/Exe.pm line 348. Can't call method "remove" on an undefined value at C:/Perl/site/lib/W +in32/Exe.pm line 473. # Failed test 'pp_gui_tests # amsg572: sub pp_gui_tests cannot system pp --gui --icon hi.ico -o he +llo.exe hello.pl:No such file or directory: # ' t/20-pp.t ................ 32/34 # at automated_pp_test.pl line 8445 +. t/20-pp.t ................ 34/34 # Looks like you failed 1 test of 34. t/20-pp.t ................ Dubious, test returned 1 (wstat 256, 0x100) Failed 1/34 subtests t/30-current_exec.t ...... # Please wait t/30-current_exec.t ...... ok t/40-packer_cd_option.t .. ok Test Summary Report ------------------- t/20-pp.t (Wstat: 256 Tests: 34 Failed: 1) Failed test: 32 Non-zero exit status: 1 Files=5, Tests=71, 487 wallclock secs ( 0.05 usr + 0.03 sys = 0.08 C +PU) Result: FAIL Failed 1/5 test programs. 1/71 subtests failed. dmake.exe: Error code 255, while making 'test_dynamic'

But the problem seems to be in Win32::Exe and NOT in Par::Packer.

Replies are listed 'Best First'.
Re^4: Win32::Exe - Resource section creation fails
by syphilis (Archbishop) on Sep 23, 2010 at 12:56 UTC
    But the problem seems to be in Win32::Exe and NOT in Par::Packer

    What version of Win32::Exe ? (I'm using 0.14, which seems to be fine.)

    Btw, that's the same test failure as was reported on the PAR mailing list ... dunno what's going on ...

    Cheers,
    Rob

      I'm also using Win32::Exe Version 0.14. But I installed it via ppm and NOT from cpan. But I think that this shouldn't make a difference.

        But I installed it via ppm and NOT from cpan. But I think that this shouldn't make a difference

        If you have the capacity (ie a auitable compiler) to build Win32::Exe from source, maybe do that and see if it makes a difference. (You're right, it shouldn't make a difference.)

        Also check to see how Win32::Exe goes at creating the icon for an exe file that has *not* been created by 'pp'.

        Cheers,
        Rob