From: Heesob Park Date: 2012-02-20T18:02:03+09:00 Subject: [ruby-core:42760] [ruby-trunk - Bug #6049][Open] Build failure on enc/mktable.so with VC 2010Build failure on enc/mktable.so with VC 2010 Issue #6049 has been reported by Heesob Park. ---------------------------------------- Bug #6049: Build failure on enc/mktable.so with VC 2010Build failure on enc/mktable.so with VC 2010 https://bugs.ruby-lang.org/issues/6049 Author: Heesob Park Status: Open Priority: Normal Assignee: Category: Target version: ruby -v: ruby 2.0.0dev (2012-02-19) [i386-mswin32_100] I got the following failure on Windows XP with VC 2010 while building trunk. 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 = ... compiling ./enc/mktable.c mktable.c linking encoding mktable.so mktable.def : error LNK2001: unresolved external symbol "Init_mktable" enc/mktable.lib : fatal error LNK1120: 1 unresolved externals NMAKE : fatal error U1077: '"F:\Program Files\Microsoft Visual Studio 10.0\VC\BIN\cl.EXE"' : return code '0x2' Stop. NMAKE : fatal error U1077: '"F:\Program Files\Microsoft Visual Studio 10.0\VC\BIN\nmake.EXE"' : return code '0x2' Stop. If I run nmake again, the build succeeded without error. -- http://bugs.ruby-lang.org/