[pylucene-dev] JCC install errors

Andi Vajda vajda at osafoundation.org
Mon Feb 11 09:52:38 PST 2008



On Feb 11, 2008, at 9:47, Andi Vajda <vajda at osafoundation.org> wrote:

>
> On Feb 11, 2008, at 5:24, Alessandro Magni <magni at inrim.it> wrote:
>
>> Hello everybody,
>> I am not a python developer at all, but I badly need JCC installed  
>> (because I need PyLucene installed (because I need UpLib installed  
>> (...)))
>>
>> While compiling the just-downloaded JCC, I get immediately:
>>
>
> It looks like you might be picking up header files you shouldn't  
> that contain an incorrect definition of jbyte.

In particular, how many versions of jni.h do you have installed ?
Are you sure that you're picking up the one for sun java 6 ?

Andi..

>
>
> Andi..
>
>>
>> [root at lambda2 JCC-1.7]# python setup.py build
>> running build
>> running build_py
>> copying jcc/config.py -> build/lib.linux-i686-2.5/jcc
>> running build_ext
>> building 'jcc._jcc' extension
>> gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -g -pipe -Wall -Wp,- 
>> D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp- 
>> buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind- 
>> tables -D_GNU_SOURCE -fPIC -fPIC -I/usr/lib/jvm/java-6-sun/include - 
>> I/usr/lib/jvm/java-6-sun/include/linux -I_jcc -Ijcc/sources -I/usr/ 
>> include/python2.5 -c jcc/sources/jcc.cpp -o build/temp.linux- 
>> i686-2.5/jcc/sources/jcc.o -DPYTHON -fno-strict-aliasing
>> jcc/sources/JArray.h:166: error: redefinition of 'class  
>> JArray<signed char>'
>> jcc/sources/JArray.h:74: error: previous definition of 'class  
>> JArray<signed char>'
>> jcc/sources/jcc.cpp: In function 'PyObject* make_descriptor(jbyte)':
>> jcc/sources/jcc.cpp:183: error: redefinition of 'PyObject*  
>> make_descriptor(jbyte)'
>> jcc/sources/jcc.cpp:168: error: 'PyObject* make_descriptor 
>> (jboolean)' previously defined here
>> error: command 'gcc' failed with exit status 1
>>
>>
>> Please, tell me which other info you need, I am really in dire  
>> straits...
>>
>> thank you !
>>
>>
>> alessandro
>>
>> -- 
>>
>> ~~~ 
>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> /  Dr.Alessandro Magni
>> \        Electromagnetics Division
>> /        INRiM Strada delle Cacce 91, 10135 Torino (ITALIA)
>> \        Email magni at inrim.it
>> /        Tel: 0039-011-3919821  Fax: 0039-011-3919834
>> \        URL http://www.inrim.it/~magni
>> / Our business in life is not to succeed but to continue to fail \  
>> in high spirits.  -- Robert Louis Stevenson
>> ~~~ 
>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>
>> _______________________________________________
>> pylucene-dev mailing list
>> pylucene-dev at osafoundation.org
>> http://lists.osafoundation.org/mailman/listinfo/pylucene-dev
> _______________________________________________
> pylucene-dev mailing list
> pylucene-dev at osafoundation.org
> http://lists.osafoundation.org/mailman/listinfo/pylucene-dev


More information about the pylucene-dev mailing list