[pylucene-dev] Problems compiling PyLucene 1.0 on FreeBSD
vajda at osafoundation.org
Wed Nov 23 21:34:23 PST 2005
On Wed, 23 Nov 2005, Dudley Carr wrote:
> Since there's no PyLucene port on FreeBSD, I tried compiling it
> myself. I'm using FreeBSD 4.11 with gcc 4.1, SWIG 1.3.27, Python
> 2.4.2, and PyLucene 1.0. I updated the path information and hard coded
> the OS variable to Linux in the Makefile. The compilation is
> successful until SWIG has to process PyLucene.i. I get the following
> back from `gmake all`:
> /home/dcarr/opt/bin/swig -modern -DSWIG_COBJECT_TYPES
> -DSWIG_COBJECT_PYTHON -DPYLUCENE_VER="'1.0'" -DLUCENE_VER="'1.4.3'"
> -Irelease/classes -c++ -python PyLucene.i
> PyLucene.i:2101: Error: Syntax error in input(1).
> PyLucene.i:4247: Error: %inline directive inside a namespace is disallowed.
> gmake: *** [PyLucene_wrap.cxx] Error 2
> The offending first offending line (2101) is "%makedefault;" following
> the first class declaration in the java.lang namespace.
I've had a number of problems with SWIG versions > 1.3.24.
Please use SWIG 1.3.24 until these problems are resolved.
I don't know about the state of libgcj on FreeBSD, your mileage may vary.
More information about the pylucene-dev