As recently discussed on CLT, the shared
Expect library can only [load] into a Tcl
interpreter of the same version, or later
compatible version, as it was compiled
For a particular example, an Expect shared
library compiled against the Tcl 8.4 headers
will not successfully [load] into a Tcl 8.3
For that reason, in an incompatible interperter,
the [load] command should never be registered
by a [package ifneeded] call, as it is doomed to
Here is a patch that adds a filter to Expect's
pkgIndex.tcl file so that the [package ifneeded]
command only runs if the Tcl interpreter is
of a compatible version to the particular
build of Expect that is installed.
Log in to post a comment.