Cezary Morga wrote:

  Hi,

I'm currently trying to make Wx-0.89 work with wxWidgets 2.8.8 on FreeBSD 7 with the intention to eventually prepare a FreeBSD port for it.

  Cool!

I'm currently worried about perl Makefile.PL[1] throwing out following errors. My ExtUtils::MakeMaker version is 6.48. The -lc_r is obviously not used in current FreeBSDs and -pthread should set, among other, the -lpthread flag. So, the question is have anyone here got any experience with compiling wxPerl on modern FreeBSD versions and could shed some light as to how to fix this issue?

  If it only a matter of replacing -lc_r with -pthread (or whatever),
just change, in Alien::wxWidget inc/My/Build/Any_wx_config.pm

    $config{link_libraries} .= ' -lc_r' if $^O =~ /freebsd/i;

with the appropriate flags.  Your call if a check on uname -r is
worth the trouble.

'WX' is not a known MakeMaker parameter name.

  Expected and not a problem.

Unrecognized argument in LIBS ignored: '-pthread'

  There is a check for Linux that replaces -pthread with -lpthread
in link flags.  I do not know if it is appropriate for FreeBSD.

Note (probably harmless): No library found for -lc_r

  See above.

The other thing are make[2] warnings, like the following:

Wx.c: In function 'void wxPli_boot_Wx(CV*)':
Wx.c:19974: warning: deprecated conversion from string constant to 'char*' Wx.c:19983: warning: deprecated conversion from string constant to 'char*'

  Should be fixed in trunk.  Could you checkout and test it?

I've seen Mattia suggesting a fix for wxVariant[3], so maybe someone here would have an idea as to mine problems as well.

  ISTR I added a blind cast.  Could you check if trunk works for you?

TIA for any help on this.

[1] http://www.therek.net/wxperl/perl-Makefile.PL.txt
[2] http://www.therek.net/wxperl/make.txt
[3] http://osdir.com/ml/lang.perl.wxperl/2007-11/msg00045.html

Thanks!
Mattia

Reply via email to