[ns] NS2 make error

lekkie omotayo lekkie.aydot at gmail.com
Thu Jan 5 05:06:52 PST 2006


> Hi guys,
> I dunno why am encountering this but I thot if I come to this channel
> experts could help me out on it.
> I downloaded the ns-allinone2.26 version. When i tried installing, using
> the instal script,  it shows the folowing error.
>
> [root at inetgateway tclcl-1.0b13]# make
> gcc -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/styx/ns2/ns-
> allinone-2.26/otcl-1.0a8 -I/home/styx/ns2/ns-allinone-2.26/tk8.3.2/generic
> -I/home/styx/ns2/ns-allinone-2.26/tcl8.3.2/generic -o tcl2c++.o tcl2c++.c
> rm -f tcl2c++
> g++   -o tcl2c++ tcl2c++.o
> 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/styx/ns2/ns-
> allinone-2.26/otcl-1.0a8 -I/home/styx/ns2/ns-allinone-2.26/tk8.3.2/generic
> -I/home/styx/ns2/ns-allinone-2.26/tcl8.3.2/generic -o Tcl.o 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: *** [Tcl.o] Error 1
>
>
I realy don't know why it does this. I tried compiling the packages ne after
the other tcl, tk, otcl, tclcl in this order when I got to ns it gave same
err.

>
> Does anyone know wot's happening?
>


More information about the Ns-users mailing list