LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Ns2.34 shows error when compiling a wireless tcl script (https://www.linuxquestions.org/questions/linux-newbie-8/ns2-34-shows-error-when-compiling-a-wireless-tcl-script-4175603889/)

cai 04-15-2017 11:41 AM

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

knudfl 04-15-2017 04:36 PM

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'.


-

cai 04-15-2017 09:23 PM

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.

cai 04-15-2017 09:24 PM

I've tested the CRCN and D2CARP examples
 
Quote:

Originally Posted by knudfl (Post 5697406)
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.


All times are GMT -5. The time now is 04:40 PM.