[TRE-general] system-abi

William J Poser wjposer at ldc.upenn.edu
Sat Dec 30 04:17:31 EET 2006


I am wondering about the configuration option
--enable-system-abi and the default to disabled.
In one of my programs that uses libtre, I have found
that if I use the default configuration I get
segmentation faults in apparently random
circumstances. I can avoid them in two ways.
One is to configure with --enable-system-abi.
The other, which I discovered by a chain of
experiments I no longer recall, is to include
"regex.h" rather than <tre/regex.h>. If I do
this, the segmentation faults go away and I
warnings from gcc about implicit definitions
of the regexp functions, but things seem to
compile and work alright. It is also rather
peculiar that "regex.h" works in the
absence of any such file in the current
directory. This is on a GNU/Linux system.

As far as I can tell, there is no bug in my
program and the segfaults result from a conflict
between libtre and the system regexp library.
Does the behaviour described make sense?
And could someone perhaps explain exactly
what the system-abi compatibility options
do and why disabled is the default? Thanks.

Bill



More information about the TRE-general mailing list