[pylucene-dev] Problems compiling PyLucene 1.0 on FreeBSD

Dudley Carr dudley.carr at gmail.com
Wed Nov 23 21:27:42 PST 2005


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.

Thanks in advance.


More information about the pylucene-dev mailing list