Return-Path: X-Original-To: apmail-lucene-pylucene-dev-archive@minotaur.apache.org Delivered-To: apmail-lucene-pylucene-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 099C6100A4 for ; Tue, 11 Jun 2013 00:34:27 +0000 (UTC) Received: (qmail 96059 invoked by uid 500); 11 Jun 2013 00:34:27 -0000 Delivered-To: apmail-lucene-pylucene-dev-archive@lucene.apache.org Received: (qmail 95993 invoked by uid 500); 11 Jun 2013 00:34:26 -0000 Mailing-List: contact pylucene-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: pylucene-dev@lucene.apache.org Delivered-To: mailing list pylucene-dev@lucene.apache.org Received: (qmail 95985 invoked by uid 99); 11 Jun 2013 00:34:26 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Jun 2013 00:34:26 +0000 X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests= X-Spam-Check-By: apache.org Received-SPF: error (nike.apache.org: local policy) Received: from [50.0.193.30] (HELO ovaltofu.org) (50.0.193.30) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Jun 2013 00:34:20 +0000 Received: from [192.168.151.105] ([216.239.55.138]) (authenticated bits=0) by ovaltofu.org (8.14.4/8.14.4) with ESMTP id r5B0XWQi006247 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 10 Jun 2013 17:33:35 -0700 (PDT) Date: Mon, 10 Jun 2013 17:33:30 -0700 (PDT) From: Andi Vajda X-X-Sender: vajda@yuzu.local Reply-To: Andi Vajda To: pylucene-dev@lucene.apache.org Subject: Re: jcc/sources/functions.cpp:20:23: error: arpa/inet.h: No such file or directory In-Reply-To: Message-ID: References: User-Agent: Alpine 2.01 (OSX 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Checked: Checked by ClamAV on apache.org On Mon, 10 Jun 2013, Samantha Williamson wrote: > I've just come across JCC as a possible solution to a problem I'm having at > work, but I'm having issues compiling the project. I downloaded the source > from https://pypi.python.org/pypi/JCC/. > > Currently my build fails as such: > >> python setup.py build --compiler=mingw32 > running build > running build_py > writing DESKTOP\dist\JCC-2.16\jcc\config.py > copying jcc\config.py -> build\lib.win-amd64-2.7\jcc > running build_ext > building 'jcc._jcc' extension > c:\mingw\bin\gcc.exe -mno-cygwin -mdll -O -Wall -D_java_generics > -DJCC_VER="2.16" "-IC:/Program Files/Java/jdk1.7.0_21/include" > "-IC:/Program Files/Java/jdk1.7.0_21/include/win32" -I_jcc -Ijcc/sources > -IC:\Python27\include -IC:\Python27\PC -c jcc/sources/jcc.cpp -o > build\temp.win-amd64-2.7\Release\jcc\sources\jcc.o -DPYTHON > -fno-strict-aliasing -Wno-write-strings > c:\mingw\bin\gcc.exe -mno-cygwin -mdll -O -Wall -D_java_generics > -DJCC_VER="2.16" "-IC:/Program Files/Java/jdk1.7.0_21/include" > "-IC:/Program Files/Java/jdk1.7.0_21/include/win32" -I_jcc -Ijcc/sources > -IC:\Python27\include -IC:\Python27\PC -c jcc/sources/JCCEnv.cpp -o > build\temp.win-amd64-2.7\Release\jcc\sources\jccenv.o -DPYTHON > -fno-strict-aliasing -Wno-write-strings > c:\mingw\bin\gcc.exe -mno-cygwin -mdll -O -Wall -D_java_generics > -DJCC_VER="2.16" "-IC:/Program Files/Java/jdk1.7.0_21/include" > "-IC:/Program Files/Java/jdk1.7.0_21/include/win32" -I_jcc -Ijcc/sources > -IC:\Python27\include -IC:\Python27\PC -c jcc/sources/JObject.cpp -o > build\temp.win-amd64-2.7\Release\jcc\sources\jobject.o -DPYTHON > -fno-strict-aliasing -Wno-write-strings > c:\mingw\bin\gcc.exe -mno-cygwin -mdll -O -Wall -D_java_generics > -DJCC_VER="2.16" "-IC:/Program Files/Java/jdk1.7.0_21/include" > "-IC:/Program Files/Java/jdk1.7.0_21/include/win32" -I_jcc -Ijcc/sources > -IC:\Python27\include -IC:\Python27\PC -c jcc/sources/JArray.cpp -o > build\temp.win-amd64-2.7\Release\jcc\sources\jarray.o -DPYTHON > -fno-strict-aliasing -Wno-write-strings > c:\mingw\bin\gcc.exe -mno-cygwin -mdll -O -Wall -D_java_generics > -DJCC_VER="2.16" "-IC:/Program Files/Java/jdk1.7.0_21/include" > "-IC:/Program Files/Java/jdk1.7.0_21/include/win32" -I_jcc -Ijcc/sources > -IC:\Python27\include -IC:\Python27\PC -c jcc/sources/functions.cpp -o > build\temp.win-amd64-2.7\Release\jcc\sources\functions.o -DPYTHON > -fno-strict-aliasing -Wno-write-strings jcc/sources/functions.cpp:20:23: > error: arpa/inet.h: No such file or directory > error: command 'gcc' failed with exit status 1 > > Documentation on this project is so poor, I have no idea where to start. I > found one archived thread from this mail list that covers the error, but it > claims that the issue was fixed. Am I missing something here? I'm not using > PyLucene with this, is that the issue? No, the issue is that you're using Windows with an unusual compiler. Better places to start are: - use MSVC on Windows - use Linux or Mac OS X with GCC If you must use mingw, be ready to roll up your sleeves :-) Patches are welcome ! And..