Bug #5706

Build failure on io/wait extension with VC 2010

Added by Heesob Park over 3 years ago. Updated over 3 years ago.

[ruby-core:41475]
Status:Closed
Priority:Normal
Assignee:Usaku NAKAMURA
ruby -v:ruby 2.0.0dev (2011-12-03 trunk 33936) Backport:

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.

Associated revisions

Revision 33947
Added by Usaku NAKAMURA over 3 years ago

  • include/ruby/{subst.h,win32.h}, ext/socket/rubysocket.h: revert
    r33876. [Bug #5706]

  • ext/socket/extconf.rb: the alternative hack for [Bug #5675].

Revision 33947
Added by Usaku NAKAMURA over 3 years ago

  • include/ruby/{subst.h,win32.h}, ext/socket/rubysocket.h: revert
    r33876. [Bug #5706]

  • ext/socket/extconf.rb: the alternative hack for [Bug #5675].

History

#1 Updated by Usaku NAKAMURA over 3 years ago

  • Category set to build
  • Status changed from Open to Assigned
  • Assignee set to Usaku NAKAMURA
  • Target version set to 2.0.0

#2 Updated by Usaku NAKAMURA over 3 years ago

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

This issue was solved with changeset r33947.
Heesob, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.


  • include/ruby/{subst.h,win32.h}, ext/socket/rubysocket.h: revert
    r33876. [Bug #5706]

  • ext/socket/extconf.rb: the alternative hack for [Bug #5675].

Also available in: Atom PDF