Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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)
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
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 05:30 AM.
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)
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
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!
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.