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.
I am adding a new protocol to ns2.29 called MPOLSR.
After making the required changes when I run make I am getting this error:
no rule to make target 'olsr/OLSR.0' needed by ns.
Anyone can explain this what does it mean and how to resolve it.
After I made the necessary changes according to the tutorial to implement a new protocol by Francisco J. Ros,I am getting these errors:
trace/cmu-trace.cc: In member function 'void CMUTrace:: format_mpolsr(Packet*, int)' :
trace/cmu-trace.cc:963: error: 'MPOLSR_pkt' was not declared in this scope
trace/cmu-trace.cc 963: error: 'op' was not declared in this scope
trace/cmu-trace.cc 963: error: 'PKT_MPOLSR' was not declared in this scope
trace/cmu-trace.cc 974: error: 'MPOLSR_HELLO_MSG' was not declared in this scope
trace/cmu-trace.cc 976: error: 'MPOLSR_TC_MSG' was not declared in this scope
trace/cmu-trace.cc 996: error: 'MPOLSR_HELLO_MSG' was not declared in this scope
trace/cmu-trace.cc 998: error: 'MPOLSR_TC_MSG' was not declared in this scope
trace/cmu-trace.cc 1018: error: 'MPOLSR_HELLO_MSG' was not declared in this scope
trace/cmu-trace.cc 1020: error: 'MPOLSR_TC_MSG' was not declared in this scope
make : *** [trace/cmu-trace.o] Error 1
I compared the changes done by Jiaziyi and there was no difference.I would be thnkful if someone could help me.Plz
Distribution: PCLinuxOS2023 CentOS7.9 + 50+ other Linux OS, for test only.
Posts: 17,486
Rep:
Well, I get no errors : ns-2.29_mpolsr.rar .
ns-2.29_mpolsr/ was added to an already compiled ns-allinone-2.29(.3)
and : cd ns-allinone-2.29/ns-2.29_mpolsr/ && make clean,
and also "make clean" in indep-utils/ :
The most deleting of the binaries in indep-utils must be done manually.
The new objects were added into the ns-2.29_mpolsr/Makefile.in, and :
export CC=gcc34 CXX=g++34 && ./configure && make : a new ns is created.
Your gcc / g++ version 3.4.6 may have different binary names.
Distribution: PCLinuxOS2023 CentOS7.9 + 50+ other Linux OS, for test only.
Posts: 17,486
Rep:
Fedora 9 : # yum install compat-gcc-34-c++
May be your own work will do ? When you use the right compiler, g++34.
I didn't add any protocol. Just the Makefile.in edits.
"ns-2.29_mpolsr" is a complete ns-2.29 with mpolsr already added.
The extra folders like ns-2.29_mpolsr/um-olsr-0.8.8/ is the authors
"work directory" : Not to be used. ( The original patch.)
If you have ns-allinone-2.29/ns-2.29_mpolsr/ns-2.29_mpolsr/ :
May be you added ns-2.29_mpolsr/ twice ? ?
.
cd ns-allinone-2.29/ns-2.29_mpolsr/ && make clean,
and also "make clean" in indep-utils/ :
The most deleting of the binaries in indep-utils must be done manually.
The new objects were added into the ns-2.29_mpolsr/Makefile.in, and :
export CC=gcc34 CXX=g++34 && ./configure && make
I followed according what you to wrote.
But now this error is coming:
hello
i added the protocol OLSR on ns2.29
$ cd ns-allinone-2.29/ns-2.29/
$ tar zxvf um-olsr-0.8.8.tgz
$ ln -s ./um-olsr-0.8.8 ./olsr
$ patch -p1 < olsr/um-olsr_ns-2.29_v0.8.8.patch but when i tape ./configure for the instalation i have an error
configure: error: Installation of tcl seems incomplete or can't be found automatically.
Please correct the problem by telling configure where tcl is
using the argument --with-tcl=/path/to/package
(perhaps after installing it),
or the package is not required, disable it with --with-tcl=no.
please help me
hello
we have the same prblm
i try to downlad the simulator ns2 witch the protoclo mpolsr is aded i take it http://www.jiaziyi.com/documents/SER....29_mpolsr.rar but the prbl is what are the Environment Variable for exemple for ns2.29
# LD_LIBRARY_PATH
OTCL_LIB=/home/mfouda/ns-allinone-2.29/otcl-1.11
NS2_LIB=/home/mfouda/ns-allinone-2.29/lib
X11_LIB=/usr/X11R6/lib
USR_LOCAL_LIB=/usr/local/lib
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$OTCL_LIB:$NS2_LIB:$X11_LIB:$USR_LOCAL_LIB
# PATH
XGRAPH=/home/mfouda/ns-allinone-2.29/bin:/home/mfouda/ns-allinone-2.29/tcl8.4.11/unix:/home/mfouda/ns-allinone-2.29/tk8.4.11/unix
NS=/home/mfouda/ns-allinone-2.29/ns-2.29/
NAM=/home/mfouda/ns-allinone-2.29/nam-1.11/
PATH=$PATH:$XGRAPH:$NS:$NAM
what about ns2.29_mpolsr exixted on the site of jiazy
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.