Forum OpenACS Q&A: Re: OpenFTS search and PostgreSQL 7.2

Posted by Janine Ohmer on
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 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'
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'
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?

Posted by Cathy Sarisky on
Janine, I'm seeing the same sort of error with postgresql 7.3.4, on Debian.  Did you resolve this?
Posted by Vinod Kurup on
Hey Cathy,

I haven't installed on Debian recently, but I recall running into something like this. Looking at Janine's message above, it seems that make is running in the parser directory. According to the AOLSERVER.INSTALL, the only directory that you need to run make in is the aolserver directory. So, run ./configure in the main directory, then cd aolserver, run make and then cp to aolserver's directory (and follow the rest of the instructions in AOLSERVER.INSTALL).