Compilation failed with g++
Brought to you by:
bge
I found compilation of voodoo-src-1.99.12.tar.gz
was failed with g++ ( gcc version 2.95.2 19991024
(release) ).
Here is the error message.
g++ -fpic -O2 -Wall -fno-exceptions -fno-rtti -Iinclude
-I/usr/include/tcl8.3 -DUSE_TCL_STUBS -DUSE_TK_STUBS
-DSWIGSTATIC= -c -o bin/voodoo_wrap.o
lowlevel/voodoo_wrap.cc
lowlevel/voodoo_wrap.cc: In function `int
Voodoo_Init(Tcl_Interp *)':
lowlevel/voodoo_wrap.cc:1588: implicit declaration of
function `int Tcl_InitStubs(...)'
lowlevel/voodoo_wrap.cc:1588: warning: NULL used in
arithmetic
make: *** [bin/voodoo_wrap.o] Error 1
Logged In: YES
user_id=30980
This is really a documentation bug--I believe you are using
Tcl/Tk 8.0; however, newer builds of voodoo (ever since
1.99.10 I think) require 8.3.2 to work out of the box.
You can still get it to compile under 8.0, but you'll have
to monkey with the makefile. Namely, make sure
USE_TCL_STUBS and USE_TK_STUBS are *not* defined and link
with -ltcl -ltk instead of -ltclstubs and -ltkstubs
I'm working on putting in autoconf support to solve all
build problems (I hope!). In the meantime, if you really
need to build with Tcl/Tk 8.0, I can munge the makefile for
you if you ask me nicely. :{)
Logged In: YES
user_id=137930
Thank you for your quick answer.
As you wrote, I used tcl/tk 8.04 with TurboLinux 6.0 which
caused the problem.
Now voodoo has been successfully installed on Debian (slink)
which has tcl/tk 8.2. I'm really glad I can enjoy editting
UML diagram.
So I'd like to thank you again for making this usefull
editor.