LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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-04-2014, 02:21 PM   #16
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641

# 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

-
 
Old 06-04-2014, 02:30 PM   #17
Soumia
LQ Newbie
 
Registered: Jun 2014
Posts: 12

Original Poster
Rep: Reputation: Disabled
"" 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

I don't understand !!!
please explain to me!
 
Old 06-04-2014, 04:54 PM   #18
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 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 .

-
 
Old 06-04-2014, 05:09 PM   #19
Soumia
LQ Newbie
 
Registered: Jun 2014
Posts: 12

Original Poster
Rep: Reputation: Disabled
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 !!
 
Old 06-04-2014, 05:45 PM   #20
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 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/


? Why do you think that Mandriva can be used ?

-
 
Old 06-05-2014, 11:23 AM   #21
Soumia
LQ Newbie
 
Registered: Jun 2014
Posts: 12

Original Poster
Rep: Reputation: Disabled
I tried, and I Failed again !!


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

!!!!!!!!!!!!!!
 
Old 06-05-2014, 11:32 AM   #22
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 21 .

Please show what you did.

The error makes no sense, unless you show the build commands.

-
 
Old 06-05-2014, 11:50 AM   #23
Soumia
LQ Newbie
 
Registered: Jun 2014
Posts: 12

Original Poster
Rep: Reputation: Disabled
$ cd ns-allinone-2.34/
$ ln -s ns-2.34/ ns-2.33
$ patch -p0 < edca-ns233.patch

patching file ns-2.33/common/packet.h
Reversed (or previously applied) patch detected! Assume -R? [n]


Now what shall I do !!

the edca-ns233.patch is in the directory: ns-allinone-2.34/

Last edited by Soumia; 06-05-2014 at 11:56 AM.
 
Old 06-05-2014, 04:57 PM   #24
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 23 .
Quote:
patching file ns-2.33/common/packet.h
Reversed (or previously applied) patch detected! Assume -R? [n]
That tells that you didn't start from scratch in a new directory.
Please do as shown in post #20.

Note : You can have as an infinite number of ns-allinone-2.34
at the same time. Just keep trying until you do right.

-
 
Old 06-19-2014, 04:58 AM   #25
artificialive
LQ Newbie
 
Registered: Apr 2008
Posts: 3

Rep: Reputation: 0
Quote:
Originally Posted by knudfl View Post
# 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 .

-
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.
 
Old 06-30-2014, 12:56 PM   #26
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 25 .
Quote:
should there be ns-edca ? I can't find any
The file "ns-edca" is written by you with the command $ cp ns ns-edca
 
Old 10-04-2014, 07:31 AM   #27
rana_abdallah
Member
 
Registered: Sep 2014
Posts: 45

Rep: Reputation: Disabled
can anyone send the mac80211e.tgz file?
I didnt found the patch file to simulae EDCA 802.11e
 
Old 10-04-2014, 10:48 AM   #28
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
← Post #27, @rana_abdallah.

See post #12 : edca-ns233.patch .
... And please read all posts in this thread.

All EDCA at LQ http://www.linuxquestions.org/questions/tags/edca/

-
 
Old 10-05-2014, 01:25 AM   #29
rana_abdallah
Member
 
Registered: Sep 2014
Posts: 45

Rep: Reputation: Disabled
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?
 
Old 10-05-2014, 04:06 AM   #30
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
← Ref. post #29.

"open it" : If you mean ``edca-ns233.patch´´ : A file.patch is a text file.

The file edca-ns233.patch contains the mac/802_11e/files* from
EDCA_ns-2_28-v1-0-2.tgz http://sourceforge.net/projects/ieee80211e-ns2/
Ref. http://www2.tkn.tu-berlin.de/research/802.11e_ns2/
"edca-ns233.patch" also includes the changes required for ns-2.33, ns-2.34.


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.

-

Last edited by knudfl; 10-05-2014 at 07:49 AM.
 
  


Reply

Tags
802.11e__ns2, edca, gcc34-compat64, ns2



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
Makefile problem while installing EDCA patch of 802.11e bilalcisco Linux - Newbie 7 10-04-2014 11:11 AM
[SOLVED] raspberry PI boot problem: faile to start login service golden_boy615 Linux - Embedded & Single-board computer 2 01-29-2014 01:06 AM
Storagetek san drive raid faile or offline using rhas 4.3 salimshahzad Linux - Hardware 5 01-23-2010 01:54 AM
gcc in ubuntu faile to compile some sources raduromeo Linux - Software 7 08-20-2006 09:14 AM
Relaying denied ip name lookup faile. RAHUKUMAR Linux - Software 2 12-02-2005 03:34 PM

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

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