lucene-pylucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andi Vajda <va...@apache.org>
Subject Re: jcc/sources/functions.cpp:20:23: error: arpa/inet.h: No such file or directory
Date Tue, 11 Jun 2013 00:33:30 GMT

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..

Mime
View raw message