LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-15-2017, 11:41 AM   #1
cai
LQ Newbie
 
Registered: Dec 2016
Posts: 21

Rep: Reputation: Disabled
Ns2.34 shows error when compiling a wireless tcl script


I was trying to compile tcl file after successful installation of ns2.34 in fedora 20. when I compile a wired network tcl, everything runs smoothly. when i compile a sample of wireless network tcl, this kind of error occured:

num_nodes is set 160

(_o30 cmd line 1)
invoked from within
"_o30 cmd change-numifs 10"
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 "_o30" line 2)
(SplitObject unknown line 2)
invoked from within
"$ns change-numifs $val(ni)"
(file "sample.tcl" line 266)
//
Before that, I apply CRCN patch and D2CARP patch. I'm trying to analyse D2CARP routing protocol performance by using ns2. Please guide me through this problem. Thank you
 
Old 04-15-2017, 04:36 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
CRCN can usually not be added to a later version than ns-2.31 .
And will only work fully with an oldish OS : CentOS 6.9 - i386.
( CentOS 6 is based on Fedora 7.)
? And there may be some conflicts with the D2CARP code.
.... But may be you found a solution for adding both patches ? Please share.

If you have a 32bits Fedora20, an old rpm package can be installed, and run the most examples.
"crcn-ns231-1.el5.i386.rpm" : Provides /usr/local/bin/ns231-crcn-el5
I.e. $ ns231-crcn-el5 0-test4maccon.tcl ,,, etc. etc.
Link, package https://drive.google.com/file/d/0B7S...ew?usp=sharing


CRCN simulation examples : crcn-examples_06.2015.tar.gz
https://drive.google.com/file/d/0B7S...ew?usp=sharing

D2CARP examples : D2CARP-ex.tar.gz
https://drive.google.com/file/d/0B7S...ew?usp=sharing

Please test all the examples, and let us know the result.


Your errors :
Generic errors. A lot of faulty tcl scripts will show the same or similar errors.
Please attach your file as unique-name.tcl.txt ( Plenty of "sample.tcl" ).
Attachments: The paper clip tool in the 'Advanced Editor'.


-

Last edited by knudfl; 04-15-2017 at 04:56 PM.
 
Old 04-15-2017, 09:23 PM   #3
cai
LQ Newbie
 
Registered: Dec 2016
Posts: 21

Original Poster
Rep: Reputation: Disabled
I've tested the CRCN and D2CARP examples

I've run the sample tcl file. I either got two errors :

1. error "error when calling class $cls: $args" $..."
(procedure "_o3" line 2)
(SplitObject unknown line 2)

2. can't read "node_(0)": no such variable

I tried using ns2.34 with CRCN patch because Dr Arafatur already use them in his research. http://wpage.unina.it/arafatur.rahman/research.html .I'm totally new in ns2. Thank you in advance for your guide.
 
Old 04-15-2017, 09:24 PM   #4
cai
LQ Newbie
 
Registered: Dec 2016
Posts: 21

Original Poster
Rep: Reputation: Disabled
I've tested the CRCN and D2CARP examples

Quote:
Originally Posted by knudfl View Post
CRCN can usually not be added to a later version than ns-2.31 .
And will only work fully with an oldish OS : CentOS 6.9 - i386.
( CentOS 6 is based on Fedora 7.)
? And there may be some conflicts with the D2CARP code.
.... But may be you found a solution for adding both patches ? Please share.

If you have a 32bits Fedora20, an old rpm package can be installed, and run the most examples.
"crcn-ns231-1.el5.i386.rpm" : Provides /usr/local/bin/ns231-crcn-el5
I.e. $ ns231-crcn-el5 0-test4maccon.tcl ,,, etc. etc.
Link, package https://drive.google.com/file/d/0B7S...ew?usp=sharing


CRCN simulation examples : crcn-examples_06.2015.tar.gz
https://drive.google.com/file/d/0B7S...ew?usp=sharing

D2CARP examples : D2CARP-ex.tar.gz
https://drive.google.com/file/d/0B7S...ew?usp=sharing

Please test all the examples, and let us know the result.


Your errors :
Generic errors. A lot of faulty tcl scripts will show the same or similar errors.
Please attach your file as unique-name.tcl.txt ( Plenty of "sample.tcl" ).
Attachments: The paper clip tool in the 'Advanced Editor'.


-
I've run the sample tcl file. I either got two errors :

1. error "error when calling class $cls: $args" $..."
(procedure "_o3" line 2)
(SplitObject unknown line 2)

2. can't read "node_(0)": no such variable

I tried using ns2.34 with CRCN patch because Dr Arafatur already use them in his research. http://wpage.unina.it/arafatur.rahman/research.html .I'm totally new in ns2. Thank you in advance for your guide.
 
  


Reply

Tags
crcn, d2carp, 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
I m getting an error while running a tcl script on wireless aodv routing protocol in ns2.35. uttam khawas Linux - Newbie 3 11-29-2016 08:12 AM
NS2.33+ mobiwan : error "Segmentation Defaul" when running a tcl script yotta15 Linux - Newbie 1 06-29-2012 05:09 AM
invalid command type "llType" error occuring when executing a tcl script in ns2.34 madhu.bm Linux - Software 1 05-04-2012 06:30 AM
NS2.29.3 TCL script compile errors iamusbah Linux - Newbie 1 03-27-2012 05:20 AM
script tcl NS2 MounaRM Linux - Networking 0 01-10-2011 09:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:36 AM.

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