Error installing wxPython on CYGWIN in Windows XP

Dear ALL:

Hope you are all enjoying a Happy New Year.

i. Down to business I am having errors in installing wxPython on CYGWIN
in
Windows XP.

ii. Have been referring to
http://gnuradio.org/redmine/wiki/gnuradio/WxPythonCygwin for
installation
guide.

iii. In the above, Steps 1, 2, 3, 4 and 4a works like a charm, I am
still
attaching the output files in case you need to refer to them.

iv. In Steps 5 i get the following warnings and error:

In file included from …/src/msw/utils.cpp:56:
/usr/lib/gcc/i686-pc-cygwin/4.3.4/…/…/…/…/include/w32api/winsock.h:479:
error: declaration of C function ‘int select(int, _types_fd_set*,
_types_fd_set*, _types_fd_set*, const timeval*)’ conflicts with
/usr/include/sys/select.h:31: error: previous declaration ‘int
select(int,
_types_fd_set*, _types_fd_set*, _types_fd_set*, timeval*)’ here
…/src/msw/utils.cpp: In function ‘const wxChar*
wxGetHomeDir(wxString*)’:
…/src/msw/utils.cpp:407: warning: ‘int
cygwin_conv_to_full_win32_path(const char*, char*)’ is deprecated
(declared at /usr/include/sys/cygwin.h:52)
…/src/msw/utils.cpp:407: warning: ‘int
cygwin_conv_to_full_win32_path(const char*, char*)’ is deprecated
(declared at /usr/include/sys/cygwin.h:52)
make: *** [basedll_msw_utils.o] Error 1

…/…/…/…/contrib/src/stc/ScintillaWX.cpp: In member function ‘bool
ScintillaWX::HasCaretSizeChanged()’:
…/…/…/…/contrib/src/stc/ScintillaWX.cpp:638: warning: suggest
parentheses around && within ||
In file included from …/…/…/…/contrib/src/stc/stc.cpp:27:
…/…/…/…/contrib/src/stc/ScintillaWX.h:62: warning: type attributes
ignored after type is already defined
…/…/…/…/contrib/src/stc/scintilla/src/Document.cxx: In member
function
‘long int Document::FindText(int, int, const char*, bool, bool, bool,
bool, bool, int*)’:
…/…/…/…/contrib/src/stc/scintilla/src/Document.cxx:1129: warning:
suggest parentheses around && within ||
…/…/…/…/contrib/src/stc/scintilla/src/Document.cxx:1130: warning:
suggest parentheses around && within ||
…/…/…/…/contrib/src/stc/scintilla/src/Document.cxx:1145: warning:
suggest parentheses around && within ||
…/…/…/…/contrib/src/stc/scintilla/src/Document.cxx:1146: warning:
suggest parentheses around && within ||
…/…/…/…/contrib/src/stc/scintilla/src/Editor.cxx: In member function
‘void Editor::LayoutLine(int, Surface*, ViewStyle&, LineLayout*,
int)’:
…/…/…/…/contrib/src/stc/scintilla/src/Editor.cxx:2048: warning:
array
subscript has type ‘char’
…/…/…/…/contrib/src/stc/scintilla/src/Editor.cxx:2051: warning:
array
subscript has type ‘char’
…/…/…/…/contrib/src/stc/scintilla/src/Editor.cxx:2054: warning:
array
subscript has type ‘char’
…/…/…/…/contrib/src/stc/scintilla/src/Editor.cxx: In member function
‘virtual void Editor::NotifyStyleToNeeded(int)’:
…/…/…/…/contrib/src/stc/scintilla/src/Editor.cxx:3579: warning:
missing
braces around initializer for ‘NotifyHeader’
…/…/…/…/contrib/src/stc/scintilla/src/Editor.cxx: In member function
‘void Editor::NotifyChar(int)’:
…/…/…/…/contrib/src/stc/scintilla/src/Editor.cxx:3590: warning:
missing
braces around initializer for ‘NotifyHeader’
…/…/…/…/contrib/src/stc/scintilla/src/Editor.cxx: In member function
‘void Editor::NotifySavePoint(bool)’:
…/…/…/…/contrib/src/stc/scintilla/src/Editor.cxx:3603: warning:
missing
braces around initializer for ‘NotifyHeader’
…/…/…/…/contrib/src/stc/scintilla/src/Editor.cxx: In member function
‘void Editor::NotifyModifyAttempt()’:
…/…/…/…/contrib/src/stc/scintilla/src/Editor.cxx:3613: warning:
missing
braces around initializer for ‘NotifyHeader’
…/…/…/…/contrib/src/stc/scintilla/src/Editor.cxx: In member function
‘virtual void Editor::NotifyDoubleClick(Point, bool)’:
…/…/…/…/contrib/src/stc/scintilla/src/Editor.cxx:3619: warning:
missing
braces around initializer for ‘NotifyHeader’
…/…/…/…/contrib/src/stc/scintilla/src/Editor.cxx: In member function
‘void Editor::NotifyHotSpotDoubleClicked(int, bool, bool, bool)’:
…/…/…/…/contrib/src/stc/scintilla/src/Editor.cxx:3625: warning:
missing
braces around initializer for ‘NotifyHeader’
…/…/…/…/contrib/src/stc/scintilla/src/Editor.cxx: In member function
‘void Editor::NotifyHotSpotClicked(int, bool, bool, bool)’:
…/…/…/…/contrib/src/stc/scintilla/src/Editor.cxx:3634: warning:
missing
braces around initializer for ‘NotifyHeader’
…/…/…/…/contrib/src/stc/scintilla/src/Editor.cxx: In member function
‘void Editor::NotifyUpdateUI()’:
…/…/…/…/contrib/src/stc/scintilla/src/Editor.cxx:3643: warning:
missing
braces around initializer for ‘NotifyHeader’
…/…/…/…/contrib/src/stc/scintilla/src/Editor.cxx: In member function
‘void Editor::NotifyPainted()’:
…/…/…/…/contrib/src/stc/scintilla/src/Editor.cxx:3649: warning:
missing
braces around initializer for ‘NotifyHeader’
…/…/…/…/contrib/src/stc/scintilla/src/Editor.cxx: In member function
‘bool Editor::NotifyMarginClick(Point, bool, bool, bool)’:
…/…/…/…/contrib/src/stc/scintilla/src/Editor.cxx:3663: warning:
missing
braces around initializer for ‘NotifyHeader’
…/…/…/…/contrib/src/stc/scintilla/src/Editor.cxx: In member function
‘void Editor::NotifyNeedShown(int, int)’:
…/…/…/…/contrib/src/stc/scintilla/src/Editor.cxx:3677: warning:
missing
braces around initializer for ‘NotifyHeader’
…/…/…/…/contrib/src/stc/scintilla/src/Editor.cxx: In member function
‘void Editor::NotifyDwelling(Point, bool)’:
…/…/…/…/contrib/src/stc/scintilla/src/Editor.cxx:3685: warning:
missing
braces around initializer for ‘NotifyHeader’
…/…/…/…/contrib/src/stc/scintilla/src/Editor.cxx: In member function
‘void Editor::NotifyZoom()’:
…/…/…/…/contrib/src/stc/scintilla/src/Editor.cxx:3694: warning:
missing
braces around initializer for ‘NotifyHeader’
…/…/…/…/contrib/src/stc/scintilla/src/Editor.cxx: In member function
‘void Editor::NotifyMove(int)’:
…/…/…/…/contrib/src/stc/scintilla/src/Editor.cxx:3706: warning:
missing
braces around initializer for ‘NotifyHeader’
…/…/…/…/contrib/src/stc/scintilla/src/Editor.cxx: In member function
‘virtual void Editor::NotifyModified(Document*, DocModification,
void*)’:
…/…/…/…/contrib/src/stc/scintilla/src/Editor.cxx:3853: warning:
missing
braces around initializer for ‘NotifyHeader’
…/…/…/…/contrib/src/stc/scintilla/src/Editor.cxx: In member function
‘void Editor::NotifyMacroRecord(unsigned int, uptr_t, sptr_t)’:
…/…/…/…/contrib/src/stc/scintilla/src/Editor.cxx:3984: warning:
missing
braces around initializer for ‘NotifyHeader’
…/…/…/…/contrib/src/stc/scintilla/src/LexFortran.cxx: In function
‘void ColouriseFortranDoc(unsigned int, int, int, WordList**,
Accessor&,
bool)’:
…/…/…/…/contrib/src/stc/scintilla/src/LexFortran.cxx:81: warning:
suggest parentheses around && within ||
…/…/…/…/contrib/src/stc/scintilla/src/LexFortran.cxx: In function
‘int
classifyFoldPointFortran(const char*, const char*, char)’:
…/…/…/…/contrib/src/stc/scintilla/src/LexFortran.cxx:242: warning:
suggest parentheses around && within ||
…/…/…/…/contrib/src/stc/scintilla/src/LexInno.cxx: In function
‘void
FoldInnoDoc(unsigned int, int, int, WordList**, Accessor&)’:
…/…/…/…/contrib/src/stc/scintilla/src/LexInno.cxx:287: warning:
suggest
parentheses around arithmetic in operand of |
…/…/…/…/contrib/src/stc/scintilla/src/LexNsis.cxx: In function
‘int
calculateFoldNsis(unsigned int, unsigned int, int, Accessor&, bool,
bool)’:
…/…/…/…/contrib/src/stc/scintilla/src/LexNsis.cxx:144: warning:
deprecated conversion from string constant to ‘char’
…/…/…/…/contrib/src/stc/scintilla/src/LexNsis.cxx:144: warning:
deprecated conversion from string constant to ‘char
’
…/…/…/…/contrib/src/stc/scintilla/src/LexNsis.cxx:144: warning:
deprecated conversion from string constant to ‘char’
…/…/…/…/contrib/src/stc/scintilla/src/LexNsis.cxx:146: warning:
deprecated conversion from string constant to ‘char
’
…/…/…/…/contrib/src/stc/scintilla/src/LexNsis.cxx:146: warning:
deprecated conversion from string constant to ‘char’
…/…/…/…/contrib/src/stc/scintilla/src/LexNsis.cxx:148: warning:
deprecated conversion from string constant to ‘char
’
…/…/…/…/contrib/src/stc/scintilla/src/LexNsis.cxx:153: warning:
deprecated conversion from string constant to ‘char’
…/…/…/…/contrib/src/stc/scintilla/src/LexNsis.cxx:153: warning:
deprecated conversion from string constant to ‘char
’
…/…/…/…/contrib/src/stc/scintilla/src/LexNsis.cxx:153: warning:
deprecated conversion from string constant to ‘char’
…/…/…/…/contrib/src/stc/scintilla/src/LexNsis.cxx:153: warning:
deprecated conversion from string constant to ‘char
’
…/…/…/…/contrib/src/stc/scintilla/src/LexNsis.cxx:153: warning:
deprecated conversion from string constant to ‘char’
…/…/…/…/contrib/src/stc/scintilla/src/LexNsis.cxx:155: warning:
deprecated conversion from string constant to ‘char
’
…/…/…/…/contrib/src/stc/scintilla/src/LexNsis.cxx:155: warning:
deprecated conversion from string constant to ‘char’
…/…/…/…/contrib/src/stc/scintilla/src/LexNsis.cxx:155: warning:
deprecated conversion from string constant to ‘char
’
…/…/…/…/contrib/src/stc/scintilla/src/LexNsis.cxx:155: warning:
deprecated conversion from string constant to ‘char’
…/…/…/…/contrib/src/stc/scintilla/src/LexNsis.cxx:155: warning:
deprecated conversion from string constant to ‘char
’
…/…/…/…/contrib/src/stc/scintilla/src/LexNsis.cxx: In function
‘int
classifyWordNsis(unsigned int, unsigned int, WordList**, Accessor&)’:
…/…/…/…/contrib/src/stc/scintilla/src/LexNsis.cxx:189: warning:
deprecated conversion from string constant to ‘char’
…/…/…/…/contrib/src/stc/scintilla/src/LexNsis.cxx:189: warning:
deprecated conversion from string constant to ‘char
’
…/…/…/…/contrib/src/stc/scintilla/src/LexNsis.cxx:192: warning:
deprecated conversion from string constant to ‘char’
…/…/…/…/contrib/src/stc/scintilla/src/LexNsis.cxx:192: warning:
deprecated conversion from string constant to ‘char
’
…/…/…/…/contrib/src/stc/scintilla/src/LexNsis.cxx:192: warning:
deprecated conversion from string constant to ‘char’
…/…/…/…/contrib/src/stc/scintilla/src/LexNsis.cxx:195: warning:
deprecated conversion from string constant to ‘char
’
…/…/…/…/contrib/src/stc/scintilla/src/LexNsis.cxx:198: warning:
deprecated conversion from string constant to ‘char’
…/…/…/…/contrib/src/stc/scintilla/src/LexNsis.cxx:198: warning:
deprecated conversion from string constant to ‘char
’
…/…/…/…/contrib/src/stc/scintilla/src/LexNsis.cxx:201: warning:
deprecated conversion from string constant to ‘char’
…/…/…/…/contrib/src/stc/scintilla/src/LexNsis.cxx:201: warning:
deprecated conversion from string constant to ‘char
’
…/…/…/…/contrib/src/stc/scintilla/src/LexNsis.cxx:204: warning:
deprecated conversion from string constant to ‘char’
…/…/…/…/contrib/src/stc/scintilla/src/LexNsis.cxx:204: warning:
deprecated conversion from string constant to ‘char
’
…/…/…/…/contrib/src/stc/scintilla/src/LexNsis.cxx:207: warning:
deprecated conversion from string constant to ‘char’
…/…/…/…/contrib/src/stc/scintilla/src/LexNsis.cxx:207: warning:
deprecated conversion from string constant to ‘char
’
…/…/…/…/contrib/src/stc/scintilla/src/LexNsis.cxx:210: warning:
deprecated conversion from string constant to ‘char’
…/…/…/…/contrib/src/stc/scintilla/src/LexNsis.cxx:210: warning:
deprecated conversion from string constant to ‘char
’
…/…/…/…/contrib/src/stc/scintilla/src/LexOthers.cxx: In function
‘void
FoldPropsDoc(unsigned int, int, int, WordList**, Accessor&)’:
…/…/…/…/contrib/src/stc/scintilla/src/LexOthers.cxx:709: warning:
suggest parentheses around arithmetic in operand of |
…/…/…/…/contrib/src/stc/scintilla/src/LexPython.cxx: In function
‘void
ColourisePyDoc(unsigned int, int, int, WordList**, Accessor&)’:
…/…/…/…/contrib/src/stc/scintilla/src/LexPython.cxx:268: warning:
suggest parentheses around && within ||
…/…/…/…/contrib/src/stc/scintilla/src/LexRuby.cxx: In function
‘void
ColouriseRbDoc(unsigned int, int, int, WordList**, Accessor&)’:
…/…/…/…/contrib/src/stc/scintilla/src/LexRuby.cxx:708: warning:
suggest
parentheses around && within ||
…/…/…/…/contrib/src/stc/scintilla/src/LexTADS3.cxx: In function
‘bool
IsStringTransition(int, int)’:
…/…/…/…/contrib/src/stc/scintilla/src/LexTADS3.cxx:619: warning:
suggest
parentheses around && within ||
…/…/…/…/contrib/src/stc/scintilla/src/LexVerilog.cxx: In function
‘void FoldNoBoxVerilogDoc(unsigned int, int, int, Accessor&)’:
…/…/…/…/contrib/src/stc/scintilla/src/LexVerilog.cxx:246: warning:
suggest parentheses around && within ||
…/…/…/…/contrib/src/stc/scintilla/src/LexVerilog.cxx:256: warning:
suggest parentheses around && within ||
…/…/…/…/contrib/src/stc/scintilla/src/LexVerilog.cxx:257: warning:
suggest parentheses around && within ||
…/…/…/…/contrib/src/stc/scintilla/src/RESearch.cxx: In member
function
‘const char* RESearch::Compile(const char*, int, bool, bool)’:
…/…/…/…/contrib/src/stc/scintilla/src/RESearch.cxx:309: warning:
suggest
explicit braces to avoid ambiguous ‘else’
…/…/…/…/contrib/src/stc/scintilla/src/RESearch.cxx: In member
function
‘int RESearch::PMatch(CharacterIndexer&, int, int, char*)’:
…/…/…/…/contrib/src/stc/scintilla/src/RESearch.cxx:679: warning:
array
subscript has type ‘char’
…/…/…/…/contrib/src/stc/scintilla/src/RESearch.cxx:682: warning:
array
subscript has type ‘char’
…/…/…/…/contrib/src/stc/scintilla/src/RESearch.cxx:685: warning:
suggest
parentheses around && within ||
…/…/…/…/contrib/src/stc/scintilla/src/ScintillaBase.cxx: In member
function ‘void ScintillaBase::AutoCompleteCompleted()’:
…/…/…/…/contrib/src/stc/scintilla/src/ScintillaBase.cxx:330:
warning:
missing braces around initializer for ‘NotifyHeader’
…/…/…/…/contrib/src/stc/scintilla/src/ScintillaBase.cxx: In member
function ‘void ScintillaBase::CallTipClick()’:
…/…/…/…/contrib/src/stc/scintilla/src/ScintillaBase.cxx:401:
warning:
missing braces around initializer for ‘NotifyHeader’
/usr/lib/gcc/i686-pc-cygwin/4.3.4/…/…/…/…/i686-pc-cygwin/bin/ld:
cannot
find -lwx_msw_core-2.8
collect2: ld returned 1 exit status
make: ***
[/usr/src/wxPython-src-2.8.10.1/build3/lib/cygwxmsw28_stc_gcc_custom-0.dll]
Error 1

v. In Step 6 i get the following error

In file included from …/src/msw/utils.cpp:56:
/usr/lib/gcc/i686-pc-cygwin/4.3.4/…/…/…/…/include/w32api/winsock.h:479:
error: declaration of C function ‘int select(int, _types_fd_set*,
_types_fd_set*, _types_fd_set*, const timeval*)’ conflicts with
/usr/include/sys/select.h:31: error: previous declaration ‘int
select(int,
_types_fd_set*, _types_fd_set*, _types_fd_set*, timeval*)’ here
…/src/msw/utils.cpp: In function ‘const wxChar*
wxGetHomeDir(wxString*)’:
…/src/msw/utils.cpp:407: warning: ‘int
cygwin_conv_to_full_win32_path(const char*, char*)’ is deprecated
(declared at /usr/include/sys/cygwin.h:52)
…/src/msw/utils.cpp:407: warning: ‘int
cygwin_conv_to_full_win32_path(const char*, char*)’ is deprecated
(declared at /usr/include/sys/cygwin.h:52)
make: *** [basedll_msw_utils.o] Error 1

/usr/lib/gcc/i686-pc-cygwin/4.3.4/…/…/…/…/i686-pc-cygwin/bin/ld:
cannot
find -lwx_msw_core-2.8
collect2: ld returned 1 exit status
make: ***
[/usr/src/wxPython-src-2.8.10.1/build3/lib/cygwxmsw28_stc_gcc_custom-0.dll]
Error 1

vi. For Step 7 there are NO “/usr/local/lib/cygwx*.dll” to be moved into
“/usr/local/bin”

Please help. I am very much stuck.

Kind regards,

Shabbir

Shabbir A. wrote:

iv. In Steps 5 i get the following warnings and error:

In file included from …/src/msw/utils.cpp:56:
/usr/lib/gcc/i686-pc-cygwin/4.3.4/…/…/…/…/include/w32api/winsock.h:479:
error: declaration of C function ‘int select(int, _types_fd_set*,
_types_fd_set*, _types_fd_set*, const timeval*)’ conflicts with
/usr/include/sys/select.h:31: error: previous declaration ‘int
select(int,
_types_fd_set*, _types_fd_set*, _types_fd_set*, timeval*)’ here

As Bob McGwier reported to the list on 3 Jan, there has been a major
update
to Cygwin, including a switch to gcc 4.3.4. I don’t know if anyone has
tried to install GNU Radio with the new version and I know that the
instructions in the wiki have not been updated for the the new version.

The immediate problem is that both winsock.h and select.h have been
included, leading to a conflict. You may be able to avoid this by
editing
build-local/lib/wx/include/msw-ansi-release-2.8/wx/setup.h so that
HAVE_SYS_SELECT_H is undefined. Of course this might just be the first
of
many such errors that are not easily fixed.

Another possibility is that another include file in gcc 4.3.4 is
including
select.h. If that is the case, we will need to see what can be done.

It should be noted that the latest Cygwin FAQ states you can’t use
winsock
functions in Cygwin (even though the winsock.h header file is included
in
the distribution). So they may have changed it so it just won’t work.

Checking out the new Cygwin is on my list of things to do, but it
probably
won’t happen soon.

Please let us know what you find.

– Don W.

Hi Don and ALL:

A. Managed to install and work wxWidgets but I just cannot manage
wxPython.
Anyhow the following is how I managed wxWidgets and errors found in
trying
to install wxPython.

B. Referring to http://gnuradio.org/redmine/wiki/gnuradio/WxPythonCygwin

STEP 4: ( I had to add a few more lines that I took from wxPython’s src
website
Phoenix/README.rst at master · wxWidgets/Phoenix · GitHub … so now we have)

CC=“gcc -mno-cygwin -mwindows” \

CXX=“g++ -mno-cygwin -mwindows” \

LDFLAGS=“-mno-cygwin -mwindows” \

…/configure \

--with-msw \

--build=i686-pc-mingw32 \

--prefix=/usr/local \

STEP 4a, 5 and 6: Remains the same.

STEP 7: (there is slight change the cygwx*.dll files are now wx*.dll
files…
so we have)

mv /usr/local/lib/wx*.dll /usr/local/bin

STEP 8: so now when you try step 8 it WORKS!

STEP 9: (But now I am stuck in STEP 9 and cannot move forward tried all
possibilities the following is the code I am using and the
output+errors…)

python setup.py build_ext --inplace WXPORT=msw COMPILER=mingw32
BUILD_GLCANVAS=0 BUILD_ACTIVEX=0 UNICODE=0 WX_CONFIG=“bash.exe -e
/usr/local/bin/wx-config”

OUTPUT+ERROR

WARNING: WXWIN not set in environment. Assuming ‘…’
Preparing CORE…
Preparing STC…
Preparing GIZMOS…
running build_ext
building ‘core’ extension
gcc -mno-cygwin -mdll -O -Wall -DSWIG_TYPE_TABLE=wxPython_table
-DSWIG_PYTHON_OUTPUT_TUPLE -DWXP_USE_THREAD=1 -UNDEBUG -DWXUSINGDLL
-D__WXMSW
_ -Iinclude -Isrc
-I/usr/local/lib/wx/include/msw-ansi-release-2.8
-I/usr/local/include/wx-2.8 -I/usr/include/python2.5 -c src/helpers.cpp
-o
build/temp.cygwin-1.7.1-i686-2.5/src/helpers.o -mthreads -O3

In file included from /usr/include/python2.5/Python.h:57,
from src/helpers.cpp:15:
/usr/include/python2.5/pyport.h:257:24: sys/select.h: No such file or
directory
src/helpers.cpp: In function `bool wxColour_helper(PyObject*,
wxColour**)':
src/helpers.cpp:2933: warning: comparison between signed and unsigned
integer expressions
error: command ‘gcc’ failed with exit status 1

Pleas HELP!!.

regards,

Shabbir

Thank you Don. I dont think I am capable of solving the problems faced.
Too
advanced for me. Meanwhile, I tried MSYS-MINGW and it didnt work either.
Will post the errors on another mail.

Regards.

Shabbir A. wrote:

CC=“gcc -mno-cygwin -mwindows”
CXX=“g++ -mno-cygwin -mwindows”
LDFLAGS=“-mno-cygwin -mwindows” \

The -mno-cygwin option says to create a native Windows version rather
than a
Cygwin version, which gets around the winsock.h vs. select.h problem.
But
it is not clear whether a non-Cygwin extension will work with the Cygwin
version of Python.

WX_CONFIG="bash.exe -e
gcc -mno-cygwin -mdll -O -Wall -DSWIG_TYPE_TABLE=wxPython_table
-DSWIG_PYTHON_OUTPUT_TUPLE -DWXP_USE_THREAD=1 -UNDEBUG
-DWXUSINGDLL
-D__WXMSW
_ -Iinclude -Isrc -I/usr/local/lib/wx/include/msw-ansi-release-2.8
-I/usr/local/include/wx-2.8 -I/usr/include/python2.5 -c src/helpers.cpp -o
build/temp.cygwin-1.7.1-i686-2.5/src/helpers.o -mthreads -O3

In file included from /usr/include/python2.5/Python.h:57,
from src/helpers.cpp:15:
/usr/include/python2.5/pyport.h:257:24: sys/select.h: No such file or
directory

Your Cygwin version of Python wants to use select.h, which doesn’t exist
in
you non-Cygwin (i.e., -mno-cygwin) environment. Again, I don’t know if
it
is possible to build non-Cygwin extensions for a Cygwin Python.

The good news is that this problem has been reported on the wxWidgets
bug
tracker and is being worked on (see
http://trac.wxwidgets.org/ticket/11626).
The bad news, is that the supposed “correct” answer is to modify the
code
(if possible) to use posix networking calls in place of the Windows
calls.

– Don W.