Artifacts Associated With Ticket 2948478fffffffff
Ticket change [5a2ad8db30] (rid 118093) by lvirden on 2010-02-09 13:13:33:
- assignee initialized to: "kennykb"
- cmimetype initialized to: "text/plain"
- comment initialized to:
platform sparc solaris 8 sun c compiler, tcl cvs head from tcl-20100208.tar.gz downloaded from activestate. After configure, I ran gmake genstubs and got: Emitting tclTomMath syntax error in expression "$name in $hooks($intf)": extra tokens at end of expr ession ("if" test expression) while compiling "if {$name in $hooks($intf)} { set root 0 break; }" ("if" then script line 2) while compiling "if {[info exists hooks($intf)]} { if {$name in $hooks($intf)} { set root 0 break; } }" ("foreach" body line 2) while compiling "foreach intf [array names interfaces] { if {[info exists hooks($intf)]} { if {$name in $hooks($intf)} { set root 0 break; } } }" (compiling body of proc "emitInit", line 20) invoked from within "emitInit $name text" (procedure "emitInits" line 20) invoked from within "emitInits" (procedure "genStubs::init" line 22) invoked from within "genStubs::init" (file "/vol/tclsrcsol/tcl86/tcl/tools/genStubs.tcl" line 1112) gmake: *** [genstubs] Error 1 - foundin initialized to: "obsolete: 8.6b1.1"
- is_private initialized to: "0"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "lvirden"
- subsystem initialized to: "56. LibTomMath"
- title initialized to: "gmake genstubs fail for tcl cvs head"
- type initialized to: "Bug"
Ticket change [4d00ba85ad] (rid 126991) by ferrieux on 2010-02-09 20:20:20:
- icomment:
Cannot repro on my Fedora 12 (bug GNU make also). Note that this step (genstubs) depends on a previously installed tclsh. Possibly in your case that's the system default tclsh, that can be a bit old and not support the "in" infix operator in expressions. I hurry to add that if that's the case, then indeed it is a bug, because the build system should take steps to be bootstrappable on reasonably old Tcl version. Using too new constructs like "in" that are easy to emulate is a mistake.
- login: "ferrieux"
- mimetype: "text/plain"
- username: "ferrieux"
- icomment:
Ticket change [3bd81044b1] (rid 112817) by lvirden on 2010-02-09 20:34:38:
- icomment:
The tclsh in my path is a tclsh 8.4.9 version. genStubs.tcl has a package require Tcl 8.4 in it. So the tclsh was seen as compatible by Tcl. Tcl then declared the syntax wrong. The tclsh executable is no longer created by the core build scripts. It seems, to me, that the best solution would be for the core Makefiles to use the tclsh naming conventions that it creates. Certainly people could come along and create by hand additional links, etc. but the build environment shouldn't depend on those being present.
- login: "lvirden"
- mimetype: "text/plain"
- username: "lvirden"
- icomment:
Ticket change [b83eebbee4] (rid 128936) by lvirden on 2010-02-09 20:42:44:
- icomment:
Let me clarify: > The tclsh executable is no longer created by the core build scripts. The core build scripts now build tclsh${VERSION}${EXE_SUFFIX} This name is used in a few places, but not in the genstubs target. It uses $TCL_EXE, which only uses tclsh${EXE_SUFFIX} - login: "lvirden"
- mimetype: "text/plain"
- username: "lvirden"
- icomment:
Ticket change [d94046594d] (rid 107579) by ferrieux on 2010-02-09 20:50:28:
- icomment:
Strange. Here on Linux the naked "tclsh" is generated.
- login: "ferrieux"
- mimetype: "text/plain"
- username: "ferrieux"
- icomment:
Ticket change [cb125ceef4] (rid 95462) by ferrieux on 2010-02-09 21:06:54:
- closedate changed to: "2010-02-09T14:06:54"
- closer changed to: "ferrieux"
- icomment:
OK, "in" is a 8.5ism, shouldn't be in a [package require Tcl 8.4] script. Just fixed in HEAD.
- login: "ferrieux"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"
- username: "ferrieux"
Ticket change [f085e5ea18] (rid 109208) by dkf on 2010-02-09 21:10:07:
- icomment:
An additional note: Larry, you should not have been doing 'make genstubs' anyway. It's not a target for non-maintainer use.
- login: "dkf"
- mimetype: "text/plain"
- username: "dkf"
- icomment:
Ticket change [cbbfc691eb] (rid 95573) by lvirden on 2010-02-09 21:20:47:
- icomment:
Okay. I wasn't aware that genstubs was a "no no". Thanks for the correction. I'll stop doing that. I figured that given that what was being downloaded was the CVS head, there might be a chance that the code and the generated stubs in the repository would not be in sync. Apparently, I don't have to worry about that.
- login: "lvirden"
- mimetype: "text/plain"
- username: "lvirden"
- icomment: