Subject: | Can't call method "remove" on an undefined value at C:/Perl/site/lib/Win32/Exe.pm line 220. |
Dear,
I am using ActivePerl v5.10.1 built for MSWin32-x86-multi-thread build 1007.
I have installed PAR::Packer 1.002 by downloading PAR::Packer on cpan
and compilation
perl Makefile.PL
dmake
dmake install
I have gcc.
When I package a perl program (pp -o test.exe test.pl), no problem, it
is work but
if I want to add an icon, it is failed with this error message :
C:\Users\user\Documents\INFORMATIQUE\PROGRAMMATION\perl\Images>pp -o
test.exe test.pl -i logo.ico -v
Set up gcc environment - 4.3.3
C:\Perl\site\bin/pp: Packing auvergne-habitat.pl
C:\Perl\site\bin/pp: Generating a fresh 'parl'.
Set up gcc environment - 4.3.3
Copyright (C) 2008 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Can't call method "remove" on an undefined value at
C:/Perl/site/lib/Win32/Exe.pm line 220.
Why it is impossible to add and icon to exe with this PAR::Packer
version 1.002.
NB : During the compilation, if I try dmake test, I have the same message :
C:\PAR-Packer-1.002>dmake test
C:\Perl\bin\perl.exe -e "chmod(oct('0600'),
'..\blib\lib\PAR\StrippedPARL\Static.pm');"
C:\Perl\bin\perl.exe encode_append.pl static.exe
..\blib\lib\PAR\StrippedPARL\Static.pm
C:\Perl\bin\perl.exe -e "chmod(oct('0444'),
'..\blib\lib\PAR\StrippedPARL\Static.pm');"
C:\Perl\bin\perl.exe -e "chmod(oct('0600'),
'..\blib\lib\PAR\StrippedPARL\Dynamic.pm');"
C:\Perl\bin\perl.exe encode_append.pl par.exe
..\blib\lib\PAR\StrippedPARL\Dynamic.pm
C:\Perl\bin\perl.exe -e "chmod(oct('0444'),
'..\blib\lib\PAR\StrippedPARL\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-parl-ge
neration.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 Can't call method "remove" on an
undefined value at C:/Perl/site/lib/Win32/Exe.pm line 220.
t/20-pp.t ................ 32/34 # Failed test 'pp_gui_tests
# amsg572: sub pp_gui_tests cannot system pp --gui --icon hi.ico -o
hello.exe hello.pl:No such file or directory:
# '
# 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, 604 wallclock secs ( 0.08 usr + 0.11 sys = 0.19 CPU)
Result: FAIL
Failed 1/5 test programs. 1/71 subtests failed.
dmake.exe: Error code 255, while making 'test_dynamic'
Best regards,
djibel