I get the following build failure when msysgit's "c:\git\cmd" dir is on PATH.

Previously this setup did not cause failures, but recent Ruby build mods appear to be more aggressive in searching for Tcl/Tk artifacts and are finding them in msysgit's "c:\git\lib" dir which is not on PATH. The warning message is also odd as I'm compiling with --disable-pthread.

FYI, "c:\git\cmd" (containng only git.cmd and gitk.cmd) is on PATH to enable running git from a normal windows shell.  "configure" and "make" are run from the same windows shell via a rake task using "c:/msys/bin/bash.exe --login -c"

Can the build behave as before -- ignore msysgit's Tcl/Tk artifacts -- while still resolving the Tcl/Tk build issues?

Jon



configure --prefix='c:/ruby-trunk' --enable-shared --disable-install-doc
--disable-pthread optflags='-O0 -pipe' debugflags='-g3 -ggdb'
--with-baseruby='c:/Ruby187/bin/ruby.exe'
LDFLAGS='-Lc:/gnuwin32/zlib/lib' CPPFLAGS='-Ic:/gnuwin32/zlib/include'

...SNIP...

Valid tclConfig.sh and tkConfig.sh are found in ["c:/git/lib"]
Use [tclConfig.sh,tkConfig.sh] == ['c:/git/lib/tclConfig.sh','c:/git/lib/tkConfig.sh']
Search Tcl library..
Search Tk library..
*****************************************************************************
**
** NATIVETHREAD SUPPORT MODE WARNING:
**
**   Ruby is compiled with --enable-pthread, but your Tcl/Tk library
**   seems to be compiled without nativethread support. Although you can
**   create the tcltklib library, this combination may cause errors (e.g.
**   hangs or segmentation faults). If you have no reason to keep the
**   current nativethread support status, we recommend you reconfigure and
**   recompile the libraries so that both or neither support nativethreads.
**
**   If you want change the status of nativethread support, please recompile
**   Ruby without "--enable-pthread" configure option (If you use Ruby 1.9.x
**   or later, you cannot remove this option, because it requires native-
**   thread support.) or recompile Tcl/Tk with "--enable-threads" configure
**   option (if your Tcl/Tk is later than or equal to Tcl/Tk 8.1).
**
*****************************************************************************
Find Tcl/Tk libraries. Make tcltklib.so which is required by Ruby/Tk.
make[1]: Entering directory `/c/Users/Jon/Documents/RubyDev/build/ext/tk'
../../miniruby.exe -I'../..' -I'../.././lib' -I'../../.ext/i386-mingw32' -I'../../.ext/common'
 -I./- -I'../.././ext' -rpurelib.rb -e "puts 'EXPORTS', 'Init_tcltklib'"  > tcltklib-i386-ming
w32.def
gcc -I. -I../../.ext/include/i386-mingw32 -I../.././include -I../.././ext/tk -I/mingw/include
 -DRUBY_EXTCONF_H=\"extconf.h\" -Ic:/gnuwin32/zlib/include   -DPACKAGE_NAME=\"\" -DPACKAGE_TAR
NAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -Dinline=__inl
ine -DHAVE_NO_LPFN_DECLS=1 -DHAVE_NO_FINDEX_ENUMS=1 -DTCL_CFGVAL_ENCODING=\"cp1252\" -DTCL_CFG
_OPTIMIZED=1 -DTCL_CFG_DEBUG=1  -DHAVE_UXTHEME_H=1 -DWITH_TCL_ENABLE_THREAD=0 -O0 -pipe -g3 -g
gdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missin
g-field-initializers -Wno-long-long  -o stubs.o -c stubs.c
In file included from stubs.c:8:
stubs.h:1:17: error: tcl.h: No such file or directory
In file included from stubs.c:8:
stubs.h:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
stubs.h:10: error: expected ')' before '*' token
stubs.h:11: error: expected ')' before '*' token
stubs.c:16:16: error: tk.h: No such file or directory
stubs.c: In function '_nativethread_consistency_check':
stubs.c:43: error: expected declaration specifiers before 'Tcl_Interp'
stubs.c:42: warning: type of 'ip' defaults to 'int'
stubs.c:45: error: 'Tcl_Interp' undeclared (first use in this function)
stubs.c:45: error: (Each undeclared identifier is reported only once
stubs.c:45: error: for each function it appears in.)
stubs.c:45: error: expected expression before ')' token
stubs.c:51: error: 'TCL_GLOBAL_ONLY' undeclared (first use in this function)
stubs.c:51: warning: comparison between pointer and integer
stubs.c: At top level:
stubs.c:481: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
stubs.c:516: error: expected ')' before '*' token
stubs.c:537: error: expected ')' before '*' token
make[1]: *** [stubs.o] Error 1
make[1]: Leaving directory `/c/Users/Jon/Documents/RubyDev/build/ext/tk'
make: *** [mkmain.sh] Error 1