I found the error of my ways. It was a typo. For linux2 I directed setup.py to use
'linux2': '/usr/lib/jdk/java-6-sun-1.6.0.17',                 <--WRONG
rather than
'linux2': '/usr/lib/jvm/java-6-sun-1.6.0.17',

There was not a /usr/lib/jdk folder on my Ubuntu 8.04 box.


----- Original Message ----- From: "Herbert Roitblat" <h...@orcatec.com>
To: <java-user@lucene.apache.org>
Sent: Tuesday, April 27, 2010 2:37 PM
Subject: Trouble compiling JCC


I'm trying to compile JCC, using  python setup.py build

This is what I get:

~/pylucene-2.9.2-1/jcc$ python setup.py build running build
running build_py
copying jcc/config.py -> build/lib.linux-x86_64-2.5/jcc
running build_ext
building 'jcc._jcc' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/lib/jdk/java-6-sun-1.6.0.17/include -I/usr/lib/jdk/java-6-sun-1.6.0.17/include/linux -I_jcc -Ijcc/sources -I/usr/include/python2.5 -c jcc/sources/JArray.cpp -o build/temp.linux-x86_64-2.5/jcc/sources/JArray.o -DPYTHON -fno-strict-aliasing -Wno-write-strings cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++
In file included from jcc/sources/JArray.cpp:21:
jcc/sources/JArray.h:483: error: redefinition of âclass JArray<signed char>â jcc/sources/JArray.h:337: error: previous definition of âclass JArray<signed char>â jcc/sources/JArray.cpp:961: error: redefinition of âPyObject* JArray<signed char>::wrap()â jcc/sources/JArray.cpp:945: error: âPyObject* JArray<signed char>::wrap()â previously defined here
error: command 'gcc' failed with exit status 1

I saw a message posted (http://markmail.org/message/mi3uuwiuz5qb23rl ) saying that it is using the wrong header files., but I don't know how to change the header files that it is using.

I'm trying to build pylucene-2.9.2-1 on Ubuntu 8.04.

What other information would be useful?

Thanks,
Herb


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-user-h...@lucene.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-user-h...@lucene.apache.org

Reply via email to