From: Mattia B. <mb...@ds...> - 2001-12-02 20:48:07
|
> On Sun, 2 Dec 2001, Mattia Barbon wrote: > > > > Unrecognized argument in LIBS ignored: '-pthread' > > I don't know if I can work around this ( for all platforms ), but I'll try > > I'm not sure it makes sense at this stage... Maybe not for this case, but I am sick of seeing Unknown option "-rdynamic" in LIBS: ignored everytime I build; and I don't think that Perl should strip arbitrary thinds from flags, either > > > 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. > > That would work, but that would cause other apps to fail :-( > > Alternatively I could build seperate non-threaded libraries just for > WxPerl (which, by the way, is not the only victim of the way threads are > handled on FreeBSD), but in my experience it's pretty hard to make Perl > play ball with that setup, unless those libs are linked in > statically. I've had some successes doing that in the past, but it's not > fun exercise... Does this really mean that if you have libwxgtk.so ( or whatever ) dynamically linked to a perl extension, this does not work ? and setting LD_LIBRARY_PATH ( or whatever it is on *BSD ) does not work either ? This is weird... OTOH, if you resolve this, would you mind writing some instructions to put on INSTALL.txt ? Regards Mattia |