Fri Apr 02 01:12:25 2010: Request 55660 was acted upon. Transaction: Correspondence added by sisyph...@optusnet.com.au Queue: Win32-API Subject: Re: [rt.cpan.org #55660] [PATCH] Partial win64 support for Win32::API Broken in: (no value) Severity: (no value) Owner: COSIMO Requestors: sbenn...@accelrys.com Status: resolved Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=55660 >
----- Original Message ----- From: "Cosimo Streppone via RT" <bug-win32-...@rt.cpan.org> Cc: <ad...@cpan.org>; <libwin32@perl.org>; <csjew...@cpan.org> Sent: Friday, April 02, 2010 12:05 AM Subject: [rt.cpan.org #55660] [PATCH] Partial win64 support for Win32::API > <URL: https://rt.cpan.org/Ticket/Display.html?id=55660 > > > Hi Stephen, > > thanks for your great work again. > I had some CRLF troubles incorporating your patch, but then I switched > to a Linux machine and I managed to. > > The repository on github is updated. > I've just done a git clone git://github.com/cosimo/perl5-win32-api.git win32-api and then tried to build Win32::API from those sources on Vista64. I'm running the w64 version of ActivePerl-5.10.1 (build 1007), and I'm using the same compiler that built that ActivePerl (afaik) - namely, the Microsoft Platform SDK for Windows Server 2003 R2. The compiling of API.c terminates with the following: ################################### API.xs(235) : warning C4101: 'words_pushed' : unreferenced local variable ml -c call_asm_x64_msvc.asm 'ml' is not recognized as an internal or external command, operable program or batch file. NMAKE : fatal error U1077: 'ml' : return code '0x1' Stop. ################################### Apparently I need an ml.exe. If I can't get one that works with this compiler, I guess that means I need to use a different compiler. I did try using the one that comes with my 32-bit MSVC++ 7.0, but that leads to numerous errors in call_asm_x64_msvc.asm (that appear to be syntactical). They begin with: ################################### Assembling: call_asm_x64_msvc.asm call_asm_x64_msvc.asm(1) : error A2013: .MODEL must precede this directive call_asm_x64_msvc.asm(4) : error A2034: must be in segment block : Call_x64_real call_asm_x64_msvc.asm(7) : error A2034: must be in segment block call_asm_x64_msvc.asm(8) : error A2034: must be in segment block call_asm_x64_msvc.asm(9) : error A2034: must be in segment block call_asm_x64_msvc.asm(10) : error A2034: must be in segment block call_asm_x64_msvc.asm(12) : error A2034: must be in segment block call_asm_x64_msvc.asm(13) : error A2034: must be in segment block call_asm_x64_msvc.asm(14) : error A2008: syntax error : . etc., etc. ################################### I'll try and get hold of a suitable ml.exe. Cheers, Rob