Hello everyone, I haven't found any bugzilla or other ticketing system for this project, and the website said that this is the best way to get in touch with developers to file bug reports, so here goes:
I was installing JCC for a server that's to be used by our r&d department, and easy_install failed with the following output: jcc/sources/JArray.h:502: error: redefinition of Œclass JArray<signed char>¹ jcc/sources/JArray.h:356: 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 So, I tried downloading the sources manually and installing them by running: cd JCC-2.3 /usr/bin/python2.5 ./setup.py install But unfortunately, I came across the same error. So I did the following: 1. opened up jcc/sources/JArray.h and commented out the definition for template<> class JArray<jbyte> : public java::lang::Object Starting at line 502 and ending at line 659 2. opened up jcc/sources/JArray.cpp and commented out the definition for PyObject *JArray<jbyte>::wrap() Starting at line 961 and ending at line 975 3. turns out that there is one more file that the compiler is complaining about, and that is jcc/sources/types.cpp. I had to comment out PyObject *make_descriptor(jbyte value) On lines 426 to 438 Only after fixing these 2 source files and one header file was I able to compile and install JCC. Thought you may want to know this in order to incorporate a fix. Here follows some info about the box I was building on: [r...@devsupport JCC-2.3]# gcc -v Using built-in specs. Target: x86_64-redhat-linux Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-libgcj-multifile --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --enable-plugin --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --with-cpu=generic --host=x86_64-redhat-linux Thread model: posix gcc version 4.1.2 20080704 (Red Hat 4.1.2-44) [r...@devsupport JCC-2.3]# [r...@devsupport JCC-2.3]# g++ -v Using built-in specs. Target: x86_64-redhat-linux Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-libgcj-multifile --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --enable-plugin --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --with-cpu=generic --host=x86_64-redhat-linux Thread model: posix gcc version 4.1.2 20080704 (Red Hat 4.1.2-44) [r...@devsupport JCC-2.3]# [r...@devsupport JCC-2.3]# rpm -qa | grep -i gcj java-1.4.2-gcj-compat-1.4.2.0-40jpp.115 libgcj-devel-4.1.2-44.el5 libgcj-4.1.2-44.el5 [r...@devsupport JCC-2.3]# uname -a Linux devsupport 2.6.18-128.4.1.el5 #1 SMP Tue Aug 4 20:19:25 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux Hope this helps in sorting out this bug. If anyone has any questions, please go ahead and ask. Thanks jk -- Jakub Krajcovic Systems Engineer Animal Logic e: jak...@al.com.au p: +61 2 938 34109