Hi all,

I'm trying to install TeNS (The Enhanced Network Simulator) and I have not
find any way to do it.

This program works only with the NS version 2.1b9a. I try to install this ns
version but when I execute ./install the installation fails. Some of the
modules can be correctly installed but it stop at the Tclcl-1.0b12configuration.

The error that gives me is the following:


* Build Tclcl-1.0b12

============================================================

No .configure file found in current directory

Continuing with default options...

checking build system type... i686-pc-linux-gnu

checking host system type... i686-pc-linux-gnu

checking target system type... i686-pc-linux-gnu

checking for gcc... gcc

checking for C compiler default output... a.out

checking whether the C compiler works... yes

checking whether we are cross compiling... no

checking for executable suffix...

checking for object suffix... o

checking whether we are using the GNU C compiler... yes

checking whether gcc accepts -g... yes

checking for g++... g++

checking whether we are using the GNU C++ compiler... yes

checking whether g++ accepts -g... yes

checking how to run the C preprocessor... gcc -E

checking for ANSI C header files... yes

checking for string.h... yes

checking for main in -lXbsd... no

checking for socket in -lsocket... no

checking for gethostbyname in -lnsl... yes

checking for dcgettext in -lintl... no

checking for getnodebyname in -ldnet_stub... no

checking that g++ can handle -O2... no

checking standard STL is available... no

checking for ranlib... ranlib

checking for snprintf... yes

checking for ANSI C header files... (cached) yes

checking for strtoq... yes

checking for strtoll... yes

checking for sys/types.h... yes

checking for sys/stat.h... yes

checking for stdlib.h... yes

checking for string.h... (cached) yes

checking for memory.h... yes

checking for strings.h... yes

checking for inttypes.h... yes

checking for stdint.h... yes

checking for unistd.h... yes

checking for long... yes

checking size of long... 4

checking for __int64_t... no

checking for long long... yes

checking for int64_t... yes

checking which kind of 64-bit int to use... int64_t

checking for tcl.h... -I../include

checking for libtcl8.3... -L../lib -ltcl8.3

checking for init.tcl... ../lib/tcl8.3

checking for tclsh8.3.2... no

checking for tclsh8.3... ../bin/tclsh8.3

checking for tk.h... -I../include

checking for libtk8.3... -L../lib -ltk8.3

checking for tk.tcl... ../lib/tk8.3

checking for otcl.h... -I../otcl-1.0a8

checking for libotcl1.0a8... -L../otcl-1.0a8 -lotcl

checking for X11 header files

checking for X11 library archive

checking for XOpenDisplay in -lX11... no

checking for libXext.a

No explicit static compilation flag; setting V_STATIC to ""

checking for dlopen in -ldl... yes

checking for a BSD compatible install... /usr/bin/install -c

configure: creating ./config.status

config.status: creating Makefile

creating ./gen

creating ./bin

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/root/oriol/programas/ns-
allinone-2.1b9a/otcl-1.0a8 -I/root/oriol/programas/ns-allinone-2.1b9a/include
-I/root/oriol/programas/ns-allinone-2.1b9a/include -o tcl2c++.o tcl2c++.crm
-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/root/oriol/programas/ns-
allinone-2.1b9a/otcl-1.0a8 -I/root/oriol/programas/ns-allinone-2.1b9a/include
-I/root/oriol/programas/ns-allinone-2.1b9a/include -o Tcl.o Tcl.cc

In file included from tclcl.h:48,

from Tcl.cc:47:

tclcl-mappings.h: In static member function `static int
TclObjectHelper<T>::dispatch_(void*, Tcl_Interp*, int, char**)':

tclcl-mappings.h:51: error: se utilizó el tipo incompleto `Tcl' en un
especificador de nombre anidado

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

tclcl-1.0b12 make failed! Exiting ...

See http://www.isi.edu/nsnam/ns/ns-problems.html for problems

--------------------------------------------------------------------------------------------------------------------------------

I don't know if the reason it's the kernel version (Fedora 2.6.12-1)....I
have tried also with Cygwin and it gives me the same error.

Can anybody help me?

Thanks!

Reply via email to