Bug #5706
closedBuild failure on io/wait extension with VC 2010
Description
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.