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.
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
# 15 .
Nothing to be done for `all'. :
Is the fishing line when you run make the second time, or multiple times.
Also indicates that you have a successful build.
* Which you will know, when you are using the executable 'ns-edca'
with a tcl file that has e.g. : set opt(mac) Mac/802_11e
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
# 17 .
Did you actually create a new ns ?
Testing the new "ns" : $ cp ns ns-edca
* That's to be sure that you are using the right 'ns' for the simulations.
$ sudo cp ns-edca /usr/local/bin/
.. then you can hopefully find / create a file.tcl, that can use Mac802_11e ,
.. and run with $ ns-edca file-name.tcl
Note : Please be aware that the EDCA code was made for ns-2.28,
and may not work properly with ns-2.34 .
Thx so much for yr help;
Really Idon't understand what's the problem !
whan I run the commands: ./configure, make clean, make depend and make; I got again error
mac/802_11e/mac-802_11e.cc: In member function ‘void Mac802_11e::recv_timer()’:
mac/802_11e/mac-802_11e.cc:1312:16: warning: unused variable ‘s’ [-Wunused-variable]
mac/802_11e/mac-802_11e.cc: In member function ‘void Mac802_11e::recvACK(Packet*)’:
mac/802_11e/mac-802_11e.cc:1685:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
mac/802_11e/mac-802_11e.cc:1672:9: warning: unused variable ‘delay’ [-Wunused-variable]
mac/802_11e/mac-802_11e.cc: In member function ‘void Mac802_11e::cfb(int)’:
mac/802_11e/mac-802_11e.cc:1722:16: warning: unused variable ‘ch’ [-Wunused-variable]
make: *** [mac/802_11e/mac-802_11e.o] Error 1
and the make file returned as not changing: CPP = g++
I'll try to change my system, and I'll use Mandriva maybe it work !!
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
# 19 .
Quote:
./configure, make clean, make depend and make
That's "as wrong as possible". Must be :
$ export CC=gcc-4.4 CXX=g++34 && ./configure && make clean && make
Quote:
and the make file returned as not changing: CPP = g++
? What prevents you from editing the Makefile to : CPP = g++34
The preferred way should of course be a new build in a new folder.
( See post #12 ).
$ tar xvf ns-allinone-2.34.tar.gz
$ cd ns-allinone-2.34/
$ ln -s ns-2.34/ ns-2.33
$ patch -p0 < edca-ns233.patch
$ export CC=gcc34 CXX=g++34 && ./install
$ cd ns-2.34/
$ cp ns ns-edca
$ sudo cp ns-edca /usr/local/bin/
mac/802_11e/mac-802_11e.cc: In member function ‘virtual void Mac802_11e::recv(Packet*, Handler*)’:
mac/802_11e/mac-802_11e.cc:1261:17: warning: unused variable ‘s’ [-Wunused-variable]
mac/802_11e/mac-802_11e.cc:1279:13: warning: unused variable ‘s’ [-Wunused-variable]
mac/802_11e/mac-802_11e.cc: In member function ‘void Mac802_11e::recv_timer()’:
mac/802_11e/mac-802_11e.cc:1312:16: warning: unused variable ‘s’ [-Wunused-variable]
mac/802_11e/mac-802_11e.cc: In member function ‘void Mac802_11e::recvACK(Packet*)’:
mac/802_11e/mac-802_11e.cc:1685:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
mac/802_11e/mac-802_11e.cc:1672:9: warning: unused variable ‘delay’ [-Wunused-variable]
mac/802_11e/mac-802_11e.cc: In member function ‘void Mac802_11e::cfb(int)’:
mac/802_11e/mac-802_11e.cc:1722:16: warning: unused variable ‘ch’ [-Wunused-variable]
make: *** [mac/802_11e/mac-802_11e.o] Error 1
Testing the new "ns" : $ cp ns ns-edca
* That's to be sure that you are using the right 'ns' for the simulations.
$ sudo cp ns-edca /usr/local/bin/
.. then you can hopefully find / create a file.tcl, that can use Mac802_11e ,
.. and run with $ ns-edca file-name.tcl
Note : Please be aware that the EDCA code was made for ns-2.28,
and may not work properly with ns-2.34 .
-
Hi knudfl,
After patching up ns with EDCA, should there be ns-edca? I can't find any in the ns-allinone-2.33/ns-2.33 folder. However, I put the ns path in the ~/.bashrc file. Upon typing 'ns' in Terminal, the % appears which means that ns is successfully installed. However, how can I make sure that I'm using the right ns, which is the ns edca?
Thank you knudful for ur reply
I tried to install it from the site written in post #12 but when i tried to open it, it gives me: This file does not have a program associated with it for performing this action". what should be the program?
This patch is suitable for ns-allinone2.30 in cygwin windows?
Cygwin : ? May be you will have to install a genuine 32bits Linux OS,
(In VirtualBox or to a spare hard disk) if you want to add EDCA.
Not much help you can get with Cygwin / ns2.
? ns-2.30 ? May be easy to edit the few files,
{packet.h wireless-phy.cc wireless-phy.h ns-default.tcl ns-lib.tcl ns-mac.tcl Makefile.in}
EDIT : See post #31.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.