Hi,
I am usinf fedora 10. I followed the steps which you gave on blog. But still
it get failed during tclcl installation of ns-allinone-2.26. So please help
me out of this problem. I need to use nrlsensorsim for my project.

-- 
With Regards
S.Shyam Sundar

On Wed, Feb 10, 2010 at 5:34 PM, Mohit Tahiliani <mohit.ni...@yahoo.com>wrote:

> Hello,
>
> Due to newer versions of gcc, ns2.26 with nrlsensorsim cannot be installed
> directly.
>
> Hence i have designed few patches that help to install ns2.26 with
> nrlsensorsim on fedora 8 (and possibly with other linux distributions having
> similar gcc version).
>
> The patches and the installation procedure can be found on the link given
> below:
>
>
> http://mohittahiliani.blogspot.com/2010/02/installing-ns226-with-nrlsensorsim-on.html
>
> Hope it helps.
>
> Regards,
> Mohit P. Tahiliani
>
[r...@localhost nrlsensorsim]# patch -p1 -t < ns226nrl226-2.patch 
patching file sensornets-NRL/sensoragent.h
Reversed (or previously applied) patch detected!  Assuming -R.


r...@localhost nrlsensorsim]# ./patch_script.sh 

CHECKING PATH AND PERMISSIONS ON ../ns-allinone-2.1b9a/ OR ../ns-allinone-2.26/

PATH AND PERMISSIONS ARE GOOD


Checking for recently modified files...
WARNING!!! I THINK I FOUND MODIFIED FILES IN THE ../ns-allinone-2.26 TREE!
PATCHES MAY NOT WORK CORRECTLY ON ALREADY MODIFIED FILES!

Do you want to try anyway? (yes/no)
yes

Okay, trying anyway...
  NS2 tree is unmodified.  Good.

COPYING PHENOM AND SENSERNET-NRL DIRECTORIES TO ../ns-allinone-2.26/

`phenom' -> `../ns-allinone-2.26/ns-2.26/phenom'
`phenom/debug.cpp' -> `../ns-allinone-2.26/ns-2.26/phenom/debug.cpp'
`phenom/debug.h' -> `../ns-allinone-2.26/ns-2.26/phenom/debug.h'
`phenom/readme.ian' -> `../ns-allinone-2.26/ns-2.26/phenom/readme.ian'
`phenom/phenom_packet.h' -> `../ns-allinone-2.26/ns-2.26/phenom/phenom_packet.h'
`phenom/phenom.h' -> `../ns-allinone-2.26/ns-2.26/phenom/phenom.h'
`phenom/phenom.cc' -> `../ns-allinone-2.26/ns-2.26/phenom/phenom.cc'
`sensornets-NRL' -> `../ns-allinone-2.26/ns-2.26/sensornets-NRL'
`sensornets-NRL/sensorapp02.h' -> 
`../ns-allinone-2.26/ns-2.26/sensornets-NRL/sensorapp02.h'
`sensornets-NRL/sensoragent.cc' -> 
`../ns-allinone-2.26/ns-2.26/sensornets-NRL/sensoragent.cc'
`sensornets-NRL/sensoragent.h.orig' -> 
`../ns-allinone-2.26/ns-2.26/sensornets-NRL/sensoragent.h.orig'
`sensornets-NRL/sensorapp02.cc' -> 
`../ns-allinone-2.26/ns-2.26/sensornets-NRL/sensorapp02.cc'
`sensornets-NRL/sensorapp.cc' -> 
`../ns-allinone-2.26/ns-2.26/sensornets-NRL/sensorapp.cc'
`sensornets-NRL/sensoragent.h' -> 
`../ns-allinone-2.26/ns-2.26/sensornets-NRL/sensoragent.h'
`sensornets-NRL/sensorapp.h' -> 
`../ns-allinone-2.26/ns-2.26/sensornets-NRL/sensorapp.h'
`nrlolsr' -> `../ns-allinone-2.26/ns-2.26/nrlolsr'
`nrlolsr/debug.cpp' -> `../ns-allinone-2.26/ns-2.26/nrlolsr/debug.cpp'
`nrlolsr/nbr_queue.h' -> `../ns-allinone-2.26/ns-2.26/nrlolsr/nbr_queue.h'
`nrlolsr/debug.h' -> `../ns-allinone-2.26/ns-2.26/nrlolsr/debug.h'
`nrlolsr/nrlolsr_packet.h' -> 
`../ns-allinone-2.26/ns-2.26/nrlolsr/nrlolsr_packet.h'
`nrlolsr/nbr_queue.cc' -> `../ns-allinone-2.26/ns-2.26/nrlolsr/nbr_queue.cc'
`nrlolsr/nrlolsr.cc' -> `../ns-allinone-2.26/ns-2.26/nrlolsr/nrlolsr.cc'
`nrlolsr/nrlolsr_rtable.cc' -> 
`../ns-allinone-2.26/ns-2.26/nrlolsr/nrlolsr_rtable.cc'
`nrlolsr/nrlolsr_rqueue.h' -> 
`../ns-allinone-2.26/ns-2.26/nrlolsr/nrlolsr_rqueue.h'
`nrlolsr/nrlolsr_rtable.h' -> 
`../ns-allinone-2.26/ns-2.26/nrlolsr/nrlolsr_rtable.h'
`nrlolsr/nrlolsr_rqueue.cc' -> 
`../ns-allinone-2.26/ns-2.26/nrlolsr/nrlolsr_rqueue.cc'
`nrlolsr/readme' -> `../ns-allinone-2.26/ns-2.26/nrlolsr/readme'
`nrlolsr/nrlolsr.h' -> `../ns-allinone-2.26/ns-2.26/nrlolsr/nrlolsr.h'
`nrlolsr/sysdefs.h' -> `../ns-allinone-2.26/ns-2.26/nrlolsr/sysdefs.h'
`nrlolsr/basicmhop.tcl' -> `../ns-allinone-2.26/ns-2.26/nrlolsr/basicmhop.tcl'

DONE COPYING DIRECTORIES


PATCHING ns-allinone-2.26.

Hmm...  Looks like a normal diff to me...
Patching file ../ns-allinone-2.26/ns-2.26/trace/cmu-trace.cc using Plan A...
Hunk #1 succeeded at 54.
Hunk #2 succeeded at 114.
Hunk #3 succeeded at 1011.
done
Hmm...  Looks like a normal diff to me...
Patching file ../ns-allinone-2.26/ns-2.26/trace/cmu-trace.h using Plan A...
Hunk #1 succeeded at 123.
done
Hmm...  Looks like a normal diff to me...
Patching file ../ns-allinone-2.26/ns-2.26/mac/mac.cc using Plan A...
Hunk #1 succeeded at 108.
Hunk #2 succeeded at 115.
done
Hmm...  Looks like a normal diff to me...
Patching file ../ns-allinone-2.26/ns-2.26/Makefile.in using Plan A...
Hunk #1 succeeded at 277.
Hunk #2 succeeded at 281.
Hunk #3 succeeded at 315.
Hunk #4 succeeded at 319.
done
Hmm...  Looks like a normal diff to me...
Patching file ../ns-allinone-2.26/ns-2.26/tcl/lib/ns-lib.tcl using Plan A...
Hunk #1 succeeded at 310.
Hunk #2 succeeded at 312.
Hunk #3 succeeded at 320.
Hunk #4 succeeded at 339.
Hunk #5 succeeded at 350.
Hunk #6 succeeded at 425.
Hunk #7 succeeded at 465.
Hunk #8 succeeded at 567.
Hunk #9 succeeded at 607.
Hunk #10 succeeded at 662.
Hunk #11 succeeded at 713.
Hunk #12 succeeded at 1645.
done
Hmm...  Looks like a normal diff to me...
Patching file ../ns-allinone-2.26/ns-2.26/tcl/lib/ns-mobilenode.tcl using Plan 
A...
Hunk #1 succeeded at 5.
Hunk #2 succeeded at 21.
Hunk #3 succeeded at 57.
Hunk #4 succeeded at 76.
Hunk #5 succeeded at 96.
Hunk #6 succeeded at 99.
Hunk #7 succeeded at 104.
Hunk #8 succeeded at 131.
Hunk #9 succeeded at 155.
Hunk #10 succeeded at 160.
Hunk #11 succeeded at 170.
Hunk #12 succeeded at 178.
Hunk #13 succeeded at 188.
Hunk #14 succeeded at 190.
Hunk #15 succeeded at 194.
Hunk #16 succeeded at 243.
Hunk #17 succeeded at 278.
Hunk #18 succeeded at 282.
Hunk #19 succeeded at 302.
Hunk #20 succeeded at 322.
Hunk #21 succeeded at 325.
Hunk #22 succeeded at 348.
Hunk #23 succeeded at 354.
Hunk #24 succeeded at 359.
Hunk #25 succeeded at 379.
Hunk #26 succeeded at 567.
Hunk #27 succeeded at 693.
Hunk #28 succeeded at 734.
Hunk #29 succeeded at 775.
Hunk #30 succeeded at 782.
Hunk #31 succeeded at 786.
Hunk #32 succeeded at 798.
Hunk #33 succeeded at 827.
Hunk #34 succeeded at 836.
done
Hmm...  Looks like a normal diff to me...
Patching file ../ns-allinone-2.26/ns-2.26/tcl/lib/ns-namsupp.tcl using Plan A...
Hunk #1 succeeded at 54.
Hunk #2 succeeded at 57.
Hunk #3 succeeded at 59.
Hunk #4 succeeded at 61.
done
Hmm...  Looks like a normal diff to me...
Patching file ../ns-allinone-2.26/ns-2.26/common/packet.h using Plan A...
Hunk #1 succeeded at 41.
Hunk #2 succeeded at 130 (offset 2 lines).
Hunk #3 succeeded at 155 (offset 2 lines).
Hunk #4 succeeded at 241 (offset -4 lines).
Hunk #5 succeeded at 593 (offset -4 lines).
done
Hmm...  Looks like a normal diff to me...
Patching file ../ns-allinone-2.26/ns-2.26/queue/priqueue.cc using Plan A...
Hunk #1 succeeded at 91.
done
Hmm...  Looks like a normal diff to me...
Patching file ../ns-allinone-2.26/ns-2.26/mac/wireless-phy.cc using Plan A...
Hunk #1 succeeded at 117.
Hunk #2 succeeded at 164.
Hunk #3 succeeded at 372.
done
Hmm...  Looks like a normal diff to me...
Patching file ../ns-allinone-2.26/ns-2.26/mac/wireless-phy.h using Plan A...
Hunk #1 succeeded at 88.
done

PATCHING FINISHED.
ORIGINAL FILES BACKED UP TO:
../ns-allinone-2.26/ns-2.26/trace/cmu-trace.h.orig
../ns-allinone-2.26/ns-2.26/trace/cmu-trace.cc.orig
../ns-allinone-2.26/ns-2.26/queue/priqueue.cc.orig
../ns-allinone-2.26/ns-2.26/sensornets-NRL/sensoragent.h.orig
../ns-allinone-2.26/ns-2.26/tcl/lib/ns-namsupp.tcl.orig
../ns-allinone-2.26/ns-2.26/tcl/lib/ns-mobilenode.tcl.orig
../ns-allinone-2.26/ns-2.26/tcl/lib/ns-lib.tcl.orig
../ns-allinone-2.26/ns-2.26/Makefile.in.orig
../ns-allinone-2.26/ns-2.26/common/packet.h.orig
../ns-allinone-2.26/ns-2.26/mac/wireless-phy.h.orig
../ns-allinone-2.26/ns-2.26/mac/mac.cc.orig
../ns-allinone-2.26/ns-2.26/mac/wireless-phy.cc.orig
../nrlsensorsim/sensornets-NRL/sensoragent.h.orig
../nrlsensorsim/example_files/2.26/originals/cmu-trace.h.orig
../nrlsensorsim/example_files/2.26/originals/wireless-phy.h.orig
../nrlsensorsim/example_files/2.26/originals/ns-namsupp.tcl.orig
../nrlsensorsim/example_files/2.26/originals/mac.cc.orig
../nrlsensorsim/example_files/2.26/originals/Makefile.in.orig
../nrlsensorsim/example_files/2.26/originals/ns-mobilenode.tcl.orig
../nrlsensorsim/example_files/2.26/originals/priqueue.cc.orig
../nrlsensorsim/example_files/2.26/originals/wireless-phy.cc.orig
../nrlsensorsim/example_files/2.26/originals/cmu-trace.cc.orig
../nrlsensorsim/example_files/2.26/originals/packet.h.orig
../nrlsensorsim/example_files/2.26/originals/ns-lib.tcl.orig
../nrlsensorsim/example_files/2.1b9a/originals/cmu-trace.h.orig
../nrlsensorsim/example_files/2.1b9a/originals/wireless-phy.h.orig
../nrlsensorsim/example_files/2.1b9a/originals/ns-namsupp.tcl.orig
../nrlsensorsim/example_files/2.1b9a/originals/mac.cc.orig
../nrlsensorsim/example_files/2.1b9a/originals/Makefile.in.orig
../nrlsensorsim/example_files/2.1b9a/originals/ns-mobilenode.tcl.orig
../nrlsensorsim/example_files/2.1b9a/originals/priqueue.cc.orig
../nrlsensorsim/example_files/2.1b9a/originals/wireless-phy.cc.orig
../nrlsensorsim/example_files/2.1b9a/originals/cmu-trace.cc.orig
../nrlsensorsim/example_files/2.1b9a/originals/packet.h.orig
../nrlsensorsim/example_files/2.1b9a/originals/ns-lib.tcl.orig
 WARNING!!! I THINK I FOUND MODIFIED FILES IN ../ns-allinone-2.26/
  PATCHES MAY NOT WORK CORRECTLY ON ALREADY MODIFIED FILES!
  Check the above output for patching failures.

Now cd ../ns-allinone-2.26/ and run the install script.

  Finished.

[r...@localhost ns-allinone-2.26]# patch -p1 -t < ns226.patch 
patching file nam-1.9/agent.h
Reversed (or previously applied) patch detected!  Assuming -R.
patching file nam-1.9/configure
Reversed (or previously applied) patch detected!  Assuming -R.
patching file nam-1.9/netgraph.h
Reversed (or previously applied) patch detected!  Assuming -R.
patching file nam-1.9/node.h
Reversed (or previously applied) patch detected!  Assuming -R.
patching file ns-2.26/diffusion/diff_rate.cc
Reversed (or previously applied) patch detected!  Assuming -R.
patching file ns-2.26/diffusion/diffusion.cc
Reversed (or previously applied) patch detected!  Assuming -R.
patching file ns-2.26/diffusion/diffusion.h
Reversed (or previously applied) patch detected!  Assuming -R.
patching file ns-2.26/diffusion/omni_mcast.cc
Reversed (or previously applied) patch detected!  Assuming -R.
patching file ns-2.26/diffusion/routing_table.cc
Reversed (or previously applied) patch detected!  Assuming -R.
patching file ns-2.26/diffusion3/diffusion/diffusion.hh
Reversed (or previously applied) patch detected!  Assuming -R.
patching file ns-2.26/diffusion3/lib/nr/nr.hh
Reversed (or previously applied) patch detected!  Assuming -R.
patching file ns-2.26/dsr/dsragent.cc
Reversed (or previously applied) patch detected!  Assuming -R.
patching file ns-2.26/indep-utils/cmu-scen-gen/setdest/Makefile.in
Reversed (or previously applied) patch detected!  Assuming -R.
patching file ns-2.26/indep-utils/webtrace-conv/dec/Makefile.in
Reversed (or previously applied) patch detected!  Assuming -R.
patching file ns-2.26/indep-utils/webtrace-conv/nlanr/Makefile.in
Reversed (or previously applied) patch detected!  Assuming -R.
patching file ns-2.26/linkstate/ls.h
Reversed (or previously applied) patch detected!  Assuming -R.
patching file ns-2.26/mac/wireless-phy.cc
Reversed (or previously applied) patch detected!  Assuming -R.
Hunk #2 succeeded at 215 (offset 15 lines).
Hunk #4 succeeded at 243 (offset 15 lines).
patching file ns-2.26/mobile/god.cc
Reversed (or previously applied) patch detected!  Assuming -R.
patching file ns-2.26/mobile/god.h
Reversed (or previously applied) patch detected!  Assuming -R.
patching file ns-2.26/mobile/gridkeeper.cc
Reversed (or previously applied) patch detected!  Assuming -R.
patching file ns-2.26/mobile/gridkeeper.h
Reversed (or previously applied) patch detected!  Assuming -R.
patching file ns-2.26/pgm/pgm-agent.cc
Reversed (or previously applied) patch detected!  Assuming -R.
patching file ns-2.26/pgm/pgm-receiver.cc
Reversed (or previously applied) patch detected!  Assuming -R.
patching file ns-2.26/pgm/pgm-sender.cc
Reversed (or previously applied) patch detected!  Assuming -R.
patching file ns-2.26/queue/cbq.cc
Reversed (or previously applied) patch detected!  Assuming -R.
patching file ns-2.26/tcp/tcp-sack-rh.cc
Reversed (or previously applied) patch detected!  Assuming -R.
patching file ns-2.26/tora/tora_neighbor.h
Reversed (or previously applied) patch detected!  Assuming -R.
patching file ns-2.26/webcache/webtraf.cc
Reversed (or previously applied) patch detected!  Assuming -R.
patching file tclcl-1.0b13/tclcl.h
Reversed (or previously applied) patch detected!  Assuming -R.
patching file tk8.3.2/generic/tkBind.c
Reversed (or previously applied) patch detected!  Assuming -R.

[r...@localhost ns-allinone-2.26]# ./install
...
....
.....
rm -f tcl2c++
g++   -o tcl2c++ tcl2c++.o
/usr/bin/ld: cannot find -lstdc++
collect2: ld returned 1 exit status
make: *** [tcl2c++] Error 1
tclcl-1.0b13 make failed! Exiting ...
See http://www.isi.edu/nsnam/ns/ns-problems.html for problems


Reply via email to