----- Original Message ----- From: "Steffen Mueller" <[EMAIL PROTECTED]>
To: "Sisyphus" <[EMAIL PROTECTED]>
Cc: "christian" <[EMAIL PROTECTED]>; <[email protected]>
Sent: Thursday, September 18, 2008 5:04 PM
Subject: Re: PAR for Windows x64


Hi Rob,

Sisyphus wrote:
But win32.obj is part of the PAR-Packer source. How am I supposed to
come up with a win32.obj that's suitable for AMD64 ?
Will I also need different versions of win32.coff and win32.res ?

unfortunately, I have no idea about that at all. I have no C development
experience on Windows.


Is there likely to be some documentation somewhere that throws some light on the matter ?

I couldn't see any mention of 'win32.obj' in the PAR-Packer ChangeLog - no mention of it in the PAR ChangeLog either. But, at some stage, someone must have created the file and added it to the PAR-Packer (or PAR) source. It could be useful to know just how this file got created in the first place. (Opening the file in a text editor doesn't really help all that much :-)

Luckily, it seems that (for the purpose of the x64 build, at least) the file is not needed. In the myldr/Makefile.PL I simply changed:

$res = 'win32.obj';
to
$res = '';

I guess a portable fix is to rewrite the assignment as:

$res = $Config{ivsize} == 4 ? 'win32.obj' : '';

It's hard to envisage a sutuation where $Config{ivsize} != 4 && we still need to link to that win32.obj.

PAR-Packer-0.982 then built, tested and installed pretty goodly. Just one failing test:

--------------------------------
t/20-pp.................ok 31/34
Can't locate object method "load" via package "Win32::Exe::PE::Header::PE32Plus" at C:/_64/perl1004/site/lib/Parse/Binary.pm line 484.

#   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:
t/20-pp.................NOK 32/34# '
#   at automated_pp_test.pl line 8445.
--------------------------------

Does that failure call for further investigation ? (As soon as I see the term 'gui' I tend to lose interest pretty quickly :-)

P.S.: I'll apply your patch asap, unless you beat me to it.

Oooow .... it's within my power to apply patches to PAR-Packer source ? (That could be dangerous.)

Cheers,
Rob

Reply via email to