X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=BAYES_00,FB_GET_MEDS,SPF_PASS X-Spam-Check-By: sourceware.org Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: Build problems using wxWidgets-2.8.10 / gcc-4.3.4 / cygwin-1.7.1 : multiple definitions of function select() Date: Thu, 14 Jan 2010 11:15:29 +0100 Message-ID: From: "Schwerzmann Stephan" To: Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Hello all, I'm upgrading to 1.7.1 from the previous version which I was=20 pretty good at keeping up to date; until recently, I had this=20 combo in flawless use: - wxWidgets-2.8.10 / gcc-3.4.4 / cygwin-1.5.25 / WinXP-SP3 The new combo - wxWidgets-2.8.10 / gcc-4.3.4 / cygwin-1.7.1 / WinXP-SP3 Is giving me a build error for wxWidgets-2.8.10, which I started discussing at where the issue is rated as "confirmed build error" All my variants of build attempts gave me consistently this error: """ $ make BUILD=3Drelease SHARED=3D0 /var/tmp/wxWidgets-2.8.10/bk-deps g++ -c -o baselib_msw_utils.o -DWXMSW -I./src/tiff -I./src/jpeg -I./src/png -DwxUSE_GUI=3D0 -DwxUSE_BASE=3D1 -D_FILE_OFFSET_BITS=3D64 -D_LARGE_FILES -I/var/tmp/wxWidgets-2.8.10/lib/wx/include/msw-ansi-release-static-2.8 -I./include -Wall -Wundef -Wno-ctor-dtor-privacy -O2 -fno-strict-aliasing ./src/msw/utils.cpp In file included from ./src/msw/utils.cpp:56: =20 /usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../include/w32api/winsock.h:4 79: 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: *** [baselib_msw_utils.o] Error 1 $ """ (do I need to duplicate more details here, or is that link fine?) It looks like something is mixing bad between cygwins=20 sys/select.h and w32api/winsock.h for the declaration of=20 function select() As I do not clearly see thru the problem, I'm asking here for advice on how to correct what to get wxWidget compiled under the current cygwin version. Thanks in advance. Stephan -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple