pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Problem with gem1.8



* Filip Hajny wrote:
> [...]
> Stefan, can you check if the test above resolves the hostname for you
> in both cases?

Box using ruby from pkgsrc-2010Q3:
% ruby18 -v
ruby 1.8.7 (2010-08-16 patchlevel 302) [sparc-solaris2]

% ruby18 -e 'require "socket"; print Socket::getaddrinfo("rubyforge.org", 
"echo", Socket::AF_INET)[0][3],"\n"; print Socket::getaddrinfo("rubyforge.org", 
"echo")[0][3],"\n"'
205.234.109.19
-e:1:in `getaddrinfo': getaddrinfo: no address for the specified node name 
(SocketError)
        from -e:1


Same box using an older "handmade" ruby:
% ruby -v
ruby 1.8.7 (2009-06-12 patchlevel 174) [sparc-solaris2.10]

% ruby -e 'require "socket"; print Socket::getaddrinfo("rubyforge.org", "echo", 
Socket::AF_INET)[0][3],"\n"; print Socket::getaddrinfo("rubyforge.org", 
"echo")[0][3],"\n"'
205.234.109.19
205.234.109.19

HTH,
Stefan


Home | Main Index | Thread Index | Old Index