Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
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.
|
|
|
01-29-2015, 07:59 AM
|
#16
|
LQ Newbie
Registered: Jan 2015
Posts: 17
Rep:
|
If you have any other tcl for obs then please share with me....so i can understand how to configure the obs network in ns2.
And after patch of obs only sim20_7b.tcl give the error as you have listed...and other program run successfully...so i can mean that no problem of gcc??
I have installed the ns2.27 with this steps given in below link and installed successfully...then neccesary to install any other gcc?
http://netlab-mn.unipv.it/wsn/dokuwiki/misc/ns2_227
|
|
|
01-29-2015, 10:12 AM
|
#17
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519
|
← Ref post #16 :
Quote:
neccesary to install any other gcc ?
|
The patch that you used, ns-2.27-ubuntu_10.04-gcc_4.patch
( Not much difference from the `ns-2.27-gcc410.patch´ )
probably adds a few edits for g++-4.3 .
So it seems OK for Ubuntu 10.04.
* Read post #13 : "using any old or new executable 'ns227-obs'"
→ → They all produce the same result,
i.e. the gcc/g++ version makes no difference.
Another tcl example ?
Please use Google, ns2 optical burst tcl
https://www.google.dk/webhp?hl=all&g...ical+burst+tcl
Examples, "may be some hints" ...
. http://kilyos.ee.bilkent.edu.tr/~ezhan/nOBS.pdf
* http://www.ijcst.com/vol22/1/rajeshwara.pdf
* TCL http://naveenshanmugam.blogspot.dk/
→ The "OBS-Network-Topology.tcl" : A worse result. No nam.out.
→ → With nam enabled / un-commented lines 62,63 :
sim20_7b.tcl creates a perfect out.nam .
About the "tcl errors" : ns-2.27 is eleven years old: 18-Jan-2004.
A suggestion could be : Test ns-2.27 + obs with a "Year 2004 OS".
Or 2005 : Slackware 10.1 . Or 2007 : CentOS 5.
-
|
|
1 members found this post helpful.
|
01-29-2015, 11:01 AM
|
#18
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519
|
CentOS 5 : No difference. The same terminal output.
But then again : Lots of output files →
→ cont.txt 75B, out.nam 26.2MB, out.tr 10.8MB, stat.txt 24kB.
-
Last edited by knudfl; 01-29-2015 at 11:15 AM.
|
|
1 members found this post helpful.
|
02-02-2015, 07:42 AM
|
#19
|
LQ Newbie
Registered: Jan 2015
Posts: 17
Rep:
|
I have remove here OpConverterSchedule:: then it is ok??
|
|
|
02-02-2015, 07:46 AM
|
#20
|
LQ Newbie
Registered: Jan 2015
Posts: 17
Rep:
|
#7 - I have remove here
OpSchedule:: for error...it is ok....or i have to anything else?
Last edited by Pinakini; 02-02-2015 at 07:49 AM.
|
|
|
02-10-2015, 11:48 PM
|
#21
|
LQ Newbie
Registered: Jan 2015
Posts: 17
Rep:
|
After apply obs0.9a patch i have following error...how to resolve?
obs-0.9a/cpp/integrated_agent.cc:91: error: invalid conversion from ‘const char*’ to ‘char*’
obs-0.9a/cpp/integrated_agent.cc: In member function ‘virtual void BurstManager::recv(Packet*, Handler*)’:
obs-0.9a/cpp/integrated_agent.cc:136: error: ‘PT_SELFSIM’ was not declared in this scope
obs-0.9a/cpp/integrated_agent.cc: In member function ‘virtual void IPKTAgent::recv(Packet*, Handler*)’:
obs-0.9a/cpp/integrated_agent.cc:282: warning: deprecated conversion from string constant to ‘char*’
obs-0.9a/cpp/integrated_agent.cc:282: warning: deprecated conversion from string constant to ‘char*’
obs-0.9a/cpp/integrated_agent.cc: In member function ‘void IPKTAgent::deBurst(Packet*)’:
obs-0.9a/cpp/integrated_agent.cc:360: error: ‘PT_SELFSIM’ was not declared in this scope
make: *** [obs-0.9a/cpp/integrated_agent.o] Error 1
|
|
|
02-11-2015, 05:08 AM
|
#22
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519
|
← ref. #21.
An error output really makes no sense without showing the preceding commands.
? What are you doing ? Which version of ns2 ?
"obs-0.9a" is for ns-2.26 ?
http://read.pudn.com/downloads164/so.../CHANGES__.htm
→ Please upload obs-0.9a.tar.gz to e.g. `Google Docs´,
and provide a download link.
( The above post #16 indicates that you have no issues.)
-
|
|
|
02-11-2015, 05:16 AM
|
#23
|
LQ Newbie
Registered: Jan 2015
Posts: 17
Rep:
|
Ya, thanks knufdl. actually some of paramater can not set by nobs simulator which i have previously applied....so i switched to obs0.9a...i will share you that by google...using same ubuntu10.04-32 bit and ns2.27.. i try to apply patch of obs09a...follow the step as suggested by change file...actually one of the reference paper i have read that they apply obs0.9a with ns2.27..and also in other document i read that it applied on ns2.28...so it may be compatible with old version after ns2.26..
|
|
|
02-11-2015, 06:31 AM
|
#24
|
LQ Newbie
Registered: Jan 2015
Posts: 17
Rep:
|
|
|
|
02-11-2015, 07:44 AM
|
#25
|
LQ Newbie
Registered: Jan 2015
Posts: 17
Rep:
|
Above problem is occured after the make...
|
|
|
02-11-2015, 08:34 AM
|
#26
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519
|
← ref. #24, #25.
Got the files : obs-0.9a-2015-02-11.zip , from Google Drive.
(Google can automatically pack up all the files / folders into one file.zip.)
#25, 'make'. The instructions are ~eleven years old.
.... Which means you cannot just edit the Makefile, and run 'make'.
I.e. in 2003 the gcc version was 3.2.x !
You can do :
Add the new objects to the Makefile.in, and run :
$ export CXX=g++34 && ./configure
$ make
.... Or you can edit the Makefile from : CPP = g++
To : CPP = g++34
* Make sure that gcc34-compat, g++34-compat are installed beforehand.
→ See post #11.
-
Last edited by knudfl; 02-11-2015 at 08:43 AM.
|
|
|
02-11-2015, 08:55 AM
|
#27
|
LQ Newbie
Registered: Jan 2015
Posts: 17
Rep:
|
I have done this steps....but same error is occured after make...
|
|
|
02-17-2015, 11:31 AM
|
#28
|
LQ Newbie
Registered: Jan 2015
Posts: 17
Rep:
|
I have successfully applied obs0.9a patch with ns2.27....now i want to know how to call .cc file in .tcl file...have any idea about that?
|
|
|
02-18-2015, 12:30 AM
|
#30
|
LQ Newbie
Registered: Jan 2015
Posts: 17
Rep:
|
ok..thanks for links...
i will not use c++ in tcl...as i have send you obs0.9a...in that cpp folder contain scheduler...in that lauc.cc file is there...in test01.tcl they have include this scheduler...in place of this lauc algorithm i want other scheduler...so i want to know how to call that?? If any idea than please tell me..
https://drive.google.com/file/d/0B_5...sp=sharing_eid
link is for testo1.tcl
|
|
|
All times are GMT -5. The time now is 03:23 PM.
|
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
|
|