Subject: | build options |
I'm not familiar with this module, however I run into some building issues.
I have still the same spec file with the same options for compiler, but
v0.89 was allright and 0.90 isn't.
Reproducer:
% perl /usr/share/doc/perl-Wx-0.91/samples/trivial/trivial.pl
perl: symbol lookup error:
/usr/lib64/perl5/vendor_perl/5.10.0/x86_64-linux-thread-multi/auto/Wx/Wx.so:
undefined symbol: Perl_Guse_safe_putenv_ptr
The symbol isn't included in Wx.so because of this code:
--- Wx-0.91/Wx.xs.old<->2009-07-01 12:25:23.000000000 +0200
+++ Wx-0.91/Wx.xs<----->2009-07-01 12:42:00.575586305 +0200
@@ -274,7 +274,7 @@ Load()
.
if( wxPerlAppCreated || wxTopLevelWindows.GetCount() > 0 )
return;
-#if defined(DEBUGGING) && !defined(PERL_USE_SAFE_PUTENV)
+#if defined(DEBUGGING) && defined(PERL_USE_SAFE_PUTENV)
// avoid crash on exit in Fedora (and other DEBUGGING Perls)
PL_use_safe_putenv = 1;
#endif
The compile options has changed and now is rpm using -DDEBUGING and
-DPERL_USE_SAFE_PUTENV together. I try to build Padre with recompiled Wx
and it seems to be working. Probably this condition should be rewritten
or removed as obsolete?