Skip Menu |

This queue is for tickets about the Alien-wxWidgets CPAN distribution.

Report information
The Basics
Id: 46804
Status: resolved
Priority: 0/
Queue: Alien-wxWidgets

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

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



Hello Mattia, I'm experiencing a problem compiling Wx for ActivePerl 5.8.9/MSWin32 using MSVC6. It happens because of an error in Alien::wxWidgets::Utility, line 44: my $b = ExtUtils::CBuilder->new( config => { cc => $cc, ld => $cc }, quiet => 1, ); "cc" means compiler, and "ld" means linker and while it's the same for gcc, it differs for MSVC, where "ld" should be "link". These values are in %Config::Config so there's no need (in this particular case) to pass them to ExtUtils::CBuilder. After that, Wx 0.91 sadly fails anyway with the following message: 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\A lien\wxWidgets\msw_2_8_10_uni_cl_0\include -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_CONSO LE -DNO_STRICT -DHAVE_DES_FCRYPT -DNO_HASH_SEED -DUSE_SITECUSTOMIZE -DPRIVLIB_LAST_IN_INC -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -DPERL_MSVCRT_READFIX -MD -Zi -DNDEBUG -O1 -DVERSION=\"0.01\" -DXS_VERSION=\"0.01\" "-IC:\bin\dev\perl\lib\CORE" -DWXPL_EXT -DWIN32 -D__WXMSW__ -D_UNICODE -DWXUSINGDLL -D_WINDOWS -DNO PCH -D_CRT_SECURE_NO_DEPRECATE FS.c Command line warning D4025 : overriding '/W4' with '/W3' Command line warning D4025 : overriding '/O2' with '/O1' FS.c C:\bin\dev\perl\site\lib\Alien\wxWidgets\msw_2_8_10_uni_cl_0\include\wx/ffile.h(89) : error C2065: 'my_perl' : undeclared identifier C:\bin\dev\perl\site\lib\Alien\wxWidgets\msw_2_8_10_uni_cl_0\include\wx/ffile.h(89) : error C2227: left of '->pEof' must point to class/struct/union C:\bin\dev\perl\site\lib\Alien\wxWidgets\msw_2_8_10_uni_cl_0\include\wx/ffile.h(91) : error C2227: left of '->pError' must point to class/struct/union NMAKE : fatal error U1077: 'cl' : return code '0x2' Stop. A far as I can guess, it may be similar to http://rt.cpan.org/Public/Bug/Display.html?id=45922 -- Serguei Trouchelle
On Tue Jun 09 12:47:39 2009, STRO wrote: Hi, Show quoted text
> I'm experiencing a problem compiling Wx for ActivePerl 5.8.9/MSWin32 > using MSVC6. It happens because of an error in > Alien::wxWidgets::Utility, line 44: > > my $b = ExtUtils::CBuilder->new( config => { cc => $cc, ld => $cc > }, > quiet => 1, > ); > > "cc" means compiler, and "ld" means linker and while it's the same for > gcc, it differs for MSVC, where "ld" should be "link". > > These values are in %Config::Config so there's no need (in this > particular case) to pass them to ExtUtils::CBuilder.
I need to check, but ISTR that that function can be called even for a compiler not in %Config, that's why it takes $cc as a parameter. Show quoted text
> After that, Wx 0.91 sadly fails anyway with the following message:
<snip> Show quoted text
>
C:\bin\dev\perl\site\lib\Alien\wxWidgets\msw_2_8_10_uni_cl_0\include\wx/ffile.h(89) Show quoted text
> : error C2065: 'my_perl' : undeclared identifier >
C:\bin\dev\perl\site\lib\Alien\wxWidgets\msw_2_8_10_uni_cl_0\include\wx/ffile.h(89) Show quoted text
> : error C2227: left of '->pEof' must point to class/struct/union >
C:\bin\dev\perl\site\lib\Alien\wxWidgets\msw_2_8_10_uni_cl_0\include\wx/ffile.h(91) Show quoted text
> : error C2227: left of '->pError' must point to class/struct/union > NMAKE : fatal error U1077: 'cl' : return code '0x2' > Stop. > > A far as I can guess, it may be similar to > http://rt.cpan.org/Public/Bug/Display.html?id=45922
Correct guess; I applied a blind patch to wxapi.h. Thanks! Mattia
All build problems should be fixed now.