Hi,

I have installed the latest version of NS-2 (NS-2.34) in Fedora 10. I am
trying to run the example aomdv.t found in /tcl/ex. However, I got the
following error:

[e...@localhost ex]$ ns aomdv.tcl
num_nodes is set 16

    (_o32 cmd line 1)
    invoked from within
"_o32 cmd addr"
    invoked from within
"catch "$self cmd $args" ret"
    invoked from within
"if [catch "$self cmd $args" ret] {
set cls [$self info class]
global errorInfo
set savedInfo $errorInfo
error "error when calling class $cls: $args" $..."
    (procedure "_o32" line 2)
    (SplitObject unknown line 2)
    invoked from within
"_o32 addr"
    ("eval" body line 1)
    invoked from within
"eval $node addr $args"
    ("default" arm line 2)
    invoked from within
"switch -exact $routingAgent_ {
DSDV {
set ragent [$self create-dsdv-agent $node]
}
DSR {
$self at 0.0 "$node start-dsr"
}
AODV {
set ragent [$self cre..."
    (procedure "_o22" line 11)
    (Simulator create-wireless-node line 11)
    invoked from within
"_o22 create-wireless-node"
    ("eval" body line 1)
    invoked from within
"eval $self create-wireless-node $args"
    (procedure "_o22" line 23)
    (Simulator node line 23)
    invoked from within
"$ns node"
    ("for" body line 2)
    invoked from within
"for {set i 0} {$i < $val(n) } {incr i} {
    set node($i) [$ns node]
    $node($i) random-motion 0        ;# disable random motion
}    "
    (file "aomdv.tcl" line 251)

How do I solve this error? Is there any patch available?

Thank you very much for your assistance.

Reply via email to