Skip to content
Tcl Source Code View Ticket
Login

View Ticket

Not Executing correct thread library

Closed / Invalid74ed4113273bb99312fae41f475115d318bca613Created 6 years agoUpdated 6 years ago
Descriptionplain2021-02-19 08:13:46
We have a kit and it has it's own tcl thread library, libthread2.8.2.so
But I want use the library which exist at this path, /common/pkgs/tcltk/v8.6.5/lib/thread2.7.3
Therefore I have appended the same in :auto_path" but problem is, it is not accepting my library(libthread2.7.3). It is still executing with it's own kit's tcl thread library (libthread2.8.2).

Could you please explain the reason ?

my_tcl_file.tcl

set auto_path [linsert $auto_path 0 /common/pkgs/tcltk/v8.6.5/lib/thread2.7.3]
puts "auto_path :: $auto_path"
auto_path :: /common/pkgs/tcltk/v8.6.5/lib/thread2.7.3 /install_kit/tools/tcl/lib64

package require Thread
2.8.2
exit
arvind29 Ticket [74ed411327]: 3 changes [History diff]2021-02-19 08:15:57
arvind29 Ticket [74ed411327]: 3 changes [History diff]2021-02-19 08:16:56
arvind29 Ticket [74ed411327]: 3 changes [History diff]2021-02-19 08:18:17
arvind29 Ticket [74ed411327]: 2 changes [History diff]2021-02-19 08:18:18
jan.nijtmanswiki2021-02-19 09:33:55

Try:

package require -exact Thread 2.7.3

If you don't supply a version number to the "package require", the highest available version will be used. Since the kit version is higher, that's the one chosen.

Log in (anonymous is fine) to add a comment.