[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ns] Problem with ns2.1b5 & 6



What is the compiler you're using?

Nader

Leyla Toumi writes:
> Hi all !
> 
> I installed ns2.1b5 and tried to make "./configure" then "make" but I
> got the result :
> 
> VE_TCLCL_H -DHAVE_LIBOTCL1_0A4 -DHAVE_OTCL_H -DHAVE_LIBTK8_0
> -DHAVE_TK_H -DHAVE_LIBTCL8_0 -DHAVE_TCL_H   -DSTDC_HEADERS=1
> -DHAVE_STRING_H=1 -DHAVE_TCL_H=1 -DHAVE_LIBTCL8_0=1 -DHAVE_TK_H=1
> -DHAVE_LIBTK8_0=1 -DHAVE_OTCL_H=1 -DHAVE_LIBOTCL1_0A4=1
> -DHAVE_TCLCL_H=1 -DHAVE_LIBTCLCL1_0B8=1 -DHAVE_GETRUSAGE=1
> -DHAVE_SBRK=1 -DHAVE_STRTOQ=1 -DHAVE_STRTOLL=1  -I. -I../tclcl-1.0b8
> -I../otcl-1.0a4
> -I/usr/local/src/ns/ns-allinone-2.1b5/ns-2.1b5/../tk8.0.4/generic
> -I../tcl8.0.4/generic  -o scheduler.o scheduler.cc In file included
> from scheduler.cc:46: packet.h:126: warning: implicit declaration of
> function `int error(...)' packet.h:126: parse error before `{'
> packet.h:128: extraneous `int' ignored packet.h: In function `struct
> hdr_cmn & iface()': packet.h:128: `iface_' undeclared (first use this
> function) packet.h:128: (Each undeclared identifier is reported only
> once packet.h:128: for each function it appears in.) packet.h:128:
> warning: control reaches end of non-void function `iface()' packet.h:
> In function `int & ref_count()': packet.h:129: `ref_count_'
> undeclared (first use this function) packet.h:129: warning: control
> reaches end of non-void function `ref_count()' packet.h: In function
> `double & timestamp_arr()': packet.h:130: `ts_arr_' undeclared (first
> use this function) packet.h:130: warning: control reaches end of
> non-void function `timestamp_arr()' packet.h: In function `void
> set_timestamp_arr(double)': packet.h:131: confused by earlier errors,
> bailing out make: 
> *** [scheduler.o] Error 1
> 
> ****************************************************************************************************************************************************
> I did the same thing with ns2.1b6 (not the allinone version) and I
> got :
> 
> 
> /usr/bin/tclsh8.0 bin/tcl-expand.tcl tcl/lib/ns-lib.tcl | ../tclcl-1.0b8/tcl2c++ et_ns_lib > gen/ns_tcl.cc
> c++ -c -g -Wall -DNO_TK -DTCLCL_CLASSINSTVAR  -DNDEBUG -DUSE_SHM -DHAVE_LIBTCLCL1_0B8 -DHAVE_TCLCL_H -DHAVE_LIBOTCL1_0A4 -DHAVE_OTCL_H -DHAVE_LIBTK8_0 -DHAVE_TK_H -DHAVE_LIBTCL8_0 -DHAVE_TCL_H   -DSTDC_HEADERS=1 -DHAVE_STRING_H=1 -DHAVE_TCL_H=1 -DHAVE_LIBTCL8_0=1 -DHAVE_TK_H=1 -DHAVE_LIBTK8_0=1 -DHAVE_OTCL_H=1 -DHAVE_LIBOTCL1_0A4=1 -DHAVE_TCLCL_H=1 -DHAVE_LIBTCLCL1_0B8=1 -DHAVE_GETRUSAGE=1 -DHAVE_SBRK=1 -DHAVE_STRTOQ=1 -DHAVE_STRTOLL=1  -I. -I../tclcl-1.0b8 -I../otcl-1.0a4 -I/usr/local/src/ns/ns-allinone-2.1b5/ns-2.1b6/../tk8.0.4/generic -I../tcl8.0.4/generic  -o gen/ns_tcl.o gen/ns_tcl.cc
> c++ -c -g -Wall -DNO_TK -DTCLCL_CLASSINSTVAR  -DNDEBUG -DUSE_SHM -DHAVE_LIBTCLCL1_0B8 -DHAVE_TCLCL_H -DHAVE_LIBOTCL1_0A4 -DHAVE_OTCL_H -DHAVE_LIBTK8_0 -DHAVE_TK_H -DHAVE_LIBTCL8_0 -DHAVE_TCL_H   -DSTDC_HEADERS=1 -DHAVE_STRING_H=1 -DHAVE_TCL_H=1 -DHAVE_LIBTCL8_0=1 -DHAVE_TK_H=1 -DHAVE_LIBTK8_0=1 -DHAVE_OTCL_H=1 -DHAVE_LIBOTCL1_0A4=1 -DHAVE_TCLCL_H=1 -DHAVE_LIBTCLCL1_0B8=1 -DHAVE_GETRUSAGE=1 -DHAVE_SBRK=1 -DHAVE_STRTOQ=1 -DHAVE_STRTOLL=1  -I. -I../tclcl-1.0b8 -I../otcl-1.0a4 -I/usr/local/src/ns/ns-allinone-2.1b5/ns-2.1b6/../tk8.0.4/generic -I../tcl8.0.4/generic  -o ptypes2tcl.o ptypes2tcl.cc
> In file included from packet-stamp.h:20,
>                  from packet.h:47,
>                  from ptypes2tcl.cc:3:
> antenna.h:47: `an_head' was not declared in this scope
> antenna.h:47: parse error before `)'
> antenna.h:47: warning: ANSI C++ forbids declaration `LIST_HEAD' with no type
> antenna.h:47: warning: initializer list being treated as compound expression
> antenna.h:83: parse error in method specification before `;'
> antenna.h:89: parse error before `;'
> In file included from ptypes2tcl.cc:3:
> packet.h:182: `PT_NTYPE' was not declared in this scope
> packet.h:184: storage class specified for field `packet_info'
> packet.h:255: confused by earlier errors, bailing out
> make: *** [ptypes2tcl.o] Error 1
> 
> 
> 
> Can you help me please ?
> I can' t understand where is the problem from !!!
> 
> Do  I have to install the ns-allinone-2.1b6a file ?
> PLEASE I NEED YOUR HELP !!
> 
> Thanks in advance !