ruby 1.9.2 http stack problem: symbol 'getipnodebyname'

Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Atheros WiSOC based Hardware
Author Message
lstroud
DD-WRT Novice


Joined: 02 Aug 2011
Posts: 4

PostPosted: Tue Aug 02, 2011 13:55    Post subject: ruby 1.9.2 http stack problem: symbol 'getipnodebyname' Reply with quote
Any time I run anything requiring http, I get

ruby: can't resolve symbol 'getipnodebyname'

Here is some sample code to reproduce:
require 'net/http'
class HttpSample
def downloadGoogleHome
http_response = Net::HTTP.get_response(URI.parse('http://www.google.com/'))
puts http_response.body
end
s = HttpSample.new
s.downloadGoogleHome
end


I'm not sure if I am missing a library or not. Anyone have any ideas?
Sponsor
lstroud
DD-WRT Novice


Joined: 02 Aug 2011
Posts: 4

PostPosted: Tue Aug 02, 2011 14:13    Post subject: more fun Reply with quote
i copied in the socket.so from 10.3 ruby-core and this problem went away.

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. Not sure what the right fix is, but the version in 10.3 works. Again, probably something to fix in the build.
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Atheros WiSOC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum