LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-01-2012, 11:35 AM   #1
virenderNIT
LQ Newbie
 
Registered: Sep 2012
Posts: 7

Rep: Reputation: Disabled
Smile Getting error trying to install Manasim on Ns2.34


i am installing Manasim on Ns2.34 and getting one error

wpan -o mannasim/leach/mac/leach-wireless-phy.o mannasim/leach/mac/leach-wireless-phy.cc
mannasim/leach/mac/leach-wireless-phy.cc: In member function ‘virtual int LeachWirelessPhy::sendUp(Packet*)’:
mannasim/leach/mac/leach-wireless-phy.cc:54: error: ‘hdr_rca’ was not declared in this scope
mannasim/leach/mac/leach-wireless-phy.cc:54: error: ‘rca_hdr’ was not declared in this scope
mannasim/leach/mac/leach-wireless-phy.cc:54: error: ‘HDR_RCA’ cannot be used as a function
mannasim/leach/mac/leach-wireless-phy.cc:53: warning: unused variable ‘ch’
mannasim/leach/mac/leach-wireless-phy.cc: In member function ‘virtual void LeachWirelessPhy::sendDown(Packet*)’:
mannasim/leach/mac/leach-wireless-phy.cc:122: error: ‘hdr_rca’ was not declared in this scope
mannasim/leach/mac/leach-wireless-phy.cc:122: error: ‘rca_hdr’ was not declared in this scope
mannasim/leach/mac/leach-wireless-phy.cc:122: error: ‘HDR_RCA’ cannot be used as a function
make: *** [mannasim/leach/mac/leach-wireless-phy.o] Error 1
Please Help me and thanks in advance.............

Last edited by jschiwal; 09-02-2012 at 09:12 PM. Reason: ed by mod. deleted duplicate before moving
 
Old 09-01-2012, 12:25 PM   #2
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
Welcome to LQ.

Assume 'ns2.34-mannasim-gcc4.3.patch' https://www.box.com/shared/th6qi9b5v0
Info http://knowledgehurts.wordpress.com/...4-and-gcc-4-3/


Which "Linux OS" are you using ? ? ... Like Ubuntu 12.04.
This command will show : cat/etc/release/
And which architecture ? ( The 'uname -m' command.)


.

Last edited by knudfl; 09-02-2012 at 03:35 AM.
 
Old 09-02-2012, 12:20 AM   #3
virenderNIT
LQ Newbie
 
Registered: Sep 2012
Posts: 7

Original Poster
Rep: Reputation: Disabled
mannasim/leach/mac/leach-wireless-phy.cc:122: error: ‘hdr_rca’ was not declared in this scope

its not working
 
Old 09-02-2012, 12:36 AM   #4
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
There is an easy solution :

But you will have to answer the questions in post # 2.


1) The name of the patch.
2) Ubuntu version ..
3) The output of the command : uname -m


.
 
Old 09-02-2012, 01:40 AM   #5
virenderNIT
LQ Newbie
 
Registered: Sep 2012
Posts: 7

Original Poster
Rep: Reputation: Disabled
Help me same problem after the modification in packet.h file

In file included from common/scheduler.cc:48:
common/packet.h: In static member function ‘static Packet* Packet::alloc()’:
common/packet.h:727: error: ‘HDR_RCA’ was not declared in this scope
common/packet.h: In member function ‘Packet* Packet::copy() const’:
common/packet.h:802: error: ‘HDR_RCA’ was not declared in this scope
common/packet.h: In static member function ‘static void Packet::PrintRcHeader(Packet*, char*)’:
common/packet.h:835: error: ‘HDR_RCA’ was not declared in this scope
make: *** [common/scheduler.o] Error 1
 
Old 09-02-2012, 01:42 AM   #6
virenderNIT
LQ Newbie
 
Registered: Sep 2012
Posts: 7

Original Poster
Rep: Reputation: Disabled
using ubuntu 10.04
patch manasim website with modified files given in that folder
 
Old 09-02-2012, 01:48 AM   #7
virenderNIT
LQ Newbie
 
Registered: Sep 2012
Posts: 7

Original Poster
Rep: Reputation: Disabled
arch is i686
os Ubuntu 10.04
 
Old 09-02-2012, 05:14 AM   #8
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
Please read http://www.linuxquestions.org/linux/...Ask_a_Question
http://linuxsilo.net/docs/smart-questions_en.html
You are supposed to write the file name of the patch, you are using.
And to supply a link to the location, you got it from.
... May be you are using a mannasim patch for ns-2.29 ?


The ns-2.34 patch for mannasim :
http://knowledgehurts.wordpress.com/...4-and-gcc-4-3/
>> https://www.box.com/shared/th6qi9b5v0 >> ns2.34-mannasim-gcc4.3.patch

sudo apt-get install g++-4.3

cd ns-allinone-2.34/ && patch -p1 < ns2.34-mannasim-gcc4.3.patch &&
export CC=gcc-4.3 CXX=g++-4.3 && ./install : No errors ( Some warnings.)

.
 
Old 09-02-2012, 05:21 AM   #9
virenderNIT
LQ Newbie
 
Registered: Sep 2012
Posts: 7

Original Poster
Rep: Reputation: Disabled
regarding execution error

Dear knudfl
i have installed the Mannasim on ns2.3 as per your link provided by me.
now i am facing one more problem that when i am executing the TCL script generated by Mannasim. i am facing this error
ns:
[code omitted because of length]
: invalid command name "Agent/TCP/Newreno/QS"
while executing
"Agent/TCP/Newreno/QS set rbp_scale_ 0.75"
Please help me. Thaks in advance
 
Old 09-02-2012, 05:53 AM   #10
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
# 9 : The result from validate (make test) isn't very good,
about 50 tests fails. So do not expect all protocols to work well.

However : The files mannasim-rede-hierarquica.tcl, mannasim-rede-plana.tcl
work OK and will create : mannasim-rede-hierarquica.tr, mannasim-rede-plana.tr
http://www.mannasim.dcc.ufmg.br/download.htm
> http://www.mannasim.dcc.ufmg.br/down...rede-plana.tcl
> http://www.mannasim.dcc.ufmg.br/down...ierarquica.tcl

... Please make a test with those two files, and tell if they worked.

.
 
Old 09-02-2012, 09:09 PM   #11
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Please don't use such a title. It says nothing about your problem.
NS2 is a software simulator. I'm moving it to the Linux Software forum were it will get better exposure.
 
Old 09-03-2012, 06:18 AM   #12
virenderNIT
LQ Newbie
 
Registered: Sep 2012
Posts: 7

Original Poster
Rep: Reputation: Disabled
yes its working, but is problem for TCL script generated by MANNASIM Scriptgenerator
 
Old 04-18-2013, 11:13 AM   #13
Aska123
Member
 
Registered: Apr 2013
Posts: 197

Rep: Reputation: Disabled
Did you get a solution

Quote:
Originally Posted by virenderNIT View Post
i am installing Manasim on Ns2.34 and getting one error

wpan -o mannasim/leach/mac/leach-wireless-phy.o mannasim/leach/mac/leach-wireless-phy.cc
mannasim/leach/mac/leach-wireless-phy.cc: In member function ‘virtual int LeachWirelessPhy::sendUp(Packet*)’:
mannasim/leach/mac/leach-wireless-phy.cc:54: error: ‘hdr_rca’ was not declared in this scope
mannasim/leach/mac/leach-wireless-phy.cc:54: error: ‘rca_hdr’ was not declared in this scope
mannasim/leach/mac/leach-wireless-phy.cc:54: error: ‘HDR_RCA’ cannot be used as a function
mannasim/leach/mac/leach-wireless-phy.cc:53: warning: unused variable ‘ch’
mannasim/leach/mac/leach-wireless-phy.cc: In member function ‘virtual void LeachWirelessPhy::sendDown(Packet*)’:
mannasim/leach/mac/leach-wireless-phy.cc:122: error: ‘hdr_rca’ was not declared in this scope
mannasim/leach/mac/leach-wireless-phy.cc:122: error: ‘rca_hdr’ was not declared in this scope
mannasim/leach/mac/leach-wireless-phy.cc:122: error: ‘HDR_RCA’ cannot be used as a function
make: *** [mannasim/leach/mac/leach-wireless-phy.o] Error 1
Please Help me and thanks in advance.............
hello i am facing same problem. but i am using ns2.29 instead of ns2.34 on ubuntu 10.04
if you have a solution for any 2.34 or 2.29 ,plz provide me
 
Old 04-18-2013, 02:13 PM   #14
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
# 13 .

The solution that the OP, @virenderNIT used for ns-2.34 : post #8.
 
  


Reply

Tags
mannasim, 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
NS2 snapshot install error : tk8.4 sn68 Linux - Desktop 15 07-22-2014 05:53 AM
want to install ns2.29.3 along with mannasim patch for ns2.29 jeevanpinto Linux - Software 4 10-02-2013 12:09 AM
I got an error while running leach package in ns2.. help me to get out of this error. rkgowrishankar Linux - Software 1 02-07-2012 04:51 AM
hi i am trying to install ns2 2.34 in ubuntu 10.04. it showing the following error v123 Linux - Newbie 1 11-10-2010 11:10 AM
ns2 error prashantpanse Linux - Newbie 0 09-26-2008 09:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:06 AM.

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