Has anyone successfully made it through the OpenFTS installation on PG
7.2 yet?
Adhering to the
the
giudelines in the new and remarkably cool
OpenACS 4.5 docs, I managed
to configure after adding a small change to the configure file (see
the patch below).
make first complained about not recognizing a command,
flex, so I installed the package "flex"...(I run a very
sparse Debian installation so this package probably exists already on
most machines).
Furthermore "make" threw this error:
nsadmin@hal:/usr/local/src/Search-OpenFTS-tcl-0.2$ make
(cd parser; make all)
make[1]: Entering directory `/usr/local/src/Search-OpenFTS-tcl-0.2/parser'
gcc -c -I. -fPIC -I../include Parser.c -o Parser.o
In file included from Parser.c:28:
../include/fts.h:16: parse error before `#'
Parser.c:40: warning: data definition has no type or storage class
Parser.c:42: parse error before `*'
Parser.c:42: warning: data definition has no type or storage class
Parser.c:43: parse error before `{'
Parser.c:54: parse error before `('
Parser.c:61: parse error before `ClientData'
Parser.c:61: warning: data definition has no type or storage class
Parser.c:62: parse error before `*'
Parser.c:62: warning: data definition has no type or storage class
Parser.c:64: parse error before `*'
Parser.c:64: warning: data definition has no type or storage class
Parser.c:65: parse error before `{'
Parser.c:70: parse error before `if'
Parser.c:74: conflicting types for `word'
Parser.c:68: previous declaration of `word'
Parser.c:74: initializer element is not constant
Parser.c:74: warning: data definition has no type or storage class
Parser.c:75: initializer element is not constant
Parser.c:75: warning: data definition has no type or storage class
Parser.c:76: parse error before `if'
Parser.c:78: parse error before `['
Parser.c:80: parse error before `('
Parser.c:89: parse error before `ClientData'
Parser.c:89: warning: data definition has no type or storage class
Parser.c:90: parse error before `*'
Parser.c:90: warning: data definition has no type or storage class
Parser.c:92: parse error before `*'
Parser.c:92: warning: data definition has no type or storage class
Parser.c:93: parse error before `{'
Parser.c:98: conflicting types for `end_parse'
../include/parser.h:27: previous declaration of `end_parse'
Parser.c:98: warning: data definition has no type or storage class
Parser.c:101: parse error before `return'
Parser.c:107: parse error before `ClientData'
Parser.c:107: warning: data definition has no type or storage class
Parser.c:108: parse error before `*'
Parser.c:108: warning: data definition has no type or storage class
Parser.c:110: parse error before `*'
Parser.c:110: warning: data definition has no type or storage class
Parser.c:111: parse error before `{'
Parser.c:118: initializer element is not constant
Parser.c:118: warning: data definition has no type or storage class
Parser.c:120: warning: parameter names (without types) in function
declaration
Parser.c:120: conflicting types for `start_parse_str'
../include/parser.h:25: previous declaration of `start_parse_str'
Parser.c:120: warning: data definition has no type or storage class
Parser.c:122: parse error before `return'
Parser.c:127: parse error before `ClientData'
Parser.c:127: warning: data definition has no type or storage class
Parser.c:128: parse error before `*'
Parser.c:128: warning: data definition has no type or storage class
Parser.c:130: parse error before `*'
Parser.c:130: warning: data definition has no type or storage class
Parser.c:131: parse error before `{'
Parser.c:135: parse error before `if'
Parser.c:144: warning: parameter names (without types) in function
declaration
Parser.c:144: conflicting types for `start_parse_fh'
../include/parser.h:26: previous declaration of `start_parse_fh'
Parser.c:144: warning: data definition has no type or storage class
Parser.c:146: parse error before `return'
Parser.c:151: parse error before `*'
Parser.c: In function `Parser_Init':
Parser.c:154: `Fts_GetDescriptObjCmd' undeclared (first use in this
function)
Parser.c:154: (Each undeclared identifier is reported only once
Parser.c:154: for each function it appears in.)
Parser.c:155: `ClientData' undeclared (first use in this function)
Parser.c:155: parse error before `0'
Parser.c:158: `Fts_GetLexObjCmd' undeclared (first use in this function)
Parser.c:159: parse error before `0'
Parser.c:162: `Fts_EndParseObjCmd' undeclared (first use in this function)
Parser.c:163: parse error before `0'
Parser.c:166: `Fts_StartParseStrObjCmd' undeclared (first use in this
function)
Parser.c:167: parse error before `0'
Parser.c:170: `Fts_StartParseFhObjCmd' undeclared (first use in this
function)
Parser.c:171: parse error before `0'
Parser.c: At top level:
Parser.c:130: warning: array `objv' assumed to have one element
make[1]: *** [Parser.o] Error 1
make[1]: Leaving directory `/usr/local/src/Search-OpenFTS-tcl-0.2/parser'
make: *** [parser] Error 2
nsadmin@hal:/usr/local/src/Search-OpenFTS-tcl-0.2$
If someone understands this please help explain it to me😊
*** configure.orig Sun Mar 3
17:40:16 2002
--- configure Sun Mar 3 18:18:26 2002
***************
*** 1582,1588 ****
if test -f
$PG_INSTALLATION_DIR/include/pgsql/postgres.h; then
PG_INC="$PG_INSTALLATION_DIR/include/pgsql"
else
! { echo "configure: error: couldn't
find postgresql include files" 1>&2; exit 1; }
fi
fi
fi
--- 1582,1592 ----
if test -f
$PG_INSTALLATION_DIR/include/pgsql/postgres.h; then
PG_INC="$PG_INSTALLATION_DIR/include/pgsql"
else
! if test -f
$PG_INSTALLATION_DIR/include/server/postgres.h; then
!
PG_INC="$PG_INSTALLATION_DIR/include/server"
! else
! { echo "configure: error:
couldn't find postgresql include files" 1>&2; exit 1; }
! fi
fi
fi
fi
The patch grew a little big because I adjusted the indentation...Sorry
about that!
Cheers!