Re: errors building itcl with tcl8.5



impm001@xxxxxxxxx wrote:

Hi all,

I am trying to build itcl3.2.1 with tcl/tk8.5.0( open source
downloaded from sourceforge.net), and it is giving build errors.
Looks like the some struct definitions( Var, TclVarHashTable in
tclInt.h)has changed in tcl8.5, and the itcl code is still looking for
the way these were defined in tcl8.4.13.

Some of these errors are:
..\generic\itcl_class.c(522) : error C2039: 'refCount' : is not a
member of 'Var'
<mysbx>/tcl/tcl8.5.0\generic\tclInt.h(528) : see declaration
of 'Var'
..\generic\itcl_class.c(533) : warning C4133: 'function' :
incompatible types - from 'Tcl_HashTable *' to 'TclVarHashTable *'
..\generic\itcl_class.c(1105) : error C2039: 'name' : is not a member
of 'Var'
<mysbx>/tcl/tcl8.5.0\generic\tclInt.h(528) : see declaration
of 'Var'
..\generic\itcl_class.c(1124) : error C2039: 'findProc' : is not a
member of 'TclVarHashTable'
<mysbx>/tcl/tcl8.5.0\generic\tclInt.h(203) : see declaration
of 'TclVarHashTable'
..\generic\itcl_class.c(1424) : error C2039: 'findProc' : is not a
member of 'TclVarHashTable'
<mysbx>/tcl/tcl8.5.0\generic\tclInt.h(203) : see declaration
of 'TclVarHashTable'

itcl_migrate.c
..\generic\itcl_migrate.c(131) : error C2039: 'name' : is not a member
of 'Var'
<mysbx>/tcl/tcl8.5.0\generic\tclInt.h(528) : see declaration
of 'Var'
..\generic\itcl_migrate.c(132) : error C2039: 'nsPtr' : is not a
member of 'Var'
<mysbx>/tcl/tcl8.5.0\generic\tclInt.h(528) : see declaration
of 'Var'
..\generic\itcl_migrate.c(133) : error C2039: 'hPtr' : is not a member
of 'Var'
<mysbx>/tcl/tcl8.5.0\generic\tclInt.h(528) : see declaration
of 'Var'
..\generic\itcl_migrate.c(134) : error C2039: 'refCount' : is not a
member of 'Var'
<mysbx>/tcl/tcl8.5.0\generic\tclInt.h(528) : see declaration
of 'Var'
..\generic\itcl_migrate.c(135) : error C2039: 'tracePtr' : is not a
member of 'Var'
<mysbx>/tcl/tcl8.5.0\generic\tclInt.h(528) : see declaration
of 'Var'
..\generic\itcl_migrate.c(136) : error C2039: 'searchPtr' : is not a
member of 'Var'
<mysbx>/tcl/tcl8.5.0\generic\tclInt.h(528) : see declaration
of 'Var'
..\generic\itcl_migrate.c(137) : error C2065: 'VAR_SCALAR' :
undeclared identifier
..\generic\itcl_migrate.c(137) : error C2065: 'VAR_UNDEFINED' :
undeclared identifier
itcl_methods.c
..\generic\itcl_methods.c(1163) : error C2065: 'VAR_SCALAR' :
undeclared identifier
..\generic\itcl_methods.c(1875) : error C2065: 'VAR_UNDEFINED' :
undeclared identifier

Does anyone know if there is a patch available, or this is fixed
somewhere?

Thanks,
Mona.
you can only use itcl 3.4 to build with tcl 8.5.x, as there have been a lot
of source adaptions in itcl for that.

Arnulf (apw)
.