ruby 1.9.2 http stack problem: symbol 'getipnodebyname'
|Reported by:||anonymous||Owned by:||developers|
|Priority:||normal||Milestone:||Chaos Calmer 15.05|
|Component:||packages||Version:||Backfire 10.03.1 RC5|
The socket.so file built as a part of ruby-core is faulty. Making an http connection using it produces:
ruby: can't resolve symbol 'getipnodebyname'
I was able to resolve it by grabbing socket.so from the 10.03 backfire build and dropping it in (ruby 1.9.1). Looking at the ruby code: http://www.oschina.net/code/explore/ruby-1.9.2-p0/ext/socket/getaddrinfo.c , it looks like that method should never be called except when the build is ipv6.
I'm not sure why the underlying call is unavailable in this version. However, it effects the trunk and all of the backfire 10.03.1 rcs.
Here is some sample code to reproduce:
http_response = Net::HTTP.get_response(URI.parse('http://www.google.com/'))
s = HttpSample.new