Le Jeu 23 Jan 2014 05:06:04, RSCHUPP a écrit :
Show quoted text> On 2014-01-22 13:51:57, DJIBEL wrote:
> > E:\Perl64\bin\perl.exe -Mblib=.. run_with_inc.pl par.exe -q -B
> > -Oparldyn.exe
> > system(par.exe -I..\blib\arch -I..\blib\lib -IE:/Perl64/site/lib
> > -IE:/Perl64/lib
> > -I. -q -B -Oparldyn.exe) failed:
> > dmake.exe: Error code 255, while making 'parldyn.exe'
>
> Yeah, I've seen this a few times, too - dunno what's going on.
> Can you try to run the system() command by hand, i.e
>
> cd myldr
> par.exe -I..\blib\arch -I..\blib\lib -IE:/Perl64/site/lib
> -IE:/Perl64/lib -I. -q -B -Oparldyn.exe
>
> maybe this will show more information.
>
> Actually, I don't know what parldyn.exe is good for. It certainly
> isn't needed to create a packed executable. You might apply the patch
> below to get rid of it and then rebuild PAR::Packer by hand:
>
> perl Makefile.PL
> dmake
> dmake test
> dmake install
>
> Patch follows:
>
> === snip ===
> --- myldr/Makefile.PL.orig 2014-01-23 10:54:01.241750800 +0100
> +++ myldr/Makefile.PL 2014-01-23 10:55:18.547750800 +0100
> @@ -246,7 +246,6 @@
> my @strippedparl = qw( Static.pm );
> push @strippedparl, qw( Dynamic.pm ) if $dynperl;
> my @parl_exes = $parl_exe;
> -push @parl_exes, $parldyn_exe if $dynperl;
>
>
> # Determine whether we can find a config.h. If yes, include it in
> @@ -336,10 +335,7 @@
>
> $make_frag .= <<"EOT" if $dynperl;
>
> -pure_all:: $parldyn_exe Dynamic.pm
> -
> -$parldyn_exe: $par_exe
> - \$(PERLRUN) -Mblib=.. run_with_inc.pl $par_exe -q -B -O\$@
> +pure_all:: Dynamic.pm
>
> boot$o: \$(MKTMP_STUFF) boot_embedded_files.c
>
> === snip ===
I have used your patch, and now
perl MakeFile.PL
==============================
Show quoted text>perl Makefile.PL
Set up gcc environment - gcc.exe (rubenvb-4.5.4) 4.5.4
Prototype mismatch: sub main::prompt: none vs ($;$) at E:/Perl64/lib/ExtUtils/Ma
keMaker.pm line 219.
Note (probably harmless): No library found for -lkernel32
Note (probably harmless): No library found for -luser32
Note (probably harmless): No library found for -lgdi32
Note (probably harmless): No library found for -lwinspool
Note (probably harmless): No library found for -lcomdlg32
Note (probably harmless): No library found for -ladvapi32
Note (probably harmless): No library found for -lshell32
Note (probably harmless): No library found for -lole32
Note (probably harmless): No library found for -loleaut32
Note (probably harmless): No library found for -lnetapi32
Note (probably harmless): No library found for -luuid
Note (probably harmless): No library found for -lws2_32
Note (probably harmless): No library found for -lmpr
Note (probably harmless): No library found for -lwinmm
Note (probably harmless): No library found for -lversion
Note (probably harmless): No library found for -lodbc32
Note (probably harmless): No library found for -lodbccp32
Note (probably harmless): No library found for -lcomctl32
Note (probably harmless): No library found for -lmsvcrt
Writing Makefile for par.exe
Writing MYMETA.yml and MYMETA.json
Writing Makefile for PAR::Packer
Writing MYMETA.yml and MYMETA.json
==============================
==============================
Show quoted text>dmake ==> boot.exe failed
Set up gcc environment - gcc.exe (rubenvb-4.5.4) 4.5.4
Skip blib\lib\App\Packer\PAR.pm (unchanged)
Skip blib\lib\PAR\Packer.pm (unchanged)
Skip blib\lib\PAR\Filter\Obfuscate.pm (unchanged)
Skip blib\lib\PAR\Filter\PodStrip.pm (unchanged)
Skip blib\lib\PAR\StrippedPARL\Base.pm (unchanged)
Skip blib\lib\PAR\Filter.pm (unchanged)
Skip blib\lib\PAR\Filter\PatchContent.pm (unchanged)
Skip blib\lib\PAR\Filter\Bytecode.pm (unchanged)
Skip blib\lib\pp.pm (unchanged)
Skip blib\lib\PAR\Filter\Bleach.pm (unchanged)
E:\Perl64\site\bin\gcc.exe -c -DNDEBUG -DWIN32 -D_CONSOLE -DNO_STRICT -DWIN64 -D
CONSERVATIVE -DPERL_TEXTMODE_SCRIPTS -DUSE_SITECUSTOMIZE -DPERL_IMPLICIT_CONTEXT
-DPERL_IMPLICIT_SYS -DUSE_PERLIO -DHASATTRIBUTE -fno-strict-aliasing -mms-bitfi
elds -I"E:\Perl64\lib\CORE" -DPARL_EXE=\"parl.exe\" -O2 main.c
main.c: In function 'main':
main.c:121:23: warning: assignment discards qualifiers from pointer target type
E:\Perl64\site\bin\g++.exe main.o ppresource.coff -s -L"E:\Perl64\lib\CORE" E
:\Perl64\lib\CORE\perl516.lib -o par.exe
rem
E:\Perl64\bin\perl.exe encode_append.pl Dynamic.in par.exe Dynamic.pm
E:\Perl64\bin\perl.exe file2c.pl -c 30000 par.exe E:\Perl64\bin\perl516.dll > bo
ot_embedded_files.c
E:\Perl64\site\bin\gcc.exe -c -DNDEBUG -DWIN32 -D_CONSOLE -DNO_STRICT -DWIN64 -D
CONSERVATIVE -DPERL_TEXTMODE_SCRIPTS -DUSE_SITECUSTOMIZE -DPERL_IMPLICIT_CONTEXT
-DPERL_IMPLICIT_SYS -DUSE_PERLIO -DHASATTRIBUTE -fno-strict-aliasing -mms-bitfi
elds -I"E:\Perl64\lib\CORE" -DPARL_EXE=\"parl.exe\" -O2 boot.c
In file included from mktmpdir.h:85:0,
from mktmpdir.c:1,
from boot.c:10:
sha1.c: In function 'sha_transform':
sha1.c:146:2: warning: right shift count >= width of type
boot.c: In function 'main':
boot.c:220:5: warning: passing argument 3 of 'spawnvpe' from incompatible pointe
r type
e:\perl64\site\lib\auto\mingw\bin\../lib/gcc/x86_64-w64-mingw32/4.5.4/../../../.
./x86_64-w64-mingw32/include/process.h:178:20: note: expected 'char * const*' bu
t argument is of type 'const char * const*'
boot.c:220:5: warning: passing argument 4 of 'spawnvpe' from incompatible pointe
r type
e:\perl64\site\lib\auto\mingw\bin\../lib/gcc/x86_64-w64-mingw32/4.5.4/../../../.
./x86_64-w64-mingw32/include/process.h:178:20: note: expected 'char * const*' bu
t argument is of type 'const char * const*'
E:\Perl64\site\bin\g++.exe boot.o -static-libgcc -s -L"E:\Perl64\lib\CORE" E:
\Perl64\lib\CORE\perl516.lib ppresource.coff -o boot.exe
rem
E:\Perl64\bin\perl.exe encode_append.pl Static.in boot.exe Static.pm
cp Static.pm ..\blib\lib\PAR\StrippedPARL\Static.pm
cp Dynamic.pm ..\blib\lib\PAR\StrippedPARL\Dynamic.pm
E:\Perl64\bin\perl.exe -Mblib=.. run_with_inc.pl boot.exe -q -B -Oparl.exe
system(boot.exe -I..\blib\arch -I..\blib\lib -IE:/Perl64/site/lib -IE:/Perl64/li
b -I. -q -B -Oparl.exe) failed:
cannot unlink file for C:\Users\djibril\AppData\Local\Temp\zh2f1LQpV9\par-646a69
6272696c\cache-c23d543cea9b4a474a0fbd2d78ce4c9cc5805de3\boot.exe: Permission den
ied at E:/Perl64/site/lib/File/Temp.pm line 784.
cannot unlink file for C:\Users\djibril\AppData\Local\Temp\zh2f1LQpV9\par-646a69
6272696c\cache-c23d543cea9b4a474a0fbd2d78ce4c9cc5805de3\perl516.dll: Permission
denied at E:/Perl64/site/lib/File/Temp.pm line 784.
cannot remove directory for C:\Users\djibril\AppData\Local\Temp\zh2f1LQpV9\par-6
46a696272696c\cache-c23d543cea9b4a474a0fbd2d78ce4c9cc5805de3: Directory not empt
y at E:/Perl64/site/lib/File/Temp.pm line 784.
cannot remove directory for C:\Users\djibril\AppData\Local\Temp\zh2f1LQpV9\par-6
46a696272696c: Directory not empty at E:/Perl64/site/lib/File/Temp.pm line 784.
cannot remove directory for C:/Users/djibril/AppData/Local/Temp/zh2f1LQpV9: Dire
ctory not empty at E:/Perl64/site/lib/File/Temp.pm line 784.
dmake.exe: Error code 255, while making 'parl.exe'
dmake.exe: Error code 255, while making 'subdirs'
==============================