Home
The Toolkit for Online Communities
15903 Community Members, 0 members online, 1975 visitors today
Log In Register

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

OpenACS Home : Forums : OpenACS Q&A : Re: OpenFTS search and PostgreSQL 7.2 : One Message

+
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 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?

+
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 nsfts.so to aolserver's directory (and follow the rest of the instructions in AOLSERVER.INSTALL).