Project

General

Profile

Bug #3382

cannot cross-compile socket.so for winsock2 (mingw32)

Added by shyouhei (Shyouhei Urabe) over 9 years ago. Updated 25 days ago.

Status:
Closed
Priority:
Normal
Target version:
-
ruby -v:
ruby 1.8.8dev (2010-05-31 revision 27061) [i386-mingw32msvc]
[ruby-dev:41521]

Description

=begin
mingw32のクロスコンパイラで--with-winsock2としてコンパイルすると、socket.soを作っている最中に以下のような感じでコンパイルに失敗します。1.8 specificのように見えます。

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
=end


Related issues

Has duplicate Backport186 - Backport #3887: extension socket fails to compile with "two or more data types in declaration specifiers" under MinGWClosed09/29/2010Actions

History

#1

Updated by usa (Usaku NAKAMURA) over 9 years ago

  • Status changed from Assigned to Closed
  • % Done changed from 0 to 100

=begin
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.

=end

#2

Updated by usa (Usaku NAKAMURA) over 9 years ago

  • Category set to build
  • Status changed from Closed to Assigned
  • Assignee changed from nobu (Nobuyoshi Nakada) to shyouhei (Shyouhei Urabe)

=begin
1.8.7の後は1.8.6にもチケット回してあげてください。
=end

#3

Updated by shyouhei (Shyouhei Urabe) over 9 years ago

  • Status changed from Assigned to Closed

=begin
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.

=end

#4

Updated by shyouhei (Shyouhei Urabe) over 9 years ago

  • Status changed from Closed to Assigned
  • Assignee changed from shyouhei (Shyouhei Urabe) to wyhaines (Kirk Haines)

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

Revision r28223 should fix it. Please backport.
=end

#5

Updated by jeremyevans0 (Jeremy Evans) 25 days ago

  • Backport set to 2.5: UNKNOWN, 2.6: UNKNOWN
  • ruby -v set to ruby 1.8.8dev (2010-05-31 revision 27061) [i386-mingw32msvc]
  • Status changed from Assigned to Closed
  • Description updated (diff)
  • Project changed from Backport186 to Ruby master
  • Tracker changed from Backport to Bug

Also available in: Atom PDF