LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 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, 307 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.
 
Old 03-31-2015, 01:35 PM   #7
shyjuu
Member
 
Registered: Mar 2015
Posts: 47

Rep: Reputation: Disabled
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.
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
 
1 members found this post helpful.
Old 07-14-2015, 12:26 AM   #8
saneeshps
LQ Newbie
 
Registered: Jul 2015
Posts: 1

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

Last edited by saneeshps; 07-14-2015 at 12:28 AM.
 
Old 04-10-2016, 03:28 PM   #9
Aneeba
LQ Newbie
 
Registered: Apr 2016
Posts: 1

Rep: Reputation: Disabled
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.
 
Old 06-07-2016, 01:15 AM   #10
cahyaindra
LQ Newbie
 
Registered: Mar 2016
Posts: 2

Rep: Reputation: Disabled
Post 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
 
Old 06-07-2016, 05:36 AM   #11
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Re post #10, @cahyaindra.

Please explain what you are trying to do ....
? Which errors ? And which protocol are you working with ?
 
Old 04-01-2017, 12:17 PM   #12
dadi1004
LQ Newbie
 
Registered: Apr 2017
Posts: 23

Rep: Reputation: Disabled
the same problem r0w225

hi,anyone can explain how solved the problem or upload a file lib-tcl thnx r0w225 can you answer
 
Old 04-01-2017, 12:47 PM   #13
dadi1004
LQ Newbie
 
Registered: Apr 2017
Posts: 23

Rep: Reputation: Disabled
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.
can you upload ns-lib.tcl
 
Old 04-01-2017, 04:03 PM   #14
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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.
 
Old 04-02-2017, 07:24 AM   #15
dadi1004
LQ Newbie
 
Registered: Apr 2017
Posts: 23

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


Reply

Tags
lcsrumor, ns2, ns2 ns-allinone, rumor, tcl-ns2



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration