LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 04-21-2016, 01:50 AM   #1
Rach k
LQ Newbie
 
Registered: Apr 2016
Posts: 15

Rep: Reputation: Disabled
unable to patch GPSR routing in NS-2.35


Hello,
Anyone plz help me out here.
trying to patch GPSR for NS-2.35 on ubuntu 14, but its not happening.
I Have followed the steps, which are given earlier, but stucked in " $ ./install " command
the below error is showing

./mobile/god.h: In member function ‘void DHeap::copy(DHeap*)’:
./mobile/god.h:196:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
In file included from trace/cmu-trace.cc:67:0:
./locservices/hdr_locs.h: At global scope:
./locservices/hdr_locs.h:40:1: warning: ‘typedef’ was ignored in this declaration [enabled by default]
./locservices/hdr_locs.h:44:1: warning: ‘typedef’ was ignored in this declaration [enabled by default]
./locservices/hdr_locs.h:49:1: warning: ‘typedef’ was ignored in this declaration [enabled by default]
./locservices/hdr_locs.h:58:1: warning: ‘typedef’ was ignored in this declaration [enabled by default]
./locservices/hdr_locs.h:66:1: warning: ‘typedef’ was ignored in this declaration [enabled by default]
./locservices/hdr_locs.h:73:1: warning: ‘typedef’ was ignored in this declaration [enabled by default]
./locservices/hdr_locs.h:79:1: warning: ‘typedef’ was ignored in this declaration [enabled by default]
./locservices/hdr_locs.h:87:1: warning: ‘typedef’ was ignored in this declaration [enabled by default]
./locservices/hdr_locs.h:92:1: warning: ‘typedef’ was ignored in this declaration [enabled by default]
./locservices/hdr_locs.h:99:1: warning: ‘typedef’ was ignored in this declaration [enabled by default]
In file included from ./hls/hls_basic.h:12:0,
from trace/cmu-trace.cc:70:
./hls/hls.h:178:2: warning: ‘typedef’ was ignored in this declaration [enabled by default]
./hls/hls.h:232:2: warning: ‘typedef’ was ignored in this declaration [enabled by default]
./common/agent.h: In member function ‘Packet* HLS::allocpkt()’:
./common/agent.h:117:10: error: ‘Packet* Agent::allocpkt() const’ is protected
./hls/hls.h:455:52: error: within this context
make: *** [trace/cmu-trace.o] Error 1
Ns make failed!
See http://www.isi.edu/nsnam/ns/ns-problems.html for problems
 
Old 05-06-2016, 02:08 AM   #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
Quote:
I Have followed the steps, which are given earlier
Unknown steps, please always refer to a link and a post number with a date.

? May be you are using the wrong ns-2.35 ?
The easy going version is the "Oct 2014 update" ns-allinone-2.35_gcc482.tar.gz
... for all gcc / g++ versions 4.6 ... 5.2
https://drive.google.com/file/d/0B7S...ew?usp=sharing

Build example GPSR-hls http://network-simulator-ns-2.7690.n...g-td29371.html

GPSR info http://www.linuxquestions.org/questi...-4175431318/#6
. http://www.linuxquestions.org/questions/tags/gpsr/


Quote:
trying to patch GPSR
There is either GPSR-hls or GPSR-KeLiu. Must be specified by every question.
Ubuntu 14 : Version must be specified by every question :
Like Ubuntu 14.04 - 32bits or Ubuntu 14.04 - 64bits.


-

Last edited by knudfl; 05-06-2016 at 05:41 AM.
 
Old 05-12-2016, 11:02 PM   #3
h8yung
LQ Newbie
 
Registered: May 2016
Posts: 5

Rep: Reputation: Disabled
./common/agent.h:117:10: error: ‘Packet* Agent::allocpkt() const’ is protected
the error is above.I think you can make it public.maybe it will be okay.
do you do research about GPSR? performance analyze?
 
Old 05-13-2016, 06:04 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
Post #3, @h8yung : Welcome to LQ.
Quote:
./common/agent.h:117:10: error: ‘Packet* Agent::allocpkt() const’ is protected
GPSR is a broad term.
We have GPSR-hls and GPSR-KeLiu. Which flavor is your questions about ?

The "common/agent.h error" :
Did you modify anything. If not, you are using the wrong g++ version.
E.g. the Ubuntu g++-5 cannot be used with ns2.


-
 
Old 05-14-2016, 09:50 PM   #5
h8yung
LQ Newbie
 
Registered: May 2016
Posts: 5

Rep: Reputation: Disabled
Smile question

Quote:
Originally Posted by knudfl View Post
Post #3, @h8yung : Welcome to LQ.

GPSR is a broad term.
We have GPSR-hls and GPSR-KeLiu. Which flavor is your questions about ?

The "common/agent.h error" :
Did you modify anything. If not, you are using the wrong g++ version.
E.g. the Ubuntu g++-5 cannot be used with ns2.


-
my version is GPSR-KELIU.the problem is that the packet delivery ratio is zero when I do simulation on NS-2.35.I don't know how to deal with it.
 
Old 06-28-2016, 11:08 PM   #6
Rach k
LQ Newbie
 
Registered: Apr 2016
Posts: 15

Original Poster
Rep: Reputation: Disabled
@h8yung,
hi, even I am facing the same problem. Did you get the solution?
 
  


Reply

Tags
gpsr, 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
How to patch GPSR routing protocol to ns-2.35 sukhalid Linux - Newbie 50 04-07-2017 11:52 AM
Unable to open GPSR routing protocol patch in NS2.34. Its giving error. please help. shilpy Linux - Software 3 10-27-2015 02:46 AM
Patch GPSR Routing protocol in ns-2.xx Chakraborty Linux - Software 12 04-20-2015 05:04 AM
How to patch GPSR routing protocol to ns-2.34 nimacasino Linux - Software 287 06-10-2014 12:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

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