LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 06-12-2014, 01:56 AM   #16
nayanb2k7
LQ Newbie
 
Registered: May 2014
Posts: 28

Rep: Reputation: Disabled

Error while running the examples in CRAHN - NS2.31

Running the following example

$ ns test-random-topology.tcl 10 128 2

gives the error

num_nodes is set 50
invalid command name "PUMap"
while executing
"PUMap create _o12 "
invoked from within
"catch "$className create $o $args" msg"
invoked from within
"if [catch "$className create $o $args" msg] {
if [string match "__FAILED_SHADOW_OBJECT_" $msg] {
delete $o
return ""
}
global errorInfo
error "class $..."
(procedure "new" line 3)
invoked from within
"new PUMap"
invoked from within
"set pumap [new PUMap]"
(file "test-random-topology.tcl" line 86)

any idea
 
Old 06-16-2014, 04:17 AM   #17
mariadcsiub
LQ Newbie
 
Registered: Jun 2014
Posts: 3

Rep: Reputation: Disabled
CRAHN patch integration in NS2.31

hi
my research is related to cognitive radio networks but im stuck in installation process. as i followed these steps

1. Get ns-allinone-2.31.tar.gz and extract it
2. Install git,
3. Clone this repository:
```git clone git://github.com/abdulla-alali/TFRC-CR.git -b CRAHN```
4. You'll end up with a ns-2.31 clone that has the CRAHN module integrated.
Replace the ns-2.31 subfolder (from the ns-allinone file that you already extracted)
with the one you cloned from here.

and when i tried to run ./configure it gives the following error,, plz help me in this regard as i have to submitt my thesis

cognitive/SpectrumManager.o: In function `SpectrumManager::senseHandler()':
SpectrumManager.cc: (.text+0x35c): undefined reference to `Mac802_11::checkBackoffTimer()'
cognitive/SpectrumManager.o: In function `SpectrumManager::transmitHandler()':
SpectrumManager.cc: (.text+0x516): undefined reference to `Mac802_11::checkBackoffTimer()'
collect2: error: ld returned 1 exit status
make: *** [ns] Error 1
 
Old 06-16-2014, 06:27 AM   #18
mariadcsiub
LQ Newbie
 
Registered: Jun 2014
Posts: 3

Rep: Reputation: Disabled
error in CRAHN patch integration in NS2.31

i followed the steps in post #2 ,but after 'configure' when i ran 'make' command i got the following errors

cognitive/SpectrumManager.o: In function `SpectrumManager::start()':
SpectrumManager.cc: (.text+0x20c): undefined reference to `Mac802_11::load_spectrum(spectrum_entry_t)'
cognitive/SpectrumManager.o: In function `SpectrumManager::senseHandler()':
SpectrumManager.cc: (.text+0x35c): undefined reference to `Mac802_11::checkBackoffTimer()'
SpectrumManager.cc: (.text+0x40c): undefined reference to `Mac802_11::load_spectrum(spectrum_entry_t)'
SpectrumManager.cc: (.text+0x41a): undefined reference to `Mac802_11::notifyUpperLayer(int)'
cognitive/SpectrumManager.o: In function `SpectrumManager::transmitHandler()':
SpectrumManager.cc: (.text+0x516): undefined reference to `Mac802_11::checkBackoffTimer()'
collect2: error: ld returned 1 exit status

kindly give me a solution to this as i have to submitt my thesis

Last edited by mariadcsiub; 06-16-2014 at 06:30 AM.
 
Old 06-22-2014, 05:01 AM   #19
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2017 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,737

Rep: Reputation: 3317Reputation: 3317Reputation: 3317Reputation: 3317Reputation: 3317Reputation: 3317Reputation: 3317Reputation: 3317Reputation: 3317Reputation: 3317Reputation: 3317
Posts #17, #18, @mariadcsiub : Welcome to LQ.

The text "1 2 3 4" in post #17 is a copy of the old (unusable) instructions.

Please read posts #3 and #5 → →
Fedora / CentOS example → →
$ tar xvf ns-allinone-2.31.tar.gz
$ cd ns-allinone-2.31/
$ patch -p0 < TFRC-CRAHN_ns231.patch
$ export CC=gcc34 CXX=g++34 ./install

Please read http://linuxsilo.net/docs/smart-questions_en.html
and http://www.linuxquestions.org/linux/...Ask_a_Question
... I.e. you are supposed to supply some more information,
to get a precise answer : Which OS are you using ? ? →
a) $ uname -m
b) OS name and version.

-
 
Old 06-23-2014, 03:42 AM   #20
mariadcsiub
LQ Newbie
 
Registered: Jun 2014
Posts: 3

Rep: Reputation: Disabled
error in CRAHN-examples execution

Dear kundfl

i followed the steps to install the patch you mentioned, it is installed successfully but when i tried to run the test-3nodes.tcl , it gave me the following error


[maria@localhost bin]$ ./ns test-3nodes.tcl
invalid command name "PUMap"
while executing
"PUMap create _o11 "
invoked from within
"catch "$className create $o $args" msg"
invoked from within
"if [catch "$className create $o $args" msg] {
if [string match "__FAILED_SHADOW_OBJECT_" $msg] {
delete $o
return ""
}
global errorInfo
error "class $..."
(procedure "new" line 3)
invoked from within
"new PUMap"
invoked from within
"set pumap [new PUMap]"
(file "test-3nodes.tcl" line 78)
 
Old 06-30-2014, 02:06 PM   #21
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2017 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,737

Rep: Reputation: 3317Reputation: 3317Reputation: 3317Reputation: 3317Reputation: 3317Reputation: 3317Reputation: 3317Reputation: 3317Reputation: 3317Reputation: 3317Reputation: 3317
# 20 .
Quote:
invalid command name "PUMap"
You are using a wrong copy of "ns", or you have a failed build.

Repeat : No answers unless you specify your OS :
a) The output from the command $ uname -m
b) OS name and version.

-
 
Old 07-01-2014, 04:06 PM   #22
aruns
LQ Newbie
 
Registered: Jun 2014
Posts: 2

Rep: Reputation: Disabled
ns2.35 but last part of validation message shows some tests failed

Dear kundfl


In my ns2.35 but last part of validation message shows some tests failed

I using Ubuntu 14.04 with 64 bit . I tried to install ns2.35 .Last part of validation message is shown below… How to correct the error..?Is it a dependency problem? How can i correct it? Thanks in advance…….


Quote:

These messages are NOT errors and can be ignored:
warning: using backward compatibility mode
This test is not implemented in backward compatibility mode[

validate overall report: some tests failed:
./test-all-tcpLinux
to re-run a specific test, cd tcl/test; ./test-all-TEST-NAME

Last edited by aruns; 07-01-2014 at 04:07 PM.
 
Old 07-15-2014, 02:11 AM   #23
nayanb2k7
LQ Newbie
 
Registered: May 2014
Posts: 28

Rep: Reputation: Disabled
NS ERROR- ANY SOLUTION

common/scheduler.cc:48:20: fatal error: packet.h: No such file or directory
compilation terminated.
make: *** [common/scheduler.o] Error 1
Ns make failed!
 
Old 10-27-2014, 08:56 AM   #24
SofwanLin
LQ Newbie
 
Registered: Nov 2013
Posts: 3

Rep: Reputation: Disabled
Dear knudfl and guys,

I have installed the CRAHN program with ns2.31 in ubuntu 10.04, succesfully, by following post #3. Then I modify a litte bit the example by adding 2 commands in test-3nodes.tcl, to obtain nam file, as follows.

set namtrace [open test-3nodes.nam w]
$ns_ namtrace-all-wireless $namtrace 1000 1000

I did the same thing to test-random-topology.tcl. Then, I execute ns test-3nodes.tcl and test-random-topology.tcl. I can see the [SENSING-DBG] processes during the execution. Now, I have tr and nam file. However, I have a question, when I check tr file, I only see op 's' and 'D', without 'r' in tr file. I double check it in the nam file by executing nam file. In the simulation, I could not see data packet transmitted from a node to another, .

Please kindly give me explanation for this matter.

Thank you.
 
  


Reply

Tags
crahn-ns2, crcn, ns2, ns2 ns-allinone, tfrc-cr_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 simulator in manet raji27 Linux - Software 7 02-24-2013 10:44 AM
NS2 Simulator raji27 Linux - Software 7 03-28-2012 04:05 PM
NS2 simulator Vaishali4 Linux - Newbie 1 10-07-2011 10:03 AM
NS2 simulator in manet raji27 Linux - Software 2 09-13-2011 11:38 PM
NS2 simulator raji27 Linux - Software 1 09-12-2011 07:34 PM

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

All times are GMT -5. The time now is 06:49 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration