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!
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
./common/packet.h:329:10: error: ‘PT_ZRP’ was not declared in this scope
that looks like a gcc error
did you install gcc 3.4-compt on fedora 19 ?
the DEFAULT version 4.8 is WAY TO NEW to use to build ns2
and ARE you exporting cc=gcc34
set alternatives to use 3.4 ?
created sim-links to use 3.4
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
@bitsandeep : Welcome to LQ.
Please make sure that you do the ns-allinone build with ..
$ cd ns-allinone-2.33/ && export CC=gcc34 CXX=g++34 && ./install
.. The text in the (ZRP) ns-2.33/Makefile, line 37, must be :
CPP = g++34
P.S. : There is no ZRP for ns-2.35 !
The good news : You can have as many versions of ns-allinone-2.xx as you want,
installed at the same time. But : Do not add any *PATH text to .bashrc :
* Not required, when it's your computer !
the problem is with the setdest command. try to run the script with
preset coordinates first to make sure that there is no problem with the script
itself then check if the coordinates used by the setdest are within the
topology size that you specified and check if the command is written correctly
it seems that the arguments used for setdest are not correct.
My advice with ns2 start with a very simple script that works and add to it
little by little so that you can trace where the error is if you encounter one.
But anyway : You have the "259" MB trace file, and can analyse that.
I am again trying to implement ZRP in NS-2.34 on Fedora 19. Patch was not successful, I have done the steps manually, but in order to do it, it was AOMDV patch, which was a hurdle. So I made comment over PT_AOMDV, wherever it was in packet.h and other related files like cmu-trace. Now example zrp script is running, but in trace it is showing AOMDV instead of ZRP. Can you suggest the solution?
Depends which aomdv you added, and how you added it.
! The most common is that one patch cancels the previous patching !
... But most often it's easy to combine two »extra protocols« : Write new patch / files.
... So which aomdv is it about ? A link please.
I don't want to add two patches. In fact AOMDV patch is already there in Ns-2.34. I have made a fresh installation of NS-2 and tried to patch ZRP. Automatically it didn't work, since some hunks were failed during patching. So I did the steps mentioned in ZRP patch file, manually in files like packet.h, cmu-trace.cc and other files mentioned in the patch. Now during manual patching I found AOMDV in packet.h particularly this line:
static const packet_t PT_AOMDV = 61
so i had commented the above line and inserted the following line as mentioned in patch
static const packet_t PT_ZRP = 61
Likewise at all other related places, I had inserted the ZRP lines and commented the AOMDV lines. ZRP example script executed finally. But in trace it is showing AOMDV instead of ZRP. This is the case.
Now please let me know:
1. Should I change the line in packet.h as
static const packet_t PT_ZRP = 62 - will it work
2. Whether there is any other file, where AOMDV is still alive and affecting the trace,
3. Can we have AOMDV and ZRP simultaneously in NS-2.34?