[Pkg-tcltk-devel] need for /usr/bin/tcl
    Konstantin Khomoutov 
    flatworm at users.sourceforge.net
       
    Sun Sep 10 10:36:48 UTC 2006
    
    
  
On Sun, Sep 10, 2006 at 12:18:09AM -0400, James R. Van Zandt wrote:
[...]
>   #!/usr/bin/tclsh8.3
>   package require Tclx
> segfaults even before the first utterance.
>   #!/usr/bin/tclsh8.4
>   load libtclx8.4.so.1
> segfaults after the first utterance.
>   #!/usr/bin/tclsh8.4
>   package require Tclx
> segfaults after the first utterance.
> strace shows the segfaults are at a "select" command.
[...]
I can suggest that the tclx8.3 has a bug: its pkgIndex.tcl file has
such [package ifneeded] command which picks whatever latest version of
the shared library it finds. If there's tclx8.4 also installed, requiring
tclx under 8.3 Tcl interpreter will load the 8.4's shared library
that will probably crash on on certain Tclx commands.
I tried to run Tkabber with wish 8.3 and stomped on this issue. Tkabber
failed on some string operation.
Adding explicit version to the [package ifneeded] command in pkgIndex.tcl
solved the problem.
    
    
More information about the Pkg-tcltk-devel
mailing list