[GRASSLIST:726] Trouble compiling NVIZ

I am trying to compile NVIZ on MacOSX 10.2.6, GRASS 5.0.2 and tcl/tk 8.4. I get this error.

gcc -I/Users/dave/grass5.0.2/src/include -g -O2 -I/sw/include -I/usr/X11R6/include -I/Users/dave/grass5.0.2/src/libes/ogsf -D_NO_PROTO -D__STDC__ -I/sw/include/postgresql/libpq -c nvizAppInit.c -o OBJ.powerpc-apple-darwin6.6/nvizAppInit.o
In file included from nvizAppInit.c:9:
interface.h:257: conflicting types for `Tk_SetAppName'
/sw/include/tkDecls.h:573: previous declaration of `Tk_SetAppName'
make: *** [OBJ.powerpc-apple-darwin6.6/nvizAppInit.o] Error 1

How can I resolve this?

Dave

David Mahoney wrote:

I am trying to compile NVIZ on MacOSX 10.2.6, GRASS 5.0.2 and tcl/tk
8.4. I get this error.

gcc -I/Users/dave/grass5.0.2/src/include -g -O2 -I/sw/include
-I/usr/X11R6/include -I/Users/dave/grass5.0.2/src/libes/ogsf
-D_NO_PROTO -D__STDC__ -I/sw/include/postgresql/libpq -c
nvizAppInit.c -o OBJ.powerpc-apple-darwin6.6/nvizAppInit.o
In file included from nvizAppInit.c:9:
interface.h:257: conflicting types for `Tk_SetAppName'
/sw/include/tkDecls.h:573: previous declaration of `Tk_SetAppName'
make: *** [OBJ.powerpc-apple-darwin6.6/nvizAppInit.o] Error 1

How can I resolve this?

5.0.2 only works with Tcl/Tk versions up to 8.3; for 8.4, you need the
attached patch.

--
Glynn Clements <glynn.clements@virgin.net>

(attachments)

Tk_SetAppName.patch (582 Bytes)

On tirsdag, jul 15, 2003, at 20:46 Europe/Copenhagen, David Mahoney wrote:

I am trying to compile NVIZ on MacOSX 10.2.6, GRASS 5.0.2 and tcl/tk 8.4. I get this error.

gcc -I/Users/dave/grass5.0.2/src/include -g -O2 -I/sw/include -I/usr/X11R6/include -I/Users/dave/grass5.0.2/src/libes/ogsf -D_NO_PROTO -D__STDC__ -I/sw/include/postgresql/libpq -c nvizAppInit.c -o OBJ.powerpc-apple-darwin6.6/nvizAppInit.o
In file included from nvizAppInit.c:9:
interface.h:257: conflicting types for `Tk_SetAppName'
/sw/include/tkDecls.h:573: previous declaration of `Tk_SetAppName'
make: *** [OBJ.powerpc-apple-darwin6.6/nvizAppInit.o] Error 1

How can I resolve this?

I had the same problem, and I reported it as a bug, see http://intevation.de/rt/webrt?serial_num=2009

Magnus