Skip to content
Tcl Source Code History Of Ticket a0a251e4e4789773
Login

History Of Ticket a0a251e4e4789773

Artifacts Associated With Ticket a0a251e4e4789773

  1. Ticket change [0bc57861e8] (rid 141514) by anonymous on 2015-04-09 14:53:36:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/plain"
    4. comment initialized to:
      Compilation on Windows using VS2013 and Msys/configure/make fails due to a non-native include path passed via -I to the compiler when trying to compile Zlib:
      
      # cl -c -nologo -O2 -MD -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE -DU
      # NICODE -D_UNICODE -W3  -I"/l/ralf/si++aegis/si++.4.0.C822/src/tcltk/tcl8.6.4/com
      # pat/zlib" -I"l:/ralf/si++aegis/si++.4.0.C822/src/tcltk/tcl8.6.4/generic" -DTCL_T
      # OMMATH -DMP_PREC=4 -I"l:/ralf/si++aegis/si++.4.0.C822/src/tcltk/tcl8.6.4/libtomm
      # ath" -I"l:/ralf/si++aegis/si++.4.0.C822/src/tcltk/tcl8.6.4/win" -DPACKAGE_NAME=\
      # "\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAG
      # E_BUGREPORT=\"\" -Dinline=__inline -DSTDC_HEADERS=1 -DTCL_CFGVAL_ENCODING=\"cp12
      # 52\" -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=
      # 1 -DHAVE_MEMORY_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DMODULE_SCOPE=extern
      # -DHAVE_ZLIB=1 -DHAVE_INTPTR_T=1 -DHAVE_UINTPTR_T=1 -DHAVE_INTRIN_H=1 -DNDEBUG=1
      # -DTCL_CFG_OPTIMIZED=1    -DBUILD_tcl "l:/ralf/si++aegis/si++.4.0.C822/src/tcltk/
      # tcl8.6.4/generic/tclZlib.c" -FotclZlib.obj
      # tclZlib.c
      # l:/ralf/si++aegis/si++.4.0.C822/src/tcltk/tcl8.6.4/generic/tclZlib.c(19) : fatal
      #  error C1083: Datei (Include) kann nicht geƶffnet werden: "zlib.h": No such file
      #  or directory
      # make[1]: *** [tclZlib.obj] Error 2
      # make[1]: Leaving directory `/l/ralf/si++aegis/si++.4.0.C822/src/tcltk/tcl8.6.4/win'
      # make: *** [tcl] Error 2
      
      In the above, most -I directives are -I"l:/..." but those for zlib are -I"/l/..." which MS cl does not understand.  Fix is to apply the same _NATIVE path conversion as for the other pathes in this context.
      
      Proposed patch:
      
      --- tcl8.6.4/win/configure~	2015-03-11 14:59:56.000000000 +0100
      +++ tcl8.6.4/win/configure	2015-04-08 16:41:47.040571406 +0200
      @@ -4364,12 +4364,12 @@
       
           if test "$GCC" == "yes"; then
       
      -      ZLIB_LIBS=\${ZLIB_DIR}/win64/libz.dll.a
      +      ZLIB_LIBS=\${ZLIB_DIR_NATIVE}/win64/libz.dll.a
       
       
       else
       
      -      ZLIB_LIBS=\${ZLIB_DIR}/win64/zdll.lib
      +      ZLIB_LIBS=\${ZLIB_DIR_NATIVE}/win64/zdll.lib
       
       
       fi
      @@ -4377,7 +4377,7 @@
       
       else
       
      -    ZLIB_LIBS=\${ZLIB_DIR}/win32/zdll.lib
      +    ZLIB_LIBS=\${ZLIB_DIR_NATIVE}/win32/zdll.lib
       
       
       fi
      
      Diff finished.  Wed Apr  8 16:41:52 2015
      
      
      --- tcl8.6.4/win/Makefile.in	2015-04-08 16:44:03.928292071 +0200
      +++ tcl8.6.4/win/Makefile.in	2015-04-08 16:44:54.048565965 +0200
      @@ -114,6 +114,7 @@
       #TOMMATH_DIR_NATIVE	= $(TOMMATH_DIR)
       #WIN_DIR_NATIVE		= $(WIN_DIR)
       #ROOT_DIR_NATIVE		= $(ROOT_DIR)
      +ZLIB_DIR_NATIVE		= $(shell $(CYGPATH) '$(ZLIB_DIR)' | sed 's!\\!/!g')
       
       # Fully qualify library path so that `make test`
       # does not depend on the current directory.
      @@ -189,7 +190,7 @@
       RM		= rm -f
       COPY		= cp
       
      -CC_SWITCHES = ${CFLAGS} ${CFLAGS_WARNING} ${TCL_SHLIB_CFLAGS} -I"${ZLIB_DIR}" \
      +CC_SWITCHES = ${CFLAGS} ${CFLAGS_WARNING} ${TCL_SHLIB_CFLAGS} -I"${ZLIB_DIR_NATIVE}" \
       -I"${GENERIC_DIR_NATIVE}" -DTCL_TOMMATH -DMP_PREC=4 -I"${TOMMATH_DIR_NATIVE}" \
       -I"${WIN_DIR_NATIVE}" ${AC_FLAGS} \
       ${COMPILE_DEBUG_FLAGS} ${NO_DEPRECATED_FLAGS}
      
      Diff finished.  Wed Apr  8 16:45:01 2015
      
    5. foundin initialized to: "8.6.4"
    6. is_private initialized to: "0"
    7. login: "anonymous"
    8. priority initialized to: "5 Medium"
    9. private_contact initialized to: "1d3c95db24e116878d6afed7cf890a89a0effe62"
    10. resolution initialized to: "None"
    11. severity initialized to: "Minor"
    12. status initialized to: "Open"
    13. submitter initialized to: "anonymous"
    14. subsystem initialized to: "53. Configure and Build Tools"
    15. title initialized to:
      tcl 8.6.4 compilation on windows with msys and VS2013 fails
      
    16. type initialized to: "Bug"
  2. Ticket change [a289e895a9] (rid 141515) by jan.nijtmans on 2015-04-09 15:08:43:

    1. assignee changed to: "jan.nijtmans"
    2. login: "jan.nijtmans"
    3. mimetype: "text/plain"
  3. Ticket change [d2a434cb09] (rid 141531) by jan.nijtmans on 2015-04-10 09:25:38:

    1. closedate changed to: "2457122.89280834"
    2. closer changed to: "jan.nijtmans"
    3. icomment:
      Fixed: [c397433be321e6d93d545b98a4770fd8901d07b7|c397433be3]. Thanks for the report!
      
    4. login: "jan.nijtmans"
    5. mimetype: "text/x-fossil-wiki"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"