LinuxQuestions.org
Review your favorite Linux distribution.
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 05-08-2015, 01:49 PM   #16
jainshubh017
LQ Newbie
 
Registered: Dec 2014
Posts: 22

Original Poster
Rep: Reputation: Disabled

Quote:
Originally Posted by jainshubh017 View Post
dear knudfl,
there were few errors of type variable undeclare which i have solved by comparing modified mmac files with original files.
after these 4-5 errors i am getting error-
Segmentation fault
make: *** [gen/ptypes.cc] Error 139

do you have any other cognitive radio mac protocol code,it will be a great help..
dear knudfl,
still i am getting th same error-
./common/ptypes2tcl > gen/ptypes.cc
Segmentation fault
make: *** [gen/ptypes.cc] Error 139

do u have a solution for it??
were u able to run that code without error??
 
Old 05-08-2015, 03:18 PM   #17
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,492

Rep: Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639
Re #16.

"that code" : ? Which code are you talking about ?
Be specific, please. I can't guess what you are doing.

? Still Ubuntu 10.04 - 32bits ?
Which command ? Which compiler ?
. http://www.catb.org/~esr/faqs/smart-questions.html


-
 
Old 05-08-2015, 05:39 PM   #18
jainshubh017
LQ Newbie
 
Registered: Dec 2014
Posts: 22

Original Poster
Rep: Reputation: Disabled
talking about mmac code.

after replacing source cide files in ns2.1b9a and running make it is showing that error.
 
Old 05-09-2015, 05:37 PM   #19
jainshubh017
LQ Newbie
 
Registered: Dec 2014
Posts: 22

Original Poster
Rep: Reputation: Disabled
i have successfully run the code(make) no idea how..
now want to test the protocol bu running given tcl file but it show this message-

root@shubham-laptop:/home/shubham/ns-allinone-2.1b9a/ns-2.1b9a# ./ns mmac-test.tcl
num_nodes is set 36
warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl
*** NOTE: no connection pattern specified.
*** NOTE: no scenario file specified.

MMAC Flow:3 Rate:0.025 P-Size:512 A-Size:20

Starting Simulation...
NS EXITING...

i have email-ed u the tcl file


thank u for ur help..

Last edited by jainshubh017; 05-11-2015 at 03:59 PM.
 
Old 05-10-2015, 01:54 AM   #20
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,492

Rep: Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639
Re #19.
Code:
# ./ns mmac-test.tcl
num_nodes is set 36
warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl
*** NOTE: no connection pattern specified.
*** NOTE: no scenario file specified.

MMAC Flow:3 Rate:0.025 P-Size:512 A-Size:20

Starting Simulation...
NS EXITING...
Looks OK.

* Spammers may harvest your email address. Please delete.
And : We already have the option "Send email to jainshubh017".
Besides that : We don't do emails for technical stuff.
""All technical discussions are supposed to take place in the Forums, so all readers can benefit from the solutions.""

** Can you tell which edits you did to the mmac code ?
? How did you succeed ?

-
 
1 members found this post helpful.
Old 05-11-2015, 04:04 PM   #21
jainshubh017
LQ Newbie
 
Registered: Dec 2014
Posts: 22

Original Poster
Rep: Reputation: Disabled
i have changed packet.h,cmu-trace.h,queue.h in that code file
i have emailed-you the files.

now i have to run that code in ns2.31 for project completion,but the source code of mac802.11.h,mac802.11.cc and cmu-trace.cc in ns2.31 are very different from that of ns2.19..

how can i run this code in ns2.31.
 
Old 09-01-2015, 03:09 AM   #22
um3
LQ Newbie
 
Registered: Sep 2015
Location: I m from India
Posts: 19

Rep: Reputation: Disabled
patch needed for mmac on ubuntu 14.04, 64bit, gcc4.8.4

Quote:
Originally Posted by knudfl View Post
Re #10.

Actually I did already have "mmac/" : '19 Mar 2012'
http://www.linuxquestions.org/questi...lation-935144/

I did a test build today with "ns-allinone-2.1b9a-gcc32" + mmac using g++-2.95 ..
Slackware 8.1 : No luck with the mmac code. A bug ?

Anyway I think you will have to fix the code to use a later gcc version (3.3.6)

-
Hi knudfl,

I am tryng to implement MMAC source in ns2.35, my laptop have ubuntu 14.04, 64 bits, gcc 4.8.4

MMAC source is developed in ns2.1b9a on gcc3.3.. so giving lots of errors on my machine.

I really need it like anything

can you help me with a patch?

Thank you

Last edited by um3; 09-01-2015 at 04:56 AM.
 
Old 09-01-2015, 04:46 AM   #23
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,492

Rep: Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639
Re post #22, @um3 : Welcome to LQ.

Please read all the above mmac posts.
To know that the mmac code isn't working even with ns-allinone-2.1b9a-gcc32(.tar.gz).


-
 
Old 09-01-2015, 04:54 AM   #24
um3
LQ Newbie
 
Registered: Sep 2015
Location: I m from India
Posts: 19

Rep: Reputation: Disabled
Quote:
Originally Posted by jainshubh017 View Post
i have changed packet.h,cmu-trace.h,queue.h in that code file
i have emailed-you the files.

now i have to run that code in ns2.31 for project completion,but the source code of mac802.11.h,mac802.11.cc and cmu-trace.cc in ns2.31 are very different from that of ns2.19..

how can i run this code in ns2.31.
Hi jainshubh017,

Can you let all know, what changes need to be done to MMAC source to make it work?

please add details..

BTW, did u manage to run in latest ns version?

Thanks
 
Old 09-01-2015, 05:29 AM   #25
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,492

Rep: Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639
Re #24.
Quote:
Originally Posted by jainshubh017 >>
i have changed packet.h,cmu-trace.h,queue.h in that code file
i have emailed-you the files.
For a starters, I can supply a link to the files I received from @jainshubh017 :
cmu-trace.h, packet.h, queue.h. Packed up as mmac_jainshubh017_edited-files.tar
. https://drive.google.com/file/d/0B7S...ew?usp=sharing


-

Last edited by knudfl; 09-01-2015 at 03:55 PM.
 
Old 09-01-2015, 11:16 AM   #26
um3
LQ Newbie
 
Registered: Sep 2015
Location: I m from India
Posts: 19

Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
Re #24.

For a starters, I can supply a link to the files I received from @jainshubh017 :
cmu-trace.h, packet.h, queue.h. Packet up as mmac_jainshubh017_edited-files.tar
. https://drive.google.com/file/d/0B7S...ew?usp=sharing


-
Thank you very much knudfl for the files posted.

And your response is super quick...
 
Old 09-14-2015, 10:39 AM   #27
um3
LQ Newbie
 
Registered: Sep 2015
Location: I m from India
Posts: 19

Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
Re #24.
For a starters, I can supply a link to the files I received from @jainshubh017 :
cmu-trace.h, packet.h, queue.h. Packed up as mmac_jainshubh017_edited-files.tar
. https://drive.google.com/file/d/0B7S...ew?usp=sharing
Hi Knudfl,

mmac_jainshubh017_edited-files.tar contain cmu-trace.h, packet.h, queue.h. and the other files(which contain actual MMAC)
are missing
mac/ mac-802_11.cc
mac-802_11.h
mac.h
mac-timers.cc
mac-timers.h
ll.cc

queue/
drop-tail.cc
drop-tail.h
queue.cc
queue.h

trace/
cmu-trace.cc
cmu-trace.h

common/
object.h
packet.h

These files are originally written in ns2.19ba and to make it work on ns2.33, these files need to be changed., which are quite a lot of changes..

Can you check you have these files too from shubuljain??

I need to make MMAC work,

Thanks for all your help.
 
Old 09-14-2015, 10:50 AM   #28
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,492

Rep: Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639
Re #27.

The original link for "ns-mmac.tar" is no more.
Ref. http://www.linuxquestions.org/questions/tags/mmac/ >>> 2012.

New link https://drive.google.com/file/d/0B7S...ew?usp=sharing
>>> new package name = mmac-ns2.tar.gz


-
 
Old 09-14-2015, 11:22 AM   #29
um3
LQ Newbie
 
Registered: Sep 2015
Location: I m from India
Posts: 19

Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
Re #27.

The original link for "ns-mmac.tar" is no more.
Ref. http://www.linuxquestions.org/questions/tags/mmac/ >>> 2012.

New link https://drive.google.com/file/d/0B7S...ew?usp=sharing
>>> new package name = mmac-ns2.tar.gz


-
Which version of ns should I run this?

Thanks again
 
Old 09-14-2015, 02:16 PM   #30
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,492

Rep: Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639
Re #29.

Please read all the above posts, i.e. posts #1 ... #21 ,,, thoroughly ....

May be @jainshubh017 got mmac to work with ns-allinone-2.31 ?

Else : The code is for ns-allinone-2.1b9a-gcc32.tar.gz .


-
 
  


Reply

Tags
mmac, ns2, ns2.1b9a


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
How to set up ns2.1b9a on Ubuntu 10.04 haiying7 Linux - Software 5 11-24-2011 02:46 PM
How to disable RTS/CTS in ns2.1b9a? haiying7 Programming 0 11-23-2011 11:36 PM
[SOLVED] ns2.1b9a-gcc32 installation error on Ubuntu 11.04. HELP! haiying7 Linux - Software 6 11-23-2011 01:36 PM
ns2.29.3 installation on fedora 15 , nam installation problem Narges Linux - Networking 5 10-31-2011 11:09 AM
How to install NS 2-1b9a on fedora 8 bm_ns2 Linux - Newbie 8 01-28-2011 06:28 AM

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

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