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
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@osgeo.org>:
hi,
I tried to compile GRASS on Mandriva Cooker which comes (currently)
with
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
On Tue, Jan 20, 2009 at 11:20 AM, Maris Nartiss <maris.gis@gmail.com> wrote:
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
Yes, it is
In short - no one has eliminated old tcl/tk versions out there. Any
patch needs to work with old and new approach too. Also forms isn't
the only place where interp result is used (lazy to grep)
Maris.
2009/1/21 Markus Neteler <neteler@osgeo.org>:
On Tue, Jan 20, 2009 at 11:20 AM, Maris Nartiss <maris.gis@gmail.com> wrote:
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
On Wed, Jan 21, 2009 at 5:58 PM, Maris Nartiss <maris.gis@gmail.com> wrote:
Yes, it is
In short - no one has eliminated old tcl/tk versions out there. Any
patch needs to work with old and new approach too. Also forms isn't
the only place where interp result is used (lazy to grep)
This is the list:
./lib/form/form.c
./vector/v.digit/form.c
./visualization/nviz/src/anim_support.c
./visualization/nviz/src/cutplane_obj.c
./visualization/nviz/src/do_zoom.c
./visualization/nviz/src/draw.c
./visualization/nviz/src/exag.c
./visualization/nviz/src/lights.c
./visualization/nviz/src/map_obj.c
./visualization/nviz/src/misc.c
./visualization/nviz/src/mkdspf_main.c
./visualization/nviz/src/nvizAppInit.c
./visualization/nviz/src/nviz_init.c
./visualization/nviz/src/position.c
./visualization/nviz/src/togl_flythrough.c
./visualization/nviz/src/volume.c
I am willing to fix it if someone tells me how.
The lack of ./lib/form/form.c fix breaks some more modules,
so that's of priority.
On Wed, Jan 21, 2009 at 6:15 PM, Markus Neteler <neteler@osgeo.org> wrote:
On Wed, Jan 21, 2009 at 5:58 PM, Maris Nartiss <maris.gis@gmail.com> wrote:
In short - no one has eliminated old tcl/tk versions out there. Any
patch needs to work with old and new approach too. Also forms isn't
the only place where interp result is used (lazy to grep)
This is the list:
./lib/form/form.c
./vector/v.digit/form.c
./visualization/nviz/src/anim_support.c
./visualization/nviz/src/cutplane_obj.c
./visualization/nviz/src/do_zoom.c
./visualization/nviz/src/draw.c
./visualization/nviz/src/exag.c
./visualization/nviz/src/lights.c
./visualization/nviz/src/map_obj.c
./visualization/nviz/src/misc.c
./visualization/nviz/src/mkdspf_main.c
./visualization/nviz/src/nvizAppInit.c
./visualization/nviz/src/nviz_init.c
./visualization/nviz/src/position.c
./visualization/nviz/src/togl_flythrough.c
./visualization/nviz/src/volume.c
I am willing to fix it if someone tells me how.
The lack of ./lib/form/form.c fix breaks some more modules,
so that's of priority.
On Tue, Jan 20, 2009 at 11:20 AM, Maris Nartiss <maris.gis@gmail.com> wrote:
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.
What do you need? I have added TCL_VERSION to
configure which is now set as well.
In IRC, #tcl channel they suggested
Tcl_GetString(Tcl_GetObjResult(interp))
to me.
?