https://bugs.ruby-lang.org/https://bugs.ruby-lang.org/favicon.ico?17113305112009-07-30T11:23:50ZRuby Issue Tracking SystemRuby master - Bug #1834: 1.9.2-dev fails to compile socket with IPv6 and MinGW 3.4.5https://bugs.ruby-lang.org/issues/1834?journal_id=49932009-07-30T11:23:50Zusa (Usaku NAKAMURA)usa@garbagecollect.jp
<ul></ul><p>=begin<br>
Hello,</p>
<p>Sorry, I don't have much time now to resolve this problem.</p>
<p>Roughly summarize of my understanding.</p>
<p>(1) MinGW's IPv6 support seems to be broken.<br>
VC++6 has same problem, I know.<br>
So, mswin's ipv6 support is now disabled by default.</p>
<p>(2) --disable-ipv6 option of configure is your workaround.</p>
<p>(3) link errors with --enable-wide-getaddrinfo is ruby's bug.</p>
<p>In message "<a href="/issues/1834">[ruby-core:24601]</a> [Bug <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Bug: 1.9.2-dev fails to compile socket with IPv6 and MinGW 3.4.5 (Closed)" href="https://bugs.ruby-lang.org/issues/1834">#1834</a>] 1.9.2-dev fails to compile socket with IPv6 and MinGW 3.4.5"<br>
on Jul.30,2009 10:29:35, <a href="mailto:redmine@ruby-lang.org" class="email">redmine@ruby-lang.org</a> wrote:</p>
<blockquote>
<p>Bug <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Bug: 1.9.2-dev fails to compile socket with IPv6 and MinGW 3.4.5 (Closed)" href="https://bugs.ruby-lang.org/issues/1834">#1834</a>: 1.9.2-dev fails to compile socket with IPv6 and MinGW 3.4.5<br>
<a href="http://redmine.ruby-lang.org/issues/show/1834" class="external">http://redmine.ruby-lang.org/issues/show/1834</a></p>
<p>Author: Luis Lavena<br>
Status: Open, Priority: Normal<br>
Category: ext, Target version: 1.9.x<br>
ruby -v: 1.9.1-p129 and 1.8.6-p368</p>
<p>Hello,</p>
<p>I'm running the One-Click Ruby Installer compile scripts on 32bits Windows 7. By default, it has IPv6 installed and enabled.</p>
<p>After configured Ruby with the following parameters:</p>
<p>--enable-shared --disable-install-doc</p>
<p>I've ended with the following warnings when compiling:</p>
<p>compiling socket</p>
<p>Fatal: --enable-ipv6 is specified, and your OS seems to support IPv6 feature.<br>
But your getaddrinfo() and getnameinfo() are appeared to be broken. Sorry,<br>
you cannot compile IPv6 socket classes with broken these functions.<br>
You can try --enable-wide-getaddrinfo.</p>
<p>==</p>
<p>Please find "mkmf.log" file attached with the extconf options generated during this compilation.</p>
<p>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.</p>
<p>The revision used was:</p>
<pre>
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)
</pre>
<p>Thank you.</p>
<hr>
<p><a href="http://redmine.ruby-lang.org" class="external">http://redmine.ruby-lang.org</a></p>
</blockquote>
<a name="Regards"></a>
<h2 >Regards,<a href="#Regards" class="wiki-anchor">¶</a></h2>
<p>U.Nakamura <a href="mailto:usa@garbagecollect.jp" class="email">usa@garbagecollect.jp</a></p>
<p>=end</p> Ruby master - Bug #1834: 1.9.2-dev fails to compile socket with IPv6 and MinGW 3.4.5https://bugs.ruby-lang.org/issues/1834?journal_id=50072009-07-30T20:49:44Zluislavena (Luis Lavena)luislavena@gmail.com
<ul></ul><p>=begin<br>
On Wed, Jul 29, 2009 at 11:23 PM, U.Nakamura<a href="mailto:usa@garbagecollect.jp" class="email">usa@garbagecollect.jp</a> wrote:</p>
<blockquote>
<p>Hello,</p>
<p>Sorry, I don't have much time now to resolve this problem.</p>
</blockquote>
<p>Thank you Mr. Nakamura, no need to sorry for this. Wanted to verify wasn't me.</p>
<blockquote>
<p>Roughly summarize of my understanding.</p>
<p>(1) MinGW's IPv6 support seems to be broken.<br>
VC++6 has same problem, I know.</p>
</blockquote>
<p>I'm going to look into MinGW headers then.</p>
<blockquote>
<p> So, mswin's ipv6 support is now disabled by default.</p>
<p>(2) --disable-ipv6 option of configure is your workaround.</p>
</blockquote>
<p>Wasn't aware of that, will try it, but first try to get IPv6 with MinGW to work.</p>
<blockquote>
<p>(3) link errors with --enable-wide-getaddrinfo is ruby's bug.</p>
</blockquote>
<p>Good to know.</p>
<p>Thank you again.</p>
<h2>--<br>
Luis Lavena<br>
AREA 17</h2>
<p>Perfection in design is achieved not when there is nothing more to add,<br>
but rather when there is nothing more to take away.<br>
Antoine de Saint-Exupéry</p>
<p>=end</p> Ruby master - Bug #1834: 1.9.2-dev fails to compile socket with IPv6 and MinGW 3.4.5https://bugs.ruby-lang.org/issues/1834?journal_id=52332009-08-12T15:40:02Zusa (Usaku NAKAMURA)usa@garbagecollect.jp
<ul><li><strong>Assignee</strong> set to <i>usa (Usaku NAKAMURA)</i></li></ul><p>=begin</p>
<p>=end</p> Ruby master - Bug #1834: 1.9.2-dev fails to compile socket with IPv6 and MinGW 3.4.5https://bugs.ruby-lang.org/issues/1834?journal_id=52342009-08-12T15:42:14Zusa (Usaku NAKAMURA)usa@garbagecollect.jp
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Assigned</i></li></ul><p>=begin</p>
<p>=end</p> Ruby master - Bug #1834: 1.9.2-dev fails to compile socket with IPv6 and MinGW 3.4.5https://bugs.ruby-lang.org/issues/1834?journal_id=52432009-08-12T15:48:00Zusa (Usaku NAKAMURA)usa@garbagecollect.jp
<ul><li><strong>Priority</strong> changed from <i>Normal</i> to <i>6</i></li></ul><p>=begin</p>
<p>=end</p> Ruby master - Bug #1834: 1.9.2-dev fails to compile socket with IPv6 and MinGW 3.4.5https://bugs.ruby-lang.org/issues/1834?journal_id=52482009-08-12T21:17:05Zusa (Usaku NAKAMURA)usa@garbagecollect.jp
<ul><li><strong>Status</strong> changed from <i>Assigned</i> to <i>Closed</i></li><li><strong>% Done</strong> changed from <i>0</i> to <i>100</i></li></ul><p>=begin<br>
Applied in changeset r24517.<br>
=end</p>