From: Wataru Kimura Date: 2010-06-18T01:00:53+09:00 Subject: [ruby-core:30794] [Bug #3124] SocketError on SnowLeopard (during make test-all) Issue #3124 has been updated by Wataru Kimura. File patch-ruby_core_29427.diff added File test_getaddrinfo.c added I think this is a bug of Snow Leopard. I checked results of getaddrinfo(3) with some pairs of hostname and servname. Snow Leopard (10.6.4) host\serv | "80" "0" "" NULL ------------+--------------------------- "localhost" | OK NG(!) OK OK "" | OK OK NG NG NULL | OK OK NG NG Leopard (10.5.8) host\serv | "80" "0" "" NULL ------------+--------------------------- "localhost" | OK OK(!) OK OK "" | OK OK NG NG NULL | OK OK NG NG I make a patch for 1.9.2 r28350. this pacth makes "0" to NULL when hostname is given and servname is "0". ruby-1.9.2dev with this patch passed all tests under test/socket/ on my Mac (10.6.4). ---------------------------------------- http://redmine.ruby-lang.org/issues/show/3124 ---------------------------------------- http://redmine.ruby-lang.org