Linux - NewbieThis 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.
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.
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??
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
← 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.
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.
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
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..
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
← 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.
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
← ref. #28.
1) All C++ functions are compiled into the executable 'ns'.
2) Functions to be used in tcl/otcl syntax are also present in :
ns-2.xx/tcl/*/** → and all these functions are also compiled into 'ns'.
Which means that the most simulation only require this :
'ns' , ns-allinone.2.xx/{ bin/*, lib/* }.
Everything else can be deleted.
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..
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.