Prev: "::tcl::tm::UnknownHandler ::tclPkgUnknown msgcat 1.4" caused by replacing Tcl 8.4.1 with 8.5.7
Next: ANNOUNCE: Woof! 0.4 released
From: Don Porter on 4 Jan 2010 11:14 Alexander R.Povolotsky wrote: > Any ideas how I should proceed with debugging this issue ? > tclsh c:/Tornado/host/resource/hutils/tcl/makeSymTbl.tcl ppc tmp.o > symTbl.c > invalid command name "::tcl::tm::UnknownHandler" > while executing > "::tcl::tm::UnknownHandler ::tclPkgUnknown msgcat 1.4" .... First sort out whether the problem is in your Tcl install or in your program. Start tclsh with an interactive prompt and type in the same command that is failing, like so: $ tclsh % info patch 8.5.8 % ::tcl::tm::UnknownHandler ::tclPkgUnknown msgcat 1.4 % If you see the same failure, we need to debug what's broken in your Tcl install. If not we need to debug how your program is breaking Tcl's autoloader. Please followup here in either case. -- | Don Porter Mathematical and Computational Sciences Division | | donald.porter(a)nist.gov Information Technology Laboratory | | http://math.nist.gov/~DPorter/ NIST | |______________________________________________________________________|
From: Don Porter on 4 Jan 2010 13:45 Alexander R.Povolotsky wrote: > Thanks Dan = Happy New Year ! > > So I started tclsh executable > The window came up where I typed the following per your instructions > > % info patch > 8.5.8 > % ::tcl::tm::UnknownHandler ::tclPkgUnknown msgcat 1.4 > % > > So per above it appears that the failure reported by the program (it > is actuallty WindRiver Tornado stuff) did not show up that way - > right ? > > But the funny thing that after I performed shown above what you have > suggested in tclsh - the problem I originally reported > in the program which is executed in the MKS (Korn) shell window > disappered as well ! > Is there reasonable explanation for that phenomena ? The explanation that comes to mind is that you have not actually been doing what you believed you were doing, or reported that you were doing. As evidence, I notice that your interactive test is with release 8.5.8 of Tcl, but your original subject claimed troubles with 8.5.7. I don't know exactly where reality and your reports diverge, but the explanation must be in there somewhere. -- | Don Porter Mathematical and Computational Sciences Division | | donald.porter(a)nist.gov Information Technology Laboratory | | http://math.nist.gov/~DPorter/ NIST | |______________________________________________________________________|
From: Don Porter on 4 Jan 2010 14:13 Alexander R.Povolotsky wrote: > tclsh c:/Tornado/host/resource/hutils/tcl/makeSymTbl.tcl ppc tmp.o > symTbl.c > invalid command name "::tcl::tm::UnknownHandler" > while executing > "::tcl::tm::UnknownHandler ::tclPkgUnknown msgcat 1.4" .... > "puts $makeSymTbl::fdOut " * ON [clock format [clock > seconds]]"" > (file "c:/Tornado/host/resource/hutils/tcl/makeSymTbl.tcl" line > 334) Ok, so something in makeSymTbl.tcl (or something else it brings to the party) is breaking Tcl's mechanisms for creating the missing command. To pare down the causes, replace the failing command ("puts $make....") with a debugging command: puts stdout [array get ::auto_index *ownHand*] This assumes that 'stdout' is something you can see, so you get the debug information. Revise as needed if that is not true. -- | Don Porter Mathematical and Computational Sciences Division | | donald.porter(a)nist.gov Information Technology Laboratory | | http://math.nist.gov/~DPorter/ NIST | |______________________________________________________________________|
From: Don Porter on 6 Jan 2010 11:03 Alexander R.Povolotsky wrote: > puts stdout [array get ::auto_index *] > but for me (on my PC) this modification didn't produce the output Change to: puts stdout [array size ::auto_index] and report whatever you see. -- | Don Porter Mathematical and Computational Sciences Division | | donald.porter(a)nist.gov Information Technology Laboratory | | http://math.nist.gov/~DPorter/ NIST | |______________________________________________________________________|
From: Don Porter on 6 Jan 2010 11:50
Alexander R.Povolotsky wrote: > while inserted into > makeSymTbl.tcl, > which is executed within my application > > puts stdout [array size ::auto_index] > > gives 0 in its output Does the file makeSymTbl.tcl provide its own definition of the [unknown] command, replacing the one from Tcl's script library? -- | Don Porter Mathematical and Computational Sciences Division | | donald.porter(a)nist.gov Information Technology Laboratory | | http://math.nist.gov/~DPorter/ NIST | |______________________________________________________________________| |