Hi

it's a compiler problem if you compile vith g++ 2.95 for example you can
do it but i don't know if you have more problems for the rest of the
packages in theory it's work well for linux versions like (RED HAT 7.2
...) why don't you try to install ns -2.30 it's work without problems.

Pd.: if comeone knows how to solve the proble using the patch, tell us.

bye

>
> Hi all,
>
> I've tried to install ns-allinone-2.26 and I got an error while building
> Tclcl-1.0b13.
>
> ---------------------------------------------------------------------------------------------
> configure: creating ./config.status
> config.status: creating Makefile
> rm -f embedded-tcl.cc
> ./tcl2c++ et_tcl ../lib/tcl8.3/init.tcl ../lib/tcl8.3/history.tcl
> ../lib/tcl8.3/word.tcl ../lib/tcl8.3/http2.3/http.tcl > embedded-tcl.cc
> g++ -c  -DNO_TK  -DNDEBUG -DUSE_SHM -DHAVE_LIBOTCL1_0A8 -DHAVE_OTCL_H
> -DHAVE_LIBTK8_3 -DHAVE_TK_H -DHAVE_LIBTCL8_3 -DHAVE_TCL_H
> -DSTDC_HEADERS=1 -DHAVE_STRING_H=1 -DHAVE_SNPRINTF=1 -DSTDC_HEADERS=1
> -DHAVE_STRTOQ=1 -DHAVE_STRTOLL=1 -DHAVE_SYS_TYPES_H=1
> -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1
> -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1
> -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSIZEOF_LONG=4 -DHAVE_INT64=1
> -DHAVE_TCL_H=1 -DHAVE_LIBTCL8_3=1 -DHAVE_TK_H=1 -DHAVE_LIBTK8_3=1
> -DHAVE_OTCL_H=1 -DHAVE_LIBOTCL1_0A8=1  -I.
> -I/home/irini/ns/ns-allinone-2.26/otcl-1.0a8
> -I/home/irini/ns/ns-allinone-2.26/include
> -I/home/irini/ns/ns-allinone-2.26/include -o embedded-tcl.o
> embedded-tcl.cc
> tclcl-mappings.h: In static member function 'static int
> TclObjectHelper<T>::dispatch_(void*, Tcl_Interp*, int, char**)':
> tclcl-mappings.h:51: error: incomplete type 'Tcl' used in nested name
> specifier
> tclcl-mappings.h:52: error: invalid use of undefined type 'struct Tcl'
> tclcl-mappings.h:41: error: forward declaration of 'struct Tcl'
> tclcl-mappings.h:57: error: invalid use of undefined type 'struct Tcl'
> tclcl-mappings.h:41: error: forward declaration of 'struct Tcl'
> make: *** [embedded-tcl.o] Error 1
> tclcl-1.0b13 make failed! Exiting ..
> ---------------------------------------------------------------------------------------------
>
> In the ns-2: Installation Problems, Bug Fixes, and Help webpage I found
> this:
>
> ---------------------------------------------------------------------------------------------
> Tclcl-1.0b13
>     * Problem: Tclcl doesn't build against gcc-3.4 (as in Fedora Core 3).
>     *  Solution: Fixed in current CVS. Apply this patch:
>
> --- tclcl.h~    2003-07-29 11:24:50.000000000 -0700
> +++ tclcl.h    2004-12-10 08:55:34.692584936 -0800
> @@ -45,8 +45,8 @@
>  }
>
>  #include "tclcl-config.h"
> -#include "tclcl-mappings.h"
>  #include "tracedvar.h"
> +// tclcl-mappings.h included below, AFTER definition of class Tcl
>
>  struct Tk_Window_;
>
> @@ -158,6 +158,8 @@
>      Tcl_HashTable objs_;
>  };
>
> +#include "tclcl-mappings.h"
> +
>  class InstVar;
>
>  class TclObject {
> ---------------------------------------------------------------------------------------------
>
> How do I apply this patch?? I would appreciate if you can help me
> (or even send me the correct tclcl.h header file)
>
> Thanks in advance.
>
> Regards,
> Eirini
>

Reply via email to