LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 10-26-2015, 02:32 AM   #1
shilpy
LQ Newbie
 
Registered: Sep 2012
Posts: 4

Rep: Reputation: Disabled
Unable to open GPSR routing protocol patch in NS2.34. Its giving error. please help.


I am unable to run GPSR patch in Ns2.34. Kindly help. All details n errors that are coming is written below:-



OS Used is - red hat linux 32-bit
Ns version-2.34
GPSR patch- KeLiu
Patch name-gpsr-KeLiu_ns234.patch

Following error is coming:

trace/cmu-trace.o: In function `hdr_hls::access(Packet const*)':
cmu-trace.cc.text._ZN7hdr_hls6accessEPK6Packet[hdr_hls::access(Packet const*)]+0x7): undefined reference to `hdr_hls:ffset_'
trace/cmu-trace.o: In function `hdr_locs::access(Packet const*)':
cmu-trace.cc.text._ZN8hdr_locs6accessEPK6Packet[hdr_locs::access(Packet const*)]+0x7): undefined reference to `hdr_locs:ffset_'
collect2: ld returned 1 exit status
make: *** [ns] Error 1


Need HELP.......

Last edited by shilpy; 10-28-2015 at 12:33 AM. Reason: I have not given in detail the problems which I am facing.
 
Old 10-26-2015, 08:04 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
The patches for ns-2.34/ are applied this way :

$ cd ns-allinone-2.34/
If GPSR-HLS : $ patch -p0 < GPSR-hls_ns234-2.patch
https://drive.google.com/file/d/0B7S...ew?usp=sharing

Or if you want GPSR-KeLiu : $ patch -p0 < gpsr-KeLiu_ns234.patch
https://drive.google.com/file/d/0B7S...ew?usp=sharing


GPSR info :
. http://www.linuxquestions.org/questions/tags/gpsr/
. https://groups.google.com/forum/?fro...gpsr|sort:date
. http://network-simulator-ns-2.7690.n...-hls&sort=date
. http://network-simulator-ns-2.7690.n...ys=0&sort=date

Build example, GPSR-KeLiu http://www.linuxquestions.org/questi...-4175542850/#5


-

Last edited by knudfl; 10-26-2015 at 08:06 AM.
 
Old 10-27-2015, 01:36 AM   #3
shilpy
LQ Newbie
 
Registered: Sep 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
My problem with GPSR Patch in NS 2.34

Dear Friends getting the following error while running GPSR Patch in NS2.34

Kindly help me.


trace/cmu-trace.cc:1153:error:'struct hdr_gpsr' has no member named 'mode_'
 
Old 10-27-2015, 02:46 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Re #3.

? Which GPSR patch ? HLS or KeLiu ? And what was the file name of the "patch" you added ?


Without all the right information nobody can know what you are doing and why errors appear ...
. http://www.linuxquestions.org/linux/...Ask_a_Question
. http://www.catb.org/~esr/faqs/smart-questions.html
... And which Linux OS are you using for ns-2.34 ? Name and version, please.
Every detail can mean a big difference : Is the OS 64bits or 32bits ?



-

Last edited by knudfl; 10-28-2015 at 05:14 AM.
 
1 members found this post helpful.
  


Reply

Tags
gpsr, 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
How to patch GPSR routing protocol to ns-2.35 sukhalid Linux - Newbie 50 04-07-2017 11:52 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
GPSR routing protocol on ns2.34 farfattou Programming 4 02-22-2013 02:58 AM

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

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