Skip Menu |

This queue is for tickets about the Wx CPAN distribution.

Report information
The Basics
Id: 53430
Status: resolved
Priority: 0/
Queue: Wx

People
Owner: Nobody in particular
Requestors: stro [...] cpan.org
Cc: JDB [...] cpan.org
AdminCc:

Bug Information
Severity: Critical
Broken in:
  • 0.76
  • 0.77
  • 0.78
  • 0.79
  • 0.80
  • 0.81
  • 0.82
  • 0.83
  • 0.84
  • 0.85
  • 0.86
  • 0.87
  • 0.88
  • 0.89
  • 0.90
  • 0.91
  • 0.92
  • 0.93
  • 0.94
  • 0.95
Fixed in: (no value)



Subject: Cannot compile Wx using MSVC6
Hello Mattia,

I'm encountering a problem compiling all versions of Wx starting from 0.76 using MSVC6 and Alien-wxWidgets 0.48 / wxWidgets 2.8.10. Error happens on this stage of compiling:

        cl  -GF -TP /c /nologo /TP /MD /O2 /W4 /GR /EHsc -c  -I. -I. -IC:\bin\dev\perl\site\lib\Alien\wxWidgets\msw_2_8_10_uni_cl_0\lib -IC:\bin\dev\perl\site\lib\Alien\wxWidgets\msw_2_8_10_uni_cl_0\include  -nologo -GF -W3 -MD -Zi -DNDEBUG -O1 -DWIN32 -D_CONSOLE -DNO_STRICT -DHAVE_DES_FCRYPT -DUSE_SITECUSTOMIZE -DPRIVLIB_LAST_IN_INC -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -DPERL_MSVCRT_READFIX -MD -Zi -DNDEBUG -O1    -DVERSION=\"0.95\"  -DXS_VERSION=\"0.95\"  "-IC:\bin\dev\perl\lib\CORE"  -DWIN32 -D__WXMSW__ -D_UNICODE -DWXUSINGDLL -D_WINDOWS -DNOPCH  -D_CRT_SECURE_NO_DEPRECATE Controls.c
Command line warning D4025 : overriding '/W4' with '/W3'
Command line warning D4025 : overriding '/O2' with '/O1'
Controls.c
cpp/combopopup.h(90) : warning C4003: not enough actual parameters for macro 'DEF_V_CBACK_WXOBJECTsP__VOID_'
cpp/odcombo.h(50) : error C2562: 'OnDrawItem' : 'void' function returning a value
        cpp/odcombo.h(40) : see declaration of 'OnDrawItem'
cpp/odcombo.h(53) : error C2562: 'OnDrawBackground' : 'void' function returning a value
        cpp/odcombo.h(41) : see declaration of 'OnDrawBackground'
NMAKE : fatal error U1077: 'cl' : return code '0x2'
Stop.



--
Serguei Trouchelle
Subject: Re: [rt.cpan.org #53430] Cannot compile Wx using MSVC6
Date: Thu, 07 Jan 2010 21:55:22 +0100
To: bug-Wx [...] rt.cpan.org
From: Mattia Barbon <mattia.barbon [...] libero.it>
Serguei Trouchelle via RT wrote: Show quoted text
> Wed Jan 06 08:14:52 2010: Request 53430 was acted upon. > Transaction: Ticket created by STRO > Queue: Wx > Subject: Cannot compile Wx using MSVC6 > Broken in: 0.76, 0.77, 0.78, 0.79, 0.80, 0.81, 0.82, 0.83, 0.84, 0.85, 0.86, 0.87, 0.88, 0.89, 0.90, 0.91, 0.92, 0.93, 0.94, 0.95 > Severity: Critical > Owner: Nobody > Requestors: stro@railways.dp.ua > Status: new > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=53430 > > > > Hello Mattia, > > I'm encountering a problem compiling all versions of Wx starting from 0.76 > using MSVC6 and Alien-wxWidgets 0.48 / wxWidgets 2.8.10. Error happens on this > stage of compiling: > > cl -GF -TP /c /nologo /TP /MD /O2 /W4 /GR /EHsc -c -I. -I. > -IC:\bin\dev\perl\site\lib\Alien\wxWidgets\msw_2_8_10_uni_cl_0\lib > -IC:\bin\dev\perl\site\lib\Alien\wxWidgets\msw_2_8_10_uni_cl_0\include -nologo > -GF -W3 -MD -Zi -DNDEBUG -O1 -DWIN32 -D_CONSOLE -DNO_STRICT -DHAVE_DES_FCRYPT > -DUSE_SITECUSTOMIZE -DPRIVLIB_LAST_IN_INC -DPERL_IMPLICIT_CONTEXT > -DPERL_IMPLICIT_SYS -DUSE_PERLIO -DPERL_MSVCRT_READFIX -MD -Zi -DNDEBUG -O1 > -DVERSION=\"0.95\" -DXS_VERSION=\"0.95\" "-IC:\bin\dev\perl\lib\CORE" -DWIN32 > -D__WXMSW__ -D_UNICODE -DWXUSINGDLL -D_WINDOWS -DNOPCH > -D_CRT_SECURE_NO_DEPRECATE Controls.c > Command line warning D4025 : overriding '/W4' with '/W3' > Command line warning D4025 : overriding '/O2' with '/O1' > Controls.c > cpp/combopopup.h(90) : warning C4003: not enough actual parameters for macro > 'DEF_V_CBACK_WXOBJECTsP__VOID_'
Could you try changing cpp/v_cback.h, around line 76, like this: #define wxPli_NOCONST /* */ #define wxPli_CONST const #define wxPli_VOID if that fails to compile, try this: #define wxPli_NOCONST HATE_MSVC6 #define wxPli_CONST const #define wxPli_VOID #define HATE_MSVC6 /* */ HTH, Mattia
Subject: Re: [rt.cpan.org #53430] Cannot compile Wx using MSVC6
Date: Thu, 07 Jan 2010 23:20:08 +0200
To: bug-Wx [...] rt.cpan.org
From: Serguei Trouchelle <stro [...] railways.dp.ua>
Mattia Barbon via RT wrote: Show quoted text
> Could you try changing cpp/v_cback.h, around line 76, like this: > > #define wxPli_NOCONST /* */ > #define wxPli_CONST const > #define wxPli_VOID > > if that fails to compile, try this: > > #define wxPli_NOCONST HATE_MSVC6 > #define wxPli_CONST const > #define wxPli_VOID > #define HATE_MSVC6 /* */
Both versions fail with the same error message. -- Serguei Trouchelle
Subject: Re: [rt.cpan.org #53430] Cannot compile Wx using MSVC6
Date: Thu, 07 Jan 2010 23:17:02 +0100
To: bug-Wx [...] rt.cpan.org
From: Mattia Barbon <mattia.barbon [...] libero.it>
Serguei Trouchelle via RT wrote: Show quoted text
> Queue: Wx > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=53430 > > > Mattia Barbon via RT wrote: >
>> Could you try changing cpp/v_cback.h, around line 76, like this: >> >> #define wxPli_NOCONST /* */ >> #define wxPli_CONST const >> #define wxPli_VOID >> >> if that fails to compile, try this: >> >> #define wxPli_NOCONST HATE_MSVC6 >> #define wxPli_CONST const >> #define wxPli_VOID >> #define HATE_MSVC6 /* */
> > Both versions fail with the same error message.
Another try... change XS/OwnerDrawComboBox.xsp, around line 53, to: } else \ BASE::METHOD( p1, p2, p3, p4 ); \ i.e. remove the 'return'. HTH, Mattia
Subject: Re: [rt.cpan.org #53430] Cannot compile Wx using MSVC6
Date: Fri, 08 Jan 2010 12:31:41 +0200
To: bug-Wx [...] rt.cpan.org
From: Serguei Trouchelle <stro [...] railways.dp.ua>
Mattia Barbon via RT wrote: Show quoted text
> Another try... change XS/OwnerDrawComboBox.xsp, around line > 53, to: > > } else \ > BASE::METHOD( p1, p2, p3, p4 ); \ > > i.e. remove the 'return'.
Now it's OK. -- Serguei Trouchelle
Uploaded Wx 0.96 with the fix.