LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   ns2 error " o14 cmd line 1 " (https://www.linuxquestions.org/questions/linux-software-2/ns2-error-o14-cmd-line-1-a-4175472401/)

r0w225 08-06-2013 08:23 PM

ns2 error " o14 cmd line 1 "
 
Hi all!
I believe some of you are familiar with the following error
Code:

(_o14 cmd line 1)
    invoked from within
"_o14 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 "_o14" line 2)
    (SplitObject unknown line 2)
    invoked from within
"_o14 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 "_o3" line 14)
    (Simulator create-wireless-node line 14)
    invoked from within
"_o3 create-wireless-node"
    ("eval" body line 1)
    invoked from within
"eval $self create-wireless-node $args"
    (procedure "_o3" line 23)
    (Simulator node line 23)
    invoked from within
"$ns node"
    ("for" body line 2)
    invoked from within
"for {set i 0} {$i < $val(nn) } { incr i } {
                set node_($i) [$ns node]       
        }"
    (file "wrls-crumor-a30node.tcl" line 66)

well the error appear after i successfully added a new routing protocol in ns-2.34, when i try the tcl script, it gives me this error. i google a bit and found that the question has been asked before but with no real answer. the tcl somehow doesnt compile inn the librairy! why? i cansolve this problem by doing " sudo make install", but i will get a "segmentation fault (core dumped)" error if i type any command (this is far worse than the previous error). so has anyone being able to find a proper solution or a good understanding to that error?
Thanks in advance for your time and help!

knudfl 08-06-2013 11:39 PM

That's a generic output ( Or lookalike ) from any error.

I.e. the text with the real error is not shown in post #1.

You will have to show this : $ ns wrls-crumor-a30node.tcl ,
... followed by the next lines, until the above text.
( And please do not repeat the post #1 error text.)

-

r0w225 08-07-2013 02:50 AM

hi knudfi
this is the error as you asked but am afraid it is the full error
Code:

foxyrow@foxyrow-HP-Compaq-dc5800-Small-Form-Factor:~/ns-allinone-2.34/ns-2.34/lscrumor$ ns wrls-crumor-a30node.tcl
num_nodes is set 31
warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl

    (_o14 cmd line 1)
    invoked from within
"_o14 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 "_o14" line 2)
    (SplitObject unknown line 2)
    invoked from within
"_o14 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 "_o3" line 14)
    (Simulator create-wireless-node line 14)
    invoked from within
"_o3 create-wireless-node"
    ("eval" body line 1)
    invoked from within
"eval $self create-wireless-node $args"
    (procedure "_o3" line 23)
    (Simulator node line 23)
    invoked from within
"$ns node"
    ("for" body line 2)
    invoked from within
"for {set i 0} {$i < $val(nn) } { incr i } {
                set node_($i) [$ns node]       
        }"
    (file "wrls-crumor-a30node.tcl" line 66)


knudfl 08-07-2013 10:43 AM

# 3 . Well, then you will have to upload the file.

Please attach as 'wrls-crumor-a30node.tcl.txt'

Attachment : The paper clip tool in the 'Advanced Editor'.

-

r0w225 08-07-2013 04:54 PM

1 Attachment(s)
hi

please find attached the tcl.file

r0w225 10-28-2013 04:44 PM

Hi all
just to close this thread, it has been a while since i post it but i solved the problem. if you encounter this problem it is probably in the file ns2.xx/tcl/lib/ns-lib.tcl that you have to look. it could be a spelling mistake or a wrong instanciation of procedure. i dont recall what was the problem in my case but after correcting the ns-lib.tcl file and saving everything it went well.
hope it helps.

shyjuu 03-31-2015 01:35 PM

Quote:

Originally Posted by r0w225 (Post 5053971)
Hi all
just to close this thread, it has been a while since i post it but i solved the problem. if you encounter this problem it is probably in the file ns2.xx/tcl/lib/ns-lib.tcl that you have to look. it could be a spelling mistake or a wrong instanciation of procedure. i dont recall what was the problem in my case but after correcting the ns-lib.tcl file and saving everything it went well.
hope it helps.

can you please mention where you made changes in ns-lib.tcl file, i am getting same problem , it would be helpful if you upload ns-lib.tcl file

thanks a lot in advance

saneeshps 07-14-2015 12:26 AM

Quote:

Originally Posted by r0w225 View Post
Hi all
just to close this thread, it has been a while since i post it but i solved the problem. if you encounter this problem it is probably in the file ns2.xx/tcl/lib/ns-lib.tcl that you have to look. it could be a spelling mistake or a wrong instanciation of procedure. i dont recall what was the problem in my case but after correcting the ns-lib.tcl file and saving everything it went well.
hope it helps.
hello r0w225,
Please upload the modified the ns-lib.tcl file.

Thanks in advance.

Aneeba 04-10-2016 03:28 PM

SAME problem
 
_o14 cmd line 1)
invoked from within
"_o14 cmd addr"
invoked from within
"catch "$self cmd $args" ret"

How did you rectify this error?
Please let us know.

cahyaindra 06-07-2016 01:15 AM

what change u make sir?
 
sir can tell s how u solved your problem, cause we have sam problem here
which one code modify in ns-lib.tcl?
regrad

knudfl 06-07-2016 05:36 AM

Re post #10, @cahyaindra.

Please explain what you are trying to do ....
? Which errors ? And which protocol are you working with ?

dadi1004 04-01-2017 12:17 PM

the same problem r0w225
 
hi,anyone can explain how solved the problem or upload a file lib-tcl thnx r0w225 can you answer

dadi1004 04-01-2017 12:47 PM

Quote:

Originally Posted by r0w225 (Post 5053971)
Hi all
just to close this thread, it has been a while since i post it but i solved the problem. if you encounter this problem it is probably in the file ns2.xx/tcl/lib/ns-lib.tcl that you have to look. it could be a spelling mistake or a wrong instanciation of procedure. i dont recall what was the problem in my case but after correcting the ns-lib.tcl file and saving everything it went well.
hope it helps.

can you upload ns-lib.tcl

knudfl 04-01-2017 04:03 PM

Re #13.

RUMOR files rumor-ns234-files-2010.tar.gz
https://drive.google.com/file/d/0B7S...ew?usp=sharing

ns-2.34/tcl/ns-lib.tcl : Is included.

dadi1004 04-02-2017 07:24 AM

hello
we have this file but we need only the edited file ns-lib.tcl or if you can explain more how to solve it


All times are GMT -5. The time now is 07:41 PM.