Skip Menu |

This queue is for tickets about the Wx CPAN distribution.

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

People
Owner: Nobody in particular
Requestors: michael [...] coders-haven.net
Cc:
AdminCc:

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



Subject: Cannot compile Wx on Windows XP
Windows XP, ActivePerl 5.10.0.1005, TDM-1 MinGW32 4.4.0 Alien::wxWidgets 0.43 When trying to Show quoted text
cpan> install Wx
I get the attached error. Alien::wxWidgets compiled just fine. If I try to compile with the standard MinGW 4.3.0-alpha-testing compiler, the above failure won't occur, however building Wx.dll will fail due to numerous "undefined reference ..." errors, even though the gcc command appears to be ok and all required libraries are included. (I'd have also attached the error log, however I forgot to save the output and already replaced 4.3.0 with 4.4.0)
Subject: ErrorLog.txt
cp lib/Wx/FS.pm ..\..\blib\lib\Wx\FS.pm C:\Perl\bin\perl.exe C:\Perl\lib\ExtUtils\xsubpp -noprototypes -nolinenumbers -typemap C:\Perl\lib\ExtUtils\typemap -typemap ..\..\typemap -typemap typemap FS.xs > FS.xsc && C:\Perl\bin\perl.exe -MExtUtils::Command -e mv FS.xsc FS.c g++ -fvtable-thunks -O2 -mthreads -Os -c -I. -I..\.. -IC:\Perl\site\lib\Alien\wxWidgets\msw_2_8_10_uni_gcc_3_4\lib -IC:\Perl\site\lib\Alien\wxWidgets\msw_2_8_10_uni_gcc_3_4\include -IC:\Perl\site\lib\Alien\wxWidgets\msw_2_8_10_uni_gcc_3_4\include -DNDEBUG -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 -DHASATTRIBUTE -fno-strict-aliasing -mms-bitfields -O2 -DVERSION=\"0.01\" -DXS_VERSION=\"0.01\" "-IC:\Perl\lib\CORE" -DWXPL_EXT -DHAVE_W32API_H -D__WXMSW__ -D_UNICODE -DWXUSINGDLL -DNOPCH -DNO_GCC_PRAGMA FS.c cc1plus.exe: warning: switch '-fvtable-thunks' is no longer supported In file included from C:\Perl\site\lib\Alien\wxWidgets\msw_2_8_10_uni_gcc_3_4\include/wx/wfstream.h:23, from cpp/fshandler.h:69, from FS.c:206: C:\Perl\site\lib\Alien\wxWidgets\msw_2_8_10_uni_gcc_3_4\include/wx/ffile.h: In member function 'bool wxFFile::Eof() const': C:\Perl\site\lib\Alien\wxWidgets\msw_2_8_10_uni_gcc_3_4\include/wx/ffile.h:89: error: 'my_perl' was not declared in this scope C:\Perl\site\lib\Alien\wxWidgets\msw_2_8_10_uni_gcc_3_4\include/wx/ffile.h: In member function 'bool wxFFile::Error() const': C:\Perl\site\lib\Alien\wxWidgets\msw_2_8_10_uni_gcc_3_4\include/wx/ffile.h:91: error: 'my_perl' was not declared in this scope FS.c: In function 'void boot_Wx__FS(PerlInterpreter*, CV*)': FS.c:1040: warning: deprecated conversion from string constant to 'char*' dmake: Error code 129, while making 'FS.o' dmake: Error code 255, while making 'subdirs' dmake: Error code 255, while making 'subdirs' MBARBON/Wx-0.91.tar.gz dmake -- NOT OK
From: gooddrummer [...] 163.com
You can try to rebuild a new perl without PERL_IMPLICIT_SYS option, then build this module following the steps in the doc/ .
On Sat Jun 20 11:35:33 2009, MoC wrote: Show quoted text
> Windows XP, ActivePerl 5.10.0.1005, TDM-1 MinGW32 4.4.0 > Alien::wxWidgets 0.43
Could you try adding #undef feof #undef ferror to the list of #undef in cpp/wxapi.h and see if this fixes the error? Thanks! Mattia
It does fix the error, however the reason why the error came up in the first place was that I tried to install it using CPAN and therefore didn't knew about Config_m.pm. (If you apply the "fix" you proposed, you'll get an "undefined reference to ..." error because of the missing win32 libs.) After I manually installed it with -MConfig_m it worked just fine, so I suppose this ticket can be set to closed, sorry for opening in the first place.
Closed as per requestor's request.