On Oct 28, 2009, at 2:04, Manolo Padron Martinez <manol...@gmail.com>
wrote:
Hi:
After compile JCC 2.4.1 correctly I tried to compile pylucene and I
get the next error:
What is the version of your gcc ?
I did the same build today on Ubuntu Gutsy 64 bits without any problem.
Andi..
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-prototypes -fPIC -DPYTHON=1 -D_jcc_shared=1
-I/usr/lib/jvm/java-6-openjdk/include
-I/usr/lib/jvm/java-6-openjdk/include/linux -Ibuild/_lucene
-I/usr/lib/python2.5/site-packages/JCC-2.4.1-py2.5-linux-x86_64.egg/
jcc/sources
-I/usr/include/python2.5 -c build/_lucene/__wrap03__.cpp -o
build/temp.linux-x86_64-2.5/build/_lucene/__wrap03__.o
-fno-strict-aliasing -Wno-write-strings
cc1plus: warning: command line option "-Wstrict-prototypes" is valid
for Ada/C/ObjC but not for C++
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-prototypes -fPIC -DPYTHON=1 -D_jcc_shared=1
-I/usr/lib/jvm/java-6-openjdk/include
-I/usr/lib/jvm/java-6-openjdk/include/linux -Ibuild/_lucene
-I/usr/lib/python2.5/site-packages/JCC-2.4.1-py2.5-linux-x86_64.egg/
jcc/sources
-I/usr/include/python2.5 -c build/_lucene/__wrap02__.cpp -o
build/temp.linux-x86_64-2.5/build/_lucene/__wrap02__.o
-fno-strict-aliasing -Wno-write-strings
cc1plus: warning: command line option "-Wstrict-prototypes" is valid
for Ada/C/ObjC but not for C++
/usr/lib/python2.5/site-packages/JCC-2.4.1-py2.5-linux-x86_64.egg/
jcc/sources/functions.h:
In function ‘PyObject* get_iterator_next(T*) [with T =
java::util::t_Iterator, U = java::lang::t_String, V =
java::lang::String]’:
build/_lucene/__wrap02__.cpp:57762: instantiated from here
/usr/lib/python2.5/site-packages/JCC-2.4.1-py2.5-linux-x86_64.egg/
jcc/sources/functions.h:116:
error: no match for ‘operator=’ in ‘next =
java::util::Iterator::next() const()’
build/_lucene/java/lang/String.h:28: note: candidates are:
java::lang::String& java::lang::String::operator=(const
java::lang::String&)
error: command 'gcc' failed with exit status 1
make: *** [compile] Error 1
I suposse that should be a problem between pylucene from SVN and JCC
2.4.1. Again in Linux ( Debian Lenny 64 bits ).
Regards from Canary Islands
Manuel Padrón Martínez