Skip to content
Tcl Source Code History Of Ticket 3546272fffffffff
Login

History Of Ticket 3546272fffffffff

Artifacts Associated With Ticket 3546272fffffffff

  1. Ticket change [e37177ddb4] (rid 87803) by nijtmans on 2012-07-20 09:51:47:

    1. assignee initialized to: "nijtmans"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      A normal build using win/Makefile, configured
      with --enable-shared (the default) produces the
      following file names:
          win/tcl86.dll
          win/tclsh86.exe
      doing the same with win/makefile.vc produces:
          win/tcl86t.dll
          win/tclsh86t.exe
      
      Doing a --disable-shared build with win/Makefile:
          win/tcl86s.dll
          win/tclsh86s.exe
      doing the same with win/makefile.vc, using
      OPTS=static,msvcrt (equivalent to
      --disable-shared in win/configure) produces:
          win/tcl86tsx.dll
          win/tclsh86tsx.exe
      
      Explanation: win/makefile.vc uses the
      following suffixes (from win/rules.vc):
      # Naming convention:
      #   t = full thread support.
      #   s = static library (as opposed to an
      #import library)
      #   g = linked to the debug enabled C
      #run-time.
      #   x = special static build when it
      #links to the dynamic C run-time.
      
      The option 't' (threads) is the default
      since 8.6, and 'x' (msvcrt) is normally
      used in combination with static
      builds to reduce the size of the
      executable (nowadays everyt win32
      system has msvcrt.dll on-board)
      
      In order to let win/makefile.vc produce
      the same executable names as win/Makefile,
      the following is proposed:
      - Invert the option OPTS=msvcrt to
        OPTS=nomsvcrt, effectively making msvcrt
        the default for both dynamic and static
        builds, as win/Makefile does
      - Invert the meaning of the options 't' and 'x'
        meaning 'no threads' and 'no msvcrt', so they
        only appear in the file name when using
        non-default builds.
      - change the path where binaries are built
        (MSVC>6) to XXX_Dynamic (by default) or
        XXX_Static (for static builds). For non-threaded
        builds, prepend 'NonThreaded' to it, for
        non-msvcrt builds, append 'X' to it.
      
      This way, no special tricks need to be done
      any more in extensions, because Tcl/Tk
      static libraries might have a 't' in the
      filename (8.6) or not (<8.6)
      
      (patch still being developed)
      
    4. foundin initialized to: "obsolete: 8.6b3"
    5. is_private initialized to: "0"
    6. priority initialized to: "5 Medium"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "nijtmans"
    10. subsystem initialized to: "50. Embedding Support"
    11. title initialized to:
      win/makefile.vc produces different files than win/Makefile
      
    12. type initialized to: "Bug"
  2. Ticket change [89ff17ee1e] (rid 127317) by mistachkin on 2012-07-21 03:38:08:

    1. icomment:
      This kind of change worries me.  It has the potential to break people who build Tcl from sources with MSVC.
      
      
    2. login: "mistachkin"
    3. mimetype: "text/plain"
    4. username: "mistachkin"
  3. Ticket change [9730fd72a8] (rid 106461) by twylite on 2012-07-21 19:04:53:

    1. icomment:
      +1 to what Joe said.  The impact is that all extensions that do "special tricks" (because they currently need to) must be changed, and can then only build against recently versions of Tcl; unchanged extensions will only build against older versions of Tcl.
      
      Ideally the whole tsgx suffix should be removed (retaining only s for static), as it is specific to the MSVC build and only serves to complicate building and debugging for those for who work on Windows.  But doing so breaks extensions builds and introduces compatibility issues as described above.  I can offer an alternative: a Windows-specific Cmake-based build that follows the *nix naming convention (and is easy to maintain, and works with all MS compilers and more).
      
      
      
    2. login: "twylite"
    3. mimetype: "text/plain"
    4. username: "twylite"
  4. Ticket change [b843011a02] (rid 128940) by nijtmans on 2012-07-23 17:52:01:

    1. icomment:
      +1 to what Joe and twylite said. compatibility is most important!
      Following that reasoning, in TIP #364, we accepted the build
      be threaded by default starting with 8.6, it doesn't say anything
      about filenames that change as a result. Using the Makefile-derived
      build, nothing changes at all. But the "makefile.vc" derived build
      doesn't adhere to that: it changes the produced filenames to be
      different from what the Makefile-derived build produces.
      > Ideally the whole tsgx suffix should be removed (retaining only s for
      > static), as it is specific to the MSVC build and only serves to complicate
      > building and debugging for those for who work on Windows
      +1 to that
      > I can offer an alternative: a Windows-specific Cmake-based build
      Please don't. One more build system to be mainained ....   ;-)
      
      
    2. login: "nijtmans"
    3. mimetype: "text/plain"
    4. username: "nijtmans"
  5. Ticket change [d0dbfd8d64] (rid 113258) by twylite on 2012-07-23 18:46:16:

    1. icomment:
      > it doesn't say anything about filenames that change as a result.
      
      Nor does it say that the file names for threaded builds under MSVC will change.
      
      The point is quite simply this: do you, as the originator of this "bug", actually build Tcl and extensions on Windows using makefile.vc on a regular or even semi-regular basis?  If not, then please stop trying to make it harder for those of us who do.  This change will break the builds of extensions that currently work, and make those extensions choose between building against 8.5 or 8.6.   
      
      > But the "makefile.vc" derived build doesn't adhere to that: it changes the produced filenames to be different from what the Makefile-derived build produces.
      
      And this has been the behaviour of makefile.vc for a long time.  I hate it, but it's now the legacy behaviour, and changing it breaks things.
      
      >> I can offer an alternative: a Windows-specific Cmake-based build
      > Please don't. One more build system to be mainained .... ;-)
      
      And more developers actually willing to work with the Tcl sources under Windows, because we'll actually be able to use the tools we're used to.  The work I did towards a fix for #3545363 is directly due to being able to use tools that I can use productively (i.e. a VC10 vcproj generated by CMake).  A Windows-specific CMake build should trivially replace the makefile.vc/rules.vc, dsp/dsw, and half a dozen other unmaintained build files for Windows.
      
      
      
    2. login: "twylite"
    3. mimetype: "text/plain"
    4. username: "twylite"
  6. Ticket change [705ba71571] (rid 136987) by jan.nijtmans on 2014-02-21 19:05:08:

    1. assignee changed to: "jan.nijtmans"
  7. Ticket change [0f10fdb453] (rid 137013) by jan.nijtmans on 2014-02-21 19:11:39:

    1. submitter changed to: "jan.nijtmans"
  8. Ticket change [67d07a4e51] (rid 200227) by jan.nijtmans on 2022-04-18 17:13:21:

    1. closedate changed to: "2459688.21760676"
    2. closer changed to: "jan.nijtmans"
    3. comment changed to:
      A normal build using win/Makefile, configured
      with --enable-shared (the default) produces the
      following file names:
          win/tcl86.dll
          win/tclsh86.exe
      doing the same with win/makefile.vc produces:
          win/tcl86t.dll
          win/tclsh86t.exe
      
      Doing a --disable-shared build with win/Makefile:
          win/tcl86s.dll
          win/tclsh86s.exe
      doing the same with win/makefile.vc, using
      OPTS=static,msvcrt (equivalent to
      --disable-shared in win/configure) produces:
          win/tcl86tsx.dll
          win/tclsh86tsx.exe
      
      Explanation: win/makefile.vc uses the
      following suffixes (from win/rules.vc):
      # Naming convention:
      #   t = full thread support.
      #   s = static library (as opposed to an
      #import library)
      #   g = linked to the debug enabled C
      #run-time.
      #   x = special static build when it
      #links to the dynamic C run-time.
      
      The option 't' (threads) is the default
      since 8.6, and 'x' (msvcrt) is normally
      used in combination with static
      builds to reduce the size of the
      executable (nowadays everyt win32
      system has msvcrt.dll on-board)
      
      In order to let win/makefile.vc produce
      the same executable names as win/Makefile,
      the following is proposed:
      - Invert the option OPTS=msvcrt to
        OPTS=nomsvcrt, effectively making msvcrt
        the default for both dynamic and static
        builds, as win/Makefile does
      - Invert the meaning of the options 't' and 'x'
        meaning 'no threads' and 'no msvcrt', so they
        only appear in the file name when using
        non-default builds.
      - change the path where binaries are built
        (MSVC>6) to XXX_Dynamic (by default) or
        XXX_Static (for static builds). For non-threaded
        builds, prepend 'NonThreaded' to it, for
        non-msvcrt builds, append 'X' to it.
      
      This way, no special tricks need to be done
      any more in extensions, because Tcl/Tk
      static libraries might have a 't' in the
      filename (8.6) or not (<8.6)
      
      (patch still being developed)
      
    4. icomment:
      Starting with Tcl 8.7, the 't' suffix is not used any more
      
    5. login: "jan.nijtmans"
    6. mimetype: "text/x-fossil-wiki"
    7. resolution changed to: "Out of Date"
    8. severity changed to: "Minor"
    9. status changed to: "Closed"