From: Mattia B. \<mattia\.barbon\@libero\.it\> <mat...@li...> - 2005-12-13 08:19:03
|
[CC-ing wxp...@li...] Hello, > I have recently installed wxWidgets and was trying to install wxPerl bu= t > am having trouble installing the module. > > perl Makefile.PL works find. > Most of the compilation works fine however, I get the following message= : > > g++ -c -I. -I. -I/usr/lib64/wx/include/gtk2-unicode-release-2.5 > -I/usr/include/wx-2.5 -O2 -fmessage-length=3D0 -Wall -g -Wall -pipe = > -DVERSION=3D\"0.26\" -DXS_VERSION=3D\"0.26\" -fPIC > "-I/usr/lib/perl5/5.8.6/x86_64-linux-thread-multi/CORE" > -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=3D64 -D_LARGE_FILE= S > Constant.c > > In file included from cpp/wxapi.h:80, > from Constant.c:67: > cpp/helpers.h: In member function `void wxPliSelfRef::SetSelf(SV*, bool= )': > cpp/helpers.h:432: warning: unused variable `PerlInterpreter*my_perl' > > Constant.c: In function `double constant(const char*, int)': > Constant.c:640: error: `wxBUFFER_VIRTUAL_AREA' undeclared (first use > this function) > Constant.c:640: error: (Each undeclared identifier is reported only onc= e > for each function it appears in.) > Constant.c:641: error: `wxBUFFER_CLIENT_AREA' undeclared (first use thi= s > function) > Constant.c:949: error: `wxEXEC_NODISABLE' undeclared (first use this > function) > Constant.c:972: error: `wxFRAME_EX_METAL' undeclared (first use this > function) > Constant.c: At top level: > /usr/lib/perl5/5.8.6/x86_64-linux-thread-multi/CORE/patchlevel.h:121: > warning: `char*local_patches[2]' defined but not used > make: *** [Constant.o] Error 1 > > Any idea on what the problem is I have wxGTK version 2.5.3.1-5 installe= d... This is the problem... In general, I advise you to upgrade the wxGTK version; there were many fixes since 2.5.3. If you don't want/can't= , just comment out in Constant.xs the lines mentioning wxBUFFER_VIRTUAL_AREA, wxBUFFER_CLIENT_AREA, wxEXEC_NODISABLE and wxFRAME_EX_METAL. HTH Mattia |