Issue #1776 has been updated by Martin D端rst.


Attaching a file apparently failed (see Bug #1779).
I'm including the last few lines of the abovementioned mkmf.log file here:

--------------------

have_type: checking for socklen_t in sys/types.h,netdb.h,string.h,sys/socket.h,netinet/in.h,arpa/inet.h... -------------------- yes

"gcc -I../../.ext/include/i386-cygwin -I../.././include -I../.././ext/socket -I.     -O3 -g -Wall -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings   -c conftest.c"
checked program was:
/* begin */
 1: #include "ruby.h"
 2: 
 3: #include <sys/types.h>
 4: #include <netdb.h>
 5: #include <string.h>
 6: #include <sys/socket.h>
 7: #include <netinet/in.h>
 8: #include <arpa/inet.h>
 9: 
10: /*top*/
11: typedef socklen_t conftest_type;
12: int conftestval[sizeof(conftest_type)?1:-1];
/* end */

--------------------

/cygdrive/c/ruby/ruby/lib/mkmf.rb:277:in `ensure in block in postpone': undefined method `close' for nil:NilClass (NoMethodError)
	from /cygdrive/c/ruby/ruby/lib/mkmf.rb:281:in `block in postpone'
	from /cygdrive/c/ruby/ruby/lib/mkmf.rb:249:in `open'
	from /cygdrive/c/ruby/ruby/lib/mkmf.rb:271:in `postpone'
	from /cygdrive/c/ruby/ruby/lib/mkmf.rb:685:in `checking_for'
	from /cygdrive/c/ruby/ruby/lib/mkmf.rb:826:in `have_header'
	from /cygdrive/c/ruby/ruby/ext/socket/extconf.rb:303:in `<top (required)>'
	from ./ext/extmk.rb:154:in `load'
	from ./ext/extmk.rb:154:in `extmake'
	from ./ext/extmk.rb:445:in `block in <main>'
	from ./ext/extmk.rb:441:in `each'
	from ./ext/extmk.rb:441:in `<main>'

----------------------------------------
http://redmine.ruby-lang.org/issues/show/1776

----------------------------------------
http://redmine.ruby-lang.org