This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libgcj/16814] [win32] libgcj dpends on both winsock32dll and ws2_32.dll
- From: "rmathew at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 29 Jul 2004 06:53:42 -0000
- Subject: [Bug libgcj/16814] [win32] libgcj dpends on both winsock32dll and ws2_32.dll
- References: <20040729014510.16814.dannysmith@users.sourceforge.net>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From rmathew at gcc dot gnu dot org 2004-07-29 06:53 -------
(In reply to comment #0)
> 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:
http://gcc.gnu.org/ml/java-patches/2002-q4/msg00101.html
http://gcc.gnu.org/ml/java/2002-10/threads.html#00238
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16814