Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
when I make the compilation i get the following error
I had made changes in the files as required by the documnet
sara/sara.cc: In member function ‘virtual void Sara::recv(Packet*, Handler*)’:
sara/sara.cc:516: error: ‘struct hdr_cmn’ has no member named ‘pt_’
sara/sara.cc:529: error: ‘struct hdr_cmn’ has no member named ‘pts_’
sara/sara.cc:534: error: ‘struct hdr_cmn’ has no member named ‘pts_’
sara/sara.cc: In member function ‘virtual void Sara::rt_ll_failed(Packet*)’:
sara/sara.cc:2013: error: ‘struct hdr_cmn’ has no member named ‘pid’
sara/sara.cc: In member function ‘virtual void Sara::forwardData(Packet*, double)’:
sara/sara.cc:2229: error: ‘struct hdr_cmn’ has no member named ‘pid’
sara/sara.cc:2230: error: ‘struct hdr_cmn’ has no member named ‘pid’
sara/sara.cc:2231: error: ‘struct hdr_cmn’ has no member named ‘pid’
sara/sara.cc:2263: error: ‘struct hdr_cmn’ has no member named ‘pid’
sara/sara.cc:2265: error: ‘struct hdr_cmn’ has no member named ‘pid’
sara/sara.cc:2265: error: ‘struct hdr_cmn’ has no member named ‘pid’
sara/sara.cc: In member function ‘virtual void Sara::addSN(Packet*)’:
sara/sara.cc:2872: error: ‘struct hdr_cmn’ has no member named ‘psn_’
sara/sara.cc:2878: error: ‘struct hdr_cmn’ has no member named ‘psn_’
sara/sara.cc: In member function ‘virtual void Sara::getSN(Packet*)’:
sara/sara.cc:2899: error: ‘struct hdr_cmn’ has no member named ‘psn_’
make: *** [sara/sara.o] Error 1
I have also tried to run this "Simple Ant Routing Algorithm" using ns 2.31 on Ubunutu 10.10,gcc 4.3 and have also experienced the same errors as quoted by irphan.Please can any one help.
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
# 8.
Quote:
Dependency is not satisfiable: gcc-4.1-base (= 4.1.2-27ubuntu1)
Then please uninstall the 'gcc-4.1-base' package, if installed.
Download it from the links shown in post #7,
and then install it manually with 'sudo dpkg -i gcc-4.1-base*'.
The same for 'cpp-4.1'. (The last package to install is 'g++4.1'.
I have implemented simple ant routing algorithm using ns2.31 on fedora 14 .and encountered the following errors when i compile
trace/cmu-trace.o: In function `hdr_sara::access(Packet const*)':
cmu-trace.cc.text._ZN8hdr_sara6accessEPK6Packet[hdr_sara::access(Packet const*)]+0x7): undefined reference to `hdr_sara:ffset_'
trace/cmu-trace.o: In function `hdr_cbr::access(Packet const*)':
cmu-trace.cc.text._ZN7hdr_cbr6accessEPK6Packet[hdr_cbr::access(Packet const*)]+0x7): undefined reference to `hdr_cbr:ffset_'
collect2: ld returned 1 exit status
make: *** [ns] Error 1
Wrong. The package names are the ones, you will have to install with yum:
# yum install gcc-c++ automake autoconf libtool libX11-devel \
libXext-devel libXau-devel libXmu-devel xorg-x11-proto-devel
Quote:
after that i made changes in ~/.bashrc
.
.
after that i have done source ~/.bashrc
Why ? Not required.
Quote:
how can i know that that g++34 is used
This command clearly says : Use g++34 :
cd ns-allinone-2.31/ && export CC=gcc34 CXX=g++34 && ./install
Which you also will see, when you look at the make sequence for ns-2.34/.
I am going through the same issue as Rabia has mentioned in her post . If possible for you both specially kundfl I can arrange a remote Desktop of my installation so that we should achieve the solution ASAP
More over for information I am trying to run same SARA algorithum on fedora 14 and recieving same issues
my current installation is on VMWARE with fedora14 and ns2.31
in implementing the SARA algorithm by installing ns2.31 using gcc3.4 on fedora 14 .. now when i run the following on command prompt
make clean all;
few errors comes like this . can anybody help.? what this shows?
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/rabia/ns-allinone-2.31/ns-2.31/indep-utils/cmu-scen-gen/setdest'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/rabia/ns-allinone-2.31/ns-2.31/indep-utils/cmu-scen-gen/setdest'
make[1]: Entering directory `/home/rabia/ns-allinone-2.31/ns-2.31/indep-utils/webtrace-conv/dec'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/rabia/ns-allinone-2.31/ns-2.31/indep-utils/webtrace-conv/dec'
make[1]: Entering directory `/home/rabia/ns-allinone-2.31/ns-2.31/indep-utils/webtrace-conv/epa'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/rabia/ns-allinone-2.31/ns-2.31/indep-utils/webtrace-conv/epa'
make[1]: Entering directory `/home/rabia/ns-allinone-2.31/ns-2.31/indep-utils/webtrace-conv/nlanr'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/rabia/ns-allinone-2.31/ns-2.31/indep-utils/webtrace-conv/nlanr'
make[1]: Entering directory `/home/rabia/ns-allinone-2.31/ns-2.31/indep-utils/webtrace-conv/ucb'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/rabia/ns-allinone-2.31/ns-2.31/indep-utils/webtrace-conv/ucb'
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.