LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 08-06-2013, 08:23 PM   #1
r0w225
Member
 
Registered: Jul 2012
Location: South Africa
Distribution: Ubuntu precise pangolin 12.04LTS
Posts: 48

Rep: Reputation: Disabled
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!
 
Old 08-06-2013, 11:39 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,522

Rep: Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503
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.)

-
 
Old 08-07-2013, 02:50 AM   #3
r0w225
Member
 
Registered: Jul 2012
Location: South Africa
Distribution: Ubuntu precise pangolin 12.04LTS
Posts: 48

Original Poster
Rep: Reputation: Disabled
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)
 
Old 08-07-2013, 10:43 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,522

Rep: Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503
# 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'.

-
 
Old 08-07-2013, 04:54 PM   #5
r0w225
Member
 
Registered: Jul 2012
Location: South Africa
Distribution: Ubuntu precise pangolin 12.04LTS
Posts: 48

Original Poster
Rep: Reputation: Disabled
hi

please find attached the tcl.file
Attached Files
File Type: txt wrls-crumor-a30node.tcl.txt (6.1 KB, 24 views)
 
Old 10-28-2013, 04:44 PM   #6
r0w225
Member
 
Registered: Jul 2012
Location: South Africa
Distribution: Ubuntu precise pangolin 12.04LTS
Posts: 48

Original Poster
Rep: Reputation: Disabled
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.
 
  


Reply

Tags
ns2 ns-allinone, tcl-ns2


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
NS2: Cygwin error "couldn't create signal error, win32 error 161" bhartideswal General 2 05-04-2013 02:22 AM
What i s this error pop-up: "On line 3: unknown type "evolution""?? kline Linux - Desktop 0 11-25-2011 04:12 PM
how can i turn "Mic Front Input" option on for alsamixer from cmd line gujedan Linux - Newbie 5 02-28-2011 05:44 PM
Differences of "make" in Kdev and cmd line srisner Linux - Software 1 12-23-2004 09:44 AM
SpamAssassin Error "spamd: no response to STREAM cmd, Success" and other errors PlorkZ Linux - Software 1 11-18-2004 04:16 PM


All times are GMT -5. The time now is 08:54 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration