I'm trying to build SWISH-E for a production box:
Swish-e 2.4.2
RedHat Linux 7.3
Perl 5.6.1
I've successfully done a "make test" for the base swish-e, but when I
try to build SWISH::API I get compile errors (see below).
Any pointers?
Thanks in advance,
greg_fenton.
$ cd perl
$ perl Makefile.PL PREFIX=/home/apache CCFLAGS="-I/home/apache/include"
LIBS="-L/home/apache/lib -lswish-e"
[...]
Your SWISH-E version: 2.4.2
Creating index...'/home/apache/bin/swish-e -c t/test.conf -f
t/index.swish-e -v 0'
Writing Makefile for SWISH::API
$ make
gcc -c -I/home/apache/include -O2 -march=i386 -mcpu=i686
-DVERSION=\"0.01\" -DXS_VERSION=\"0.01\" -fPIC
-I/usr/lib/perl5/5.6.1/i386-linux/CORE API.c
API.c: In function `XS_SWISH__API__Result_FuzzyWord':
API.c:1057: `SW_FUZZYWORD' undeclared (first use in this function)
API.c:1057: (Each undeclared identifier is reported only once
API.c:1057: for each function it appears in.)
API.c:1057: parse error before `RETVAL'
API.xs:593: `RETVAL' undeclared (first use in this function)
API.c: In function `XS_SWISH__API__Result_FuzzyMode':
API.c:1093: warning: assignment makes pointer from integer without a
cast
API.c: In function `XS_SWISH__API__FuzzyWord_DESTROY':
API.c:1105: `SW_FUZZYWORD' undeclared (first use in this function)
API.c:1105: parse error before `fw'
API.c:1108: `fw' undeclared (first use in this function)
API.c: In function `XS_SWISH__API__FuzzyWord_WordCount':
API.c:1127: `SW_FUZZYWORD' undeclared (first use in this function)
API.c:1127: parse error before `fw'
API.c:1132: `fw' undeclared (first use in this function)
API.c: In function `XS_SWISH__API__FuzzyWord_WordError':
API.c:1150: `SW_FUZZYWORD' undeclared (first use in this function)
API.c:1150: parse error before `fw'
API.c:1155: `fw' undeclared (first use in this function)
API.c: In function `XS_SWISH__API__FuzzyWord_WordList':
API.c:1174: `SW_FUZZYWORD' undeclared (first use in this function)
API.c:1174: parse error before `fw'
API.c:1181: `fw' undeclared (first use in this function)
API.xs:653: warning: assignment makes pointer from integer without a
cast
make: *** [API.o] Error 1
=====
Greg Fenton
greg_fenton@yahoo.com
__________________________________
Do you Yahoo!?
Friends. Fun. Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/
Received on Mon May 31 13:56:36 2004