From: Kirk Haines Date: 2010-01-11T11:00:55+09:00 Subject: [ruby-core:27526] Re: [Bug #2592] Cannot compile 1.8.6-p388 under MinGW due F_GETFD being underclared On Sun, Jan 10, 2010 at 6:31 PM, Luis Lavena wrote: > Bug #2592: Cannot compile 1.8.6-p388 under MinGW due F_GETFD being underclared > http://redmine.ruby-lang.org/issues/show/2592 > > Author: Luis Lavena > Status: Open, Priority: Normal > Assigned to: Kirk Haines > ruby -v: ruby 1.8.6 (2009-08-04 patchlevel 383) [i386-mingw32] > > Hello, > > I'm trying to compile the lastest version of Ruby 1.8.6, released this weekend that covers the security issue exposed of WEBrick, but I'm having some problems: > >
> ../ruby_1_8/eval.c: In function `rb_thread_schedule':
> ../ruby_1_8/eval.c:10821: error: `F_GETFD' undeclared (first use in this function)
> ../ruby_1_8/eval.c:10821: error: (Each undeclared identifier is reported only once
> ../ruby_1_8/eval.c:10821: error: for each function it appears in.)
> make: *** [eval.o] Error 1
> 
> > Which seems completely unrelated to the issue of WEBrick, but is affecting my compilation process to deliver updated RubyInstallers. > > Tried to find the commit of origin of this without success. r24600 Backport #1001; handle EBADF in select() to avoid Interpreter-wide deadlock when native close() is called on fd which is currently being IO#select()ed. I agree that having a decent way to test builds on Windows would be invaluable. For the time being, guide me on how to fix that to be friendly to Windows. Thanks, Kirk Haines