[GRASS-dev] lib/form/ and Tcl 8.6 compile problem

Markus Neteler neteler at osgeo.org
Mon Jan 19 17:02:07 EST 2009


hi,

I tried to compile GRASS on Mandriva Cooker which comes (currently)
with

rpm -qa | grep tcl
tcl-8.6-0.b1.1mdv2009.1
libtcl-devel-8.6-0.b1.1mdv2009.1
libtcl8.6-8.6-0.b1.1mdv2009.1

I get this problem with 6.4:

cd lib/form/
make
...
gcc -I/home/guest/rpm/BUILD/grass-6.4/dist.i686-pc-linux-gnu/include
-g -O2    -fPIC   -DPACKAGE=\""grasslibs"\"
-DPACKAGE=\""grasslibs"\"
-I/home/guest/rpm/BUILD/grass-6.4/dist.i686-pc-linux-gnu/include -o
OBJ.i686-pc-linux-gnu/form.o -c form.c
form.c: In function 'submit':
form.c:195: error: 'Tcl_Interp' has no member named 'result'
make: *** [OBJ.i686-pc-linux-gnu/form.o] Error 1

The code looks like this:
   190              else {
   191                  memset(buf, '\0', strlen(buf));
   192                  ret = Tcl_UtfToExternal(interp,
   193
Tcl_GetEncoding(interp,
   194
G__getenv
   195
("GRASS_DB_ENCODING")),
   196                                          Columns[i].value,
   197
strlen(Columns[i].value), 0, NULL,
   198                                          buf, 2000, NULL, NULL,
NULL);

Any idea how to solve this?

Markus


More information about the grass-dev mailing list