Error during wxPython-2.9.2.4 build on Cygwin

Showing 1-4 of 4 messages
Error during wxPython-2.9.2.4 build on Cygwin Nicholas DiPiazza 3/16/12 7:52 AM

Cygwin version: CYGWIN_NT-6.1-WOW64 local-PC 1.7.11(0.260/5/3) 2012-02-24 14:05 i686 Cygwin

Python version: Python 2.6.7 (r267:88850, Feb  2 2012, 23:50:20)

 

While compiling wxPython 2.9.2.4, I get all the way through the first stage of the build, but upon running the

 

$PYTHON_HOME/python -u ./setup.py build_ext --inplace UNICODE=1 BUILD_BASE=build

 

I get the following errors complaining that winsock2.h and winsock.h are conflicting with headers in /usr/include/sys

 

gcc -fno-strict-aliasing -g -O2 -pipe -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DSWIG_TYPE_TABLE=_wxPython_table -DSWIG_PYTHON_OUTPUT_TUPLE -DWXP_USE_THREAD=1 -UNDEBUG -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXMSW__ -D_REENTRANT -Iinclude -Isrc -I/home/w7testpc/wxPython-src-2.9.2.4/wxPython/wxpy-bld/lib/wx/include/msw-unicode-2.9 -I/home/w7testpc/wxPython-src-2.9.2.4/include -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng14 -I/usr/include/python2.6 -c src/helpers.cpp -o build/temp.cygwin-1.7.11-i686-2.6/src/helpers.o -O3

cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++

In file included from /usr/lib/gcc/i686-pc-cygwin/4.5.3/../../../../include/w32api/windows.h:98:0,

                 from /home/w7testpc/wxPython-src-2.9.2.4/include/wx/msw/wrapwin.h:66,

                 from /home/w7testpc/wxPython-src-2.9.2.4/include/wx/msw/app.h:134,

                 from /home/w7testpc/wxPython-src-2.9.2.4/include/wx/app.h:690,

                 from /home/w7testpc/wxPython-src-2.9.2.4/include/wx/wx.h:26,

                 from include/wx/wxPython/wxPython_int.h:35,

                from src/helpers.cpp:17:

/usr/lib/gcc/i686-pc-cygwin/4.5.3/../../../../include/w32api/winsock2.h:103:2: warning: #warning "fd_set and associated macros have been defined in sys/types.      This may cause runtime problems with W32 sockets"

/usr/lib/gcc/i686-pc-cygwin/4.5.3/../../../../include/w32api/winsock2.h:632:93: 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:5: error: previous declaration âint select(int, _types_fd_set*, _types_fd_set*, _types_fd_set*, timeval*)â here

/usr/lib/gcc/i686-pc-cygwin/4.5.3/../../../../include/w32api/winsock2.h:635:33: error: declaration of C function âint gethostname(char*, int)â conflicts with

/usr/include/sys/unistd.h:238:6: error: previous declaration âint gethostname(char*, size_t)â here

 

Any idea how to get around these issues? Hacks are welcome as long as the darn thing will build!

 

-Nicholas

 

Re: Error during wxPython-2.9.2.4 build on Cygwin Vadim Zeitlin 3/17/12 6:32 PM
[could you please set your word wrap to 76 or less, thank you]

On Fri, 16 Mar 2012 14:52:43 +0000 Nicholas DiPiazza wrote:

ND> While compiling wxPython 2.9.2.4
...
ND> I get the following errors complaining that winsock2.h and winsock.h
ND> are conflicting with headers in /usr/include/sys

 Hmm, this was supposed to be fixed by http://trac.wxwidgets.org/changeset/65057
Do you have this revision? If not (or unsure), please retest with 2.9.3.

 Regards,
VZ

--
TT-Solutions: wxWidgets consultancy and technical support
               http://www.tt-solutions.com/

RE: Error during wxPython-2.9.2.4 build on Cygwin Nicholas DiPiazza 3/18/12 9:42 AM
Yes sir,

Yep 2.9.3.x has fixed this particular problem.

Thanks VZ.

RE: Error during wxPython-2.9.2.4 build on Cygwin misunp79 8/1/12 6:03 PM

Hi Nicholas DiPiazza,

You seem like you successfully compiled and installed wxPython2.9 under
cygwin 1.7 version.
In fact, I have been struggling installing wxPython2.9.4.0 under cygwin
1.7.5.11 (gcc 4.5.3).

Based on  http://gnuradio.org/redmine/projects/gnuradio/wiki/WxPythonCygwin
instruction, I managed to install wxWidgets, but I can't build wxPython
(step 9).
I keep getting the winsock2.h and select.h conflict error, although the
patch for this issue is already applied with 2.9.4.0 version.
BTW I was trying to build the wxPython with COMPILER=cygwin, while you used
gtk2.
When I try to use gtk2 compiler, it still gives some error such as wx/wx.h
can't be found.

Could you please help me on this issue? Can you share how you managed to
build wxPython under cygwin.
I really appreciate your help.

Thank you.


_____________________________________________________________________________
/usr/lib/gcc/i686-pc-cygwin/4.5.3/../../../../include/w32api/winsock2.h:632:93:
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:5: error: previous declaration ‘int select(int,
_types_fd_set*, _types_fd_set*, _types_fd_set*, timeval*)’ here
/usr/lib/gcc/i686-pc-cygwin/4.5.3/../../../../include/w32api/winsock2.h:635:33:
error: declaration of C function ‘int gethostname(char*, int)’ conflicts
with
/usr/include/sys/unistd.h:238:6: error: previous declaration ‘int
gethostname(char*, size_t)’ here
> --
> Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.
>
> To unsubscribe, send email to wx-users+u...@googlegroups.com
> or visit http://groups.google.com/group/wx-users
>
>
--
View this message in context: http://old.nabble.com/Error-during-wxPython-2.9.2.4-build-on-Cygwin-tp33517676p34243454.html
Sent from the wxWidgets - Users mailing list archive at Nabble.com.