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

Error running Lan examples



Hi folks,

I encounter problems when trying LAN examples in ~ns/tcl/ex. For
example, when I ran vlantest-hier.tcl, ns claims "invalid command
Mac/Csma/Cd". I found later that all Mac/Csma/Cd parameters in
~ns/tcl/lan/vlan.tcl and ns-mac.tcl are commented. I uncomment them and
rebuild the source codes, including mac-csma.cc and mac-multihop.cc.
However, mac-csma.cc failed to compile with the following error message:

g++ -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 -Drandom=lrand48 -Dsrandom
=srand -DHAVE_GETRUSAGE=1 -DHAVE_SBRK=1 -DHAVE_LIBDLD=1  -I.
-I../tclcl-1.0b8 -I
../otcl-1.0a4 -I../tkbox/include -I../tclbox/include  -o mac-csma.o
mac-csma.cc
mac-csma.cc: In method `void MacCsma::send(class Packet *)':
mac-csma.cc:107: no matching function for call to `Channel::txstop ()'
mac-csma.cc:135: no matching function for call to `Channel::contention
(Packet *&, MacHandlerEoc *)'
mac-csma.cc: In method `void MacCsma::backoff(class Handler *, class
Packet *, double = 0)':
mac-csma.cc:148: no matching function for call to `Channel::txstop ()'
mac-csma.cc: In method `void MacCsma::endofContention(class Packet *)':
mac-csma.cc:162: no method `hdr_mac::access'
mac-csma.cc:163: no matching function for call to `Channel::send (Packet
*&, double &)'
mac-csma.cc: In method `void MacCsmaCd::endofContention(class Packet
*)':
mac-csma.cc:173: no matching function for call to `Channel::collision
()'
mac-csma.cc:174: no matching function for call to `Channel::jam (int)'
mac-csma.cc: In method `void MacCsmaCa::send(class Packet *)':
mac-csma.cc:185: no matching function for call to `Channel::txstop ()'
mac-csma.cc:191: no matching function for call to `Channel::contention
(Packet *&, MacHandlerEoc *)'
make: *** [mac-csma.o] Error 1


Does this mean that the LAN simulation in ns-allinone-2.1b5 haven't been
completed?

Thanks for any hint to the problem.

Thanh

-- 
------------------------------------------------
    Nguyen Huu Thanh                      

    Universitaet der Bundeswehr Muenchen  
    Institut fuer informationstechnische Systeme
    Werner-Heisenberg-Weg 39
    85577 Neubiberg                        
    Tel.: +49 89 6004-2279                   
    Email: [email protected]  
-------------------------------------------------