Project

General

Profile

Actions

Bug #1834

closed

1.9.2-dev fails to compile socket with IPv6 and MinGW 3.4.5

Added by luislavena (Luis Lavena) over 14 years ago. Updated almost 13 years ago.

Status:
Closed
Target version:
ruby -v:
1.9.1-p129 and 1.8.6-p368
Backport:
[ruby-core:24601]

Description

=begin
Hello,

I'm running the One-Click Ruby Installer compile scripts on 32bits Windows 7. By default, it has IPv6 installed and enabled.

After configured Ruby with the following parameters:

--enable-shared --disable-install-doc

I've ended with the following warnings when compiling:

compiling socket

Fatal: --enable-ipv6 is specified, and your OS seems to support IPv6 feature.
But your getaddrinfo() and getnameinfo() are appeared to be broken. Sorry,
you cannot compile IPv6 socket classes with broken these functions.
You can try --enable-wide-getaddrinfo.

==

Please find "mkmf.log" file attached with the extconf options generated during this compilation.

After follow the suggestion of adding --enable-wide-getaddrinfo, I got a different error message, which I have attached in the file "with-wide-setting.log". Also attached mkmf.log of this run.

The revision used was:

 URL: http://svn.ruby-lang.org/repos/ruby/trunk
 Repository Root: http://svn.ruby-lang.org/repos/ruby
 Repository UUID: b2dd03c8-39d4-4d8f-98ff-823fe69b080e
 Revision: 24312
 Node Kind: directory
 Schedule: normal
 Last Changed Author: naruse
 Last Changed Rev: 24311
 Last Changed Date: 2009-07-28 20:11:29 -0300 (mar, 28 jul 2009)
 

Thank you.
=end


Files

with-wide-setting.log (6.84 KB) with-wide-setting.log luislavena (Luis Lavena), 07/30/2009 10:29 AM
mkmf-enable-wide-getaddrinfo.log (35.9 KB) mkmf-enable-wide-getaddrinfo.log luislavena (Luis Lavena), 07/30/2009 10:29 AM
mkmf.log (13.9 KB) mkmf.log luislavena (Luis Lavena), 07/30/2009 10:29 AM
Actions #1

Updated by usa (Usaku NAKAMURA) over 14 years ago

=begin
Hello,

Sorry, I don't have much time now to resolve this problem.

Roughly summarize of my understanding.

(1) MinGW's IPv6 support seems to be broken.
VC++6 has same problem, I know.
So, mswin's ipv6 support is now disabled by default.

(2) --disable-ipv6 option of configure is your workaround.

(3) link errors with --enable-wide-getaddrinfo is ruby's bug.

In message "[ruby-core:24601] [Bug #1834] 1.9.2-dev fails to compile socket with IPv6 and MinGW 3.4.5"
on Jul.30,2009 10:29:35, wrote:

Bug #1834: 1.9.2-dev fails to compile socket with IPv6 and MinGW 3.4.5
http://redmine.ruby-lang.org/issues/show/1834

Author: Luis Lavena
Status: Open, Priority: Normal
Category: ext, Target version: 1.9.x
ruby -v: 1.9.1-p129 and 1.8.6-p368

Hello,

I'm running the One-Click Ruby Installer compile scripts on 32bits Windows 7. By default, it has IPv6 installed and enabled.

After configured Ruby with the following parameters:

--enable-shared --disable-install-doc

I've ended with the following warnings when compiling:

compiling socket

Fatal: --enable-ipv6 is specified, and your OS seems to support IPv6 feature.
But your getaddrinfo() and getnameinfo() are appeared to be broken. Sorry,
you cannot compile IPv6 socket classes with broken these functions.
You can try --enable-wide-getaddrinfo.

==

Please find "mkmf.log" file attached with the extconf options generated during this compilation.

After follow the suggestion of adding --enable-wide-getaddrinfo, I got a different error message, which I have attached in the file "with-wide-setting.log". Also attached mkmf.log of this run.

The revision used was:

URL: http://svn.ruby-lang.org/repos/ruby/trunk
Repository Root: http://svn.ruby-lang.org/repos/ruby
Repository UUID: b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Revision: 24312
Node Kind: directory
Schedule: normal
Last Changed Author: naruse
Last Changed Rev: 24311
Last Changed Date: 2009-07-28 20:11:29 -0300 (mar, 28 jul 2009)

Thank you.


http://redmine.ruby-lang.org

Regards,

U.Nakamura

=end

Actions #2

Updated by luislavena (Luis Lavena) over 14 years ago

=begin
On Wed, Jul 29, 2009 at 11:23 PM, U.Nakamura wrote:

Hello,

Sorry, I don't have much time now to resolve this problem.

Thank you Mr. Nakamura, no need to sorry for this. Wanted to verify wasn't me.

Roughly summarize of my understanding.

(1) MinGW's IPv6 support seems to be broken.
   VC++6 has same problem, I know.

I'm going to look into MinGW headers then.

   So, mswin's ipv6 support is now disabled by default.

(2) --disable-ipv6 option of configure is your workaround.

Wasn't aware of that, will try it, but first try to get IPv6 with MinGW to work.

(3) link errors with --enable-wide-getaddrinfo is ruby's bug.

Good to know.

Thank you again.

--
Luis Lavena
AREA 17

Perfection in design is achieved not when there is nothing more to add,
but rather when there is nothing more to take away.
Antoine de Saint-Exupéry

=end

Actions #3

Updated by usa (Usaku NAKAMURA) over 14 years ago

  • Assignee set to usa (Usaku NAKAMURA)

=begin

=end

Actions #4

Updated by usa (Usaku NAKAMURA) over 14 years ago

  • Status changed from Open to Assigned

=begin

=end

Actions #5

Updated by usa (Usaku NAKAMURA) over 14 years ago

  • Priority changed from Normal to 6

=begin

=end

Actions #6

Updated by usa (Usaku NAKAMURA) over 14 years ago

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

=begin
Applied in changeset r24517.
=end

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0