LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 03-18-2012, 03:05 PM   #1
madocar
LQ Newbie
 
Registered: Nov 2011
Posts: 3

Rep: Reputation: Disabled
ns-2 simulation


Hello everyone

I want to ask you to help me to run simulation in ns-2. It's very important for me.

I have got source code
I have got ns-2.1b9a version installed


Then I did everything according instructions :
- MMAC is implemented on ns-2.1b9a version
- put ns-mmac.tar in folder ns-2.1b9a
- tar xvf ns-mmac.tar
- make (maybe you want to do "make clean" to rebuild all)
- ./ns mmac-test.tcl to test it out.


But however when I do compilation "make" then error occurs and the simulation doesn't work for me.
The source code with instruction is here

http://www.sendspace.com/file/x2wwvi

Could you try it if it does work for you?

Thank you so much for replying

Natalie
 
Old 03-18-2012, 05:16 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,689

Rep: Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972
Quote:
Originally Posted by madocar View Post
Hello everyone
I want to ask you to help me to run simulation in ns-2. It's very important for me. I have got source code I have got ns-2.1b9a version installed

Then I did everything according instructions :
- MMAC is implemented on ns-2.1b9a version
- put ns-mmac.tar in folder ns-2.1b9a
- tar xvf ns-mmac.tar
- make (maybe you want to do "make clean" to rebuild all)
- ./ns mmac-test.tcl to test it out.


But however when I do compilation "make" then error occurs and the simulation doesn't work for me. The source code with instruction is here
http://www.sendspace.com/file/x2wwvi

Could you try it if it does work for you?
No, but we could try to help you with the error, if you bothered to tell us what error(s) you're getting. Even if we installed that on our systems, they may not be the same as yours, and we won't get ANY errors, or a different one. Asking us to run something is pointless...tell us what error(s) you're getting, on what version/distro of Linux, and we can try to help. Otherwise, there's little we can do.
 
1 members found this post helpful.
Old 03-19-2012, 08:21 AM   #3
madocar
LQ Newbie
 
Registered: Nov 2011
Posts: 3

Original Poster
Rep: Reputation: Disabled
after compilation "make" error occurs

In file included from queue/semantic-packetqueue.cc:41:
queue/semantic-packetqueue.h:114: error: conflicting return type specified for `virtual Packet* SemanticPacketQueue::enque(Packet*)'
queue/queue.h:54: error: overriding `virtual void PacketQueue::enque(Packet*)'
queue/semantic-packetqueue.cc: In member function `virtual Packet* SemanticPacketQueue::enque(Packet*)':
queue/semantic-packetqueue.cc:284: error: void value not ignored as it ought to be
make: *** [queue/semantic-packetqueue.o] Error 1
 
Old 03-19-2012, 09:31 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Repeat from post # 2 : Which Linux OS are you using ? Name and version, please.

The original ns-allinone-2.1b9a compiled with gcc-2.95 / g++-2.95 only.
The "gcc patched" ns-allinone-2.1b9a-gcc32.tar.gz : gcc / g++ version 3.3.6 .

May be the ns-mmac patch is too old to work with g++-3.3.6 ?

Which version of g++ are you using ?

.
 
1 members found this post helpful.
  


Reply

Tags
mmac, 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
wireless simulation tootz Linux - Software 2 03-22-2011 12:19 AM
NS2 network simulation problem:Change queue parameters dynamically during simulation raeisy Linux - Networking 1 11-21-2010 11:30 AM
Acoustic simulation program or (sound wave simulation program) tarotint Linux - Software 2 02-24-2010 04:04 AM
ns-2.29 example of simulation anyone has it? back-off Linux - Networking 0 04-17-2006 01:44 PM
C simulation shegay18 Programming 4 06-14-2005 07:49 AM

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

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