[TRE-general] Weird bug

Ville Laurikari ville at laurikari.net
Sun May 21 09:16:13 EEST 2006


On Mon, May 15, 2006 at 10:53:24AM +0300, Ville Laurikari wrote:
> For ABI compatibility with the system regex functions you need to
> configure TRE with --enable-system-abi.  I don't remember anymore
> why it's no longer enabled by default (it used to be at some
> point).

I enabled it, planning to have it turned on by default in 0.7.4, and
made test builds on a number of different platforms.  There were some
bugs which I fixed.

Then I realized why it's probably best turned off by default after
all:

The headers explicitly include /usr/include/regex.h (or wherever it is
on the host where TRE was built) when --enable-system-abi is used.
This does not go well with binary packages, as regex.h may be quite
different on the host where the package was built and on the hosts
where the package will be used.

All manner of problems may arise from this, including compilation
problems for applications using TRE, crashes, incorrect match results,
and whatnot.  Everyone making binary packages should be aware of it
and remember to --disable-system-abi, which they probably wouldn't.

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


More information about the TRE-general mailing list