[TRE-general] Weird bug

Ville Laurikari ville at laurikari.net
Mon May 15 09:43:04 EEST 2006


On Mon, May 15, 2006 at 03:03:28PM +1000, skaller wrote:
> Tre isn't even linked in. This is very bad, its the stupid
> GNU system at fault, thinking they can set private standards.
> [The C library should have ONLY functions defined by C in it,
> everything else should have to be explicitly linked in]

The C library contains the regex functions on pretty much any unix
platform, not just GNU.   This includes Solaris, AIX, IRIX, HP-UX,
*BSD, etc.

> Thoughts, not sure best way. No problem with the Felix
> version of tre since it's compiled as C++, this problem
> cannot arise with C++ (because the type of the arguments
> differs and in any case I use namespaces).

One thing that can be done already now without changing TRE (yet) is
to call one of the tre_ functions which already exist.

For example, if you add a call to tre_version() you can be pretty sure
that the reg* functions are also coming from TRE.  Screwing that up
would require somehow managing to link only some of the symbols from
libtre and the rest from libc -- not likely to happen.

--
http://www.iki.fi/vl/


More information about the TRE-general mailing list