Skip to content
Tcl Source Code History Of Ticket fc35093ce
Login

History Of Ticket fc35093ce

Artifacts Associated With Ticket fc35093ce

  1. Ticket change [b274b92a72] (rid 236398) by jan.nijtmans on 2025-01-03 15:02:11:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/x-fossil-wiki"
    4. comment initialized to:
      If a shared library compiled for Tcl 8.x is loaded in Tcl 9.0, the error-message is: "interpreter uses an incompatible stubs mechanism".
      
      We can do better than that, because Tcl 9.0 has a different 'magic' value which is unique compared to other possible error-situations.
      
      Proposal: "this extension is compiled for Tcl 8.x"
      
    5. foundin initialized to: "9.0"
    6. is_private initialized to: "0"
    7. login: "jan.nijtmans"
    8. priority initialized to: "5 Medium"
    9. private_contact initialized to: "0c50e5320704d174412e57b873d8932de15303e0"
    10. resolution initialized to: "None"
    11. severity initialized to: "Minor"
    12. status initialized to: "Open"
    13. submitter initialized to: "jan.nijtmans"
    14. subsystem initialized to: "40. Dynamic Loading"
    15. title initialized to:
      Better error-message than "interpreter uses an incompatible stubs mechanism"
      
    16. type initialized to: "Bug"
  2. Ticket change [00f24cc602] (rid 236403) by jan.nijtmans on 2025-01-03 16:52:05:

    1. assignee changed to: "jan.nijtmans"
    2. icomment:
      Implementation giving the improved error-message: [4260a19710f69a03|here]
      
    3. login: "jan.nijtmans"
    4. mimetype: "text/x-fossil-wiki"
  3. Ticket change [9221409742] (rid 236470) by jan.nijtmans on 2025-01-07 12:31:48:

    1. closedate changed to: "2460683.02209233"
    2. closer changed to: "jan.nijtmans"
    3. icomment: "Fixed [7704f91f2ee08a30|here]"
    4. login: "jan.nijtmans"
    5. mimetype: "text/x-fossil-wiki"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
  4. Ticket change [9f6a55a523] (rid 239853) by sbron on 2025-05-06 09:05:33:

    1. closer changed to: "nobody"
    2. icomment:
      The current fix will produce the "this extension is compiled for Tcl 8.x" error message for any library with an incompatible stubs mechanism. While that describes the only reason that can happen at present, it fails to take into account that there may be incompatible changes to the stubs mechanism in the future. I can imagine that at some point in the future there may be a Tcl 10 with yet another change to the stubs mechanism. Loading an extension compiled for Tcl 10 into Tcl 9 would then also give the (misleading) indication that the extension was compiled for Tcl 8.x.
      
      I suppose the easiest fix is to change the message to "this extension is compiled for a different Tcl major version", assuming incompatible changes to the stubs mechanism only happen in a major version. Alternative, in case "major version" is considered jargon that may not be clear to the average user, "this extension is not compiled for Tcl 9.x"
      
    3. login: "sbron"
    4. mimetype: "text/x-fossil-wiki"
    5. status changed to: "Open"
  5. Ticket change [4f91ddb809] (rid 239868) by jan.nijtmans on 2025-05-06 09:27:41:

    1. closedate changed to: "2460801.89422855"
    2. closer changed to: "jan.nijtmans"
    3. icomment:
      Don't worry, all you are mentioning is already taken into account.
      
      See: [https://core.tcl-lang.org/tcl/file?name=generic/tclStubLib.c&ci=399d648cc325acd7&ln=80-97]
      
    4. login: "jan.nijtmans"
    5. mimetype: "text/x-fossil-wiki"
    6. status changed to: "Closed"
  6. Ticket change [a1c591e4d7] (rid 239871) by dgp on 2025-05-06 13:31:07:

    1. closedate changed to: "2460802.06328356"
    2. closer changed to: "dgp"
    3. icomment: "Related background is found here [3588687]"
    4. login: "dgp"
    5. mimetype: "text/x-markdown"