From: nobu@... Date: 2005-01-07T11:06:20+09:00 Subject: [ruby-dev:25422] wide-getaddrinfo なかだです。 ext/socket/extconf.rbに--enable-wide-getaddrinfoを指定すると、 コンパイルできなくなります。 $ make CONFIGURE_ARGS='--enable-wide-getaddrinfo' 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. すでに指定してあるオプションを試せといわれるのはおかしいのでは ないでしょうか。 以下のように、--(en|dis)able-wide-getaddrinofが指定されていれば その値を優先、指定されていないときにだけtry_runで判断、というの が本来意図されていたことではないかと思うのですが。 Index: ext/socket/extconf.rb =================================================================== RCS file: /cvs/ruby/src/ruby/ext/socket/extconf.rb,v retrieving revision 1.37 diff -U2 -p -r1.37 extconf.rb --- ext/socket/extconf.rb 2 Jan 2004 16:21:18 -0000 1.37 +++ ext/socket/extconf.rb 7 Jan 2005 01:32:15 -0000 @@ -25,4 +25,8 @@ else end +unless $mswin or $bccwin or $mingw + headers = %w +end + $ipv6 = false default_ipv6 = /cygwin/ !~ RUBY_PLATFORM @@ -201,11 +205,7 @@ if have_func("sendmsg") | have_func("rec end -$getaddr_info_ok = false -if !enable_config("wide-getaddrinfo", false) and try_run(< -#include -#include -#include -#include +$getaddr_info_ok = enable_config("wide-getaddrinfo") do + checking_for("wide getaddrinfo") {try_run(<