Reviving this old thread...
I'm attempting to build Search-OpenFTS-tcl-0.3.2 on RedHat Enterprise Server (with pg 7.2.4). After finding this thread I have edited Makefile.global to specify where to find tcl.h, but I am getting (apparently bogus) syntax errors.
If I use the tcl.h from Tcl 8.3.5 I get
make[1]: Entering directory `/usr/local/src/Search-OpenFTS-tcl-0.3.2/parser'
gcc -c -I. -fPIC -I../include -I/usr/local/src/tcl8.3.5/generic -DPACKAGE=\"OPENFTS\" -DVERSION=\"0.3.2\" -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_STRERROR=1 -DHAVE_STRSTR=1 -DHAVE_STRLEN=1 -DHAVE_POLL=1 Parser.c -o Parser.o
In file included from ../include/iispell.h:5,
from ../include/fts.h:6,
from Parser.c:28:
/usr/local/src/tcl8.3.5/generic/regex.h:145: syntax error before "re_void"
/usr/local/src/tcl8.3.5/generic/regex.h:145: warning: data definition has no type or storage class
/usr/local/src/tcl8.3.5/generic/regex.h:314: syntax error before "_ANSI_ARGS_"
/usr/local/src/tcl8.3.5/generic/regex.h:323: syntax error before "_ANSI_ARGS_"
/usr/local/src/tcl8.3.5/generic/regex.h:326: syntax error before "_ANSI_ARGS_"
and if I use the one in aolserver (3.3+ad13) it's
make[1]: Entering directory `/usr/local/src/Search-OpenFTS-tcl-0.3.2/parser'
gcc -c -I. -fPIC -I../include -I/usr/local/src/aolserver/aolserver/include -DPACKAGE=\"OPENFTS\" -DVERSION=\"0.3.2\" -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_STRERROR=1 -DHAVE_STRSTR=1 -DHAVE_STRLEN=1 -DHAVE_POLL=1 Parser.c -o Parser.o
Parser.c: In function `Fts_GetDescriptObjCmd':
Parser.c:41: syntax error before "Tcl_Obj"
Parser.c:49: subscripted value is neither array nor pointer
Parser.c: In function `Fts_GetLexObjCmd':
Parser.c:65: syntax error before "Tcl_Obj"
(it goes on for many more lines like this)
Any ideas what I might be doing wrong?