Issue #10027 has been updated by Nobuyoshi Nakada.

Status changed from Feedback to Rejected

----------------------------------------
Bug #10027: make at windows , err : _rb_file_expand_path_internal already defined in file. obj
https://bugs.ruby-lang.org/issues/10027#change-47727

* Author: kk kk
* Status: Rejected
* Priority: Normal
* Assignee: cruby-windows
* Category: build
* Target version: 
* ruby -v: 2.1.2
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN
----------------------------------------
```
G:\ruby-2.1.2\win32>nmake

Microsoft (R) Program Maintenance Utility   Version 6.00.8168.0
Copyright (C) Microsoft Corp 1988-1998. All rights reserved.

        CC = cl -nologo
        LD = cl -nologo
        LDSHARED = cl -nologo -LD
        CFLAGS = -MD -Zi -W2 -O2b2xg- -G6 -Zm600
        XCFLAGS = -DRUBY_EXPORT -I. -I.ext/include/i386-mswin32 -IG:/ruby-2.1.2/
include -IG:/ruby-2.1.2 -IG:/ruby-2.1.2/missing
        CPPFLAGS =
        DLDFLAGS = -incremental:no -debug -opt:ref -opt:icf -dll
        SOLIBS =
Creating config.h
.ext\include\i386-mswin32\ruby\config.h updated
Creating config.status
compiling G:/ruby-2.1.2/main.c
main.c
compiling G:/ruby-2.1.2/dmydln.c
dmydln.c
compiling miniruby.rc
compiling G:/ruby-2.1.2/miniinit.c
miniinit.c
compiling G:/ruby-2.1.2/miniprelude.c
miniprelude.c
copying dummy probes.h
compiling G:/ruby-2.1.2/array.c
array.c
compiling G:/ruby-2.1.2/bignum.c
bignum.c
compiling G:/ruby-2.1.2/class.c
class.c
compiling G:/ruby-2.1.2/compar.c
compar.c
compiling G:/ruby-2.1.2/complex.c
complex.c
compiling G:/ruby-2.1.2/dir.c
dir.c
compiling G:/ruby-2.1.2/dln_find.c
dln_find.c
compiling G:/ruby-2.1.2/encoding.c
encoding.c
compiling G:/ruby-2.1.2/enum.c
enum.c
compiling G:/ruby-2.1.2/enumerator.c
enumerator.c
compiling G:/ruby-2.1.2/error.c
error.c
compiling G:/ruby-2.1.2/eval.c
eval.c
compiling G:/ruby-2.1.2/load.c
load.c
compiling G:/ruby-2.1.2/proc.c
proc.c
compiling file.c
file.c
compiling G:/ruby-2.1.2/gc.c
gc.c
G:/ruby-2.1.2/gc.c(4508) : warning C4244: '=' : conversion from 'double ' to 'un
signed int ', possible loss of data
G:/ruby-2.1.2/gc.c(4509) : warning C4244: '=' : conversion from 'double ' to 'un
signed int ', possible loss of data
compiling G:/ruby-2.1.2/hash.c
hash.c
compiling G:/ruby-2.1.2/inits.c
inits.c
compiling G:/ruby-2.1.2/io.c
io.c
compiling G:/ruby-2.1.2/marshal.c
marshal.c
compiling G:/ruby-2.1.2/math.c
math.c
compiling G:/ruby-2.1.2/node.c
node.c
compiling G:/ruby-2.1.2/numeric.c
numeric.c
compiling G:/ruby-2.1.2/object.c
object.c
compiling G:/ruby-2.1.2/pack.c
pack.c
compiling G:/ruby-2.1.2/parse.c
parse.c
compiling G:/ruby-2.1.2/process.c
process.c
compiling G:/ruby-2.1.2/random.c
random.c
compiling G:/ruby-2.1.2/range.c
range.c
compiling G:/ruby-2.1.2/rational.c
rational.c
compiling G:/ruby-2.1.2/re.c
re.c
compiling G:/ruby-2.1.2/regcomp.c
regcomp.c
compiling G:/ruby-2.1.2/regenc.c
regenc.c
compiling G:/ruby-2.1.2/regerror.c
regerror.c
compiling G:/ruby-2.1.2/regexec.c
regexec.c
compiling G:/ruby-2.1.2/regparse.c
regparse.c
compiling G:/ruby-2.1.2/regsyntax.c
regsyntax.c
compiling G:/ruby-2.1.2/ruby.c
ruby.c
compiling G:/ruby-2.1.2/safe.c
safe.c
compiling G:/ruby-2.1.2/signal.c
signal.c
compiling G:/ruby-2.1.2/sprintf.c
sprintf.c
compiling G:/ruby-2.1.2/st.c
st.c
compiling G:/ruby-2.1.2/strftime.c
strftime.c
compiling G:/ruby-2.1.2/string.c
string.c
compiling G:/ruby-2.1.2/struct.c
struct.c
compiling G:/ruby-2.1.2/time.c
time.c
compiling G:/ruby-2.1.2/transcode.c
transcode.c
compiling G:/ruby-2.1.2/util.c
util.c
compiling G:/ruby-2.1.2/variable.c
variable.c
compiling G:/ruby-2.1.2/version.c
version.c
compiling G:/ruby-2.1.2/compile.c
compile.c
compiling G:/ruby-2.1.2/debug.c
debug.c
compiling G:/ruby-2.1.2/iseq.c
iseq.c
compiling G:/ruby-2.1.2/vm.c
vm.c
compiling G:/ruby-2.1.2/vm_dump.c
vm_dump.c
compiling G:/ruby-2.1.2/vm_backtrace.c
vm_backtrace.c
compiling G:/ruby-2.1.2/vm_trace.c
vm_trace.c
compiling G:/ruby-2.1.2/thread.c
thread.c
compiling G:/ruby-2.1.2/cont.c
cont.c
compiling G:/ruby-2.1.2/enc/ascii.c
ascii.c
compiling G:/ruby-2.1.2/enc/us_ascii.c
us_ascii.c
compiling G:/ruby-2.1.2/enc/unicode.c
unicode.c
compiling G:/ruby-2.1.2/enc/utf_8.c
utf_8.c
compiling G:/ruby-2.1.2/newline.c
newline.c
compiling G:/ruby-2.1.2/missing/crypt.c
crypt.c
compiling G:/ruby-2.1.2/missing/ffs.c
ffs.c
compiling G:/ruby-2.1.2/missing/langinfo.c
langinfo.c
compiling G:/ruby-2.1.2/missing/lgamma_r.c
lgamma_r.c
compiling G:/ruby-2.1.2/missing/strlcat.c
strlcat.c
compiling G:/ruby-2.1.2/missing/strlcpy.c
strlcpy.c
compiling G:/ruby-2.1.2/win32/win32.c
win32.c
compiling G:/ruby-2.1.2/win32/file.c
file.c
compiling G:/ruby-2.1.2/missing/setproctitle.c
setproctitle.c
compiling G:/ruby-2.1.2/missing/acosh.c
acosh.c
compiling G:/ruby-2.1.2/missing/cbrt.c
cbrt.c
compiling G:/ruby-2.1.2/missing/erf.c
erf.c
compiling G:/ruby-2.1.2/missing/tgamma.c
tgamma.c
compiling G:/ruby-2.1.2/dmyext.c
dmyext.c
oldnames.lib user32.lib advapi32.lib shell32.lib ws2_32.lib imagehlp.lib shlwapi
.lib
linking miniruby.exe
file.obj : error LNK2005: _rb_file_expand_path_internal already defined in file.
obj
file.obj : error LNK2005: _rb_file_load_ok already defined in file.obj
file.obj : error LNK2005: _Init_w32_codepage already defined in file.obj
dir.obj : error LNK2001: unresolved external symbol _rb_enc_path_skip_prefix
dir.obj : error LNK2001: unresolved external symbol _rb_str_encode_ospath
load.obj : error LNK2001: unresolved external symbol _rb_str_encode_ospath
io.obj : error LNK2001: unresolved external symbol _rb_str_encode_ospath
ruby.obj : error LNK2001: unresolved external symbol _rb_str_encode_ospath
dir.obj : error LNK2001: unresolved external symbol _rb_file_const
dir.obj : error LNK2001: unresolved external symbol _rb_cFile
io.obj : error LNK2001: unresolved external symbol _rb_cFile
dir.obj : error LNK2001: unresolved external symbol _rb_file_directory_p
iseq.obj : error LNK2001: unresolved external symbol _rb_get_path
dir.obj : error LNK2001: unresolved external symbol _rb_get_path
load.obj : error LNK2001: unresolved external symbol _rb_get_path
io.obj : error LNK2001: unresolved external symbol _rb_get_path
process.obj : error LNK2001: unresolved external symbol _rb_get_path
dir.obj : error LNK2001: unresolved external symbol _rb_enc_path_end
dir.obj : error LNK2001: unresolved external symbol _rb_get_path_no_checksafe
dir.obj : error LNK2001: unresolved external symbol _rb_default_home_dir
dir.obj : error LNK2001: unresolved external symbol _rb_home_dir_of
dln_find.obj : error LNK2001: unresolved external symbol _eaccess
win32.obj : error LNK2001: unresolved external symbol _eaccess
eval.obj : error LNK2001: unresolved external symbol _rb_file_dirname
load.obj : error LNK2001: unresolved external symbol _rb_file_dirname
load.obj : error LNK2001: unresolved external symbol _rb_file_expand_path_fast
load.obj : error LNK2001: unresolved external symbol _rb_get_path_check_convert
load.obj : error LNK2001: unresolved external symbol _rb_is_absolute_path
load.obj : error LNK2001: unresolved external symbol _rb_get_path_check_to_strin
g
load.obj : error LNK2001: unresolved external symbol _rb_find_file
load.obj : error LNK2001: unresolved external symbol _rb_realpath_internal
ruby.obj : error LNK2001: unresolved external symbol _rb_realpath_internal
iseq.obj : error LNK2001: unresolved external symbol _rb_realpath_internal
load.obj : error LNK2001: unresolved external symbol _rb_file_absolute_path
load.obj : error LNK2001: unresolved external symbol _rb_find_file_ext_safe
load.obj : error LNK2001: unresolved external symbol _rb_find_file_safe
gc.obj : error LNK2001: unresolved external symbol __aligned_malloc
gc.obj : error LNK2001: unresolved external symbol __aligned_free
hash.obj : error LNK2001: unresolved external symbol _rb_path_check
io.obj : error LNK2001: unresolved external symbol _Init_File
ruby.obj : error LNK2001: unresolved external symbol _rb_file_expand_path
miniruby.exe : fatal error LNK1120: 26 unresolved externals
NMAKE : fatal error U1077: 'cl' : return code '0x2'
Stop.
```



-- 
https://bugs.ruby-lang.org/