From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1881 invoked by alias); 29 Jul 2004 01:45:12 -0000 Mailing-List: contact java-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: java-prs-owner@gcc.gnu.org Received: (qmail 1866 invoked by uid 48); 29 Jul 2004 01:45:11 -0000 Date: Thu, 29 Jul 2004 01:45:00 -0000 From: "dannysmith at users dot sourceforge dot net" To: java-prs@gcc.gnu.org Message-ID: <20040729014510.16814.dannysmith@users.sourceforge.net> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug libgcj/16814] New: [mingw32] libgcj dpends on both winsock32dll and ws2_32.dll X-Bugzilla-Reason: CC X-SW-Source: 2004-q3/txt/msg00137.txt.bz2 List-Id: Currently, the inclusion of windows.h in include/win32.h causes the windows socket interface to default to the 2.2 version, since windows.h includes the winsock2.h header. That's okay. However, in libgcj.spec the lib order is: *lib: -lgcj -lm -lgdi32 -lwsock32 -lws2_32 ie, the winsock version 1 library is linked in before the winsock 2 libary. Linking in both dll's is dangerous, especially if you assume the version 2 api but link in the version 1 library first. See the article: [257460] INFO: Header and Library Requirement When Set/Get Socket Options at the IPPROTO_IP Level http://support.microsoft.com/default.aspx?scid=kb;en-us;Q257460 -- Summary: [mingw32] libgcj dpends on both winsock32dll and ws2_32.dll Product: gcc Version: 3.5.0 Status: UNCONFIRMED Severity: normal Priority: P2 Component: libgcj AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: dannysmith at users dot sourceforge dot net CC: gcc-bugs at gcc dot gnu dot org,java-prs at gcc dot gnu dot org GCC build triplet: i386-pc-mingw32 GCC host triplet: i386-pc-mingw32 GCC target triplet: i386-pc-mingw32 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16814