Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 5371 invoked from network); 27 Apr 2010 21:38:13 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 27 Apr 2010 21:38:13 -0000 Received: (qmail 27785 invoked by uid 500); 27 Apr 2010 21:38:10 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 27753 invoked by uid 500); 27 Apr 2010 21:38:10 -0000 Mailing-List: contact java-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-user@lucene.apache.org Delivered-To: mailing list java-user@lucene.apache.org Received: (qmail 27745 invoked by uid 99); 27 Apr 2010 21:38:10 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Apr 2010 21:38:10 +0000 X-ASF-Spam-Status: No, hits=1.1 required=10.0 tests=AWL,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [74.208.4.194] (HELO mout.perfora.net) (74.208.4.194) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Apr 2010 21:38:05 +0000 Received: from Rissos (cpe-75-84-68-253.socal.res.rr.com [75.84.68.253]) by mrelay.perfora.net (node=mrus4) with ESMTP (Nemesis) id 0MfFEA-1NmR9I3iRu-00OE8X; Tue, 27 Apr 2010 17:37:44 -0400 Message-ID: From: "Herbert Roitblat" To: Subject: Trouble compiling JCC Date: Tue, 27 Apr 2010 14:37:45 -0700 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 8bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.5843 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 X-Provags-ID: V01U2FsdGVkX19JYOuDLu+4IxxtQ3X1seGMnNyOewqIN2UqNT8 LGjy2wbC1/Fy+6MZdyGJbYsbHqC6C+VvaiCknLwLGBI2z1hLr2 2KZkAXy6n9js0slXNF5nQ== 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� jcc/sources/JArray.h:337: error: previous definition of �class JArray� jcc/sources/JArray.cpp:961: error: redefinition of �PyObject* JArray::wrap()� jcc/sources/JArray.cpp:945: error: �PyObject* JArray::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-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org