LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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-01-2014, 03:13 PM   #1
Soumia
LQ Newbie
 
Registered: Jun 2014
Posts: 12

Rep: Reputation: Disabled
Unhappy Faile make: EDCA


Hello,

I wanna try the EDCA path. I tried it on ns2.34 Ubuntu12.10 version.
But when I run the make command. It throws an error saying:
" mac/802-11e/mac-802_11e.cc:41:20: fatal error: stream.h: No such file or directory
compilation terminated.
make: *** [mac/802_11e/mac-802_11e.o] Error 1 "

please help me!

Last edited by Soumia; 06-01-2014 at 03:16 PM.
 
Old 06-01-2014, 05:02 PM   #2
dijetlo
Senior Member
 
Registered: Jan 2009
Location: RHELtopia....
Distribution: Solaris 11.2/Slackware/RHEL/
Posts: 1,307
Blog Entries: 2

Rep: Reputation: Disabled
@Soumia, let me give you one word of advice.
Don't title a thread "help me". Nobody here is compelled in any way to do that and the fact the you'd demand it is... well..irritating. I see your new so no harm, no foul, just file that away for future reference. You might try" Failed Make: EDCA" as a title, then you'd attract people who are interested in your problem.
Oh, BTW welcome to Linuxquestions.

Quote:
mac/802-11e/mac-802_11e.cc:41:20: fatal error: stream.h: No such file or directory
That would suggest that stream.h isn't in your $PATH, however that's not possible so I'd look at where the make file is telling the compiler to look for stream.h and fix it, or perhaps find stream.h on your system and make with the --libdirs switch pointing to it.
 
Old 06-01-2014, 06:27 PM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
@Soumia : Welcome to LQ.

Either use a compiler (g++ version 4.1.2) that has stream.h,
or edit the files to the new headers :
"stream.h" to "fstream" ( mac-802_11e.cc ).
"iostream.h" to "iostream" ( d-tail.cc ).
<iostream.h> to <iostream> ( mac-timers_802_11e.cc ).

The gcc-4.4 compiler will do for the 802.11e files :
$ export CC=gcc-4.4 CXX=g++-4.4 && ./configure && make

-
 
1 members found this post helpful.
Old 06-04-2014, 04:58 AM   #4
Soumia
LQ Newbie
 
Registered: Jun 2014
Posts: 12

Original Poster
Rep: Reputation: Disabled
post#3; Thanks for your reply!
"use a compiler (g++ version 4.1.2) that has stream.h" ;
how can I use it ?!!



Best regards.
 
Old 06-04-2014, 06:14 AM   #5
Soumia
LQ Newbie
 
Registered: Jun 2014
Posts: 12

Original Poster
Rep: Reputation: Disabled
post#3
When I edit the files to the new headers :
"stream.h" to "fstream" ( mac-802_11e.cc ).
"iostream.h" to "iostream" ( d-tail.cc ).
<iostream.h> to <iostream> ( mac-timers_802_11e.cc ).
after, I type make and I get the following error:

mac/802_11e/mac-802_11e.cc: In member function ‘void Mac802_11e::send_timer()’:
mac/802_11e/mac-802_11e.cc:671:13: warning: unused variable ‘s’ [-Wunused-variable]
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

What shall I do ?!!!

Last edited by Soumia; 06-04-2014 at 06:16 AM.
 
Old 06-04-2014, 07:43 AM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
# 5 .

$ sudo apt-get install g++-4.4

$ cd ns-allinone-2.34/ns-2.34/
See post #3 : $ export CC=gcc-4.4 CXX=g++-4.4 && ./configure && make

Or :
Edit the Makefile, line 37 to :
CPP = g++-4.4
... and do $ make

-
 
Old 06-04-2014, 08:07 AM   #7
Soumia
LQ Newbie
 
Registered: Jun 2014
Posts: 12

Original Poster
Rep: Reputation: Disabled
#6
When I type the command below:
cd ns-allinone-2.34/ns-2.34/sudo apt-get install gcc-4.4 g++-4.4
the results are:

Reading package lists... Done
Building dependency tree
Reading state information... Done
g++-4.4 is already the newest version.
gcc-4.4 is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 460 not upgraded.

then $ make..the result is:

mac/802_11e/mac-802_11e.cc: In member function ‘void Mac802_11e::send_timer()’:
mac/802_11e/mac-802_11e.cc:671:13: warning: unused variable ‘s’ [-Wunused-variable]
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-04-2014, 08:24 AM   #8
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
# 7 .

Did you check the Makefile ? Must be
CPP = g++-4.4


Which Ubuntu 12.10 are you using ?
Please show the output from the command $ uname -m


-
 
Old 06-04-2014, 08:37 AM   #9
Soumia
LQ Newbie
 
Registered: Jun 2014
Posts: 12

Original Poster
Rep: Reputation: Disabled
#8
I'm using Ubuntu 12.10 x86_64

yes, I did
but the error stay the same.
 
Old 06-04-2014, 10:21 AM   #10
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
# 9 .

The Ubuntu 12.10 -64 g++ compilers won't do for the 8 year old EDCA code.

Solution : Edit the Makefile to : CPP = g++34
.. and you can finish the few missing things with $ make

*** You will of course have to install "gcc34/g++34" to use g++34 :
compat-gcc34 https://docs.google.com/file/d/0B7S2...it?usp=sharing
compat-g++34 https://docs.google.com/file/d/0B7S2...it?usp=sharing
$ sudo dpkg -i compat-gcc34-3.4.6-ubuntu1204-1_amd64.deb compat-gcc-34-c++_3.4.6-20_amd64.deb
.. or use the 'Package Installer' : Click the packages.

-
 
Old 06-04-2014, 11:49 AM   #11
Soumia
LQ Newbie
 
Registered: Jun 2014
Posts: 12

Original Poster
Rep: Reputation: Disabled
I did all what you said
but when I type the command make I get the following error:


mac/mac-802_11.o: In function `std::list<ap_table, std::allocator<ap_table> >::_M_insert(std::_List_iterator<ap_table>, ap_table const&)':
mac-802_11.cc.text._ZNSt4listI8ap_tableSaIS0_EE9_M_insertESt14_List_iteratorIS0_ERKS0_[std::list<ap_table, std::allocator<ap_table> >::_M_insert(std::_List_iterator<ap_table>, ap_table const&)]+0x3a): undefined reference to `std::__detail::_List_node_base::_M_hook(std::__detail::_List_node_base*)'
collect2: ld returned 1 exit status
make: *** [ns] Error 1

What's the matter !!
 
Old 06-04-2014, 02:09 PM   #12
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
# 11 .

And again : ? Are you sure the ns-2.34/Makefile has CPP = g++34

The test I did with Ubuntu 12.10 - 64, earlier today :
$ 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
https://drive.google.com/file/d/0B7S...it?usp=sharing
$ export CC=gcc-4.4 CXX=g++-4.4 && ./install
... When the mac-802_11e errors appeared, I edited to : CPP = g++34
... and continued with 'make' : No errors, the executable ns was created.

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

Original Poster
Rep: Reputation: Disabled
yes , I'm shure
 
Old 06-04-2014, 02:37 PM   #14
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
# 13 .

Ref. #11 : Could be you have done some coding errors when adding EDCA.

Please use the patch that works OK : edca-ns233.patch
 
Old 06-04-2014, 02:56 PM   #15
Soumia
LQ Newbie
 
Registered: Jun 2014
Posts: 12

Original Poster
Rep: Reputation: Disabled
I check my files again;
and I run the command "make"
the result :

make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/soumia/ns-allinone-2.34/ns-2.34/indep-utils/cmu-scen-gen/setdest'
make[1]: Entering directory `/home/soumia/ns-allinone-2.34/ns-2.34/indep-utils/webtrace-conv/dec'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/soumia/ns-allinone-2.34/ns-2.34/indep-utils/webtrace-conv/dec'
make[1]: Entering directory `/home/soumia/ns-allinone-2.34/ns-2.34/indep-utils/webtrace-conv/epa'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/soumia/ns-allinone-2.34/ns-2.34/indep-utils/webtrace-conv/epa'
make[1]: Entering directory `/home/soumia/ns-allinone-2.34/ns-2.34/indep-utils/webtrace-conv/nlanr'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/soumia/ns-allinone-2.34/ns-2.34/indep-utils/webtrace-conv/nlanr'
make[1]: Entering directory `/home/soumia/ns-allinone-2.34/ns-2.34/indep-utils/webtrace-conv/ucb'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/soumia/ns-allinone-2.34/ns-2.34/indep-utils/webtrace-conv/ucb'


please tell me that the result means that the patch is properly installed
 
  


Reply

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


All times are GMT -5. The time now is 04:25 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