Error during wxPython-2.9.2.4 build on Cygwin

83 views
Skip to first unread message

Nicholas DiPiazza

unread,
Mar 16, 2012, 10:52:43 AM3/16/12
to wx-u...@googlegroups.com

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

 

Vadim Zeitlin

unread,
Mar 17, 2012, 9:32:13 PM3/17/12
to wx-u...@googlegroups.com
[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/

Nicholas DiPiazza

unread,
Mar 18, 2012, 12:42:15 PM3/18/12
to wx-u...@googlegroups.com
Yes sir,

Yep 2.9.3.x has fixed this particular problem.

Thanks VZ.

Reply all
Reply to author
Forward
Message has been deleted
0 new messages