It looks like PyLucene_wrap.cxx is missing. This file is produced by SWIG from PyLucene.i. SWIG could be failing. Your version of SWIG might be too old. Yes, the INSTALL file talks about requiring SWIG 1.3.20 or above. I suspect you need to get a newer SWIG, like version 1.3.24 from http://www.swig.org.

Andi..

On Sun, 10 Jul 2005, Sebastjan Trepca wrote:

Hi,

I'm trying to build PyLucene 0.9.9 on my Suse server but can't get over this
error:

/usr/local/gcc-3.4.4/bin/g++ -shared -o release/_PyLucene.so -O2 -fPIC
-DSWIG_COBJECT_TYPES -DSWIG_COBJECT_PYTHON -DPYLUCENE_VER="'0.9.9'"
-DLUCENE_VER="'1.4.3'" -Irelease/classes -I/usr/local/include/python2.4
PyLucene_wrap.cxx release/lucene.o release/snowball.o release/highlight.o
release/analyzers.o release/unreleased.o release/util.java.o
release/util.cpp.o release/io.java.o release/io.cpp.o release/store.java.o
release/store.cpp.o release/search.java.o release/search.cpp.o
release/queryParser.java.o release/queryParser.cpp.o release/analysis.java.o
release/analysis.cpp.o release/highlight.java.o release/highlight.cpp.o
-lgcj
g++: PyLucene_wrap.cxx: No such file or directory
make: *** [release/_PyLucene.so] Error 1

There are some warnings before the error too:

==============================================================
/usr/local/gcc-3.4.4/bin/g++ -I/usr/local/include/python2.4
-I/usr/local/gcc-3.4.4/include -Irelease/classes -O2 -fPIC -c -o
release/util.cpp.o cpp/PythonUtil.cpp
In file included from /usr/local/include/python2.4/Python.h:8,
from cpp/PyLucene.h:28,
from cpp/PythonUtil.cpp:24:
/usr/local/include/python2.4/pyconfig.h:835:1: warning: "_POSIX_C_SOURCE"
redefined
In file included from /usr/include/string.h:26,
from /usr/local/gcc-3.4.4/include/gcj/cni.h:21,
from cpp/PyLucene.h:24,
from cpp/PythonUtil.cpp:24:
/usr/include/features.h:132:1: warning: this is the location of the previous
definition
/usr/local/gcc-3.4.4/bin/g++ -I/usr/local/include/python2.4
-I/usr/local/gcc-3.4.4/include -Irelease/classes -O2 -fPIC -c -o
release/io.cpp.o cpp/PythonIO.cpp
In file included from /usr/local/include/python2.4/Python.h:8,
from cpp/PyLucene.h:28,
from cpp/PythonIO.cpp:24:
/usr/local/include/python2.4/pyconfig.h:835:1: warning: "_POSIX_C_SOURCE"
redefined
In file included from /usr/include/string.h:26,
from /usr/local/gcc-3.4.4/include/gcj/cni.h:21,
from cpp/PyLucene.h:24,
from cpp/PythonIO.cpp:24:
/usr/include/features.h:132:1: warning: this is the location of the previous
definition
/usr/local/gcc-3.4.4/bin/g++ -I/usr/local/include/python2.4
-I/usr/local/gcc-3.4.4/include -Irelease/classes -O2 -fPIC -c -o
release/store.cpp.o cpp/PythonStore.cpp
In file included from /usr/local/include/python2.4/Python.h:8,
from cpp/PyLucene.h:28,
from cpp/PythonStore.cpp:24:
/usr/local/include/python2.4/pyconfig.h:835:1: warning: "_POSIX_C_SOURCE"
redefined
In file included from /usr/include/string.h:26,
from /usr/local/gcc-3.4.4/include/gcj/cni.h:21,
from cpp/PyLucene.h:24,
from cpp/PythonStore.cpp:24:
/usr/include/features.h:132:1: warning: this is the location of the previous
definition
/usr/local/gcc-3.4.4/bin/g++ -I/usr/local/include/python2.4
-I/usr/local/gcc-3.4.4/include -Irelease/classes -O2 -fPIC -c -o
release/search.cpp.o cpp/PythonSearch.cpp
In file included from /usr/local/include/python2.4/Python.h:8,
from cpp/PyLucene.h:28,
from cpp/PythonSearch.cpp:24:
/usr/local/include/python2.4/pyconfig.h:835:1: warning: "_POSIX_C_SOURCE"
redefined
In file included from /usr/include/string.h:26,
from /usr/local/gcc-3.4.4/include/gcj/cni.h:21,
from cpp/PyLucene.h:24,
from cpp/PythonSearch.cpp:24:
/usr/include/features.h:132:1: warning: this is the location of the previous
definition
/usr/local/gcc-3.4.4/bin/g++ -I/usr/local/include/python2.4
-I/usr/local/gcc-3.4.4/include -Irelease/classes -O2 -fPIC -c -o
release/queryParser.cpp.o cpp/PythonQueryParser.cpp
In file included from /usr/local/include/python2.4/Python.h:8,
from cpp/PyLucene.h:28,
from cpp/PythonQueryParser.cpp:24:
/usr/local/include/python2.4/pyconfig.h:835:1: warning: "_POSIX_C_SOURCE"
redefined
In file included from /usr/include/string.h:26,
from /usr/local/gcc-3.4.4/include/gcj/cni.h:21,
from cpp/PyLucene.h:24,
from cpp/PythonQueryParser.cpp:24:
/usr/include/features.h:132:1: warning: this is the location of the previous
definition
/usr/local/gcc-3.4.4/bin/g++ -I/usr/local/include/python2.4
-I/usr/local/gcc-3.4.4/include -Irelease/classes -O2 -fPIC -c -o
release/analysis.cpp.o cpp/PythonAnalysis.cpp
In file included from /usr/local/include/python2.4/Python.h:8,
from cpp/PyLucene.h:28,
from cpp/PythonAnalysis.cpp:24:
/usr/local/include/python2.4/pyconfig.h:835:1: warning: "_POSIX_C_SOURCE"
redefined
In file included from /usr/include/string.h:26,
from /usr/local/gcc-3.4.4/include/gcj/cni.h:21,
from cpp/PyLucene.h:24,
from cpp/PythonAnalysis.cpp:24:
/usr/include/features.h:132:1: warning: this is the location of the previous
definition
/usr/local/gcc-3.4.4/bin/g++ -I/usr/local/include/python2.4
-I/usr/local/gcc-3.4.4/include -Irelease/classes -O2 -fPIC -c -o
release/highlight.cpp.o cpp/PythonHighlight.cpp
In file included from /usr/local/include/python2.4/Python.h:8,
from cpp/PyLucene.h:28,
from cpp/PythonHighlight.cpp:24:
/usr/local/include/python2.4/pyconfig.h:835:1: warning: "_POSIX_C_SOURCE"
redefined
In file included from /usr/include/string.h:26,
from /usr/local/gcc-3.4.4/include/gcj/cni.h:21,
from cpp/PyLucene.h:24,
from cpp/PythonHighlight.cpp:24:
==============================================================

I have:
-gcc 3.4.4
-swig 1.3.21
-python 2.4.1
- Suse 9.2

What could be the cause for this error ?

Thanks, Sebastjan

_______________________________________________
pylucene-dev mailing list
[email protected]
http://lists.osafoundation.org/mailman/listinfo/pylucene-dev

Reply via email to