-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Sun, 11 Dec 2005, Peter Amstutz wrote:
The second crash appears to be a somewhat naughty linking error. It seems to be that libwx_base defines a symbol regfree(), and that this is overriding the instance of regfree() in libc...? Anyone have any ideas?
Okay, a little more on this. The problem is that wxWidgets contains a its own implementation of regfree() and other regular expression functions. Some of these have been allowed to "leak" into the public API, but not all of them. What seems to be happening is that when the build goes to link wxtest, it scoops up the wx version of regfree() because it checks the wx_base library before checking glibc. However, it ends up using the glibc version of regcomp(). Naturally these arn't compatible, so we get the crash I posted earlier.
So this isn't CS's "fault" exactly, although if libcrystalspace were a shared library and not static, the link step where these references are resolved would happen earlier and would not at that point be linking with wxwidgets, and so the whole problem would go away.
At the moment, I'm not sure how to proceed. The problem is, wxtest needs to link the correct version of regfree (from glibc) so I need to hide or eliminate the symbol provided by wxwidgets. Does anyone have any ideas on how to do this, other than building a custom version of wxwidgets?
[ Peter Amstutz ][ [EMAIL PROTECTED] ][ [EMAIL PROTECTED] ] [Lead Programmer][Interreality Project][Virtual Reality for the Internet] [ VOS: Next Generation Internet Communication][ http://interreality.org ] [ http://interreality.org/~tetron ][ pgpkey: pgpkeys.mit.edu 18C21DF7 ] -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQFDnLj8aeHUyhjCHfcRAth8AJ9g7dYNMcd9FnzKXxd4zZR9hMTnWgCfbVj7 qAlO13zVpAgQoifzbhQjBWs= =77kY -----END PGP SIGNATURE----- ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ Crystal-main mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/crystal-main Unsubscribe: mailto:[EMAIL PROTECTED]
