Hi Gerald,
As you kown, I'm trying to provide up-to-date tclkit for Mac OS X:
http://www.zolli.fr/tclkit-darwin.php
KitCreator 0.10.2 (and fossil-trunk) fails to build tclkit 8.6.8 while it works fine for 8.6.7 (but it works for tclkitsh-8.6.8).
It fails for Tk with a very strange error on Mac platform:
checking for tclsh in Tcl build directory... /Users/kroc/Programmation/Tcl/tclkit/kitcreator-0.10.2/tcl/build/tcl8.6.8/macosx/tclsh86
checking for tclsh... /usr/bin/tclsh8.5
configure: creating ./config.status
config.status: creating Makefile
config.status: creating tkConfig.sh
config.status: creating wish.exe.manifest
Running: make
x86_64-w64-mingw32-gcc -c -D_WIN32_IE=0x0501 -O2 -fomit-frame-pointer -DUNICODE -D_UNICODE -D_ATL_XP_TARGETING -Wall -Wdeclaration-after-statement -I"./../generic" -I"." -I"./../xlib" -I"./../bitmaps" -I"/Users/kroc/Programmation/Tcl/tclkit/kitcreator-0.10.2/tcl/build/tcl8.6.8/generic" -I"/Users/kroc/Programmation/Tcl/tclkit/kitcreator-0.10.2/tcl/build/tcl8.6.8/win" -pipe -DTCL_BROKEN_MAINARGS -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1 -DTCL_THREADS=1 -DUSE_THREAD_ALLOC=1 -DSTATIC_BUILD=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DMODULE_SCOPE=extern -DTCL_CFG_DO64BIT=1 -DHAVE_NO_SEH=1 -DEXCEPTION_DISPOSITION=int -DNO_STRTOI64=1 -DNDEBUG=1 -DTCL_CFG_OPTIMIZED=1 -DHAVE_TCL_CONFIG_H -imacros tclConfig.h -DTCL_NO_DEPRECATED -DUSE_TCL_STUBS -DBUILD_tk -DBUILD_ttk "./../generic/tkConsole.c" -o tkConsole.o
/bin/sh: x86_64-w64-mingw32-gcc: command not found
make: *** [tkConsole.o] Error 127
x86_64-w64-mingw32-gcc -c -D_WIN32_IE=0x0501 -O2 -fomit-frame-pointer -DUNICODE -D_UNICODE -D_ATL_XP_TARGETING -Wall -Wdeclaration-after-statement -I"./../generic" -I"." -I"./../xlib" -I"./../bitmaps" -I"/Users/kroc/Programmation/Tcl/tclkit/kitcreator-0.10.2/tcl/build/tcl8.6.8/generic" -I"/Users/kroc/Programmation/Tcl/tclkit/kitcreator-0.10.2/tcl/build/tcl8.6.8/win" -pipe -DTCL_BROKEN_MAINARGS -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1 -DTCL_THREADS=1 -DUSE_THREAD_ALLOC=1 -DSTATIC_BUILD=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DMODULE_SCOPE=extern -DTCL_CFG_DO64BIT=1 -DHAVE_NO_SEH=1 -DEXCEPTION_DISPOSITION=int -DNO_STRTOI64=1 -DNDEBUG=1 -DTCL_CFG_OPTIMIZED=1 -DHAVE_TCL_CONFIG_H -imacros tclConfig.h -DTCL_NO_DEPRECATED -DUSE_TCL_STUBS -DBUILD_tk -DBUILD_ttk "./../generic/tkConsole.c" -o tkConsole.o
/bin/sh: x86_64-w64-mingw32-gcc: command not found
make: *** [tkConsole.o] Error 127
That's surprising because at the beginning I have:
checking for gcc... gcc
checking whether the C compiler works... yes
The very first errors I find in log is:
/Users/kroc/Programmation/Tcl/tclkit/kitcreator-0.10.2/tk/build/tk8.6.8/unix/../macosx/tkMacOSXXStubs.c:183:2: error: use of undeclared identifier 'NSOperatingSystemVersion'
NSOperatingSystemVersion systemVersion = [[NSProcessInfo processInfo] operatingSystemVersion];
/Users/kroc/Programmation/Tcl/tclkit/kitcreator-0.10.2/tk/build/tk8.6.8/unix/../macosx/tkMacOSXXStubs.c:184:10: error: use of undeclared identifier 'systemVersion'
major = systemVersion.majorVersion;
^
/Users/kroc/Programmation/Tcl/tclkit/kitcreator-0.10.2/tk/build/tk8.6.8/unix/../macosx/tkMacOSXXStubs.c:185:10: error: use of undeclared identifier 'systemVersion'
minor = systemVersion.minorVersion;
^
/Users/kroc/Programmation/Tcl/tclkit/kitcreator-0.10.2/tk/build/tk8.6.8/unix/../macosx/tkMacOSXXStubs.c:186:10: error: use of undeclared identifier 'systemVersion'
patch = systemVersion.patchVersion;
4 errors generated.
make: *** [tkMacOSXXStubs.o] Error 1
I've also found a warning:
checking errno.h usability... no
checking errno.h presence... yes
configure: WARNING: errno.h: present but cannot be compiled
As I guess TCT checked building works on Mac before releasing 8.6.8, I thought it was a KitCreator / tclkit specific error.
--
David