Location-service.h error in Building a GPSR module

226 views
Skip to first unread message

Ravneet Kaur

unread,
Mar 4, 2016, 3:48:51 AM3/4/16
to ns-3-users
Hi,
I am trying to build GPSR module . There exists a folder location-service. but When I am running ./waf getting an error location-servic.h doesnot exists. Pls suggest something. PFA
Thanks
location-serviceproblem.png

Konstantinos

unread,
Mar 4, 2016, 3:56:40 AM3/4/16
to ns-3-users
Hi Ravneet,

The location-service module is included in the patch for GPSR. 
It it a completely different module (i.e. folder inside /src as you mention), but you have to make sure that the wscript file is correct (compliant to the ns-3 release you use). 

K.

Ravneet Kaur

unread,
Mar 4, 2016, 5:01:50 AM3/4/16
to ns-3-...@googlegroups.com
Ok fine done now come to another error. first I ll try myself if ll not come to some solution then pls help.
Thanks

Ravneet Kaur

--
Posting to this group should follow these guidelines https://www.nsnam.org/wiki/Ns-3-users-guidelines-for-posting
---
You received this message because you are subscribed to a topic in the Google Groups "ns-3-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ns-3-users/6TMaxhB5gUE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ns-3-users+...@googlegroups.com.
To post to this group, send email to ns-3-...@googlegroups.com.
Visit this group at https://groups.google.com/group/ns-3-users.
For more options, visit https://groups.google.com/d/optout.

Ravneet Kaur

unread,
Mar 6, 2016, 3:18:42 AM3/6/16
to ns-3-...@googlegroups.com
Hi,
I stuck with number of errors. Can you provide me any link to know the current working functions or changes made in ns3.24. Here is the attachment of the errors coming now.
Thanks in Advance

Ravneet Kaur
Errors.png

Tommaso Pecorella

unread,
Mar 6, 2016, 6:03:21 AM3/6/16
to ns-3-users
Man, not to be harsh, but if you don't recognize a missing include you're in trouble. Go get some sleep.

#include "ns3/ipv4-l3-protocol-h"

T.

Ravneet Kaur

unread,
Mar 6, 2016, 10:43:57 AM3/6/16
to ns-3-...@googlegroups.com

Thanks.. I ll check..

Ravneet Kaur

unread,
Mar 6, 2016, 12:32:22 PM3/6/16
to ns-3-...@googlegroups.com
I m working on the errors..
I found some UniformRandomVariable Error. I also find the solution of declaring it. But again there is an error. In jitter, first jitter etc. Have look on the code and the error . If I am doing wrong pls guide. Sorry If I am irritating You ppl. ..
I was searching the error and found the same problem in the following link.

https://phdcomputerexperiance.wordpress.com/2015/07/07/error-log-in-ns3/

If possible pls guide me for this.
Thanks In Advance

Ravneet Kaur
COde.png
COde Error.png

Tommaso Pecorella

unread,
Mar 6, 2016, 1:06:31 PM3/6/16
to ns-3-users
Get some ***####**** sleep.

UniformVariable != UniformRandomVariable

The UniformVariable class has been removed long time ago, but just at the above line you used UniformRandomVariable.

T.

Ravneet Kaur

unread,
Mar 6, 2016, 2:00:02 PM3/6/16
to ns-3-...@googlegroups.com
It will be very kind of you if u ll help in this problem too. PFA
Thanks

Ravneet Kaur
link.png

Tommaso Pecorella

unread,
Mar 6, 2016, 3:01:13 PM3/6/16
to ns-3-users
It's the last one tho. I'm not doing you any favour doing this. I am indeed blocking your learning.

You forgot to define the GodLocationService default constructor.

T.

Ravneet Kaur

unread,
Mar 8, 2016, 12:19:20 PM3/8/16
to ns-3-...@googlegroups.com
Default constructor is already initialized. Please refer the attachments.. In god.h Default constructor is already there

Ravneet Kaur
god.h
libns3.24.1-gpsr-debug.so
location-service.h
god.cc
gpsr.h
gpsr.cc

Tommaso Pecorella

unread,
Mar 8, 2016, 12:46:50 PM3/8/16
to ns-3-users
Oh, I see...

now, in order to see what's the problem, I'll just have to download the original module, apply your changes, modify the wscript files and see if I spot the problem, assuming that it's not in the wscript or in one of the files you didn't upload. This because you didn't upload the modules, but only some of the source files (plus an unnecessary library).
Errr... mind to read the posting guidelines ?

Thanks,

T.

Ravneet Kaur

unread,
Mar 8, 2016, 1:03:34 PM3/8/16
to ns-3-...@googlegroups.com
I understand.. :(  If you will  help me to overcome my problem by  just running the changed module using ./waf . you will come to know about my problem. Can u pls then guide me about the error... If possible
PFA
Thanks
R.K.

Ravneet Kaur

You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-3-users+...@googlegroups.com.
gpsr.zip

Konstantinos

unread,
Mar 8, 2016, 4:15:46 PM3/8/16
to ns-3-users
Hi Ravneet,

Just one question, does this attached GPSR module have this structure also in your NS-3 code?
If yes, then it's totally wrong!! You have not created the Location-Service module you supposed to have.
You should have a different folder in /src for your location-service and its structure should be similar to that of any other ns-3 module.
Particularly I do not see any WSCRIPT file for that module...

If on the other hand you put everything inside the GPSR model (it is still valid but not very clean), you need to update the WSCRIPT file of that model to build the new files.
Details for how to do it are in the manual.

K.

Ravneet Kaur

To unsubscribe from this group and stop receiving emails from it, send an email to ns-3-users+unsubscribe@googlegroups.com.

Ravneet Kaur

unread,
Mar 9, 2016, 12:32:42 AM3/9/16
to ns-3-...@googlegroups.com
Thank you so Much K. and Thanks for being polite.. I really grateful., I will work on ur suggestions.

Ravneet Kaur


Ravneet Kaur

To unsubscribe from this group and stop receiving emails from it, send an email to ns-3-users+...@googlegroups.com.

To post to this group, send email to ns-3-...@googlegroups.com.
Visit this group at https://groups.google.com/group/ns-3-users.
For more options, visit https://groups.google.com/d/optout.

--
Posting to this group should follow these guidelines https://www.nsnam.org/wiki/Ns-3-users-guidelines-for-posting
---
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-3-users+...@googlegroups.com.

Ravneet Kaur

unread,
Mar 9, 2016, 1:39:16 AM3/9/16
to ns-3-...@googlegroups.com
Dear Sir,
I have made changes also include WSCRIPT but again the same error. What I feel is,
there is some linking problem in GOD file in Location-service module to GPSR. If i diagnosed it correctly pls suggest something about its connectivity.

Ravneet Kaur
problem.png

Konstantinos

unread,
Mar 9, 2016, 4:08:51 AM3/9/16
to ns-3-users
Hi,

Since you have changed the wscript file, you need to re-configure NS-3.
Instead of "./waf clean", do a "./waf distclean". Then you will need to "./waf configure" and then simple ./waf

If you still have issues you can send the wscript file you use and the folder structure for that module.

K.

Ravneet Kaur


Ravneet Kaur


Ravneet Kaur

To unsubscribe from this group and stop receiving emails from it, send an email to ns-3-users+unsubscribe@googlegroups.com.

To post to this group, send email to ns-3-...@googlegroups.com.
Visit this group at https://groups.google.com/group/ns-3-users.
For more options, visit https://groups.google.com/d/optout.

--
Posting to this group should follow these guidelines https://www.nsnam.org/wiki/Ns-3-users-guidelines-for-posting
---
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-3-users+unsubscribe@googlegroups.com.

Ravneet Kaur

unread,
Mar 9, 2016, 4:40:34 AM3/9/16
to ns-3-...@googlegroups.com
thank you so much


Ravneet Kaur

K.


Ravneet Kaur


Ravneet Kaur


Ravneet Kaur

To unsubscribe from this group and stop receiving emails from it, send an email to ns-3-users+...@googlegroups.com.

To post to this group, send email to ns-3-...@googlegroups.com.
Visit this group at https://groups.google.com/group/ns-3-users.
For more options, visit https://groups.google.com/d/optout.

--
Posting to this group should follow these guidelines https://www.nsnam.org/wiki/Ns-3-users-guidelines-for-posting
---
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-3-users+...@googlegroups.com.

To post to this group, send email to ns-3-...@googlegroups.com.
Visit this group at https://groups.google.com/group/ns-3-users.
For more options, visit https://groups.google.com/d/optout.

--
Posting to this group should follow these guidelines https://www.nsnam.org/wiki/Ns-3-users-guidelines-for-posting
---
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-3-users+...@googlegroups.com.

Ravneet Kaur

unread,
Mar 9, 2016, 5:31:47 AM3/9/16
to ns-3-...@googlegroups.com
Hii,
K. I built the module by using the commands provided by you . Thank you tons!!!

Ravneet Kaur

Keshav Arora

unread,
Dec 25, 2024, 8:21:18 AM12/25/24
to ns-3-users
Hi Ravneet,
I was working on gpsr and got struck with similar error you faced i was thinking if you can help me out.
Reply all
Reply to author
Forward
0 new messages