From: Mattia B. <mb...@ds...> - 2002-09-17 22:08:52
|
> `make test` doesn't work using wxGTK-2.3.3 on Linux: > > t/08_ovl_func.........Bareword "Wx::Pen::newBitmap" not allowed > while "strict subs" in use at t/08_ovl_func.t line 485. > Execution of t/08_ovl_func.t aborted due to compilation errors. > # No tests run! Fixed in CVS > I found in XS/Pen.xs that the xsub for `newBitmap' is conditionally > compiled: #if defined( __WXMSW__ ) || defined( __WXPERL_FORCE__ ). > (I guess __WXPERL_FORCE__ is an undocumented debugging thing, > and I use Linux, so `newBitmap' didn't get wrapped.) > In t/08_ovl_func.t, there is a `skip' call for avoiding > `newBitmap', but it doesn't avoid the "bareword" problem in > the `hijack' call before it. > > So I commented out the line > > Wx::Pen::newBitmap => sub { $newbitmap => 1 }, > > then tried `make test` again, but... Fixed another way. > t/08_ovl_func.........Usage: Wx::Brush::newBitmap(CLASS, stipple) > at t/08_ovl_func.t line 44. > # No tests run! > > `stipple' is a Wx::Bitmap. I don't know what causes the error. Works for me. Can you reproduce it and if yes, with which perl version (perl -v output). Thanks! Mattia |