Hi
I compiled Grass 5.0beta5 on Suse 6.3 (kernel 2.2.13). After that I tried to
compile Nviz 2.2. It stopped with the following error message:
**********************************************
usr/src/grass5.0beta/src/libes/ogsf
make -f OBJ.i686-linux-elf/make.rules
make[2]: Entering directory `/usr/src/grass5.0beta/src/libes/ogsf'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/usr/src/grass5.0beta/src/libes/ogsf'
touch nviz_init.c
rm -f OBJ.i686-linux-elf/tkAppInit.o
gcc -g -O2 -I/usr/src/grass5.0beta/src/libes/ogsf -I/usr/src/grass5.0beta/src/mapdev/Vlib -I/usr/src/grass5.0beta/src/mapdev/diglib -D_NO_PROTO -D__STDC__ -I/usr/include -I/usr/include/GL -I/usr/include/X11 -DSRC_BOOT=\"/usr/local/grass-5.0b/etc/nviz2.2/scripts\" -I /usr/src/grass5.0beta/src/libes/LIB.i686-linux-elf/libgis.a -I/usr/src/grass5.0beta/src/include -c tkAppInit.c
In file included from togl.h:19,
from tkAppInit.c:8:
tkInt.h:42: conflicting types for `Tk_PostscriptInfo'
/usr/include/tk.h:109: previous declaration of `Tk_PostscriptInfo'
make[1]: *** [OBJ.i686-linux-elf/tkAppInit.o] Error 1
make[1]: Leaving directory `/usr/src/grass5.0beta/src.contrib/GMSL/NVIZ2.2/src'
make: *** [nvwish] Error 2
*****************************
What this error means? I installed the Tcl/Tk from the SUSE 6.3 distribution.
Kurt Gerber
Hi Markus
I have Tcl/Tk 8.0.5 installed. It seems, that Suse 6.3 contains only this new
one and no more the old libraries...
So the problem seems to be more complicated. Should I better download the
binaries?
On Die, 11 Jan 2000, you wrote:
Hi Kurt,
please check (especially as you are using SuSe) if you have
installed Tcl/TK 8.0.5. Up to SuSe 6.2 the tcl/tk library
versions have been 7.6 and 4.x, the new versions were called
tcl_new and tk_new (in YAST install program). I don't know
if SuSe finally changed to tcl/tk 8.x now for the standard
installation.
Check:
/usr/local/include/tk.h
/usr/local/include/tcl.h
Or
/usr/include/tk.h
/usr/include/tcl.h
for the version number.
It should look like this:
#define TK_MAJOR_VERSION 8
#define TK_MINOR_VERSION 0
#define TK_RELEASE_LEVEL 2
#define TK_RELEASE_SERIAL 5
#define TK_VERSION "8.0"
#define TK_PATCH_LEVEL "8.0.5"
Cheers
Markus
PS: Please aware of include file confusion if you have *both*
libraries installed. Then it depends on the path order which
tk.h/tcl.h is read first (should be 8.0.5).
On Mon, Jan 10, 2000 at 08:42:43PM +0100, Kurt Gerber wrote:
Hi
I compiled Grass 5.0beta5 on Suse 6.3 (kernel 2.2.13). After that I tried to
compile Nviz 2.2. It stopped with the following error message:
**********************************************
usr/src/grass5.0beta/src/libes/ogsf
make -f OBJ.i686-linux-elf/make.rules
make[2]: Entering directory `/usr/src/grass5.0beta/src/libes/ogsf'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/usr/src/grass5.0beta/src/libes/ogsf'
touch nviz_init.c
rm -f OBJ.i686-linux-elf/tkAppInit.o
gcc -g -O2 -I/usr/src/grass5.0beta/src/libes/ogsf -I/usr/src/grass5.0beta/src/mapdev/Vlib -I/usr/src/grass5.0beta/src/mapdev/diglib -D_NO_PROTO -D__STDC__ -I/usr/include -I/usr/include/GL -I/usr/include/X11 -DSRC_BOOT=\"/usr/local/grass-5.0b/etc/nviz2.2/scripts\" -I /usr/src/grass5.0beta/src/libes/LIB.i686-linux-elf/libgis.a -I/usr/src/grass5.0beta/src/include -c tkAppInit.c
In file included from togl.h:19,
from tkAppInit.c:8:
tkInt.h:42: conflicting types for `Tk_PostscriptInfo'
/usr/include/tk.h:109: previous declaration of `Tk_PostscriptInfo'
make[1]: *** [OBJ.i686-linux-elf/tkAppInit.o] Error 1
make[1]: Leaving directory `/usr/src/grass5.0beta/src.contrib/GMSL/NVIZ2.2/src'
make: *** [nvwish] Error 2
*****************************
What this error means? I installed the Tcl/Tk from the SUSE 6.3 distribution.
Kurt Gerber