Project

General

Profile

Actions

Bug #720

closed

[patch] autoconf changes needed for uClibc stdio

Added by candlerb (Brian Candler) over 15 years ago. Updated almost 13 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
[ruby-core:19725]

Description

=begin
[Migrated from http://rubyforge.org/tracker/index.php?func=detail&aid=15677&group_id=426&atid=1698]

ruby doesn't work properly under uClibc without a patch. This is because uClibc uses __bufpos and __bufread (rather
than bufpos and bufread), which configure.in isn't currently detecting. The most immediate symptom is that an exception
is raised if you try to read from a UDP socket:

root@OpenWrt:~# irb
irb(main):001:0> require 'socket'
=> true
irb(main):002:0> s = UDPSocket.new
=> #UDPSocket:0x444000
irb(main):003:0> s.bind("0.0.0.0",1234)
=> 0
irb(main):004:0> d = s.recvfrom(512)
IOError: recv for buffered IO
from (irb):4:in `recvfrom'
from (irb):4
irb(main):005:0>

[Tested using OpenWrt, an embedded Linux distro which uses uClibc]

The simple fix is attached.

Previously posted to ruby-core for comment, but no response forthcoming.
http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-core/12020
http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-core/13262
=end


Files

ruby-stdio-autoconf.diff (1.41 KB) ruby-stdio-autoconf.diff candlerb (Brian Candler), 11/08/2008 05:15 AM
Actions #1

Updated by shyouhei (Shyouhei Urabe) about 15 years ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

=begin
This issue has been fixed in the repository.
=end

Actions

Also available in: Atom PDF

Like0
Like0