Skip Menu |

This queue is for tickets about the Win32-API CPAN distribution.

Report information
The Basics
Id: 47398
Status: resolved
Worked: 1 hour (60 min)
Priority: 0/
Queue: Win32-API

People
Owner: cosimo [...] cpan.org
Requestors: valkoles [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: mingw 4.4.0 can't compile Win32-API-0.58.tar.gz..
Date: Sat, 27 Jun 2009 22:19:06 -0400
To: bug-Win32-API [...] rt.cpan.org
From: val <valkoles [...] gmail.com>
Win32-API-0.58.tar.gz perl -V Summary of my perl5 (revision 5 version 10 subversion 0) configuration: Platform: osname=MSWin32, osvers=5.1, archname=MSWin32-x86-multi-thread uname='' config_args='undef' hint=recommended, useposix=true, d_sigaction=undef useithreads=define, usemultiplicity=define useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef use64bitint=undef, use64bitall=undef, uselongdouble=undef usemymalloc=n, bincompat5005=undef Compiler: cc='gcc', ccflags =' -s -O2 -DWIN32 -DHAVE_DES_FCRYPT -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -fno-strict-aliasing -DPERL_MSVCRT_READFIX', optimize='-s -O2', cppflags='-DWIN32' ccversion='', gccversion='4.4.0', gccosandvers='' intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234 d_longlong=undef, longlongsize=8, d_longdbl=define, longdblsize=12 ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='long long', lseeksize=8 alignbytes=8, prototype=define Linker and Libraries: ld='g++', ldflags ='-s -L"d:\soft\perl-5.10.0\lib\CORE" -L"D:\soft\mingw\lib"' libpth=D:\soft\mingw\lib libs=-lmsvcrt -lmoldname -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32 -lnetapi32 -luuid -lws2_32 -lmpr -lwinmm -lversion -lodbc32 -lodbccp32 perllibs=-lmsvcrt -lmoldname -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32 -lnetapi32 -luuid -lws2_32 -lmpr -lwinmm -lversion -lodbc32 -lodbccp32 libc=-lmsvcrt, so=dll, useshrplib=true, libperl=libperl510.a gnulibc_version='' Dynamic Linking: dlsrc=dl_win32.xs, dlext=dll, d_dlsymun=undef, ccdlflags=' ' cccdlflags=' ', lddlflags='-mdll -s -L"d:\soft\perl-5.10.0\lib\CORE" -L"D:\soft\mingw\lib"' Characteristics of this binary (from libperl): Compile-time options: MULTIPLICITY PERL_DONT_CREATE_GVSV PERL_IMPLICIT_CONTEXT PERL_IMPLICIT_SYS PERL_MALLOC_WRAP PL_OP_SLAB_ALLOC USE_ITHREADS USE_LARGE_FILES USE_PERLIO Built under MSWin32 Compiled at Jun 27 2009 14:28:03 @INC: d:/soft/perl-5.10.0/lib d:/soft/perl-5.10.0/site/lib . C:\temp\Win32-API-0.58\Win32-API-0.58>perl Makefile.PL Checking if your kit is complete... Looks good Writing Makefile for Win32::API::Callback Writing Makefile for Win32::API C:\temp\Win32-API-0.58\Win32-API-0.58>dmake cp Type.pm blib\lib\Win32/API/Type.pm cp Callback.pm blib\lib\Win32/API/Callback.pm cp Test.pm blib\lib\Win32/API/Test.pm cp Struct.pm blib\lib\Win32/API/Struct.pm cp API.pm blib\lib\Win32/API.pm D:\soft\perl-5.10.0\bin\perl.exe D:\soft\perl-5.10.0\lib\ExtUtils\xsubpp -typemap D:\soft\perl-5.10.0\lib\ExtUtils\typemap Callback.xs > Callback.xsc && D:\soft\perl-5.10.0\bin\perl.exe -MExtUtils::Command -e mv Callback.xsc Callback.c gcc -c -s -O2 -DWIN32 -DHAVE_DES_FCRYPT -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -fno-strict-aliasing -DPERL_MSVCRT_READFIX -s -O2 -DVERSION=\"0.58\" -DXS_VERSION=\"0.58\" "-ID:\soft\perl-5.10.0\lib\CORE" Callback.c Running Mkbootstrap for Win32::API::Callback () D:\soft\perl-5.10.0\bin\perl.exe -MExtUtils::Command -e chmod 644 Callback.bs D:\soft\perl-5.10.0\bin\perl.exe -MExtUtils::Mksymlists \ -e "Mksymlists('NAME'=>\"Win32::API::Callback\", 'DLBASE' => 'Callback', 'DL_FUNCS' => { }, 'FUNCLIST' => [], 'IMPORTS' => { }, 'DL_VARS' => []);" dlltool --def Callback.def --output-exp dll.exp g++ -o ..\blib\arch\auto\Win32\API\Callback\Callback.dll -Wl,--base-file -Wl,dll.base -mdll -s -L"d:\soft\perl-5.10.0\lib\CORE" -L"D:\soft\mingw\lib" Callback.o -Wl,--image-base,0x21000000 D:\soft\perl-5.10.0\lib\CORE\libperl510.a -lmsvcrt -lmoldname -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32 -lnetapi32 -luuid -lws2_32 -lmpr -lwinmm -lversion -lodbc32 -lodbccp32 dll.exp dlltool --def Callback.def --base-file dll.base --output-exp dll.exp g++ -o ..\blib\arch\auto\Win32\API\Callback\Callback.dll -mdll -s -L"d:\soft\perl-5.10.0\lib\CORE" -L"D:\soft\mingw\lib" Callback.o -Wl,--image-base,0x21000000 D:\soft\perl-5.10.0\lib\CORE\libperl510.a -lmsvcrt -lmoldname -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32 -lnetapi32 -luuid -lws2_32 -lmpr -lwinmm -lversion -lodbc32 -lodbccp32dll.exp D:\soft\perl-5.10.0\bin\perl.exe -MExtUtils::Command -e chmod 755 ..\blib\arch\auto\Win32\API\Callback\Callback.dll D:\soft\perl-5.10.0\bin\perl.exe -MExtUtils::Command -e cp Callback.bs ..\blib\arch\auto\Win32\API\Callback\Callback.bs D:\soft\perl-5.10.0\bin\perl.exe -MExtUtils::Command -e chmod 644 ..\blib\arch\auto\Win32\API\Callback\Callback.bs D:\soft\perl-5.10.0\bin\perl.exe D:\soft\perl-5.10.0\lib\ExtUtils\xsubpp -typemap D:\soft\perl-5.10.0\lib\ExtUtils\typemap -typemap typemap API.xs > API.xsc && D:\soft\perl-5.10.0\bin\perl.exe -MExtUtils::Command -e mv API.xsc API.c gcc -c -s -O2 -DWIN32 -DHAVE_DES_FCRYPT -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -fno-strict-aliasing -DPERL_MSVCRT_READFIX -s -O2 -DVERSION=\"0.58\" -DXS_VERSION=\"0.58\" "-ID:\soft\perl-5.10.0\lib\CORE" API.c C:\DOCUME~1\valera\LOCALS~1\Temp\ccDYYCKp.s: Assembler messages: C:\DOCUME~1\valera\LOCALS~1\Temp\ccDYYCKp.s:3386: Error: junk `.0' after expression dmake.EXE: Error code 129, while making 'API.o' and installation aborts...
On Sab. 27 Giu. 2009 22:19:30, valkoles@gmail.com wrote: Show quoted text
> gcc -c -s -O2 -DWIN32 -DHAVE_DES_FCRYPT > -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -fno-strict-aliasing > -DPERL_MSVCRT_READFIX -s -O2 -DVERSION=\"0.58\" > -DXS_VERSION=\"0.58\" "-ID:\soft\perl-5.10.0\lib\CORE" API.c > C:\DOCUME~1\valera\LOCALS~1\Temp\ccDYYCKp.s: Assembler messages: > C:\DOCUME~1\valera\LOCALS~1\Temp\ccDYYCKp.s:3386: Error: junk `.0' > after expression > dmake.EXE: Error code 129, while making 'API.o' > > and installation aborts...
Hi and thanks for your report. Please can you paste here the contents of that file (C:\DOCUME~1\valera \LOCALS~1\Temp\ccDYYCKp.s)? Maybe even just the surroundings of line 3386 ?
Subject: Re: [rt.cpan.org #47398] mingw 4.4.0 can't compile Win32-API-0.58.tar.gz..
Date: Sun, 28 Jun 2009 11:52:41 +0200
To: bug-Win32-API [...] rt.cpan.org
From: Reini Urban <rurban [...] x-ray.at>
2009/6/28 val via RT <bug-Win32-API@rt.cpan.org>: Show quoted text
> gcc -c          -s -O2 -DWIN32 -DHAVE_DES_FCRYPT > -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -fno-strict-aliasing > -DPERL_MSVCRT_READFIX -s -O2    -DVERSION=\"0.58\" > -DXS_VERSION=\"0.58\"  "-ID:\soft\perl-5.10.0\lib\CORE"   API.c > C:\DOCUME~1\valera\LOCALS~1\Temp\ccDYYCKp.s: Assembler messages: > C:\DOCUME~1\valera\LOCALS~1\Temp\ccDYYCKp.s:3386: Error: junk `.0' > after expression > dmake.EXE:  Error code 129, while making 'API.o' > > and installation aborts...
Confirmed with cygwin gcc-4.3 also gcc-4 (GCC) 4.3.2 20080827 (beta) 2 {standard input}: Assembler messages: {standard input}:4863: Error: junk `.0' after expression make: *** [API.o] Error 1 -- Reini Urban http://phpwiki.org/ http://murbreak.at/
Subject: Re: [rt.cpan.org #47398] mingw 4.4.0 can't compile Win32-API-0.58.tar.gz..
Date: Sun, 28 Jun 2009 13:41:27 +0200
To: bug-Win32-API [...] rt.cpan.org
From: Reini Urban <rurban [...] x-ray.at>
2009/6/28 Reini Urban <rurban@x-ray.at>: Show quoted text
> Confirmed with cygwin gcc-4.3 also > gcc-4 (GCC) 4.3.2 20080827 (beta) 2 > > {standard input}: Assembler messages: > {standard input}:4863: Error: junk `.0' after expression > make: *** [API.o] Error 1
debugging tip: $ make CCCDLFLAGS=-Wa,-alhms,-Z > api.asm or $ make DEFINE=-DWIN32_API_DEBUG CCCDLFLAGS=-Wa,-alhms,-Z > api_d.asm 5256 ???? 202D6578 .ascii " -export:boot_Win32__API" **** Warning:1 error, 0 warnings, generating bad object file -- Reini Urban http://phpwiki.org/ http://murbreak.at/
Subject: Re: [rt.cpan.org #47398] mingw 4.4.0 can't compile Win32-API-0.58.tar.gz..
Date: Sun, 28 Jun 2009 14:17:47 +0200
To: bug-Win32-API [...] rt.cpan.org
From: Reini Urban <rurban [...] x-ray.at>
2009/6/28 Reini Urban <rurban@x-ray.at>: Show quoted text
> 2009/6/28 Reini Urban <rurban@x-ray.at>:
>> Confirmed with cygwin gcc-4.3 also >> gcc-4 (GCC) 4.3.2 20080827 (beta) 2 >> >> {standard input}: Assembler messages: >> {standard input}:4863: Error: junk `.0' after expression >> make: *** [API.o] Error 1
> > debugging tip: > $ make CCCDLFLAGS=-Wa,-alhms,-Z > api.asm
Attached is my fix. The problem was 4860 ???? FF5598 call *-104(%ebp) 4863 fstpl 0.0 Which should be fstpl %st(0) -- Reini Urban http://phpwiki.org/ http://murbreak.at/

Message body is not shown because sender requested not to inline it.

Subject: Re: [rt.cpan.org #47398] mingw 4.4.0 can't compile Win32-API-0.58.tar.gz..
Date: Sun, 28 Jun 2009 13:57:14 -0400
To: bug-Win32-API [...] rt.cpan.org
From: val <valkoles [...] gmail.com>
I'm sorry, I can't send you that file. I think it's a temporary file, created by MinGW. I wanted to send it in my original report, but that file wasn't there. And I tried to catch it few times - unsuccessful. If you need something else to locate problem, just let me know. On Sun, Jun 28, 2009 at 5:53 AM, Reini Urban via RT<bug-Win32-API@rt.cpan.org> wrote: Show quoted text
> <URL: http://rt.cpan.org/Ticket/Display.html?id=47398 > > > 2009/6/28 val via RT <bug-Win32-API@rt.cpan.org>:
>> gcc -c          -s -O2 -DWIN32 -DHAVE_DES_FCRYPT >> -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -fno-strict-aliasing >> -DPERL_MSVCRT_READFIX -s -O2    -DVERSION=\"0.58\" >> -DXS_VERSION=\"0.58\"  "-ID:\soft\perl-5.10.0\lib\CORE"   API.c >> C:\DOCUME~1\valera\LOCALS~1\Temp\ccDYYCKp.s: Assembler messages: >> C:\DOCUME~1\valera\LOCALS~1\Temp\ccDYYCKp.s:3386: Error: junk `.0' >> after expression >> dmake.EXE:  Error code 129, while making 'API.o' >> >> and installation aborts...
> > Confirmed with cygwin gcc-4.3 also > gcc-4 (GCC) 4.3.2 20080827 (beta) 2 > > {standard input}: Assembler messages: > {standard input}:4863: Error: junk `.0' after expression > make: *** [API.o] Error 1 > > > -- > Reini Urban > http://phpwiki.org/              http://murbreak.at/ > >
Thanks Reini, excellent and thanks Val for your report. I'm in the process of resetting up my laptop, and I need to restart with the whole MSVC/sdk hell, so this might take a while. I hope to keep the time reasonable.
Subject: Re: [rt.cpan.org #47398] mingw 4.4.0 can't compile Win32-API-0.58.tar.gz..
Date: Tue, 30 Jun 2009 10:05:31 -0400
To: bug-Win32-API [...] rt.cpan.org
From: val <valkoles [...] gmail.com>
I applied the patch by Reini Urban and installation went without any warnings. So if anybody needs it just now, he/she could use the patch.
Subject: RE: [rt.cpan.org #47398] mingw 4.4.0 can't compile Win32-API-0.58.tar.gz..
Date: Tue, 30 Jun 2009 12:53:12 -0700
To: <bug-Win32-API [...] rt.cpan.org>, <libwin32 [...] perl.org>
From: "Jan Dubois" <jand [...] activestate.com>
On Tue, 30 Jun 2009, Cosimo Streppone via RT wrote: Show quoted text
> I'm in the process of resetting up my laptop, and I need to restart > with the whole MSVC/sdk hell, so this might take a while. > > I hope to keep the time reasonable.
Let me know if you want help! E.g. you could apply the patch to the repo, increment the version number etc, and I'll test with MSVC on a number of platforms (just give me list which ones you want tested). If everything passes you can do a release. Of course you may prefer to keep this bug as an incentive to get the laptop set up quickly. :) Cheers, -Jan
RT-Send-CC: rurban [...] x-ray.at, dbecoll [...] roadrunner.com
On Mar. 30 Giu. 2009 15:53:36, jand@ActiveState.com wrote: Show quoted text
> On Tue, 30 Jun 2009, Cosimo Streppone via RT wrote:
> > I'm in the process of resetting up my laptop, and I need to restart > > with the whole MSVC/sdk hell, so this might take a while.
> > Let me know if you want help! E.g. you could apply the patch to > the repo.
Applied right now. http://code.google.com/p/libwin32/source/detail?r=468 It's in trunk, but still marked as v0.58. I didn't have a chance to even compile it. Sorry. Show quoted text
> increment the version number etc, and I'll test with MSVC > on a number of platforms (just give me list which ones you want > tested)
That would be great. I'm not sure about a list. I usually develop and test under perl 5.10 / MSVC 2008 and Strawberry. Show quoted text
> Of course you may prefer to keep this bug as an incentive to get > the laptop set up quickly. :)
Will try to be back on track soon. -- Cosimo
Subject: RE: [rt.cpan.org #47398] mingw 4.4.0 can't compile Win32-API-0.58.tar.gz..
Date: Wed, 1 Jul 2009 17:15:48 -0700
To: <bug-Win32-API [...] rt.cpan.org>, <libwin32 [...] perl.org>
From: "Jan Dubois" <jand [...] activestate.com>
On Tue, 30 Jun 2009, Cosimo Streppone via RT wrote: Show quoted text
> It's in trunk, but still marked as v0.58. > > I didn't have a chance to even compile it. Sorry. >
> > increment the version number etc, and I'll test with MSVC > > on a number of platforms (just give me list which ones you want > > tested)
> > That would be great. I'm not sure about a list. > I usually develop and test under perl 5.10 / MSVC 2008 > and Strawberry.
I compiled it with VC6 for both 5.8.9 and 5.10 without problems. Cheers, -Jan
v0.59 is out on CPAN, so closing.