Overview
| Artifact ID: | 5c4ea4dabdc76e3664f91ba5c62f758904dfcdca |
|---|---|
| Ticket: | 617689ffffffffffffffffffffffffffffffffff
egcs-2.91.66 breaks ! in [expr] |
| User & Date: | rkroll on 2002-10-02 18:36:07 |
Changes
- assignee changed to: "nobody"
- cmimetype changed to: "text/plain"
- comment changed to:
tclsh fails to load the init.tcl file. The ::auto_load variable is not set as a result of a failure of the program control logic. This problem is does not seem to be related to auto_path or finding the correct installation directories. This bug occures on Sun Sparc. john@tdc : uname -a SunOS tdc 5.8 Generic_108528-15 sun4u sparc SUNW,Sun-Fire-880 This bug occures for a fairly old version of gcc. john@tdc : gcc -v gcc version egcs-2.91.66 19990314 (egcs-1.1.2 release) This bug does not occure for the Sun compiler john@tdc : cc -V cc: Sun WorkShop 6 update 1 C 5.2 Patch 109513-10 2002/04/16 There are no TCL related environment variables set. john@tdc : printenv | grep -i tcl PWD=/home/john/tclsrc MMTITCL=/data/mmti/tcl At the top of init.tcl logic (an if statement) exists to set the default value of ::auto_load. This logic fails and causes tclsh to fail. Typing some simple commands to evaluate the situation reveals the [if] is broken for this case. The return from [info exists ::auto_path] is not properly negated by ! and passed to [if] although simple [if] logic seems ok? I have left this installation on my disk. Contact me if you need more info. John Roll [email protected] The 8.4.0 distribution was retrieved from sourceforge. mkdir tclsrc cd tclsrc gzip -d < ../tcl8.4.0-src.tar.gz | tar xvf - cd tcl8.4.0/unix ./configure --prefix=/home/john/tclsrc make make runtest LD_LIBRARY_PATH=`pwd`:; export LD_LIBRARY_PATH; \ TCL_LIBRARY="/home/john/tclsrc/tcl8.4.0/library"; export TCL_LIBRARY; \ ./tcltest application-specific initialization failed: Can't find a usable init.tcl in ... long stack trace omitted here This probably means that Tcl wasn't installed properly. % if { 1 } { puts True } True % set xx 1 1 % if { $xx } { puts True } True % if { !$xx } { puts True } % % puts [info exists auto_path] 0 % if { ![info exists ::auto_path] } { puts True } % - foundin changed to: "obsolete: 8.4.0"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "rkroll"
- subsystem changed to: "None"
- title changed to: "tclsh fails to source init.tcl"
- type changed to: "Bug"