LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Password
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.

Notices


Reply
  Search this Thread
Old 04-20-2014, 11:25 PM   #1
abrartunio
LQ Newbie
 
Registered: Apr 2014
Posts: 17

Rep: Reputation: Disabled
Installation of CRCN patch in NS2.31


Hi everybody,
Hope you all are doing well.
I am using
fedora12 and NS2.31
download CRCN patchfrom googledrives.
Got help to install CRCNpatch from different sites. Everything was fine
until I ran command "make" in ns-2.31 folder after making changes in Makefile.in. Blow is the error I encountered.

trace/cmu-trace.o: In function `hdr_wcett::access(Packet const*)':
cmu-trace.cc:(.text._ZN9hdr_wcett6accessEPK6Packet[hdr_wcett::access(Packet const*)]+0x7): undefined reference to `hdr_wcett::offset_'
collect2: ld returned 1 exit status
make: *** [ns] Error 1


I am waiting for a positive and helpful response.
Thanks

Abrar

Last edited by abrartunio; 04-20-2014 at 11:27 PM. Reason: there are some emctions in it. I do not now why they appear?
 
Old 04-21-2014, 02:29 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Welcome to LQ.

Fedora 12 : Hopefully it's the 32bits (i686) version.
Not all crcn simulations will work with a 64bits OS.
Note : Fedora 12 is unsupported / unsafe.
The long term supported version of Fedora 12 is the "Redhat CentOS 6.x".

Building ns-allinone-2.31 + CRCN, {Fedora12 / CentOS6}, see post #7 here:
http://www.linuxquestions.org/questi...-4175499622/#7
$ tar xvf ns-allinone-2.31.tar.gz
$ cd ns-allinone-2.31/
$ tar xvf crcn-ns2.31.tar.gz
$ export CC=gcc34 CXX=g++34 && ./install
$ cd ns-2.31/
# make install

All CRCN info http://www.linuxquestions.org/questions/tags/crcn/
CRCN simulation examples, crcn-examples-12.2013.tar.gz :
https://drive.google.com/file/d/0B7S...it?usp=sharing

-
 
1 members found this post helpful.
Old 04-21-2014, 11:26 AM   #3
abrartunio
LQ Newbie
 
Registered: Apr 2014
Posts: 17

Original Poster
Rep: Reputation: Disabled
Thanks a lot brother..... I will move to Centos soon... Thank you for help

Every test was successful but 4rth gave me a warning as written below... I will be thankful If you could help me in that too.

$ ns 4-test4macngenhanced.tcl

Code:
 
num_nodes is set 6
warning: no class variable Mac/Macngenhanced::fullduplex_mode_

	see tcl-object.tcl in tclcl for info about this warning.

INITIALIZE THE LIST xListHead
warning: no class variable Mac/Macngenhanced::fullduplex_mode_

	see tcl-object.tcl in tclcl for info about this warning.

warning: no class variable Mac/Macngenhanced::fullduplex_mode_

	see tcl-object.tcl in tclcl for info about this warning.

warning: no class variable Mac/Macngenhanced::fullduplex_mode_

	see tcl-object.tcl in tclcl for info about this warning.

warning: no class variable Mac/Macngenhanced::fullduplex_mode_

	see tcl-object.tcl in tclcl for info about this warning.

warning: no class variable Mac/Macngenhanced::fullduplex_mode_

	see tcl-object.tcl in tclcl for info about this warning.

Starting Simulation...
channel.cc:sendUp - Calc highestAntennaZ_ and distCST_
highestAntennaZ_ = 1.5,  distCST_ = 600.3
SORTING LISTS ...DONE!
sendPrimaryUserPacket
sendPrimaryUserPacket
sendPrimaryUserPacket
sendPrimaryUserPacket
sendPrimaryUserPacket
sendPrimaryUserPacket
node 0 receive a packet from primary user. 
node 5 receive a packet from primary user. 
node 4 receive a packet from primary user. 
node 2 receive a packet from primary user. 
node 3 receive a packet from primary user
I will check "tcl-object.tcl in tclcl" to figure out the problem but in case I could not then do help me plz...
This forum is really very helpful. I admire your struggles. thanks again

Eng.Abrar

Last edited by abrartunio; 04-21-2014 at 10:32 PM.
 
Old 04-21-2014, 11:42 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Please edit post #3 to use code tags.
Editing : The 'Edit' button.
Code Tags http://www.linuxquestions.org/questi...gs-4175464257/
. http://www.linuxquestions.org/questi....php?do=bbcode
"Writing code tags" :
Type [/code] at text end, and [code] at code / error / output text start.

And : You will have to shorten the long line with " ########### " :
→ → Not everybody are using 24" monitors.
(Some use a very small monitor = a cell phone.)

Good that your build was successful.
* Note : A warning is not an error, but "an informative text".
Most of those warnings can be ignored.

-
 
1 members found this post helpful.
Old 09-18-2014, 07:28 AM   #5
abrartunio
LQ Newbie
 
Registered: Apr 2014
Posts: 17

Original Poster
Rep: Reputation: Disabled
Some tests fails during validation

Quote:
Originally Posted by knudfl View Post
Welcome to LQ.

Fedora 12 : Hopefully it's the 32bits (i686) version.
Not all crcn simulations will work with a 64bits OS.
Note : Fedora 12 is unsupported / unsafe.
The long term supported version of Fedora 12 is the "Redhat CentOS 6.x".

Building ns-allinone-2.31 + CRCN, {Fedora12 / CentOS6}, see post #7 here:
http://www.linuxquestions.org/questi...-4175499622/#7
$ tar xvf ns-allinone-2.31.tar.gz
$ cd ns-allinone-2.31/
$ tar xvf crcn-ns2.31.tar.gz
$ export CC=gcc34 CXX=g++34 && ./install
$ cd ns-2.31/
# make install

All CRCN info http://www.linuxquestions.org/questions/tags/crcn/
CRCN simulation examples, crcn-examples-12.2013.tar.gz :
https://drive.google.com/file/d/0B7S...it?usp=sharing

-


Dear Knudfl

I tried to install CRCN and NS2.31 again this time installation was successful but during validation some tests failed.
I tried it on Centos6.4, Fedora12 and Centos6.5 as well. Every time these same tests are failing.

validate overall report: some tests failed:
./test-all-diffusion3 ./test-all-smac ./test-all-smac-multihop ./test-all-wireless-shadowing ./test-all-wireless-lan-aodv ./test-all-wireless-tdma ./test-all-wireless-gridkeeper ./test-all-wireless-diffusion ./test-all-wireless-lan-newnode ./test-all-satellite ./test-all-WLtutorial ./test-all-tagged-trace ./test-all-wpan ./test-all-energy

using patch for nam in folder of tk-4.8.14, using CCOPT = -g -Wall -Wno-write-strings to avoid few warnings.
Kindly help me ... I am following exactly same steps as above,
 
Old 09-18-2014, 09:36 AM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
← #5 , @abrartunio.

1) There is no difference between any of Centos 6.4, Fedora12, Centos 6.5,
.. so far concerns ns2 / crcn. All those OS are basically the same.

2) Some validation tests will most often fail, especially when a patch is added.
Can be ignored. The important thing is that the main seven tcl files are working OK
→ crcn-examples_05.2014.tar.gz https://drive.google.com/file/d/0B7S...it?usp=sharing

-
 
1 members found this post helpful.
Old 09-18-2014, 09:57 AM   #7
abrartunio
LQ Newbie
 
Registered: Apr 2014
Posts: 17

Original Poster
Rep: Reputation: Disabled
Thank you so much once again Knudfl

All 7 tests are working very well ... :-)
 
Old 11-22-2015, 08:02 PM   #8
marwa88
Member
 
Registered: Nov 2015
Posts: 56

Rep: Reputation: Disabled
Dear Knudfl,

Please i want to ask you, as i see here, when they install crcn in ns2.31 they make change in Makefile.in but i did not do like this.
if it is possible i want to show you steps that i did and tell me please if it is correct.
first i installed ns2.31 in fedora 12 like this:

cd ns-allinone-2.31

export CC=gcc34 CXX=g++34 && ./install

cd ns2.31

make install

./validate

ns works fine (%).

Then i replaced the existing files by the new files of the crcn patch.
i added the 4 lines in the makefile not in Makefile.in.
then
make clean

make depend

make

at the end of make i had this:
Quote:
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/marwa/ns-allinone-2.31/ns-2.31/indep-utils/cmu-scen-gen/setdest'
make[1]: Entering directory `/home/marwa/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/marwa/ns-allinone-2.31/ns-2.31/indep-utils/webtrace-conv/dec'
make[1]: Entering directory `/home/marwa/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/marwa/ns-allinone-2.31/ns-2.31/indep-utils/webtrace-conv/epa'
make[1]: Entering directory `/home/marwa/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/marwa/ns-allinone-2.31/ns-2.31/indep-utils/webtrace-conv/nlanr'
make[1]: Entering directory `/home/marwa/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/marwa/ns-allinone-2.31/ns-2.31/indep-utils/webtrace-conv/ucb'
This is correct please?
thank you so much.
 
Old 11-23-2015, 05:29 AM   #9
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Re #8.

Why ask ? You are supposed to use Google before you ask a question.
make[1]: Nothing to be done for `all'. : 700 million hits. (0.7 billion).


Nothing to be done for `all' :
Is the message you can get when 'make' is run more than once.
( The very first time was when you used the './install' command.)
Nothing to be done for `all' : Means everything is OK.

-
 
Old 11-23-2015, 09:00 AM   #10
marwa88
Member
 
Registered: Nov 2015
Posts: 56

Rep: Reputation: Disabled
Ok sorry for bothering, my question was not about " Nothing to be done for `all' ". I asked only because here they use makefile.in but i used the makefile.
So i wanted to ensure that it is the same.

Thank you for all your help.

Best regards
 
Old 12-28-2015, 08:20 PM   #11
pjfmeng
LQ Newbie
 
Registered: Dec 2015
Posts: 3

Rep: Reputation: Disabled
[QUOTE=knudfl;5156368]Welcome to LQ.

i successfully install ns-2.31 in ubuntu10.04 (32bit) and gcc-4.1.3, but after i install CRCN and make changes in Makefile, error occurred.


trace/cmu-trace.o: In function `hdr_wcett::access(Packet const*)':
cmu-trace.cc.text._ZN9hdr_wcett6accessEPK6Packet[hdr_wcett::access(Packet const*)]+0x7): undefined reference to `hdr_wcett:ffset_'
collect2: ld returned 1 exit status
make: *** [ns] Error 1


I am waiting for your answer.
Thanks
 
  


Reply

Tags
crcn, ns2



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ns2.31 and CRCN patch buptmuye Linux - Wireless Networking 27 01-06-2016 06:27 PM
[SOLVED] ns2.31 CRCN patch problem leki Linux - Software 23 11-26-2015 02:32 PM
how to solve crcn problem in ns2? lavendar89 Linux - Software 1 09-25-2013 04:57 PM
[SOLVED] TCP-freeze patch installation problem in ns2- 2.34 azsuselinux Linux - Newbie 13 11-15-2012 02:21 AM
problem in displaying throughput in crcn patch in ns2 humairaafzal73 Linux - Software 0 02-07-2012 04:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking

All times are GMT -5. The time now is 01:27 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration