Issue #5706 has been reported by Heesob Park.

----------------------------------------
Bug #5706: Build failure on io/wait extension with VC 2010
http://redmine.ruby-lang.org/issues/5706

Author: Heesob Park
Status: Open
Priority: Normal
Assignee: 
Category: 
Target version: 
ruby -v: ruby 2.0.0dev (2011-12-03 trunk 33936)


I get the following failure on Windows 7 with VC 2010 while building trunk@33936.

C:\work\snapshot>nmake

Microsoft (R) Program Maintenance Utility Version 10.00.30319.01
Copyright (C) Microsoft Corporation.  All rights reserved.

        CC = cl -nologo
        LD = cl -nologo
        LDSHARED = cl -nologo -LD
        CFLAGS = -MD -Zi -W2 -wd4996 -we4028 -we4142 -O2sy-  -Zm600
        XCFLAGS = -DRUBY_EXPORT -I. -I.ext/include/i386-mswin32_100 -I./include -I. -I./missing
        CPPFLAGS =
        DLDFLAGS = -incremental:no -debug -opt:ref -opt:icf -dll
        SOLIBS =
...
installing default nonblock libraries
linking shared-object io/wait.so
   Creating library wait-i386-mswin32_100.lib and object wait-i386-mswin32_100.exp
wait.obj : error LNK2019: unresolved external symbol _rb_w32_ioctlsocket@12 referenced in function _io_nread
../../../.ext/i386-mswin32_100/io/wait.so : fatal error LNK1120: 1 unresolved externals
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\cl.EXE"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'cd' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\nmake.EXE"' : return code '0x2'
Stop.



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