Skip to content
Tcl Source Code History Of Ticket b89209f5cd
Login

History Of Ticket b89209f5cd

Artifacts Associated With Ticket b89209f5cd

  1. Ticket change [a720c2ad44] (rid 190659) by ralfixx on 2021-01-04 18:05:16:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/plain"
    4. comment initialized to:
      When compiling with Visual Studio 2019 on Windows, using the Msys shell to
      run the configure script, I get an error:
      
          /bin/bash ./configure --enable-threads --disable-symbols --enable-64bit
          ...
          make RC=rc STLIB_LD="link.exe -lib -nologo" SHLIB_LD="link.exe -dll -incremental:no -nologo"
          ...
          cl -nologo [...] tclAppInit.obj tcl86.dll.a tclstub86.lib [...] \
                    tclsh.res -Fe"tclsh86.exe" -link [...]
            cl : Befehlszeile warning D9024 : Unbekannter Typ der Quelldatei "tcl86.dll.a", Objektdatei wird angenommen.
            LINK : fatal error LNK1181: Eingabedatei "tcl86.dll.a" kann nicht geƶffnet werden.
      
      Reason for the error is the "tcl86.dll.a" argument which is wrong IMHO (it
      should be tcl86.lib, see below).
      
      The same process runs fine with 8.6.10:
      
           /bin/bash ./configure --enable-threads --disable-symbols --enable-64bit
           ...
           make RC=rc STLIB_LD="link.exe -lib -nologo" SHLIB_LD="link.exe -dll -incremental:no -nologo"
           ...
           cl -nologo [...] tclAppInit.obj tcl86.lib tclstub86.lib [...] \
              tclsh.res -Fe"tclsh86.exe" -link [...]
      
      As you can see, here "tcl86.lib" is used.
      
      Reason is to be found in the win/configure script, where the single line
      from 8.6.10
          eval "TCL_LIB_FILE=\"${LIBPREFIX}tcl${VER}${LIBSUFFIX}\""
      was replaced in 8.6.11 by
          if test ${SHARED_BUILD} = 0 ; then
           eval "TCL_LIB_FILE=\"${LIBPREFIX}tcl${VER}${LIBSUFFIX}\""
          else
           eval "TCL_LIB_FILE=\"${LIBPREFIX}tcl${VER}${DLLSUFFIX}.a\""
          fi
      
      
      But this is plain wrong when using the Visual Studio compiler.
      
      Unfortunately I'm not fluent in configure, so I can't provide a patch
      to resolve this.
      
    5. foundin initialized to: "8.6.11"
    6. is_private initialized to: "0"
    7. login: "ralfixx"
    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: "ralfixx"
    14. subsystem initialized to: "53. Configuration and Build Tools"
    15. title initialized to: "compilation error Windows 10 / Visual Studio 2019"
    16. type initialized to: "Bug"
  2. Ticket change [b6990ccea3] (rid 190660) by jan.nijtmans on 2021-01-04 19:22:29:

    1. assignee changed to: "jan.nijtmans"
    2. login: "jan.nijtmans"
    3. mimetype: "text/plain"
  3. Ticket change [4ce9823e1a] (rid 190691) by ralfixx on 2021-01-05 13:48:05:

    1. icomment:
      There is a section in win/configure.in which addresses the same issue for zlib:
      
          AS_IF([test "$GCC" == "yes"],[
            AC_SUBST(ZLIB_LIBS,[\${ZLIB_DIR_NATIVE}/win64/libz.dll.a])
          ], [
            AC_SUBST(ZLIB_LIBS,[\${ZLIB_DIR_NATIVE}/win64/zdll.lib])
          ])
      
      IMHO something along these lines should be applied to TCL_LIB_FILE, too.
      
    2. login: "ralfixx"
    3. mimetype: "text/plain"
  4. Ticket change [8907a738d5] (rid 190706) by ralfixx on 2021-01-05 16:22:56:

    1. icomment:
      Maybe this patch should do it:
      
      diff -u tcl8.6.11/win/configure.in\~ tcl8.6.11/win/configure.in
      --- tcl8.6.11/win/configure.in~	2020-12-11 18:46:23.000000000 +0100
      +++ tcl8.6.11/win/configure.in	2021-01-05 17:15:36.311792936 +0100
      @@ -311,7 +311,7 @@
       eval "TCL_BUILD_STUB_LIB_PATH=\"`$CYGPATH $(pwd)`/${TCL_STUB_LIB_FILE}\""
       eval "TCL_STUB_LIB_PATH=\"${libdir}/${TCL_STUB_LIB_FILE}\""
       
      -if test ${SHARED_BUILD} = 0 ; then
      +if test ${SHARED_BUILD} = 0 -o "$GCC" != "yes" ; then
        eval "TCL_LIB_FILE=\"${LIBPREFIX}tcl${VER}${LIBSUFFIX}\""
       else
        eval "TCL_LIB_FILE=\"${LIBPREFIX}tcl${VER}${DLLSUFFIX}.a\""
      
      Diff finished.  Tue Jan  5 17:15:43 2021
      
    2. login: "ralfixx"
    3. mimetype: "text/plain"
  5. Ticket change [c348d76258] (rid 191010) by jan.nijtmans on 2021-01-13 10:55:25:

    1. closedate changed to: "2459227.95515309"
    2. closer changed to: "jan.nijtmans"
    3. icomment:
      Fixed now in all active branches. Thanks for the report and patch!
      
    4. login: "jan.nijtmans"
    5. mimetype: "text/x-fossil-wiki"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"