Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 9f6a55a5233d7ae2d34de22ac8831f2396037fc7221baf7a128d83afd445cec6
Ticket: fc35093cef269e906512ad028d7590f883edb0fe
Better error-message than "interpreter uses an incompatible stubs mechanism"
User & Date: sbron on 2025-05-06 09:05:33
Changes

  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"