From: WATANABE Hirofumi Date: 2002-04-02T15:03:36+09:00 Subject: Re: getaddrinfo: invalid value for hints ? Hi, "Nikolay Elkov" writes: :Just got the latest ruby snapshot, 04/01, compiled it on cygwin. I get the :following error: : :irb(main):003:0> p TCPSocket.gethostbyname('localhost') :SocketError: getaddrinfo: invalid value for hints. : from (irb):3:in `gethostbyname' : from (irb):3 :irb(main):004:0> : :What is that supposed to mean and how do I get it to work? Try this patch. Index: ext/socket/socket.c =================================================================== RCS file: /src/ruby/ext/socket/socket.c,v retrieving revision 1.71 diff -u -1 -r1.71 socket.c --- ext/socket/socket.c 2002/03/28 09:17:54 1.71 +++ ext/socket/socket.c 2002/04/02 06:00:04 @@ -596,2 +596,3 @@ hintsp = &hints; + MEMZERO(&hints, struct addrinfo, 1); hints.ai_family = PF_UNSPEC; -- eban