public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug libgcj/16814] New: [mingw32] libgcj dpends on both winsock32dll and ws2_32.dll
@ 2004-07-29  1:45 dannysmith at users dot sourceforge dot net
  2004-07-29  2:04 ` [Bug libgcj/16814] " mckinlay at redhat dot com
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: dannysmith at users dot sourceforge dot net @ 2004-07-29  1:45 UTC (permalink / raw)
  To: java-prs

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


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2004-08-01  8:43 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-07-29  1:45 [Bug libgcj/16814] New: [mingw32] libgcj dpends on both winsock32dll and ws2_32.dll dannysmith at users dot sourceforge dot net
2004-07-29  2:04 ` [Bug libgcj/16814] " mckinlay at redhat dot com
2004-07-29  2:19 ` dannysmith at users dot sourceforge dot net
2004-07-29  2:33 ` mckinlay at redhat dot com
2004-07-29  4:51 ` [Bug libgcj/16814] [win32] " pinskia at gcc dot gnu dot org
2004-07-29  6:53 ` rmathew at gcc dot gnu dot org
2004-07-29 14:46 ` mckinlay at redhat dot com
2004-07-31  2:17 ` dannysmith at users dot sourceforge dot net
2004-07-31 19:27 ` mckinlay at redhat dot com
2004-08-01  4:37 ` dannysmith at users dot sourceforge dot net
2004-08-01  8:43 ` pinskia at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).