How to install ZRP (Zone routing protocol) patch in ns-2.34
UbuntuThis forum is for the discussion of Ubuntu Linux.
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.
It is assumed, that you have a working ns-allinone-2.33,
i.e. the './install' command was run with no errors.
""Section 3.2 Instructions :
1. First put following files into NS-2 home's parent directory:
* ns-allinone-2.33_ZRP.tar.gz (This contains my code)
* PatchZRP.patch
* patchmyZRP.sh (THIS SHELL-SCRIPT FILE -
This script file should be run from NS-2 home' parent directory)
2. Run patchZRP.sh from shell."" ( Like 'sh patchZRP.sh' ).
.....
But the script patchZRP.sh isn't working, easier to do manually :
a) cd ns-allinone-2.33/ && patch -p1 < PatchZRP.patch
b) touch ns-2.33/common/packet.h && touch ns-2.33/trace/cmu-trace.h
c) cd ../ && tar xvf ns-allinone-2.33_ZRP.tar.gz
d) cd ns-allinone-2.33/ns-2.33 && make -k
... Tested this morning on Ubuntu 10.10, 32bits : OK.
.
but how to 64 bit zrp patch file step by step installation
I have implemented zrp through Ubuntu package. It is running OK. Now with my customized scenario and traffic for 50 nodes under varying number of connections, while simulation is going on, the messages are displayed -
I am working in ubuntu 10.10 ..i installed ns-2.33 successfully..i followed some posts above to install ZRP..but i am getting the following error..please help me..
First I put PatchZRP.patch ,patchmyZRP.sh,ns-allinone-2.33_ZRP.tar in ns-allinone-2.33 folder, then executed the following commands.
user@ubuntu:~/ns-allinone-2.33$ patch -p1 < PatchZRP.patch
patching file ns-2.33/common/packet.h
patching file ns-2.33/Makefile
patching file ns-2.33/tcl/lib/ns-agent.tcl
patching file ns-2.33/tcl/lib/ns-default.tcl
patching file ns-2.33/tcl/lib/ns-lib.tcl
patching file ns-2.33/tcl/lib/ns-packet.tcl
patching file ns-2.33/trace/cmu-trace.cc
patching file ns-2.33/trace/cmu-trace.h
user@ubuntu:~/ns-allinone-2.33$ touch ns-2.33/common/packet.h
user@ubuntu:~/ns-allinone-2.33$ touch ns-2.33/trace/cmu-trace.h
user@ubuntu:~/ns-allinone-2.33$ tar xvf ns-allinone-2.33_ZRP.tar.gz
ns-allinone-2.33/
ns-allinone-2.33/ns-2.33/
ns-allinone-2.33/ns-2.33/zrp/
ns-allinone-2.33/ns-2.33/zrp/zrp.h
ns-allinone-2.33/ns-2.33/zrp/constants.h
ns-allinone-2.33/ns-2.33/zrp/zrp.cc
user@ubuntu:~/ns-allinone-2.33$ cd ns-2.33
user@ubuntu:~/ns-allinone-2.33/ns-2.33$ make -k
g++ -c -g -Wall -Wall -DTCP_DELAY_BIND_ALL -DNO_TK -DTCLCL_CLASSINSTVAR -DNDEBUG -DLINUX_TCP_HEADER -DUSE_SHM -DHAVE_LIBTCLCL -DHAVE_TCLCL_H -DHAVE_LIBOTCL1_13 -DHAVE_OTCL_H -DHAVE_LIBTK8_4 -DHAVE_TK_H -DHAVE_LIBTCL8_4 -DHAVE_TCL_H -DHAVE_CONFIG_H -DNS_DIFFUSION -DSMAC_NO_SYNC -DCPP_NAMESPACE=std -DUSE_SINGLE_ADDRESS_SPACE -Drng_test -I. -I. -I/home/user/ns-allinone-2.33/tclcl-1.19 -I/home/user/ns-allinone-2.33/otcl-1.13 -I/home/user/ns-allinone-2.33/include -I/home/user/ns-allinone-2.33/include -I/usr/include/pcap -I./tcp -I./sctp -I./common -I./link -I./queue -I./adc -I./apps -I./mac -I./mobile -I./trace -I./routing -I./tools -I./classifier -I./mcast -I./diffusion3/lib/main -I./diffusion3/lib -I./diffusion3/lib/nr -I./diffusion3/ns -I./diffusion3/filter_core -I./asim/ -I./qs -I./diffserv -I./satellite -I./wpan -o trace/cmu-trace.o trace/cmu-trace.cc
trace/cmu-trace.cc:57: fatal error: zrp/zrp.h: No such file or directory
compilation terminated.
make: *** [trace/cmu-trace.o] Error 1
make: *** No rule to make target `zrp/zrp.o', needed by `ns'.
/home/user/ns-allinone-2.33/bin/tclsh8.4 bin/tcl-expand.tcl tcl/lib/ns-lib.tcl tcl/lib/ns-diffusion.tcl tcl/delaybox/delaybox.tcl tcl/packmime/packmime.tcl | ../tclcl-1.19/tcl2c++ et_ns_lib > gen/ns_tcl.cc
g++ -c -g -Wall -Wall -DTCP_DELAY_BIND_ALL -DNO_TK -DTCLCL_CLASSINSTVAR -DNDEBUG -DLINUX_TCP_HEADER -DUSE_SHM -DHAVE_LIBTCLCL -DHAVE_TCLCL_H -DHAVE_LIBOTCL1_13 -DHAVE_OTCL_H -DHAVE_LIBTK8_4 -DHAVE_TK_H -DHAVE_LIBTCL8_4 -DHAVE_TCL_H -DHAVE_CONFIG_H -DNS_DIFFUSION -DSMAC_NO_SYNC -DCPP_NAMESPACE=std -DUSE_SINGLE_ADDRESS_SPACE -Drng_test -I. -I. -I/home/user/ns-allinone-2.33/tclcl-1.19 -I/home/user/ns-allinone-2.33/otcl-1.13 -I/home/user/ns-allinone-2.33/include -I/home/user/ns-allinone-2.33/include -I/usr/include/pcap -I./tcp -I./sctp -I./common -I./link -I./queue -I./adc -I./apps -I./mac -I./mobile -I./trace -I./routing -I./tools -I./classifier -I./mcast -I./diffusion3/lib/main -I./diffusion3/lib -I./diffusion3/lib/nr -I./diffusion3/ns -I./diffusion3/filter_core -I./asim/ -I./qs -I./diffserv -I./satellite -I./wpan -o gen/ns_tcl.o gen/ns_tcl.cc
g++ -c -g -Wall -Wall -DTCP_DELAY_BIND_ALL -DNO_TK -DTCLCL_CLASSINSTVAR -DNDEBUG -DLINUX_TCP_HEADER -DUSE_SHM -DHAVE_LIBTCLCL -DHAVE_TCLCL_H -DHAVE_LIBOTCL1_13 -DHAVE_OTCL_H -DHAVE_LIBTK8_4 -DHAVE_TK_H -DHAVE_LIBTCL8_4 -DHAVE_TCL_H -DHAVE_CONFIG_H -DNS_DIFFUSION -DSMAC_NO_SYNC -DCPP_NAMESPACE=std -DUSE_SINGLE_ADDRESS_SPACE -Drng_test -I. -I. -I/home/user/ns-allinone-2.33/tclcl-1.19 -I/home/user/ns-allinone-2.33/otcl-1.13 -I/home/user/ns-allinone-2.33/include -I/home/user/ns-allinone-2.33/include -I/usr/include/pcap -I./tcp -I./sctp -I./common -I./link -I./queue -I./adc -I./apps -I./mac -I./mobile -I./trace -I./routing -I./tools -I./classifier -I./mcast -I./diffusion3/lib/main -I./diffusion3/lib -I./diffusion3/lib/nr -I./diffusion3/ns -I./diffusion3/filter_core -I./asim/ -I./qs -I./diffserv -I./satellite -I./wpan -o common/ptypes2tcl.o common/ptypes2tcl.cc
In file included from common/ptypes2tcl.cc:3:
common/packet.h: In static member function ‘static void p_info::initName()’:
common/packet.h:288: warning: deprecated conversion from string constant to ‘char*’
common/packet.h:289: warning: deprecated conversion from string constant to ‘char*’
common/packet.h:290: warning: deprecated conversion from string constant to ‘char*’
common/packet.h:291: warning: deprecated conversion from string constant to ‘char*’
common/packet.h:292: warning: deprecated conversion from string constant to ‘char*’
common/packet.h:293: warning: deprecated conversion from string constant to ‘char*’
common/packet.h:294: warning: deprecated conversion from string constant to ‘char*’
common/packet.h:295: warning: deprecated conversion from string constant to ‘char*’
common/packet.h:296: warning: deprecated conversion from string constant to ‘char*’
common/packet.h:297: warning: deprecated conversion from string constant to ‘char*’
common/packet.h:298: warning: deprecated conversion from string constant to ‘char*’
common/packet.h:299: warning: deprecated conversion from string constant to ‘char*’
common/packet.h:300: warning: deprecated conversion from string constant to ‘char*’
common/packet.h:301: warning: deprecated conversion from string constant to ‘char*’
common/packet.h:302: warning: deprecated conversion from string constant to ‘char*’
common/packet.h:303: warning: deprecated conversion from string constant to ‘char*’
common/packet.h:304: warning: deprecated conversion from string constant to ‘char*’
common/packet.h:305: warning: deprecated conversion from string constant to ‘char*’
common/packet.h:306: warning: deprecated conversion from string constant to ‘char*’
common/packet.h:307: warning: deprecated conversion from string constant to ‘char*’
common/packet.h:308: warning: deprecated conversion from string constant to ‘char*’
common/packet.h:310: warning: deprecated conversion from string constant to ‘char*’
common/packet.h:311: warning: deprecated conversion from string constant to ‘char*’
common/packet.h:312: warning: deprecated conversion from string constant to ‘char*’
common/packet.h:313: warning: deprecated conversion from string constant to ‘char*’
common/packet.h:314: warning: deprecated conversion from string constant to ‘char*’
common/packet.h:315: warning: deprecated conversion from string constant to ‘char*’
common/packet.h:317: warning: deprecated conversion from string constant to ‘char*’
common/packet.h:318: warning: deprecated conversion from string constant to ‘char*’
common/packet.h:319: warning: deprecated conversion from string constant to ‘char*’
common/packet.h:320: warning: deprecated conversion from string constant to ‘char*’
common/packet.h:321: warning: deprecated conversion from string constant to ‘char*’
common/packet.h:322: warning: deprecated conversion from string constant to ‘char*’
common/packet.h:323: warning: deprecated conversion from string constant to ‘char*’
common/packet.h:324: warning: deprecated conversion from string constant to ‘char*’
common/packet.h:325: warning: deprecated conversion from string constant to ‘char*’
common/packet.h:326: warning: deprecated conversion from string constant to ‘char*’
common/packet.h:327: warning: deprecated conversion from string constant to ‘char*’
common/packet.h:328: warning: deprecated conversion from string constant to ‘char*’
common/packet.h:329: warning: deprecated conversion from string constant to ‘char*’
common/packet.h:330: warning: deprecated conversion from string constant to ‘char*’
common/packet.h:332: warning: deprecated conversion from string constant to ‘char*’
common/packet.h:333: warning: deprecated conversion from string constant to ‘char*’
common/packet.h:335: warning: deprecated conversion from string constant to ‘char*’
common/packet.h:336: warning: deprecated conversion from string constant to ‘char*’
common/packet.h:337: warning: deprecated conversion from string constant to ‘char*’
common/packet.h:339: warning: deprecated conversion from string constant to ‘char*’
common/packet.h:342: warning: deprecated conversion from string constant to ‘char*’
common/packet.h:345: warning: deprecated conversion from string constant to ‘char*’
common/packet.h:348: warning: deprecated conversion from string constant to ‘char*’
common/packet.h:351: warning: deprecated conversion from string constant to ‘char*’
common/packet.h:354: warning: deprecated conversion from string constant to ‘char*’
common/packet.h:357: warning: deprecated conversion from string constant to ‘char*’
common/packet.h:361: warning: deprecated conversion from string constant to ‘char*’
common/packet.h:365: warning: deprecated conversion from string constant to ‘char*’
common/packet.h:366: warning: deprecated conversion from string constant to ‘char*’
common/packet.h:368: warning: deprecated conversion from string constant to ‘char*’
common/packet.h:369: warning: deprecated conversion from string constant to ‘char*’
common/packet.h:372: warning: deprecated conversion from string constant to ‘char*’
common/packet.h:375: warning: deprecated conversion from string constant to ‘char*’
common/packet.h:378: warning: deprecated conversion from string constant to ‘char*’
common/packet.h:381: warning: deprecated conversion from string constant to ‘char*’
common/packet.h:383: warning: deprecated conversion from string constant to ‘char*’
common/ptypes2tcl.cc: In function ‘int main()’:
common/ptypes2tcl.cc:58: warning: deprecated conversion from string constant to ‘char*’
common/ptypes2tcl.cc:60: warning: deprecated conversion from string constant to ‘char*’
common/ptypes2tcl.cc:61: warning: deprecated conversion from string constant to ‘char*’
common/ptypes2tcl.cc:62: warning: deprecated conversion from string constant to ‘char*’
common/ptypes2tcl.cc:70: warning: deprecated conversion from string constant to ‘char*’
common/ptypes2tcl.cc:71: warning: deprecated conversion from string constant to ‘char*’
common/ptypes2tcl.cc:72: warning: deprecated conversion from string constant to ‘char*’
common/ptypes2tcl.cc:73: warning: deprecated conversion from string constant to ‘char*’
common/ptypes2tcl.cc:74: warning: deprecated conversion from string constant to ‘char*’
common/ptypes2tcl.cc:75: warning: deprecated conversion from string constant to ‘char*’
common/ptypes2tcl.cc:76: warning: deprecated conversion from string constant to ‘char*’
common/ptypes2tcl.cc:77: warning: deprecated conversion from string constant to ‘char*’
common/ptypes2tcl.cc:78: warning: deprecated conversion from string constant to ‘char*’
common/ptypes2tcl.cc:79: warning: deprecated conversion from string constant to ‘char*’
common/ptypes2tcl.cc:80: warning: deprecated conversion from string constant to ‘char*’
common/ptypes2tcl.cc:81: warning: deprecated conversion from string constant to ‘char*’
common/ptypes2tcl.cc:82: warning: deprecated conversion from string constant to ‘char*’
common/ptypes2tcl.cc:83: warning: deprecated conversion from string constant to ‘char*’
common/ptypes2tcl.cc:84: warning: deprecated conversion from string constant to ‘char*’
g++ -Wl,-export-dynamic -o common/ptypes2tcl common/ptypes2tcl.o
./common/ptypes2tcl > gen/ptypes.cc
g++ -c -g -Wall -Wall -DTCP_DELAY_BIND_ALL -DNO_TK -DTCLCL_CLASSINSTVAR -DNDEBUG -DLINUX_TCP_HEADER -DUSE_SHM -DHAVE_LIBTCLCL -DHAVE_TCLCL_H -DHAVE_LIBOTCL1_13 -DHAVE_OTCL_H -DHAVE_LIBTK8_4 -DHAVE_TK_H -DHAVE_LIBTCL8_4 -DHAVE_TCL_H -DHAVE_CONFIG_H -DNS_DIFFUSION -DSMAC_NO_SYNC -DCPP_NAMESPACE=std -DUSE_SINGLE_ADDRESS_SPACE -Drng_test -I. -I. -I/home/user/ns-allinone-2.33/tclcl-1.19 -I/home/user/ns-allinone-2.33/otcl-1.13 -I/home/user/ns-allinone-2.33/include -I/home/user/ns-allinone-2.33/include -I/usr/include/pcap -I./tcp -I./sctp -I./common -I./link -I./queue -I./adc -I./apps -I./mac -I./mobile -I./trace -I./routing -I./tools -I./classifier -I./mcast -I./diffusion3/lib/main -I./diffusion3/lib -I./diffusion3/lib/nr -I./diffusion3/ns -I./diffusion3/filter_core -I./asim/ -I./qs -I./diffserv -I./satellite -I./wpan -o gen/ptypes.o gen/ptypes.cc
for i in indep-utils/cmu-scen-gen/setdest indep-utils/webtrace-conv/dec indep-utils/webtrace-conv/epa indep-utils/webtrace-conv/nlanr indep-utils/webtrace-conv/ucb; do ( cd $i; make all; ) done
make[1]: Entering directory `/home/user/ns-allinone-2.33/ns-2.33/indep-utils/cmu-scen-gen/setdest'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/user/ns-allinone-2.33/ns-2.33/indep-utils/cmu-scen-gen/setdest'
make[1]: Entering directory `/home/user/ns-allinone-2.33/ns-2.33/indep-utils/webtrace-conv/dec'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/user/ns-allinone-2.33/ns-2.33/indep-utils/webtrace-conv/dec'
make[1]: Entering directory `/home/user/ns-allinone-2.33/ns-2.33/indep-utils/webtrace-conv/epa'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/user/ns-allinone-2.33/ns-2.33/indep-utils/webtrace-conv/epa'
make[1]: Entering directory `/home/user/ns-allinone-2.33/ns-2.33/indep-utils/webtrace-conv/nlanr'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/user/ns-allinone-2.33/ns-2.33/indep-utils/webtrace-conv/nlanr'
make[1]: Entering directory `/home/user/ns-allinone-2.33/ns-2.33/indep-utils/webtrace-conv/ucb'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/user/ns-allinone-2.33/ns-2.33/indep-utils/webtrace-conv/ucb'
make: Target `all' not remade because of errors.
user@ubuntu:~/ns-allinone-2.33/ns-2.33$
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,492
Rep:
Post #207, @lintreesa :
Post #207 must be edited to use code tags around the "terminal output".
... Or you can delete all the surplus lines.
* One line will do : "fatal error: zrp/zrp.h: No such file or directory".
Old instructions, 2011 : This very thread, post #6.
2013 : Post #154. But please use "Latest" for Ubuntu, any version.
→ →
The latest patch, and the latest instructions, post #10 here ... http://www.linuxquestions.org/questi...4175519601/#10
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.