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.
After #./configure, when i ran "#make" command i got the following errors:
.text._ZN11WirelessPhyD2Ev' referenced in section `.text._ZN11WirelessPhyD1Ev[non-virtual thunk to WirelessPhy::~WirelessPhy()]' of mac/wireless-phy.o: defined in discarded section `.text._ZN11WirelessPhyD2Ev[_ZN11WirelessPhyD5Ev]' of mac/wireless-phy.o
collect2: ld returned 1 exit status
make: *** [ns] Error 1
Please anybody help me to resolve this, even after this my ns2 has stopped working and it shows a message:
"[riazkhan@localhost ~]$ ns
Command not found. Similar command is: 'nc'
[riazkhan@localhost ~]$
"
please help me...
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
If you want to use the example files from Pradeepkumar, http://www.nsnam.com/2013/06/mannasi...lator-for.html
... you will have to clean the provided mannasim/ folder :
$ rm -f *.o
I.e. the already compiled ``objects.o´´ may not work with your OS.
Also : The files.cc may not be usable with a contemporary g++ compiler.
The tested solution that I know is the mannasim patched "ns-allinone-2.35-paultsr" https://github.com/paultsr/ns-allinone-2.35
>>> $ git clone https://github.com/paultsr/ns-allinone-2.35
$ cd ns-allinone-2.35/ && ./install
$ cd ns-2.35/
$ strip ns
$ cp ns ns235-mannasim
# cp ns235-mannasim /usr/local/bin/
$ ns235-mannasim mannasim-rede-plana.tcl
Comments : The `paultsr´ ns-allinone-2.35 is updated to use e.g. gcc-4.7,
may be 4.8 (I don't remember), like the upcoming ns-allinone-2.36 .
thanks Knudfl,
i resolved the problem mentioned above, i again ran ./install with the MANNASIM folder pasted unde cd ns-2.35 and after that i tried those two scripts shown in http://www.nsnam.com/2013/06/mannasi...lator-for.html to check it, it worked and showed the expected outcome.
Now i want some more help, i want to implement FHPMIPv6 and PMIPv6 protocols for WSN on NS2, As i know mannasim is for providing WSN environment that i have patched but now please suggest me how to implement FHPMIPv6 and PMIPv6 for the same. your suggestions are always helpful to us. thanks...
thanks knudfl,
Now i am trying ns2.29 for the same and also will go through the links you have provided in #3. I installed ns2.29 succesfully but the already installed NAM-1.14 is only working in ROOT mode '#'. please tell me how to change the privileges. one more query is when we install more than two versions of ns2 then how to set the paths in .bashrc file or how to switch between the two. please if possible give steps here and do no the links as i have followed the links but could not understand them well.
i tried the above command "# chmod 0755 /usr/local/bin/nam" and resolved the nam problem .
i am using FEDORA 14.
NOW i am with "ns2.29" installed with "mannasim-patch.diff" successfully along with working NAM and separately installed XGRAPH.
I have downloaded "pmip6-for-ns-2.29-nist.patch" and "ns-2.29-nist-mob-022707 package", Please guide me how to patch "pmip6-for-ns-2.29-nist.patch" . Do i need "ns-2.29-nist-mob-022707 package" for the patch as i want to simulate PMIPv6 protocol for WSN.
Your help is always great. Really thankful to you Mr. Knudfl
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
# 8 .
OK, Fedora. The 32bits (i686) Fedora 14 can be used. Not 64bits !
Ref. http://www.linuxquestions.org/questi...-a-4175463585/
(#10 etc.) Please read all the posts.
Please use this command to test the OS : $ uname -m
The build goes like this ...
$ tar xvf ns-allinone-2.29.3.tar.gz
$ cd ns-allinone-2.29/
$ tar xvf ns-2.29-nist-mob-022707.tgz
$ patch -p0 < pmip6-for-ns-2.29-nist.patch
$ export CC=gcc34 CXX=g++34 && ./install
hello Mr. Knudfl
As my OS is FEDORA 14- 64bit and I got the package "pmip6-nistmob-ns-2.29-1.el5.x86_64.rpm". I was not knowing how to use it. I put it in the "ns-allinone-2.29" and double clicked it and it get installed. Further i put the patch "pmip6-for-ns-2.29-nist.patch" in "ns-allinone-2.29" and tried to patch it with command and showed the following:
"[riazkhan@localhost ~]$ cd ns-allinone-2.29/
[riazkhan@localhost ns-allinone-2.29]$ patch -p1 < pmip6-for-ns-2.29-nist.patch
can't find file to patch at input line 4
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -uNr ns-2.29-nist/hsntg/nd.cc ns-2.29/hsntg/nd.cc
|--- ns-2.29-nist/hsntg/nd.cc 2007-01-20 07:31:42.000000000 +0900
|+++ ns-2.29/hsntg/nd.cc 2009-08-11 15:14:27.031250000 +0900
--------------------------
File to patch:
Skip this patch? [y] "
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
Ref. #11 .
Please read post #9 :
! It's $ patch -p0 < pmip6-for-ns-2.29-nist.patch
! Not -p1 → → You will have to start from scratch with ..
$ tar xvf ns-allinone-2.29.3.tar.gz
And : You cannot use a 64bits OS for ns2 / the above additions.
Please install a 32bits OS on a spare partition / a spare disk.
"The build goes like this ...
$ tar xvf ns-allinone-2.29.3.tar.gz
$ cd ns-allinone-2.29/
$ tar xvf ns-2.29-nist-mob-022707.tgz
$ patch -p0 < pmip6-for-ns-2.29-nist.patch
$ export CC=gcc34 CXX=g++34 && ./instal"
It got patched successfully even on 64 bit OS.
"[riazkhan@localhost Desktop]$ ns pmip.tcl
num_nodes is set 6
INITIALIZE THE LIST xListHead
_o97 channelID = 2412000000.000000
_o127 channelID = 2437000000.000000
_o200 channelID = 2412000000.000000
channel.cc:sendUp - Calc highestAntennaZ_ and distCST_
highestAntennaZ_ = 1.5, distCST_ = 513.3
SORTING LISTS ...DONE!
Link Connect to AP 0 on Channel 1
Link Connect to AP 1 on Channel 6
[riazkhan@localhost Desktop]$ "
After this i tried the patch "mannasim-patch.diff" but it showed me error:
"....patching file ns-2.29/tcl/lib/ns-default.tcl
Hunk #1 succeeded at 559 (offset 6 lines).
patching file ns-2.29/tcl/lib/ns-lib.tcl
Hunk #1 FAILED at 334.
Hunk #2 succeeded at 380 (offset 8 lines).
Hunk #3 succeeded at 784 (offset 36 lines).
1 out of 3 hunks FAILED -- saving rejects to file ns-2.29/tcl/lib/ns-lib.tcl.rej
[riazkhan@localhost ns-allinone-2.29]$
"
And if i install "mannasim...diff" seperately without pmipv6 then it works well. Sir i want both these on the same version. can't we have both of these together. please suggest sir..
Last edited by Riaz Khan; 08-29-2014 at 06:48 AM.
Reason: wanted to show output
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
Ref. #13 .
There is a conflict when mannasim is added with pmip6-for-ns-2.29-nist.
Quote:
mac/mac-802_11.cc: In member function `void Mac802_11::sendAssocRequest(int)':
mac/mac-802_11.cc:1784: error: `dh' was not declared in this scope
mac/mac-802_11.cc:1788: error: `rTime' was not declared in this scope
"mac/mac-802_11.cc: In member function `void Mac802_11::sendAssocRequest(int)':
mac/mac-802_11.cc:1784: error: `dh' was not declared in this scope
mac/mac-802_11.cc:1788: error: `rTime' was not declared in this scope
make: *** [mac/mac-802_11.o] Error 1
Ns make failed!
See http://www.isi.edu/nsnam/ns/ns-problems.html for problems
[riazkhan@localhost ns-allinone-2.29]$ "
Please suggest some way as i want to implement PMIPv6 and FPMIPv6 for WSN
please help...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.