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

Maris Nartiss maris.gis at gmail.com
Tue Jan 20 05:20:48 EST 2009


Hello,
there was similar issue reported on Mac. It comes from tcl.h where
they recommend not to use result:
  463 typedef struct Tcl_Interp {
  464     /* TIP #330: Strongly discourage extensions from using the
string result. */
  465 #ifdef USE_INTERP_RESULT

I'm not a make process guru to propose solution.
Maris.


2009/1/20, Markus Neteler <neteler at osgeo.org>:
> 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
> _______________________________________________
> grass-dev mailing list
> grass-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-dev
>


More information about the grass-dev mailing list