From: Mattia B. <mb...@ds...> - 2001-12-02 16:47:38
|
> Has anyone built WxPerl on FreeBSD? The problem is that Perl on FreeBSD > is built without pthreads, but wxwindows is built with pthreads. > perl5 Makefile.PL complains about library settings it inherits from > gtk-config: > > % /usr/local/bin/perl5 Makefile.PL > Checking if your kit is complete... > Looks good > Unrecognized argument in LIBS ignored: '-Wl,-E' > Unrecognized argument in LIBS ignored: '-pthread' I don't know if I can work around this ( for all platforms ), but I'll try > Wheb built this way, "make test" reports it can't find pthread_create. > > Manually sprinkling a bunch of "-pthread"s and "-lc_r" gets it to build, did you add -Wl,-E, too? > but predictably with this voodoo the extension is not very stable (a bit > of clicking around in demo/samples/controls/controls.pl and some > resizing, and foom: a Perl crash without further traceback in xdr_u_int; > obviously a threadsafe/no threadsafe mismatch). > > FreeBSD 4.4, the Perl that came with it (5.005_03), wxWindows build from > the ports collection of FreeBSD 4.4 (wxgtk-2.2.7,1). You might try to rebuild wxWindows with --disable-threads ( and maybe gtk/glib ? ); unfortunately I can't reproduce this, because I don't havd FreeBSD, and on Linux building wxWindows with threads and perl without does work just fine. Regards Mattia |