Tcl Library Source Code

View Ticket
Login
Ticket UUID: c824f2425b0b38a260c8957a16b9955a9fbac227
Title: Default configure finds Tcl 9, fails
Type: Bug Version: 1.20
Submitter: dgp Created on: 2019-12-02 13:55:14
Subsystem: (unused) Assigned To: andreas_kupries
Priority: 5 Medium Severity: Minor
Status: Open Last Modified: 2019-12-02 14:06:29
Resolution: None Closed By: nobody
    Closed on:
Description:
Since Tcl 9.0a1 is released, some Tcl'ers will be trying it out and have it installed. Following the conventional tcllib build/install instructions leads to...

$ ./configure
...
checking for tclsh... /path/to/bin/tclsh9.0
...
$ make install
...
version conflict for package "Tcl": have 9.0a1, need 8.2
    while executing
"package require Tcl 8.2"
    (file "./installer.tcl" line 10)
User Comments: dgp added on 2019-12-02 14:06:29:
For now, the proper workaround/working path is to make use of the --with-tclsh=
option to select a Tcl 8 shell to use with tcllib.

dgp added on 2019-12-02 14:05:29:
As an experiment, I changed the failing command to

package require Tcl 8.2-

and the install completed.

Trying to test then failed because the packages of tcllib understandably have not yet been revised to support Tcl 9.

That change to the command alone will fail in pre-8.5 Tcl interps. If they cannot be abandoned, some more involved conditionals will be needed to handle all the cases.