[Bug #3382] cannot cross-compile socket.so for winsock2 (mingw32)

Bug #3382: cannot cross-compile socket.so for winsock2 (mingw32)
http://redmine.ruby-lang.org/issues/show/3382

e$B5/I<<Te(B: Shyouhei U.
e$B%9%F!<%?%9e(B: Assigned, e$BM%@hEYe(B: Normal
e$BC4Ev<Te(B: Nobuyoshi N., e$B%+%F%4%je(B: build, Target version:
Ruby 1.8.8
ruby -v: ruby 1.8.8dev (2010-05-31 revision 27061) [i386-mingw32msvc]

mingw32e$B$N%/%m%9%3%s%Q%$%i$Ge(B–with-winsock2e$B$H$7$F%3%s%Q%$%k$9$k$H!"e(Bsocket.soe$B$r:n$C$F$$$k:GCf$K0J2<$N$h$&$J46$8$G%3%s%Q%$%k$K<:GT$7$^$9!#e(B1.8
specifice$B$N$h$&$K8+$($^$9!#e(B

make[1]: Entering directory
`/home/shyouhei/build/ruby_1_8_7-mingw32/ext/socket’
i586-mingw32msvc-gcc -I. -I…/…
-I/home/shyouhei/ruby.devel.svn/branches/ruby_1_8_7
-I/home/shyouhei/ruby.devel.svn/branches/ruby_1_8_7/ext/socket
-DHAVE_SOCKADDR_STORAGE -DHAVE_INET_NTOA -DHAVE_GETSERVBYPORT
-Dsocklen_t=int -DHAVE_WSACLEANUP -DHAVE_GETHOSTNAME -I.
-DRUBY_DEBUG_ENV -D_FORTIFY_SOURCE=2 -DRUBY_DEBUG_ENV
-D_FORTIFY_SOURCE=2 -s -Os -mms-bitfields -c
/home/shyouhei/ruby.devel.svn/branches/ruby_1_8_7/ext/socket/socket.c
In file included from
/home/shyouhei/ruby.devel.svn/branches/ruby_1_8_7/win32/win32.h:28,
from
/home/shyouhei/ruby.devel.svn/branches/ruby_1_8_7/defines.h:186,
from
/home/shyouhei/ruby.devel.svn/branches/ruby_1_8_7/ruby.h:37,
from
/home/shyouhei/ruby.devel.svn/branches/ruby_1_8_7/ext/socket/socket.c:13:
/usr/lib/gcc/i586-mingw32msvc/4.2.1-sjlj/…/…/…/…/i586-mingw32msvc/include/ws2tcpip.h:272:
error: two or more data types in declaration specifiers
make[1]: *** [socket.o] Error 1

e$B%A%1%C%He(B #3382 e$B$,99?7$5$l$^$7$?!#e(B (by Usaku NAKAMURA)

e$B%9%F!<%?%9e(B Assignede$B$+$ie(BClosede$B$KJQ99e(B
e$B?JD=e(B % 0e$B$+$ie(B100e$B$KJQ99e(B

This issue was solved with changeset r28144.
Shyouhei, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.


http://redmine.ruby-lang.org/issues/show/3382

e$B%A%1%C%He(B #3382 e$B$,99?7$5$l$^$7$?!#e(B (by Usaku NAKAMURA)

e$B%+%F%4%je(B builde$B$K%;%C%He(B
e$B%9%F!<%?%9e(B Closede$B$+$ie(BAssignede$B$KJQ99e(B
e$BC4Ev<Te(B Nobuyoshi N.e$B$+$ie(BShyouhei U.e$B$KJQ99e(B

1.8.7e$B$N8e$Oe(B1.8.6e$B$K$b%A%1%C%H2s$7$F$"$2$F$/$@$5$$!#e(B

http://redmine.ruby-lang.org/issues/show/3382

e$B%A%1%C%He(B #3382 e$B$,99?7$5$l$^$7$?!#e(B (by Shyouhei U.)

e$B%9%F!<%?%9e(B Assignede$B$+$ie(BClosede$B$KJQ99e(B

This issue was solved with changeset r28223.
Shyouhei, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.


http://redmine.ruby-lang.org/issues/show/3382

e$B%A%1%C%He(B #3382 e$B$,99?7$5$l$^$7$?!#e(B (by Shyouhei U.)

e$B%9%F!<%?%9e(B Closede$B$+$ie(BAssignede$B$KJQ99e(B
e$BC4Ev<Te(B Shyouhei U.e$B$+$ie(BKirk H.e$B$KJQ99e(B

Kirk, it turned out that configure’s --with-winsock2 option had not been
working for mingw32 compilers.

Revision r28223 should fix it. Please backport.

http://redmine.ruby-lang.org/issues/show/3382