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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
|
05-24-2014, 10:34 AM
|
#241
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520
|
|
|
|
05-24-2014, 12:45 PM
|
#242
|
Member
Registered: Jan 2014
Location: India
Distribution: Linux-(Ubuntu 12.04,14.04.02). 32-bit for Research
Posts: 84
Rep: 
|
Dear Knudfl,
According to your post #96 which is also in accordance with #5 as specified in this thread I have executed the commands.But it is giving
cservice.o locservices/gridlocservice.cc
locservices/gridlocservice.cc: In member function ‘void GridLocService::evaluateLocation(Packet*)’:
locservices/gridlocservice.cc:249: error: ‘HDR_GPSR’ was not declared in this scope
locservices/gridlocservice.cc:253: error: ‘PT_GPSR’ was not declared in this scope
locservices/gridlocservice.cc: In member function ‘Packet* GridLocService::newReply(Packet*, nodelocation*)’:
locservices/gridlocservice.cc:747: error: ‘HDR_GPSR’ was not declared in this scope
locservices/gridlocservice.cc: In member function ‘Packet* GridLocService::newRequest(nsaddr_t)’:
locservices/gridlocservice.cc:794: error: ‘HDR_GPSR’ was not declared in this scope
locservices/gridlocservice.cc: In member function ‘Packet* GridLocService::newUpdate(nodelocation*)’:
locservices/gridlocservice.cc:830: error: ‘HDR_GPSR’ was not declared in this scope
locservices/gridlocservice.cc: In member function ‘Packet* GridLocService::newUpdAck(Packet*, nodelocation*)’:
locservices/gridlocservice.cc:890: error: ‘HDR_GPSR’ was not declared in this scope
locservices/gridlocservice.cc: In member function ‘Packet* GridLocService::newNotify(nodelocation*)’:
locservices/gridlocservice.cc:939: error: ‘HDR_GPSR’ was not declared in this scope
locservices/gridlocservice.cc: In member function ‘virtual int GridLocService::hdr_size(Packet*)’:
locservices/gridlocservice.cc:1385: error: ‘PT_GPSR’ was not declared in this scope
make: *** [locservices/gridlocservice.o] Error 1
Ns make failed!
See http://www.isi.edu/nsnam/ns/ns-problems.html for problems
Please suggest a way out.
With thanks.
Last edited by Chakraborty; 05-24-2014 at 12:47 PM.
|
|
|
05-24-2014, 02:37 PM
|
#243
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520
|
# 242 .
No. Post #96 is $ patch -p1 < ns-2.33-hls.patch && tar xvf hls-files-ns233.tar.gz
The safe way is $ tar xvf gpsr-hls-ns233-patching.tar.bz2
Please read http://www.linuxquestions.org/questi...-4175498876/#5
( But then again, I don't know why you can have any errors.)
* Ubuntu is not getting better at handling dubious patches like ns-2.33-hls.patch.
Which OS are you using now ?
a) uname -m
b) cat /etc/issue
* And which compiler are you using ? ?
Remark : You can add the OS {Name, version, architecture} to your profile.
-
|
|
|
05-24-2014, 04:17 PM
|
#244
|
Member
Registered: Jan 2014
Location: India
Distribution: Linux-(Ubuntu 12.04,14.04.02). 32-bit for Research
Posts: 84
Rep: 
|
# 242.
Dear knudfl,
Well, again by your help it took clean install.
Now what about path?...I am already having KeLiu-GPSR.
And validation.
*And finally the most important how to check and run the gpsr.
Where are the default tcl scripts?
->One interesting thing : it has formed a ns-2.33 directory within the ns-allinone-2.33/ns-2.33/
->The gpsr dir is not within ns-allinone-2.33/ns-2.33/,
rather within ns-allinone-2.33/ns-2.33/ns-2.33, and that to with no object file
[i.e gpsr.o]
Could you please explain?
many thanks for your consistent support and help!
Last edited by Chakraborty; 05-24-2014 at 04:36 PM.
|
|
|
05-24-2014, 05:53 PM
|
#245
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520
|
# 244 .
Quote:
it has formed a ns-2.33 directory within the ns-allinone-2.33/ns-2.33/
|
Time to read post #5 here ! http://www.linuxquestions.org/questi...-4175498876/#5
It clearly says :
$ cd ns-allinone-2.33/
$ tar xvf gpsr-hls-ns233-patching.tar.bz2
$ export CC=gcc41 CXX=g++41 && ./install
... If you do it different, you will of course fail with the build.
Quote:
Now what about path?...I am already having KeLiu-GPSR.
|
Delete any *PATH text that you added to .bashrc .
$ cd ns-allinone-2.34/ns-2.34/
$ cp ns ns-gpsr-keliu ( Or whatever name you like.)
$ sudo cp ns-gpsr-keliu /usr/local/bin/
.. And when you have done the ns-2.33 + GPSR-hls build :
$ cd ns-allinone-2.33/ns-2.33/
$ cp ns ns-hls
$ sudo cp ns-hls /usr/local/bin/
*** All simulations can then be run with $ ns-<new-name> file.tcl
All the above has been mentioned numerous times, e.g. here :
http://www.linuxquestions.org/questions/tags/gpsr-hls/
-
|
|
|
05-25-2014, 07:19 AM
|
#246
|
Member
Registered: Jan 2014
Location: India
Distribution: Linux-(Ubuntu 12.04,14.04.02). 32-bit for Research
Posts: 84
Rep: 
|
Dear Knudfl,
Reinstalled it ! I recognized the fault from post #245.
Installation and validation is done.
Great help !!
Analyzing the code.
Thanking you for all !! with a request for your mail-id.
|
|
|
05-25-2014, 10:40 AM
|
#247
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520
|
|
|
|
05-25-2014, 12:10 PM
|
#248
|
Member
Registered: Jan 2014
Location: India
Distribution: Linux-(Ubuntu 12.04,14.04.02). 32-bit for Research
Posts: 84
Rep: 
|
Dear knudfl,
When I run ns-hls hls.tcl after:
Quote:
chakraborty@chakraborty-Inspiron-1545:~$ cd ns-allinone-2.34/ns-2.34/
chakraborty@chakraborty-Inspiron-1545:~/ns-allinone-2.34/ns-2.34$
chakraborty@chakraborty-Inspiron-1545:~/ns-allinone-2.34/ns-2.34$ cp ns ns-gpsr-keliu
chakraborty@chakraborty-Inspiron-1545:~/ns-allinone-2.34/ns-2.34$ sudo cp ns-gpsr-keliu /usr/local/bin/
[sudo] password for chakraborty:
chakraborty@chakraborty-Inspiron-1545:~/ns-allinone-2.34/ns-2.34$ cd ..
chakraborty@chakraborty-Inspiron-1545:~/ns-allinone-2.34$ cd ..
chakraborty@chakraborty-Inspiron-1545:~$ cd ns-allinone-2.33/ns-2.33/
chakraborty@chakraborty-Inspiron-1545:~/ns-allinone-2.33/ns-2.33$ cp ns ns-hls
chakraborty@chakraborty-Inspiron-1545:~/ns-allinone-2.33/ns-2.33$ sudo cp ns-hls /usr/local/bin/
|
I got:
Quote:
chakraborty@chakraborty-Inspiron-1545:~/ns-allinone-2.33/ns-2.33/hls/utils$ ns-hls hls.tcl
num_nodes is set 40
Configuring Nodes (40)
INITIALIZE THE LIST xListHead
Starting Simulation...
...............
................
SORTING LISTS ...DONE!
channel.cc:sendUp - Calc highestAntennaZ_ and distCST_
highestAntennaZ_ = 1.5, distCST_ = 550.0
--- Classfier::no-slot{} default handler (tcl/lib/ns-lib.tcl) ---
_o31: no target for slot 0
_o31 type: Classifier/Port
content dump:
classifier _o31
0 offset
0 shift
2147483647 mask
1 slots
slot 255: _o33 (CMUTrace/Recv)
---------- Finished standard no-slot{} default handler ----------
|
Is it a problem ?
Please suggest the way out.
Though trace is formed!!
Unable to comprehend format of these sections from trace:
Especially the bolded sections.
Quote:
M 0.00000 37 (1729.94, 1089.38, 0.00), (1280.88, 1832.51), 12.63
M 0.00000 38 (157.71, 681.51, 0.00), (158.15, 18.42), 19.66
M 0.00000 39 (1204.51, 204.07, 0.00), (1721.98, 1412.68), 11.55
--------------------------------------------------------------
TESTQ 0.012128558015 0 (556.79 1023.40) 12 (1195.60 1560.18)
HLS_REQ_s 0.012128558015 (0_0) 0 ->12 <52 792.00 792.00 (1)>
VEPM 0.012129 _0_ [0 -> -2] [556.79/1023.40]
|
Please suggest.
Awaiting your reply.
With thanks.
Last edited by Chakraborty; 05-25-2014 at 12:35 PM.
|
|
|
05-25-2014, 12:20 PM
|
#249
|
Member
Registered: Jan 2014
Location: India
Distribution: Linux-(Ubuntu 12.04,14.04.02). 32-bit for Research
Posts: 84
Rep: 
|
#246
The link takes to a restricted access zone.
Please give some other means. And please reply to #248.
With thanks.
|
|
|
05-25-2014, 04:17 PM
|
#250
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520
|
# 248 .
GPSR-hls : An OS <not-one-of-the-later-versions> will work for the build.
You can read http://www.linuxquestions.org/questions/tags/gpsr-hls/
.. to know which versions that were used with success.
If you have a 32bits OS, just install the package, gpsr-hls-2.33-ubuntu10_i386.deb
https://drive.google.com/file/d/0B7S...it?usp=sharing
The package was built with (the now unsupported) Ubuntu 10.10 for best performance.
If you want to build your own version of GPSR-hls :
The safe choice of a supported OS is CentOS 6.5 - i686/i386.
-
Last edited by knudfl; 05-25-2014 at 05:20 PM.
|
|
|
05-26-2014, 02:36 AM
|
#251
|
Member
Registered: Jan 2014
Location: India
Distribution: Linux-(Ubuntu 12.04,14.04.02). 32-bit for Research
Posts: 84
Rep: 
|
Dear Knudfl,
Cannot understand what you mean by:
Quote:
GPSR-hls : An OS <not-one-of-the-later-versions> will work for the build.
|
Need to understand the mechanism of support. How to get it thorough?
And, YES... it is working now!
Please reply with reference to:
Quote:
#248
Unable to comprehend format of these sections from trace:
|
Awaiting a reply w.ref.t #246.
WITH THANKS.
Last edited by Chakraborty; 05-26-2014 at 02:40 AM.
|
|
|
05-26-2014, 05:40 AM
|
#252
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520
|
# 251 → #248.
Please read all files in /hls/utils/ : run.tcl README_HLS README.txt etc.
The documentation "Kiess2003b.pdf" is available as ``10.1.1.73.963.pdf´´
from http://citeseerx.ist.psu.edu/viewdoc...=rep1&type=pdf
... then you may find an explanation for the {HLS_REQ , TESTQ , VEPM } lines.
The error ""--- Classfier::no-slot{} default handler (tcl/lib/ns-lib.tcl) ---""
.. appears when you are building ns-2.33 + GPSR-hls
in an updated / current version of an OS. ( Ubuntu 13.10 .. 14.04 ? ).
* How did you solve the error ?
About email : All technical discussions are supposed to take place in the Forums,
.. then everybody else can benefit from the solutions.
The option "Send email to <name> is available.
( Option "Send email to Chakraborty" is also present, in all your posts.)
-
|
|
|
05-26-2014, 11:12 AM
|
#253
|
Member
Registered: Jan 2014
Location: India
Distribution: Linux-(Ubuntu 12.04,14.04.02). 32-bit for Research
Posts: 84
Rep: 
|
Dear knudfl,
Both KeLiu and HLS is using 802.11. I need to incorporate SMAC in hls, as it is highly energy efficient,
as my work is cross-layer.
But, whenever I am using it, it is giving
"Couldn't schedule timer".
What could be the problem ?
What more is to be added to wireless-gpsr.tcl & hls.tcl
Analysed the code. Some of the things seems to be in comprehensible !!
I have the Smac paper, which is proving not sufficient enough to
comprehend the working of Smac function-by-function, in terms of code.
Could you please help how to get the detailed documentation of Smac.
In short, how to get it working and analyse its working w.r.t code.
#252
Quote:
The option "Send email to <name> is available.
( Option "Send email to Chakraborty" is also present, in all your posts.)
|
Not finding from my side. Please mention from where to do that?
Thanking you for all above. 
Last edited by Chakraborty; 05-26-2014 at 11:18 AM.
|
|
|
05-26-2014, 04:09 PM
|
#254
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520
|
# 253 .
Works OK. Testing GPSR-hls simulations with SMAC :
1) hls.tcl (smac_hls.tcl)
2) ssoumayaa.tcl (smac_ssoumayaa.tcl) :
set val(mac) Mac/SMAC
.... No issues by using the old executable 'ns-hls' from Ubuntu 10.10 :
$ ns-hls <file>.tcl
Testing "smac_wireless-gpsr.tcl" : set val(mac) Mac/SMAC
.. No issues with the executable 'ns-gpsr-k' from Ubuntu 10.10 :
$ ns-gpsr-k smac_wireless-gpsr.tcl
-
|
|
|
05-27-2014, 01:53 AM
|
#255
|
Member
Registered: Jan 2014
Location: India
Distribution: Linux-(Ubuntu 12.04,14.04.02). 32-bit for Research
Posts: 84
Rep: 
|
Dear Knudfl,
W.ref.t #254
Quote:
1) hls.tcl (smac_hls.tcl)
2) ssoumayaa.tcl (smac_ssoumayaa.tcl)
|
"ssoumayaa.tcl" is not there in /utils(missing!!) Only "hls.tcl" & "run.tcl" present.
What other necessary files needed? Could you please upload it?
Already renamed the respective ns'
Will give a try a/c to #254
Working with 12.04. So, w.ref.t
Quote:
.... No issues by using the old executable 'ns-hls' from Ubuntu 10.10 :
$ ns-hls <file>.tcl
.. No issues with the executable 'ns-gpsr-k' from Ubuntu 10.10 :
$ ns-gpsr-k smac_wireless-gpsr.tcl
|
Will it not work in 12.04, or is it mandatory to switch to 10.10.
There must be some other way!!
My entire work is amidst, and and that to, in 12.04.
Please suggest.
With thanks.
Last edited by Chakraborty; 05-27-2014 at 01:55 AM.
|
|
|
All times are GMT -5. The time now is 07:29 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|