You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pylucene-dev@lucene.apache.org by Samantha Williamson <19...@gmail.com> on 2013/06/10 20:08:00 UTC
jcc/sources/functions.cpp:20:23: error: arpa/inet.h: No such file or directory
Hi all,
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?
Re: jcc/sources/functions.cpp:20:23: error: arpa/inet.h: No such
file or directory
Posted by Andi Vajda <va...@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..
Re: jcc/sources/functions.cpp:20:23: error: arpa/inet.h: No such file or directory
Posted by Thomas Koch <ko...@orbiteam.de>.
Samantha,
you may want to try a per-built binary of JCC for windows: there are version for win32 and py26 and py27 available here:
http://code.google.com/a/apache-extras.org/p/pylucene-extra/downloads/list
These eggs were built using Python, Java, ant and MSVC (Microsoft Visual Studio 9.0) - plus cygwin for the 'make' part. I can recommend this build chain especially as Python on Windows was also built using MSVC.
Regards,
Thomas
--
Am 10.06.2013 um 20:08 schrieb Samantha Williamson <19...@gmail.com>:
> 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?