<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-8723115167618750432</id><updated>2026-03-21T11:42:08.553-07:00</updated><title type='text'>Network Simulator - 2</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://ramakrishnamundugar.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8723115167618750432/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://ramakrishnamundugar.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Ramakrishna M</name><uri>http://www.blogger.com/profile/00604979190341937062</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>18</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-8723115167618750432.post-2520966910550964173</id><published>2014-04-04T00:55:00.001-07:00</published><updated>2014-04-04T00:55:34.405-07:00</updated><title type='text'>AntHocNet installation in Ubuntu 12.04</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
The steps to be followed are:&lt;br /&gt;
&lt;ol style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;Download the AntHocNet patch for NS-2.34 from the following link

&lt;a href=&quot;http://anthocnet.svn.sourceforge.net/viewvc/anthocnet/&quot;&gt;http://anthocnet.svn.sourceforge.net/viewvc/anthocnet/&lt;/a&gt;&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Modify the &lt;b&gt;makefile&lt;/b&gt; because the entries for anthocnet were missing
in the patch.&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Compile the patch using:&lt;/li&gt;
&lt;ol&gt;
&lt;li&gt;./configure&lt;/li&gt;
&lt;li&gt;make clean&lt;/li&gt;
&lt;li&gt;make&lt;/li&gt;
&lt;li&gt;make install &lt;/li&gt;
&lt;/ol&gt;
&lt;li&gt;Now, you run example files with routing protocol as &quot;&lt;b&gt;AntHocNet&lt;/b&gt;&quot;&lt;/li&gt;
&lt;/ol&gt;
&lt;br /&gt;
The common errors:&lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&lt;span style=&quot;color: red;&quot;&gt;trace/cmu-trace.o: In function `AntBasicPacket::access(Packet const*)&#39;:cmu-trace.cc:(.text._ZN14AntBasicPacket6accessEPK6Packet[AntBasicPacket::access(Packetconst*)]+0x7): undefined reference to `AntBasicPacket::offset_&#39;collect2: ld returned 1 exit status&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; make: *** [ns] Error 1&lt;/span&gt;&lt;br /&gt;&lt;div&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Ns make failed!&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; See http://www.isi.edu/nsnam/ns/ns-problems.html for problems&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Solution:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Update the&amp;nbsp; makefile with proper path for object files.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp;&lt;/span&gt; &lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://ramakrishnamundugar.blogspot.com/feeds/2520966910550964173/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ramakrishnamundugar.blogspot.com/2014/04/anthocnet-installation-in-ubuntu-1204.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8723115167618750432/posts/default/2520966910550964173'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8723115167618750432/posts/default/2520966910550964173'/><link rel='alternate' type='text/html' href='http://ramakrishnamundugar.blogspot.com/2014/04/anthocnet-installation-in-ubuntu-1204.html' title='AntHocNet installation in Ubuntu 12.04'/><author><name>Ramakrishna M</name><uri>http://www.blogger.com/profile/00604979190341937062</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8723115167618750432.post-7375157175628361607</id><published>2013-10-22T19:44:00.002-07:00</published><updated>2013-10-22T19:45:07.234-07:00</updated><title type='text'>NS-2.33 installation in Ubuntu 12.04</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
Follow the below given steps:&lt;br /&gt;
&lt;br /&gt;
Download ns-allinnone-2.33 from nasam website&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;http://sourceforge.net/projects/nsnam/files/ns-2&lt;br /&gt;
Create a folder in home with name ns2&lt;br /&gt;
&amp;nbsp;Extract the tar file in ns2&lt;br /&gt;
Open terminal and type cd ns2/ns-allinone-2.33&lt;br /&gt;
&amp;nbsp;Install required libraries for ns2 using terminal&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sudo apt-get install build-essential autoconf automake libxmu-dev&lt;br /&gt;
&amp;nbsp;Then, sudo ./install&lt;br /&gt;
&lt;br /&gt;
For errors,&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
1.&lt;br /&gt;
ld: libotcl.so: hidden symbol `__stack_chk_fail_local&#39; isn&#39;t defined&lt;br /&gt;
ld: final link failed: Bad value&lt;br /&gt;
make: *** [libotcl.so] Error 1&lt;br /&gt;
otcl-1.13 make failed! Exiting ...&lt;br /&gt;
Solution:&lt;br /&gt;
In otcl-1.13/configure, line number 6304&lt;br /&gt;
&lt;br /&gt;
-SHLIB_LD=&quot;ld -shared&quot;&lt;br /&gt;
+SHLIB_LD=&quot;gcc -shared&quot;&lt;br /&gt;
&lt;br /&gt;
2.&lt;br /&gt;
tools/ranvar.cc: In member function ‘virtual double GammaRandomVariable::value()’:&lt;br /&gt;
tools/ranvar.cc:219:70: error: cannot call constructor ‘GammaRandomVariable::GammaRandomVariable’ directly [-fpermissive]&lt;br /&gt;
tools/ranvar.cc:219:70: error: &amp;nbsp; for a function-style cast, remove the redundant ‘::GammaRandomVariable’ [-fpermissive]&lt;br /&gt;
make: *** [tools/ranvar.o] Error 1&lt;br /&gt;
&lt;br /&gt;
Solution:&lt;br /&gt;
In ns-2.33/tools/ranvar.cc, line 219&lt;br /&gt;
&lt;br /&gt;
-return GammaRandomVariable::GammaRandomVariable(1.0 + alpha_, beta_).value() * pow (u, 1.0 / alpha_);&lt;br /&gt;
+return GammaRandomVariable(1.0 + alpha_, beta_).value() * pow (u, 1.0 / alpha_);&lt;br /&gt;
&lt;br /&gt;
3.&lt;br /&gt;
In file included from mac/mac-802_11Ext.cc:66:0:&lt;br /&gt;
mac/mac-802_11Ext.h: In member function ‘u_int32_t PHY_MIBExt::getHdrLen11()’:&lt;br /&gt;
mac/mac-802_11Ext.h:175:19: error: expected primary-expression before ‘struct’&lt;br /&gt;
mac/mac-802_11Ext.h:175:41: error: ‘dh_body’ was not declared in this scope&lt;br /&gt;
mac/mac-802_11Ext.h:175:51: error: ‘offsetof’ was not declared in this scope&lt;br /&gt;
mac/mac-802_11Ext.h:177:3: warning: control reaches end of non-void function [-Wreturn-type]&lt;br /&gt;
make: *** [mac/mac-802_11Ext.o] Error 1&lt;br /&gt;
Ns make failed!&lt;br /&gt;
&lt;br /&gt;
Solution:&lt;br /&gt;
In mac/mac-802_Ext.h, line 65&lt;br /&gt;
&lt;br /&gt;
+#include&amp;lt;cstddef&amp;gt;&lt;br /&gt;
&lt;br /&gt;
4.&lt;br /&gt;
mobile/nakagami.cc: In member function ‘virtual double Nakagami::Pr(PacketStamp*, PacketStamp*, WirelessPhy*)’:&lt;br /&gt;
mobile/nakagami.cc:183:73: error: cannot call constructor ‘ErlangRandomVariable::ErlangRandomVariable’ directly [-fpermissive]&lt;br /&gt;
mobile/nakagami.cc:183:73: error: &amp;nbsp; for a function-style cast, remove the redundant ‘::ErlangRandomVariable’ [-fpermissive]&lt;br /&gt;
mobile/nakagami.cc:185:67: error: cannot call constructor ‘GammaRandomVariable::GammaRandomVariable’ directly [-fpermissive]&lt;br /&gt;
mobile/nakagami.cc:185:67: error: &amp;nbsp; for a function-style cast, remove the redundant ‘::GammaRandomVariable’ [-fpermissive]&lt;br /&gt;
make: *** [mobile/nakagami.o] Error 1&lt;br /&gt;
&lt;br /&gt;
Solution:&lt;br /&gt;
In ns-2.33/mobile/nakagami.cc, Line no.&lt;br /&gt;
&lt;br /&gt;
-if (int_m == m) {&lt;br /&gt;
- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; resultPower = ErlangRandomVariable::ErlangRandomVariable(Pr/m, int_m).value();&lt;br /&gt;
- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; } else {&lt;br /&gt;
- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; resultPower = GammaRandomVariable::GammaRandomVariable(m, Pr/m).value();&lt;br /&gt;
- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return resultPower;&lt;br /&gt;
- &amp;nbsp; &amp;nbsp;}&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;+if (int_m == m) {&lt;br /&gt;
&amp;nbsp;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; resultPower = ErlangRandomVariable(Pr/m, int_m).value();&lt;br /&gt;
&amp;nbsp;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;} else {&lt;br /&gt;
&amp;nbsp;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;resultPower = GammaRandomVariable(m, Pr/m).value();&lt;br /&gt;
&amp;nbsp;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;br /&gt;
&amp;nbsp;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; return resultPower;&lt;br /&gt;
&amp;nbsp;+ &amp;nbsp; }&lt;br /&gt;
&lt;br /&gt;
Path Setup:&lt;br /&gt;
In terminal sudo gedit ~/.bash_aliases&lt;br /&gt;
Then update the environmrnt variable&lt;br /&gt;
&lt;br /&gt;
# LD_LIBRARY_PATH&lt;br /&gt;
OTCL_LIB=/home/ramakrishna/ns2/ns-allinone-2.33/otcl-1.13&lt;br /&gt;
NS2_LIB=/home/ramakrishna/ns2/ns-allinone-2.33/lib&lt;br /&gt;
X11_LIB=/usr/X11R6/lib&lt;br /&gt;
USR_LOCAL_LIB=/usr/local/lib&lt;br /&gt;
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$OTCL_LIB:$NS2_LIB:$X11_LIB:$USR_LOCAL_LIB&lt;br /&gt;
&lt;br /&gt;
# TCL_LIBRARY&lt;br /&gt;
TCL_LIB=/home/ramakrishna/ns2/ns-allinone-2.33/tcl8.4.18/library&lt;br /&gt;
USR_LIB=/usr/lib&lt;br /&gt;
export TCL_LIBRARY=$TCL_LIB:$USR_LIB&lt;br /&gt;
&lt;br /&gt;
# PATH&lt;br /&gt;
XGRAPH=/home/ramakrishna/ns2/ns-allinone-2.33/bin:/home/ramakrishna/ns2/ns-allinone-2.33/tcl8.4.18/unix:/home/ramakrishna/ns2/ns-allinone-2.33/tk8.4.18/unix&lt;br /&gt;
NS=/home/ramakrishna/ns2/ns-allinone-2.33/ns-2.33/&lt;br /&gt;
NAM=/home/ramakrishna/ns2/ns-allinone-2.33/nam-1.13/&lt;br /&gt;
PATH=$PATH:$XGRAPH:$NS:$NAM&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://ramakrishnamundugar.blogspot.com/feeds/7375157175628361607/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ramakrishnamundugar.blogspot.com/2013/10/ns-233-installation-in-ubuntu-1204.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8723115167618750432/posts/default/7375157175628361607'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8723115167618750432/posts/default/7375157175628361607'/><link rel='alternate' type='text/html' href='http://ramakrishnamundugar.blogspot.com/2013/10/ns-233-installation-in-ubuntu-1204.html' title='NS-2.33 installation in Ubuntu 12.04'/><author><name>Ramakrishna M</name><uri>http://www.blogger.com/profile/00604979190341937062</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8723115167618750432.post-4824000263306771344</id><published>2013-10-22T02:08:00.004-07:00</published><updated>2013-10-22T02:08:54.331-07:00</updated><title type='text'>NS-2 Error</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: Ubuntubeta, Ubuntu, &#39;Bitstream Vera Sans&#39;, &#39;DejaVu Sans&#39;, Tahoma, sans-serif; font-size: 13px; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; font-family: Ubuntubeta, Ubuntu, &#39;Bitstream Vera Sans&#39;, &#39;DejaVu Sans&#39;, Tahoma, sans-serif; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&lt;b&gt;Application initialization failed: Can&#39;t find a usable init.tcl in the following&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; font-family: Ubuntubeta, Ubuntu, &#39;Bitstream Vera Sans&#39;, &#39;DejaVu Sans&#39;, Tahoma, sans-serif; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; font-family: Ubuntubeta, Ubuntu, &#39;Bitstream Vera Sans&#39;, &#39;DejaVu Sans&#39;, Tahoma, sans-serif; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&lt;b&gt;directories:&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Ubuntubeta, Ubuntu, &#39;Bitstream Vera Sans&#39;, &#39;DejaVu Sans&#39;, Tahoma, sans-serif; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;font-family: Ubuntubeta, Ubuntu, &#39;Bitstream Vera Sans&#39;, &#39;DejaVu Sans&#39;, Tahoma, sans-serif; line-height: 15px; text-align: -webkit-auto;&quot; /&gt;&lt;span style=&quot;font-family: Ubuntubeta, Ubuntu, &#39;Bitstream Vera Sans&#39;, &#39;DejaVu Sans&#39;, Tahoma, sans-serif; line-height: 15px; text-align: -webkit-auto;&quot;&gt;../../../linux/lib/tcltk/lib/tcl8.3 ../../../linux/lib/tcltk/lib/tcl8.3&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; font-family: Ubuntubeta, Ubuntu, &#39;Bitstream Vera Sans&#39;, &#39;DejaVu Sans&#39;, Tahoma, sans-serif; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; font-family: Ubuntubeta, Ubuntu, &#39;Bitstream Vera Sans&#39;, &#39;DejaVu Sans&#39;, Tahoma, sans-serif; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; font-family: Ubuntubeta, Ubuntu, &#39;Bitstream Vera Sans&#39;, &#39;DejaVu Sans&#39;, Tahoma, sans-serif; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&lt;u&gt;Solution:&lt;/u&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; font-family: Ubuntubeta, Ubuntu, &#39;Bitstream Vera Sans&#39;, &#39;DejaVu Sans&#39;, Tahoma, sans-serif; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; font-family: Ubuntubeta, Ubuntu, &#39;Bitstream Vera Sans&#39;, &#39;DejaVu Sans&#39;, Tahoma, sans-serif; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; font-family: Ubuntubeta, Ubuntu, &#39;Bitstream Vera Sans&#39;, &#39;DejaVu Sans&#39;, Tahoma, sans-serif; line-height: 15px; text-align: -webkit-auto;&quot;&gt;1. Go to location root-usr-local-bin by giving following command in terminal&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br style=&quot;font-family: Ubuntubeta, Ubuntu, &#39;Bitstream Vera Sans&#39;, &#39;DejaVu Sans&#39;, Tahoma, sans-serif; line-height: 15px; text-align: -webkit-auto;&quot; /&gt;&lt;span style=&quot;font-family: Ubuntubeta, Ubuntu, &#39;Bitstream Vera Sans&#39;, &#39;DejaVu Sans&#39;, Tahoma, sans-serif; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&lt;b&gt;cd /usr/local/bin&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br style=&quot;font-family: Ubuntubeta, Ubuntu, &#39;Bitstream Vera Sans&#39;, &#39;DejaVu Sans&#39;, Tahoma, sans-serif; line-height: 15px; text-align: -webkit-auto;&quot; /&gt;&lt;span style=&quot;font-family: Ubuntubeta, Ubuntu, &#39;Bitstream Vera Sans&#39;, &#39;DejaVu Sans&#39;, Tahoma, sans-serif; line-height: 15px; text-align: -webkit-auto;&quot;&gt;2. There you would find the ns file. We just need to remove it by giving following command&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br style=&quot;font-family: Ubuntubeta, Ubuntu, &#39;Bitstream Vera Sans&#39;, &#39;DejaVu Sans&#39;, Tahoma, sans-serif; line-height: 15px; text-align: -webkit-auto;&quot; /&gt;&lt;span style=&quot;font-family: Ubuntubeta, Ubuntu, &#39;Bitstream Vera Sans&#39;, &#39;DejaVu Sans&#39;, Tahoma, sans-serif; line-height: 15px; text-align: -webkit-auto;&quot;&gt;&lt;b&gt;rm ns&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br style=&quot;font-family: Ubuntubeta, Ubuntu, &#39;Bitstream Vera Sans&#39;, &#39;DejaVu Sans&#39;, Tahoma, sans-serif; line-height: 15px; text-align: -webkit-auto;&quot; /&gt;&lt;span style=&quot;font-family: Ubuntubeta, Ubuntu, &#39;Bitstream Vera Sans&#39;, &#39;DejaVu Sans&#39;, Tahoma, sans-serif; line-height: 15px; text-align: -webkit-auto;&quot;&gt;3. Thats it, you are done. Now your ns starts running successfully.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://ramakrishnamundugar.blogspot.com/feeds/4824000263306771344/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ramakrishnamundugar.blogspot.com/2013/10/ns-2-error.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8723115167618750432/posts/default/4824000263306771344'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8723115167618750432/posts/default/4824000263306771344'/><link rel='alternate' type='text/html' href='http://ramakrishnamundugar.blogspot.com/2013/10/ns-2-error.html' title='NS-2 Error'/><author><name>Ramakrishna M</name><uri>http://www.blogger.com/profile/00604979190341937062</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8723115167618750432.post-4476684000440053140</id><published>2013-10-05T03:38:00.001-07:00</published><updated>2013-10-05T03:38:24.416-07:00</updated><title type='text'>Error while including wireless-phy.h</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
The below error is solved:&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;./mac/wireless-phy.h:129: error: expected identifier before &#39;r&#39;
&lt;br /&gt;./mac/wireless-phy.h:129: error: expected `}&#39; before &#39;r&#39;
&lt;br /&gt;./mac/wireless-phy.h:129: error: expected unqualified-id before &#39;r&#39;
&lt;br /&gt;./mac/wireless-phy.h: In member function bool&amp;amp; WirelessPhy::Is_node_on():
&lt;br /&gt;./mac/wireless-phy.h:97: error: node_on_ was not declared in this scope
&lt;br /&gt;./mac/wireless-phy.h: In member function bool WirelessPhy::Is_sleeping():
&lt;br /&gt;./mac/wireless-phy.h:98: error: status_ was not declared in this scope
&lt;br /&gt;./mac/wireless-phy.h: At global scope:
&lt;br /&gt;./mac/wireless-phy.h:131: error: no matching function for call to Sleep_Timer::Sleep_Timer()
&lt;br /&gt;./mac/wireless-phy.h:58: note: candidates are: Sleep_Timer::Sleep_Timer(WirelessPhy*)
&lt;br /&gt;./mac/wireless-phy.h:56: note: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Sleep_Timer::Sleep_Timer(const Sleep_Timer&amp;amp;)
&lt;br /&gt;./mac/wireless-phy.h:134: error: expected unqualified-id before private
&lt;br /&gt;./mac/wireless-phy.h: In function EnergyModel* em():
&lt;br /&gt;./mac/wireless-phy.h:142: error: node was not declared in this scope
&lt;br /&gt;./mac/wireless-phy.h: At global scope:
&lt;br /&gt;./mac/wireless-phy.h:144: error: friend can only be specified inside a class
&lt;br /&gt;./mac/wireless-phy.h:146: error: expected declaration before } token&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The error is due to duplicate link to SEND and RECV, so we need to change one of the file as shown below:&lt;br /&gt;
&lt;br /&gt;
In cmu-trace.cc&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;- #define&amp;nbsp;&amp;nbsp; &amp;nbsp;RECV&amp;nbsp;&amp;nbsp;&amp;nbsp; &#39;r&#39; &lt;br /&gt;- #define&amp;nbsp;&amp;nbsp; &amp;nbsp;SEND &amp;nbsp;&amp;nbsp; &#39;s&#39; &lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Rename as follows: &lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;+ #define&amp;nbsp;&amp;nbsp; &amp;nbsp;RECVs&amp;nbsp;&amp;nbsp; &amp;nbsp;&#39;r&#39; &lt;br /&gt;+ #define&amp;nbsp;&amp;nbsp; &amp;nbsp;SENDs&amp;nbsp;&amp;nbsp; &amp;nbsp;&#39;s&#39;&amp;nbsp; &lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://ramakrishnamundugar.blogspot.com/feeds/4476684000440053140/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ramakrishnamundugar.blogspot.com/2013/10/error-while-including-wireless-phyh.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8723115167618750432/posts/default/4476684000440053140'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8723115167618750432/posts/default/4476684000440053140'/><link rel='alternate' type='text/html' href='http://ramakrishnamundugar.blogspot.com/2013/10/error-while-including-wireless-phyh.html' title='Error while including wireless-phy.h'/><author><name>Ramakrishna M</name><uri>http://www.blogger.com/profile/00604979190341937062</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8723115167618750432.post-5907831181114892560</id><published>2013-10-04T21:17:00.001-07:00</published><updated>2013-10-04T21:17:18.539-07:00</updated><title type='text'>Installing LEACH in NS-2.34</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
The home directory of NS-2.34 is “/home/ns2/ns-allinone-2.34″&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1. Download the package “&lt;b&gt;ns-234-leach.tar.gz&lt;/b&gt;” into the directory “&lt;b&gt;/home/ns2/ns-allinone-2.34/ns-2.34&lt;/b&gt;″.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; 2. Download the bash file “&lt;b&gt;leach-setup.sh&lt;/b&gt;” into the directory “&lt;b&gt;/home/ns2/ns-allinone-2.34/ns-2.34&lt;/b&gt;″.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If the home directory of your “&lt;b&gt;NS-2.34&lt;/b&gt;″ is other than “&lt;b&gt;/home/ns2/ns-allinone-2.34&lt;/b&gt;″, then you need to find “&lt;b&gt;ns-allinone-2.34&lt;/b&gt;″ and replace with “yourpath/ns-allinone-2.34″ for the file “&lt;b&gt;leach-setup.sh&lt;/b&gt;”.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; 3. Move to the directory “/home/ns2/ns-allinone-2.34/ns-2.34″ and patch the file “leach-setup.sh” by run this command :&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;b&gt;ns2@ubuntu-10.04:~$ cd /home/ns2/ns-allinone-2.34/ns-2.34/ &lt;/b&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;b&gt;&amp;nbsp;&amp;nbsp; ns2@ubuntu-10.04:/home/ns2/ns-allinone-2.34/ns-2.34$ bash leach-setup.sh&lt;/b&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If the home directory of your “&lt;b&gt;ns-2.34&lt;/b&gt;″ is other than “&lt;b&gt;/home/ns2/ns-allinone-2.34&lt;/b&gt;″, then you need to find “&lt;b&gt;…/ns-allinone-2.34&lt;/b&gt;″ and replace with “yourpath/ns-allinone-2.34″ for the following two files:&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ”&lt;b&gt;Makefile&lt;/b&gt;” : found in the directory “/home/ns2/ns-allinone-2.34/ns-2.34″.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; “&lt;b&gt;Makefile.in&lt;/b&gt;” : found in the directory “/home/ns2/ns-allinone-2.34/ns-2.34″.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; 4. Edit both “&lt;b&gt;Makefile&lt;/b&gt;” &amp;amp; “&lt;b&gt;Makefile.in&lt;/b&gt;” as following:&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;b&gt; CC = gcc-4.3&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; CPP = g++-4.3&lt;/b&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; 5. Run the following commands&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;b&gt;ns2@ubuntu-10.04:/home/ns2/ns-allinone-2.34/ns-2.34$ ./configure&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; ns2@ubuntu-10.04:/home/ns2/ns-allinone-2.34/ns-2.34$ make clean&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; ns2@ubuntu-10.04:/home/ns2/ns-allinone-2.34/ns-2.34$ make&lt;/b&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If you have a problem while ‘make’ and shown error message like this : “trace/cmu-trace.cc: In member function ‘void CMUTrace::format(Packet*, const char*)’: trace/cmu-trace.cc:1327: error: ‘format_rca’ was not declared in this scope trace/cmu-trace.cc: At global scope: trace/cmu-trace.cc:1523: error: no ‘void CMUTrace::format_rca(Packet*, int)’ member function declared in class ‘CMUTrace’ make: *** [trace/cmu-trace.o] Error 1″&lt;br /&gt;&lt;br /&gt;Then you need to add this lines into your cmu-trace.h:&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // start from line 165&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #ifdef MIT_uAMPS&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; void format_rca(Packet *p, int offset);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #define ADV_CHAR ‘A’&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #define REQ_CHAR ‘R’&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #define DATA_CHAR ‘D’&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #endif&lt;br /&gt;&lt;br /&gt;and also add this line into ns-default.tcl (line 765):&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; # ——————————————————&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Phy/WirelessPhy set alive_ 1&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Phy/WirelessPhy set Efriss_amp_ 100e-12&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Phy/WirelessPhy set Etwo_ray_amp_ 0.013e-12&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Phy/WirelessPhy set EXcvr_ 50e-9&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Phy/WirelessPhy set sleep_ 0&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Phy/WirelessPhy set ss_ 1&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Phy/WirelessPhy set dist_ 0&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; # ——————————————————&lt;br /&gt;&lt;br /&gt;After that you need to re-make.&lt;br /&gt;&lt;br /&gt;If the previous commands passed successfully then you are ready to test your “Leach” by running ./test:&lt;br /&gt;&lt;b&gt;&lt;br /&gt;ns2@ubuntu-10.04:/home/ns2/ns-allinone-2.34/ns-2.34$ ./test&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Check the file “leach.err”, if no error reported then go to “leach.out” for results.&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://ramakrishnamundugar.blogspot.com/feeds/5907831181114892560/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ramakrishnamundugar.blogspot.com/2013/10/installing-leach-in-ns-234.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8723115167618750432/posts/default/5907831181114892560'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8723115167618750432/posts/default/5907831181114892560'/><link rel='alternate' type='text/html' href='http://ramakrishnamundugar.blogspot.com/2013/10/installing-leach-in-ns-234.html' title='Installing LEACH in NS-2.34'/><author><name>Ramakrishna M</name><uri>http://www.blogger.com/profile/00604979190341937062</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8723115167618750432.post-5084998028444223231</id><published>2013-08-11T23:39:00.002-07:00</published><updated>2013-08-11T23:39:34.335-07:00</updated><title type='text'>TCL Error</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;u&gt;TCL compilation error:&lt;/u&gt;&lt;br /&gt;
&lt;br /&gt;
/home/ramakrishna/ns2/ns-allinone-2.34/tcl8.4.18/library:/usr/lib /home/ramakrishna/ns2/ns-allinone-2.32/lib/tcl8.4 /home/ramakrishna/ns2/ns-allinone-2.34/tcl8.4.18/library:/usr/lib /home/ramakrishna/ns2/ns-allinone-2.34/tcl8.4.18/library:/usr/tcl8.4 /usr/local/lib/tcl8.4 /usr/lib/tcl8.4 /usr/local/library /usr/library /usr/tcl8.4.15/library /tcl8.4.15/library /home/ramakrishna/ns2/ns-allinone-2.32/lib/tcl8.4&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This probably means that Tcl wasn&#39;t installed properly.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
1) cd ns-allinone-2.34/tcl8.4.18/ &amp;amp;&amp;amp; ln -s lib/ library&lt;br /&gt;
2) Reinstall ns-allinone-2.34&lt;br /&gt;
&lt;br /&gt;
OR&lt;br /&gt;
&lt;br /&gt;
1. Go to location root-usr-local-bin by giving following command in terminal&lt;br /&gt;
&lt;b&gt;cd /usr/local/bin&lt;/b&gt;&lt;br /&gt;
2. There you would find the ns file. We just need to remove it by giving following command&lt;br /&gt;
&lt;b&gt;rm ns&lt;/b&gt;&lt;br /&gt;
3. Thats it, you are done. Now your ns starts running successfully.&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://ramakrishnamundugar.blogspot.com/feeds/5084998028444223231/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ramakrishnamundugar.blogspot.com/2013/08/tcl-error.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8723115167618750432/posts/default/5084998028444223231'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8723115167618750432/posts/default/5084998028444223231'/><link rel='alternate' type='text/html' href='http://ramakrishnamundugar.blogspot.com/2013/08/tcl-error.html' title='TCL Error'/><author><name>Ramakrishna M</name><uri>http://www.blogger.com/profile/00604979190341937062</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8723115167618750432.post-5319230092166087672</id><published>2013-05-31T01:41:00.001-07:00</published><updated>2013-05-31T01:41:13.229-07:00</updated><title type='text'>&#39;make depend&#39; Error</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;/bin/sh: Syntax error: Bad fd number&lt;br /&gt;make: *** [depend] Error 2&lt;br /&gt;&lt;br /&gt;This is because the default ubuntu 10.04 setting uses dash instead of bash for sh command. Thus, rename the old link of /bin/sh to dash and create new link of /bin/sh to bash.&lt;br /&gt;&lt;br /&gt;cd /bin&lt;br /&gt;sudo mv sh sh_orig&lt;br /&gt;sudo ln -s /bin/bash sh&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://ramakrishnamundugar.blogspot.com/feeds/5319230092166087672/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ramakrishnamundugar.blogspot.com/2013/05/make-depend-error.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8723115167618750432/posts/default/5319230092166087672'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8723115167618750432/posts/default/5319230092166087672'/><link rel='alternate' type='text/html' href='http://ramakrishnamundugar.blogspot.com/2013/05/make-depend-error.html' title='&#39;make depend&#39; Error'/><author><name>Ramakrishna M</name><uri>http://www.blogger.com/profile/00604979190341937062</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8723115167618750432.post-1939052921970608884</id><published>2013-04-29T21:15:00.002-07:00</published><updated>2013-04-29T21:15:28.100-07:00</updated><title type='text'>NS-2 NAM Error </title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
If following is the error when you run&lt;br /&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;div style=&quot;border: 0px none; color: #333333; font-family: Tahoma,Arial,Helvetica,sans-serif; font-size: 13px; line-height: 18px; margin-bottom: 18px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;
$nam sample.nam&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;border: 0px none; color: #333333; font-family: Tahoma,Arial,Helvetica,sans-serif; font-size: 13px; line-height: 18px; margin-bottom: 18px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;
node 0 is not defined… node 0 is not defined… node 1 is not defined… 
node 1 is not defined… node 1 is not defined… node 0 is not defined… 
node 0 is not defined… node 0 is not defined… node 1 is not defined… 
node 1 is not defined… node 1 is not defined… node 0 is not defined… 
node 0 is not defined… node 0 is not defined… node 1 is not defined… 
node 1 is not defined… node 1 is not defined… node 0 is not defined… 
node 0 is not defined… node 0 is not defined… node 1 is not defined&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;border: 0px none; color: #333333; font-family: Tahoma,Arial,Helvetica,sans-serif; font-size: 13px; line-height: 18px; margin-bottom: 18px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;border: 0px none; color: #333333; line-height: 18px; margin-bottom: 18px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;Solution:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;border: 0px none; color: #333333; font-family: Tahoma,Arial,Helvetica,sans-serif; font-size: 13px; line-height: 18px; margin-bottom: 18px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;$node_(0) set X_ 1236.434683198672&lt;br /&gt;$node_(0) set Y_ 179.979610823970&lt;br /&gt;$node_(0) set Z_ 0.000000000000&lt;br /&gt;$node_(1) set X_ 1790.717030099859&lt;br /&gt;$node_(1) set Y_ 83.776877593619&lt;br /&gt;$node_(1) set Z_ 0.000000000000&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;border: 0px none; color: #333333; font-family: Tahoma,Arial,Helvetica,sans-serif; font-size: 13px; line-height: 18px; margin-bottom: 18px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;$ns_ at 0.000000000000 &quot;$node_(0) setdest 8.478589906252 340.108921691462 0.138306462152&quot;&lt;br /&gt;$ns_ at 0.000000000000 &quot;$node_(1) setdest 758.184447675563 73.841187162084 0.696734621404&quot; &lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;border: 0px none; color: #333333; font-family: Tahoma,Arial,Helvetica,sans-serif; font-size: 13px; line-height: 18px; margin-bottom: 18px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;Add following two line at the after the mobility declaration.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;border: 0px none; color: #333333; font-family: Tahoma,Arial,Helvetica,sans-serif; font-size: 13px; line-height: 18px; margin-bottom: 18px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;b&gt;$ns_ initial_node_pos $node_(1) 20&lt;br /&gt;$ns_ initial_node_pos $node_(0) 20&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://ramakrishnamundugar.blogspot.com/feeds/1939052921970608884/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ramakrishnamundugar.blogspot.com/2013/04/ns-2-nam-error.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8723115167618750432/posts/default/1939052921970608884'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8723115167618750432/posts/default/1939052921970608884'/><link rel='alternate' type='text/html' href='http://ramakrishnamundugar.blogspot.com/2013/04/ns-2-nam-error.html' title='NS-2 NAM Error '/><author><name>Ramakrishna M</name><uri>http://www.blogger.com/profile/00604979190341937062</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8723115167618750432.post-2743918157506184108</id><published>2013-04-16T10:35:00.002-07:00</published><updated>2013-04-16T10:35:10.219-07:00</updated><title type='text'>Error while adding new protocol in NS2 - 3</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
One more common error is as follows:&lt;br /&gt;&lt;br /&gt;&lt;b&gt;invalid command name &quot;Agent/MyAgentOtcl&quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; while executing&lt;br /&gt;&quot;Agent/MyAgentOtcl set seqNo_ $opt(seqNo)&quot;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;This is due to one of the below listed reason:&lt;br /&gt;&lt;br /&gt;&lt;b&gt;1.&lt;/b&gt; The spelling mistake in &quot;Agent/MyAgentOtcl&quot; of TCL script and .cc file. In .cc file code will be as follows:&lt;br /&gt;&lt;br /&gt;MyAgentClass() : TclClass(&quot;Agent/MyAgentOtcl&quot;) {}&lt;br /&gt;TclObject* create(int, const char*const*) {&lt;br /&gt;return(new MyAgent());&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;2. &lt;/b&gt;Once protocol is added, then updating makefile is also important. In makefile give the path for creating object file. If path is not give, then TCL scripts cannot access the C++ codes.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;3. &lt;/b&gt;After modifying the makefile and ./configure, sometimes makefile will not be having the path information. You may get ./configure as successfully completed but TCL scripts fails to access. So updating is also important.&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://ramakrishnamundugar.blogspot.com/feeds/2743918157506184108/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ramakrishnamundugar.blogspot.com/2013/04/error-while-adding-new-protocol-in-ns2-3.html#comment-form' title='25 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8723115167618750432/posts/default/2743918157506184108'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8723115167618750432/posts/default/2743918157506184108'/><link rel='alternate' type='text/html' href='http://ramakrishnamundugar.blogspot.com/2013/04/error-while-adding-new-protocol-in-ns2-3.html' title='Error while adding new protocol in NS2 - 3'/><author><name>Ramakrishna M</name><uri>http://www.blogger.com/profile/00604979190341937062</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>25</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8723115167618750432.post-2913374837149677602</id><published>2013-04-16T10:19:00.002-07:00</published><updated>2013-04-16T10:19:58.636-07:00</updated><title type='text'>Error while adding new protocol in NS2 - 2</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Error:&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;b&gt;make: *** No rule to make target `tcp/linux/tcp_naivereno.cc&#39;, needed by `depend&#39;.&amp;nbsp; Stop.&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Solution:&lt;br /&gt;
&lt;br /&gt;
edit file “ns-allinone-2.33/ns-2.33/Makefile.in”&lt;br /&gt;
&lt;br /&gt;
...&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
OBJ_CC = \&lt;br /&gt;
&lt;br /&gt;
...&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; tcp/scoreboard.o tcp/scoreboard-rq.o tcp/tcp-sack1.o tcp/tcp-fack.o \&lt;br /&gt;
-&amp;nbsp;&amp;nbsp;&amp;nbsp; tcp/linux/tcp_naivereno.o\&lt;br /&gt;
-&amp;nbsp;&amp;nbsp;&amp;nbsp; tcp/linux/src/tcp_cong.o\&lt;br /&gt;
-&amp;nbsp;&amp;nbsp;&amp;nbsp; tcp/linux/src/tcp_highspeed.o tcp/linux/src/tcp_bic.o tcp/linux /src/tcp_htcp.o tcp/linux/src/tcp_scalable.o src/tcp_cubic.o\&lt;br /&gt;
-&amp;nbsp;&amp;nbsp;&amp;nbsp; tcp/linux/src/tcp_westwood.o tcp/linux/src/tcp_vegas.o tcp/linux/src/tcp_hybla.o\&lt;br /&gt;
-&amp;nbsp;&amp;nbsp;&amp;nbsp; tcp/linux/src/tcp_illinois.o tcp/linux/src/tcp_yeah.o \&lt;br /&gt;
-&amp;nbsp;&amp;nbsp;&amp;nbsp; tcp/linux/src/tcp_veno.o tcp/linux/src/tcp_compound.o tcp/linux/src/tcp_lp.o\&lt;br /&gt;
-&amp;nbsp;&amp;nbsp;&amp;nbsp; tcp/scoreboard1.o tcp/tcp-linux.o tcp/linux/ns-linux-util.o tcp/linux/ns-linux-c.o tcp/linux/ns-linux-param.o\&lt;br /&gt;
+&amp;nbsp;&amp;nbsp;&amp;nbsp; tcp/scoreboard1.o tcp/tcp-linux.o tcp/linux/ns-linux-util.o \&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; tcp/tcp-asym.o tcp/tcp-asym-sink.o tcp/tcp-fs.o \&lt;br /&gt;
&lt;br /&gt;
...&lt;br /&gt;
-OBJ_C =&lt;br /&gt;
+OBJ_C = \&lt;br /&gt;
+&amp;nbsp;&amp;nbsp;&amp;nbsp; tcp/linux/tcp_naivereno.o\&lt;br /&gt;
+&amp;nbsp;&amp;nbsp;&amp;nbsp; tcp/linux/src/tcp_cong.o\&lt;br /&gt;
+&amp;nbsp;&amp;nbsp;&amp;nbsp; tcp/linux/src/tcp_highspeed.o tcp/linux/src/tcp_bic.o tcp/linux/src/tcp_htcp.o tcp/linux/src/tcp_scalable.o tcp/linux/src/tcp_cubic.o\&lt;br /&gt;
+&amp;nbsp;&amp;nbsp;&amp;nbsp; tcp/linux/src/tcp_westwood.o tcp/linux/src/tcp_vegas.o tcp/linux/src/tcp_hybla.o\&lt;br /&gt;
+&amp;nbsp;&amp;nbsp;&amp;nbsp; tcp/linux/src/tcp_illinois.o tcp/linux/src/tcp_yeah.o \&lt;br /&gt;
+&amp;nbsp;&amp;nbsp;&amp;nbsp; tcp/linux/src/tcp_veno.o tcp/linux/src/tcp_compound.o tcp/linux/src/tcp_lp.o\&lt;br /&gt;
+&amp;nbsp;&amp;nbsp;&amp;nbsp; tcp/linux/ns-linux-c.o tcp/linux/ns-linux-param.o&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://ramakrishnamundugar.blogspot.com/feeds/2913374837149677602/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ramakrishnamundugar.blogspot.com/2013/04/error-while-adding-new-protocol-in-ns2-2.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8723115167618750432/posts/default/2913374837149677602'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8723115167618750432/posts/default/2913374837149677602'/><link rel='alternate' type='text/html' href='http://ramakrishnamundugar.blogspot.com/2013/04/error-while-adding-new-protocol-in-ns2-2.html' title='Error while adding new protocol in NS2 - 2'/><author><name>Ramakrishna M</name><uri>http://www.blogger.com/profile/00604979190341937062</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8723115167618750432.post-550351143075243553</id><published>2013-04-16T10:13:00.003-07:00</published><updated>2013-04-16T10:19:47.061-07:00</updated><title type='text'>Error while adding new protocol in NS2 - 1</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
The most commonly found errors while adding new protocol are as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;invoked from within&lt;br /&gt;&quot;_o433 cmd addr&quot;&lt;br /&gt;invoked from within&lt;br /&gt;&quot;catch &quot;$self cmd $args&quot; ret&quot;&lt;br /&gt;invoked from within&lt;br /&gt;&quot;if [catch &quot;$self cmd $args&quot; ret] {&lt;br /&gt;set cls [$self info class]&lt;br /&gt;global errorInfo&lt;br /&gt;set savedInfo $errorInfo&lt;br /&gt;error &quot;error when calling class $cls: $args&quot; $...&quot;&lt;br /&gt;(procedure &quot;_o433&quot; line 2)&lt;br /&gt;(SplitObject unknown line 2)&lt;br /&gt;invoked from within&lt;br /&gt;&quot;_o433 addr&quot;&lt;br /&gt;(&quot;eval&quot; body line 1)&lt;br /&gt;invoked from within&lt;br /&gt;&quot;eval $node addr $args&quot;&lt;br /&gt;(&quot;default&quot; arm line 2)&lt;br /&gt;invoked from within&lt;br /&gt;&quot;switch -exact $routingAgent_ {&lt;br /&gt;DSDV {&lt;br /&gt;set ragent [$self create-dsdv-agent $node]&lt;br /&gt;}&lt;br /&gt;DSR {&lt;br /&gt;$self at 0.0 &quot;$node start-dsr&quot;&lt;br /&gt;}&lt;br /&gt;AODV {&lt;br /&gt;set ragent [$self cre...&quot;&lt;br /&gt;(procedure &quot;_o3&quot; line 14)&lt;br /&gt;(Simulator create-wireless-node line 14)&lt;br /&gt;invoked from within&lt;br /&gt;&quot;_o3 create-wireless-node&quot;&lt;br /&gt;(&quot;eval&quot; body line 1)&lt;br /&gt;invoked from within&lt;br /&gt;&quot;eval $self create-wireless-node $args&quot;&lt;br /&gt;(procedure &quot;_o3&quot; line 23)&lt;br /&gt;(Simulator node line 23)&lt;br /&gt;invoked from within&lt;br /&gt;&quot;$ns_ node&quot;&lt;br /&gt;(&quot;for&quot; body line 2)&lt;br /&gt;invoked from within&lt;br /&gt;&quot;for {set i $val(nnaodv)} {$i &amp;lt; $val(nn)} {incr i} {&lt;br /&gt;set node_($i) [$ns_ node]&lt;br /&gt;$node_($i) random-motion 0 ;#disable random motion&lt;br /&gt;#...&quot; &lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The error is due to the TCL script you are trying to execute is not compilng to the library TCL scripts. This error can be solved using following commands:&lt;br /&gt;
&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;&lt;b&gt;./configure&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;&lt;b&gt;make clean&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;&lt;b&gt;make&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;&lt;b&gt;sudo make install&lt;/b&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://ramakrishnamundugar.blogspot.com/feeds/550351143075243553/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ramakrishnamundugar.blogspot.com/2013/04/error-while-adding-new-protocol.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8723115167618750432/posts/default/550351143075243553'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8723115167618750432/posts/default/550351143075243553'/><link rel='alternate' type='text/html' href='http://ramakrishnamundugar.blogspot.com/2013/04/error-while-adding-new-protocol.html' title='Error while adding new protocol in NS2 - 1'/><author><name>Ramakrishna M</name><uri>http://www.blogger.com/profile/00604979190341937062</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8723115167618750432.post-1500748263227310260</id><published>2013-01-04T02:04:00.001-08:00</published><updated>2013-01-04T02:04:05.781-08:00</updated><title type='text'>Using added new routing protocol in NS2</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
The steps to be followed in Fedora system are as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;ol style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;./configure&lt;/li&gt;
&lt;li&gt;make clean&lt;/li&gt;
&lt;li&gt;make&lt;/li&gt;
&lt;li&gt;make install&lt;/li&gt;
&lt;/ol&gt;
&lt;div&gt;
After these only new protocol will be active and use.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://ramakrishnamundugar.blogspot.com/feeds/1500748263227310260/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ramakrishnamundugar.blogspot.com/2013/01/using-added-new-routing-protocol-in-ns2.html#comment-form' title='139 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8723115167618750432/posts/default/1500748263227310260'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8723115167618750432/posts/default/1500748263227310260'/><link rel='alternate' type='text/html' href='http://ramakrishnamundugar.blogspot.com/2013/01/using-added-new-routing-protocol-in-ns2.html' title='Using added new routing protocol in NS2'/><author><name>Ramakrishna M</name><uri>http://www.blogger.com/profile/00604979190341937062</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>139</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8723115167618750432.post-5863795680739408110</id><published>2012-12-14T20:24:00.000-08:00</published><updated>2012-12-14T20:24:03.303-08:00</updated><title type='text'>NS-2.29 installation in Ubuntu 12.04</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;The below given details are the errors and solutions, which I found while installing.&lt;br /&gt;&lt;br /&gt;1. &lt;br /&gt;Build tcl8.4.11&lt;br /&gt;============================================================&lt;br /&gt;loading cache ./config.cache&lt;br /&gt;checking whether to use symlinks for manpages... no&lt;br /&gt;checking whether to compress the manpages... no&lt;br /&gt;checking whether to add a package name suffix for the manpages... no&lt;br /&gt;checking for gcc... gcc&lt;br /&gt;checking whether the C compiler (gcc ) works... yes&lt;br /&gt;checking whether the C compiler (gcc ) is a cross-compiler... no&lt;br /&gt;checking whether we are using GNU C... yes&lt;br /&gt;checking whether gcc accepts -g... yes&lt;br /&gt;checking for building with threads... no (default)&lt;br /&gt;checking if the compiler understands -pipe... yes&lt;br /&gt;checking how to run the C preprocessor... gcc -pipe -E&lt;br /&gt;checking for sin... no&lt;br /&gt;checking for main in -lieee... yes&lt;br /&gt;checking for main in -linet... no&lt;br /&gt;checking for net/errno.h... no&lt;br /&gt;checking for connect... yes&lt;br /&gt;checking for gethostbyname... yes&lt;br /&gt;checking how to build libraries... static&lt;br /&gt;checking for ranlib... ranlib&lt;br /&gt;checking if 64bit support is requested... no&lt;br /&gt;checking if 64bit Sparc VIS support is requested... no&lt;br /&gt;checking system version (for dynamic loading)... ./configure: 1: Syntax error: Unterminated quoted string&lt;br /&gt;tcl8.3.2 configuration failed! Exiting ...&lt;br /&gt;Tcl is not part of the ns project. Please see www.Scriptics.com&lt;br /&gt;to see if they have a fix for your platform.&lt;br /&gt;&lt;br /&gt;Solution:&lt;br /&gt;&lt;span style=&quot;color: blue;&quot;&gt;Basically, in some of the configure scripts the calls to awk are malformed.&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Go to the ns-allinone folder and type&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; find . -name configure &lt;br /&gt;&lt;br /&gt;A list of the configure scripts should appear.&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; For each of these replace any line that looks like this:&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; system=MP-RAS-`awk ‘{print }’ /etc/.relid’` &lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; with ...&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; system=MP-RAS-`awk ‘{print }’ /etc/.relid` &lt;br /&gt;&lt;br /&gt;Now rerun ./install in the ns-allinone folder.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;2. &lt;br /&gt;ld: libotcl.so: hidden symbol `__stack_chk_fail_local&#39; isn&#39;t defined&lt;br /&gt;ld: final link failed: Bad value&lt;br /&gt;make: *** [libotcl.so] Error 1&lt;br /&gt;otcl-1.13 make failed! Exiting ...&lt;br /&gt;See http://www.isi.edu/nsnam/ns/ns-problems.html for problems &lt;br /&gt;&lt;br /&gt;Solution:&lt;br /&gt;&lt;span style=&quot;color: blue;&quot;&gt;In otcl-1.13/configure, line number 5516&lt;br /&gt;&lt;br /&gt;-&amp;nbsp; SHLIB_LD=&quot;ld -shared&quot;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;+SHLIB_LD=&quot;gcc -shared&quot;&amp;nbsp; &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;3. &lt;br /&gt;Tcl.cc: In member function ‘void Tcl::eval(char*)’:&lt;br /&gt;Tcl.cc:182:8: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]&lt;br /&gt;Tcl.cc: In member function ‘int TclObject::traceVar(const char*, TclObject*)’:&lt;br /&gt;Tcl.cc:421:50: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]&lt;br /&gt;Tcl.cc: In static member function ‘static int TclClass::create_shadow(ClientData, Tcl_Interp*, int, const char**)’:&lt;br /&gt;Tcl.cc:509:57: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]&lt;br /&gt;Tcl.cc:511:61: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]&lt;br /&gt;Tcl.cc: In static member function ‘static int TclClass::dispatch_instvar(ClientData, Tcl_Interp*, int, const char**)’:&lt;br /&gt;Tcl.cc:566:35: error: invalid conversion from ‘const char*’ to ‘char*’ [-fpermissive]&lt;br /&gt;Tcl.cc:571:72: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]&lt;br /&gt;Tcl.cc: In member function ‘virtual void TclClass::bind()’:&lt;br /&gt;Tcl.cc:603:60: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]&lt;br /&gt;Tcl.cc:605:60: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]&lt;br /&gt;make: *** [Tcl.o] Error 1&lt;br /&gt;tclcl-1.17 make failed! Exiting ...&lt;br /&gt;See http://www.isi.edu/nsnam/ns/ns-problems.html for problems&lt;br /&gt;&lt;br /&gt;Soultion:&lt;br /&gt;&lt;span style=&quot;color: blue;&quot;&gt;Go to file tclcl-1.17/tcl.cc at line no. 564 replace the line following line&lt;br /&gt;&lt;br /&gt;- char *p =strchr(localName, &#39;(&#39;);&lt;br /&gt;+ char *p =const_cast&amp;lt;char*&amp;gt;( strchr(localName, &#39;(&#39;));&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;4.&lt;br /&gt;./sctp/sctp.h:558:1: warning: ‘typedef’ was ignored in this declaration [enabled by default]&lt;br /&gt;./sctp/sctp.h:564:1: warning: ‘typedef’ was ignored in this declaration [enabled by default]&lt;br /&gt;./sctp/sctp.h:571:1: warning: ‘typedef’ was ignored in this declaration [enabled by default]&lt;br /&gt;./sctp/sctp.h:577:1: warning: ‘typedef’ was ignored in this declaration [enabled by default]&lt;br /&gt;./sctp/sctp.h:705:8: error: extra qualification ‘SctpAgent::’ on member ‘DumpSendBuffer’ [-fpermissive]&lt;br /&gt;trace/trace.cc:185:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]&lt;br /&gt;trace/trace.cc:185:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]&lt;br /&gt;trace/trace.cc:185:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]&lt;br /&gt;trace/trace.cc:185:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]&lt;br /&gt;trace/trace.cc:185:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]&lt;br /&gt;make: *** [trace/trace.o] Error 1&lt;br /&gt;Ns make failed!&lt;br /&gt;See http://www.isi.edu/nsnam/ns/ns-problems.html for problems&lt;br /&gt;&lt;br /&gt;Solution:&lt;br /&gt;&lt;span style=&quot;color: blue;&quot;&gt;In file sctp/sctp.h in line 705, please change as follows:&lt;br /&gt;&lt;br /&gt;- void SctpAgent::DumpSendBuffer();&lt;br /&gt;+void DumpSendBuffer();&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;5.&lt;br /&gt;In file included from ./trace/cmu-trace.h:43:0,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; from src_rtg/sragent.cc:53:&lt;br /&gt;./mobile/god.h: At global scope:&lt;br /&gt;./mobile/god.h:88:14: error: extra qualification ‘vector::’ on member ‘operator=’ [-fpermissive]&lt;br /&gt;./mobile/god.h:93:14: error: extra qualification ‘vector::’ on member ‘operator+=’ [-fpermissive]&lt;br /&gt;./mobile/god.h:98:13: error: extra qualification ‘vector::’ on member ‘operator==’ [-fpermissive]&lt;br /&gt;./mobile/god.h:101:13: error: extra qualification ‘vector::’ on member ‘operator!=’ [-fpermissive]&lt;br /&gt;make: *** [src_rtg/sragent.o] Error 1&lt;br /&gt;Ns make failed!&lt;br /&gt;See http://www.isi.edu/nsnam/ns/ns-problems.html for problems&lt;br /&gt;&lt;br /&gt;Solution:&lt;br /&gt;&lt;span style=&quot;color: blue;&quot;&gt;The changes to be done to solve this problem is in the file mobile/god.h&lt;br /&gt;&lt;br /&gt;In line 88, 93, 98 and 101&amp;nbsp; &lt;br /&gt;remove vector::&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;6.&lt;br /&gt;queue/red.cc: In member function ‘double REDQueue::estimator(int, int, double, double)’:&lt;br /&gt;queue/red.cc:388:18: warning: variable ‘old_ave’ set but not used [-Wunused-but-set-variable]&lt;br /&gt;queue/red.cc: In member function ‘virtual void REDQueue::trace(TracedVar*)’:&lt;br /&gt;queue/red.cc:874:35: error: invalid conversion from ‘const char*’ to ‘char*’ [-fpermissive]&lt;br /&gt;queue/red.cc:875:36: error: invalid conversion from ‘const char*’ to ‘char*’ [-fpermissive]&lt;br /&gt;queue/red.cc:876:36: error: invalid conversion from ‘const char*’ to ‘char*’ [-fpermissive]&lt;br /&gt;queue/red.cc:877:41: error: invalid conversion from ‘const char*’ to ‘char*’ [-fpermissive]&lt;br /&gt;make: *** [queue/red.o] Error 1&lt;br /&gt;Ns make failed!&lt;br /&gt;See http://www.isi.edu/nsnam/ns/ns-problems.html for problems&lt;br /&gt;&lt;br /&gt;Solution: &lt;br /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;In file queue/red.cc at line 874,&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;-if (((p = strstr(v-&amp;gt;name(), &quot;ave&quot;)) == NULL) &amp;amp;&amp;amp;&lt;br /&gt;-&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; ((p = strstr(v-&amp;gt;name(), &quot;prob&quot;)) == NULL) &amp;amp;&amp;amp;&lt;br /&gt;-&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; ((p = strstr(v-&amp;gt;name(), &quot;curq&quot;)) == NULL) &amp;amp;&amp;amp;&lt;br /&gt;-&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; ((p = strstr(v-&amp;gt;name(), &quot;cur_max_p&quot;))==NULL) ) {&lt;br /&gt;&lt;br /&gt;+if (((p = const_cast&amp;lt;char*&amp;gt;(strstr(v-&amp;gt;name(), &quot;ave&quot;))) == NULL) &amp;amp;&amp;amp;&lt;br /&gt;+&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ((p = const_cast&amp;lt;char*&amp;gt;(strstr(v-&amp;gt;name(), &quot;prob&quot;))) == NULL) &amp;amp;&amp;amp;&lt;br /&gt;+&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ((p = const_cast&amp;lt;char*&amp;gt;(strstr(v-&amp;gt;name(), &quot;curq&quot;))) == NULL) &amp;amp;&amp;amp;&lt;br /&gt;+&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ((p = const_cast&amp;lt;char*&amp;gt;(strstr(v-&amp;gt;name(), &quot;cur_max_p&quot;)))==NULL) ) {&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;7.&lt;br /&gt;dsr/dsragent.cc:2737:18: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]&lt;br /&gt;dsr/dsragent.cc:2756:28: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]&lt;br /&gt;make: *** [dsr/dsragent.o] Error 1&lt;br /&gt;Ns make failed!&lt;br /&gt;See http://www.isi.edu/nsnam/ns/ns-problems.html for problems&lt;br /&gt;&lt;br /&gt;Solution:&lt;br /&gt;&lt;span style=&quot;color: blue;&quot;&gt;In dsr/dsragent.cc at line 216 add following lines,&lt;br /&gt;&lt;br /&gt;void XmitFlowFailureCallback(Packet *pkt, void *data);&lt;br /&gt;void XmitFailureCallback(Packet *pkt, void *data);&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;8.&lt;br /&gt;diffusion/diffusion.cc: In member function ‘void DiffusionAgent::MACprepare(Packet*, nsaddr_t, int, bool)’:&lt;br /&gt;diffusion/diffusion.cc:427:26: error: ‘XmitFailedCallback’ was not declared in this scope&lt;br /&gt;make: *** [diffusion/diffusion.o] Error 1&lt;br /&gt;Ns make failed!&lt;br /&gt;See http://www.isi.edu/nsnam/ns/ns-problems.html for problems&lt;br /&gt;&lt;br /&gt;Solution:&lt;br /&gt;&lt;span style=&quot;color: blue;&quot;&gt;In diffusion/diffusion.cc at line 85 add following line,&lt;br /&gt;&lt;br /&gt;void XmitFailedCallback(Packet *pkt, void *data);&lt;/span&gt;&lt;br /&gt;9.&lt;br /&gt;diffusion/omni_mcast.cc: In member function ‘void OmniMcastAgent::ConsiderNew(Packet*)’:&lt;br /&gt;diffusion/omni_mcast.cc:243:19: warning: variable ‘hashPtr’ set but not used [-Wunused-but-set-variable]&lt;br /&gt;diffusion/omni_mcast.cc:246:27: warning: variable ‘forward_nodeID’ set but not used [-Wunused-but-set-variable]&lt;br /&gt;diffusion/omni_mcast.cc: In member function ‘void OmniMcastAgent::MACprepare(Packet*, nsaddr_t, unsigned int, bool)’:&lt;br /&gt;diffusion/omni_mcast.cc:388:26: error: ‘OmniMcastXmitFailedCallback’ was not declared in this scope&lt;br /&gt;make: *** [diffusion/omni_mcast.o] Error 1&lt;br /&gt;Ns make failed!&lt;br /&gt;See http://www.isi.edu/nsnam/ns/ns-problems.html for problems&lt;br /&gt;&lt;br /&gt;Solution:&lt;br /&gt;&lt;span style=&quot;color: blue;&quot;&gt;In diffusion/omni_mcast.cc at line 83 add followinf line&lt;br /&gt;&lt;br /&gt;void OmniMcastXmitFailedCallback(Packet *pkt, void *data);&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;10.&lt;br /&gt;queue/rio.cc: In member function ‘virtual void RIOQueue::enque(Packet*)’:&lt;br /&gt;queue/rio.cc:481:56: warning: suggest parentheses around ‘&amp;amp;&amp;amp;’ within ‘||’ [-Wparentheses]&lt;br /&gt;queue/rio.cc: In member function ‘virtual void RIOQueue::trace(TracedVar*)’:&lt;br /&gt;queue/rio.cc:565:35: error: invalid conversion from ‘const char*’ to ‘char*’ [-fpermissive]&lt;br /&gt;queue/rio.cc:566:38: error: invalid conversion from ‘const char*’ to ‘char*’ [-fpermissive]&lt;br /&gt;queue/rio.cc:567:39: error: invalid conversion from ‘const char*’ to ‘char*’ [-fpermissive]&lt;br /&gt;queue/rio.cc:568:36: error: invalid conversion from ‘const char*’ to ‘char*’ [-fpermissive]&lt;br /&gt;queue/rio.cc:569:39: error: invalid conversion from ‘const char*’ to ‘char*’ [-fpermissive]&lt;br /&gt;queue/rio.cc:570:40: error: invalid conversion from ‘const char*’ to ‘char*’ [-fpermissive]&lt;br /&gt;queue/rio.cc:571:36: error: invalid conversion from ‘const char*’ to ‘char*’ [-fpermissive]&lt;br /&gt;make: *** [queue/rio.o] Error 1&lt;br /&gt;Ns make failed!&lt;br /&gt;See http://www.isi.edu/nsnam/ns/ns-problems.html for problems&lt;br /&gt;&lt;br /&gt;Solution:&lt;br /&gt;&lt;span style=&quot;color: blue;&quot;&gt;Do the following changes in queue/rio.cc at line 565 onwards,&lt;br /&gt;&lt;br /&gt;-&amp;nbsp;&amp;nbsp;&amp;nbsp; if (((p = strstr(v-&amp;gt;name(), &quot;ave&quot;)) == NULL) &amp;amp;&amp;amp;&lt;br /&gt;-&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; ((p = strstr(v-&amp;gt;name(), &quot;in_ave&quot;)) == NULL) &amp;amp;&amp;amp;&lt;br /&gt;-&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; ((p = strstr(v-&amp;gt;name(), &quot;out_ave&quot;)) == NULL) &amp;amp;&amp;amp;&lt;br /&gt;-&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; ((p = strstr(v-&amp;gt;name(), &quot;prob&quot;)) == NULL) &amp;amp;&amp;amp;&lt;br /&gt;-&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; ((p = strstr(v-&amp;gt;name(), &quot;in_prob&quot;)) == NULL) &amp;amp;&amp;amp;&lt;br /&gt;-&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; ((p = strstr(v-&amp;gt;name(), &quot;out_prob&quot;)) == NULL) &amp;amp;&amp;amp;&lt;br /&gt;-&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; ((p = strstr(v-&amp;gt;name(), &quot;curq&quot;)) == NULL)) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&lt;br /&gt;+&amp;nbsp;&amp;nbsp;&amp;nbsp; if (((p = const_cast&amp;lt;char*&amp;gt;(strstr(v-&amp;gt;name(), &quot;ave&quot;))) == NULL) &amp;amp;&amp;amp;&lt;br /&gt;+&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; ((p = const_cast&amp;lt;char*&amp;gt;(strstr(v-&amp;gt;name(), &quot;in_ave&quot;))) == NULL) &amp;amp;&amp;amp;&lt;br /&gt;+&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; ((p = const_cast&amp;lt;char*&amp;gt;(strstr(v-&amp;gt;name(), &quot;out_ave&quot;))) == NULL) &amp;amp;&amp;amp;&lt;br /&gt;+&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; ((p = const_cast&amp;lt;char*&amp;gt;(strstr(v-&amp;gt;name(), &quot;prob&quot;))) == NULL) &amp;amp;&amp;amp;&lt;br /&gt;+&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; ((p = const_cast&amp;lt;char*&amp;gt;(strstr(v-&amp;gt;name(), &quot;in_prob&quot;))) == NULL) &amp;amp;&amp;amp;&lt;br /&gt;+&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; ((p = const_cast&amp;lt;char*&amp;gt;(strstr(v-&amp;gt;name(), &quot;out_prob&quot;))) == NULL) &amp;amp;&amp;amp;&lt;br /&gt;+&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; ((p = const_cast&amp;lt;char*&amp;gt;(strstr(v-&amp;gt;name(), &quot;curq&quot;))) == NULL)) {&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;11.&lt;br /&gt;tcp/tcp-sack-rh.cc: At global scope:&lt;br /&gt;tcp/tcp-sack-rh.cc:68:15: error: extra qualification ‘SackRHTcpAgent::’ on member ‘newack’ [-fpermissive]&lt;br /&gt;make: *** [tcp/tcp-sack-rh.o] Error 1&lt;br /&gt;Ns make failed!&lt;br /&gt;See http://www.isi.edu/nsnam/ns/ns-problems.html for problems&lt;br /&gt;&lt;br /&gt;Solution:&lt;br /&gt;&lt;span style=&quot;color: blue;&quot;&gt;In tcp/tcp-sack-rh.cc at line 68,&lt;br /&gt;&lt;br /&gt;-&amp;nbsp;&amp;nbsp;&amp;nbsp; virtual void SackRHTcpAgent::newack(Packet* pkt);&lt;br /&gt;+&amp;nbsp;&amp;nbsp;&amp;nbsp; virtual void newack(Packet* pkt);&lt;/span&gt;&lt;br /&gt;12.&lt;br /&gt;queue/pi.cc: In member function ‘virtual void PIQueue::trace(TracedVar*)’:&lt;br /&gt;queue/pi.cc:316:36: error: invalid conversion from ‘const char*’ to ‘char*’ [-fpermissive]&lt;br /&gt;queue/pi.cc:317:36: error: invalid conversion from ‘const char*’ to ‘char*’ [-fpermissive]&lt;br /&gt;make: *** [queue/pi.o] Error 1&lt;br /&gt;Ns make failed!&lt;br /&gt;See http://www.isi.edu/nsnam/ns/ns-problems.html for problems&lt;br /&gt;&lt;br /&gt;Solution:&lt;br /&gt;&lt;span style=&quot;color: blue;&quot;&gt;In queue/pi.cc at line 316, do the following changes,&lt;br /&gt;&lt;br /&gt;-&amp;nbsp;&amp;nbsp;&amp;nbsp; if (((p = strstr(v-&amp;gt;name(), &quot;prob&quot;)) == NULL) &amp;amp;&amp;amp;&lt;br /&gt;-&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; ((p = strstr(v-&amp;gt;name(), &quot;curq&quot;)) == NULL)) {&lt;br /&gt;&lt;br /&gt;+&amp;nbsp;&amp;nbsp;&amp;nbsp; if (((p = const_cast&amp;lt;char*&amp;gt;(strstr(v-&amp;gt;name(), &quot;prob&quot;))) == NULL) &amp;amp;&amp;amp;&lt;br /&gt;+&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ((p = const_cast&amp;lt;char*&amp;gt;(strstr(v-&amp;gt;name(), &quot;curq&quot;))) == NULL)) {&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;13.&lt;br /&gt;queue/vq.cc: In member function ‘virtual void Vq::trace(TracedVar*)’:&lt;br /&gt;queue/vq.cc:333:35: error: invalid conversion from ‘const char*’ to ‘char*’ [-fpermissive]&lt;br /&gt;make: *** [queue/vq.o] Error 1&lt;br /&gt;Ns make failed!&lt;br /&gt;See http://www.isi.edu/nsnam/ns/ns-problems.html for problems&lt;br /&gt;&lt;br /&gt;Solution:&lt;br /&gt;&lt;span style=&quot;color: blue;&quot;&gt;In file queue/vq.cc at line 333,&lt;br /&gt;&lt;br /&gt;-&amp;nbsp;&amp;nbsp;&amp;nbsp; if ((p = strstr(v-&amp;gt;name(), &quot;curq&quot;)) == NULL) {&lt;br /&gt;+&amp;nbsp;&amp;nbsp;&amp;nbsp; if ((p = const_cast&amp;lt;char*&amp;gt;(strstr(v-&amp;gt;name(), &quot;curq&quot;))) == NULL) {&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;14.&lt;br /&gt;queue/rem.cc: In member function ‘virtual void REMQueue::trace(TracedVar*)’:&lt;br /&gt;queue/rem.cc:335:35: error: invalid conversion from ‘const char*’ to ‘char*’ [-fpermissive]&lt;br /&gt;queue/rem.cc:336:36: error: invalid conversion from ‘const char*’ to ‘char*’ [-fpermissive]&lt;br /&gt;queue/rem.cc:337:36: error: invalid conversion from ‘const char*’ to ‘char*’ [-fpermissive]&lt;br /&gt;make: *** [queue/rem.o] Error 1&lt;br /&gt;Ns make failed!&lt;br /&gt;See http://www.isi.edu/nsnam/ns/ns-problems.html for problems&lt;br /&gt;&lt;br /&gt;Solution:&lt;br /&gt;&lt;span style=&quot;color: blue;&quot;&gt;In file queue/rem.cc at line 335,&lt;br /&gt;&lt;br /&gt;-&amp;nbsp;&amp;nbsp;&amp;nbsp; if (((p = strstr(v-&amp;gt;name(), &quot;ave&quot;)) == NULL) &amp;amp;&amp;amp;&lt;br /&gt;-&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; ((p = strstr(v-&amp;gt;name(), &quot;prob&quot;)) == NULL) &amp;amp;&amp;amp;&lt;br /&gt;-&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; ((p = strstr(v-&amp;gt;name(), &quot;curq&quot;)) == NULL)) {&lt;br /&gt;&lt;br /&gt;+&amp;nbsp;&amp;nbsp; if (((p =const_cast&amp;lt;char*&amp;gt;(strstr(v-&amp;gt;name(), &quot;ave&quot;))) == NULL) &amp;amp;&amp;amp;&lt;br /&gt;+&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ((p = const_cast&amp;lt;char*&amp;gt;(strstr(v-&amp;gt;name(), &quot;prob&quot;))) == NULL) &amp;amp;&amp;amp;&lt;br /&gt;+&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ((p = const_cast&amp;lt;char*&amp;gt;(strstr(v-&amp;gt;name(), &quot;curq&quot;))) == NULL)) {&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;15.&lt;br /&gt;queue/gk.cc: In member function ‘virtual void GK::trace(TracedVar*)’:&lt;br /&gt;queue/gk.cc:207:35: error: invalid conversion from ‘const char*’ to ‘char*’ [-fpermissive]&lt;br /&gt;make: *** [queue/gk.o] Error 1&lt;br /&gt;Ns make failed!&lt;br /&gt;See http://www.isi.edu/nsnam/ns/ns-problems.html for problems&lt;br /&gt;&lt;br /&gt;Solution:&lt;br /&gt;&lt;span style=&quot;color: blue;&quot;&gt;In file queue/gk.cc at line 207,&lt;br /&gt;&lt;br /&gt;-&amp;nbsp;&amp;nbsp;&amp;nbsp; if ((p = strstr(v-&amp;gt;name(), &quot;curq&quot;)) == NULL) {&lt;br /&gt;+&amp;nbsp;&amp;nbsp;&amp;nbsp; if ((p = const_cast&amp;lt;char*&amp;gt;(strstr(v-&amp;gt;name(), &quot;curq&quot;))) == NULL) {&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;16.&lt;br /&gt;pgm/pgm-agent.cc: At global scope:&lt;br /&gt;pgm/pgm-agent.cc:307:8: error: extra qualification ‘PgmAgent::’ on member ‘trace_event’ [-fpermissive]&lt;br /&gt;pgm/pgm-agent.cc: In member function ‘void PgmAgent::handle_rdata(Packet*)’:&lt;br /&gt;pgm/pgm-agent.cc:607:30: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]&lt;br /&gt;pgm/pgm-agent.cc: In member function ‘void PgmAgent::handle_nak(Packet*)’:&lt;br /&gt;pgm/pgm-agent.cc:756:43: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]&lt;br /&gt;pgm/pgm-agent.cc: In member function ‘void PgmAgent::handle_ncf(Packet*)’:&lt;br /&gt;pgm/pgm-agent.cc:853:28: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]&lt;br /&gt;make: *** [pgm/pgm-agent.o] Error 1&lt;br /&gt;Ns make failed!&lt;br /&gt;See http://www.isi.edu/nsnam/ns/ns-problems.html for problem&lt;br /&gt;&lt;br /&gt;Solution&lt;br /&gt;&lt;span style=&quot;color: blue;&quot;&gt;In pgm/pgm-agent.cc at line 307,&lt;br /&gt;&lt;br /&gt;-&amp;nbsp; void PgmAgent::trace_event(char *evType, double evTime);&lt;br /&gt;+&amp;nbsp; void trace_event(char *evType, double evTime);&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;17.&lt;br /&gt;pgm/pgm-sender.cc: At global scope:&lt;br /&gt;pgm/pgm-sender.cc:189:8: error: extra qualification ‘PgmSender::’ on member ‘trace_event’ [-fpermissive]&lt;br /&gt;pgm/pgm-sender.cc: In member function ‘virtual void PgmSender::handle_nak(Packet*)’:&lt;br /&gt;pgm/pgm-sender.cc:501:67: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]&lt;br /&gt;pgm/pgm-sender.cc: In member function ‘virtual void PgmSender::send_rdata(RdataItem*)’:&lt;br /&gt;pgm/pgm-sender.cc:645:51: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]&lt;br /&gt;make: *** [pgm/pgm-sender.o] Error 1&lt;br /&gt;Ns make failed!&lt;br /&gt;See http://www.isi.edu/nsnam/ns/ns-problems.html for problems&lt;br /&gt;&lt;br /&gt;Solution&lt;br /&gt;&lt;span style=&quot;color: blue;&quot;&gt;In pgm/pgm-sender.cc at line 189,&lt;br /&gt;&lt;br /&gt;-&amp;nbsp; void PgmSender::trace_event(char *evType, nsaddr_t daddr, double evTime); &lt;br /&gt;+&amp;nbsp; void trace_event(char *evType, nsaddr_t daddr, double evTime); &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;18.&lt;br /&gt;pgm/pgm-receiver.cc: At global scope:&lt;br /&gt;pgm/pgm-receiver.cc:186:8: error: extra qualification ‘PgmReceiver::’ on member ‘trace_event’ [-fpermissive]&lt;br /&gt;pgm/pgm-receiver.cc: In member function ‘void PgmReceiver::generate_Nak(int)’:&lt;br /&gt;pgm/pgm-receiver.cc:617:34: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]&lt;br /&gt;make: *** [pgm/pgm-receiver.o] Error 1&lt;br /&gt;Ns make failed!&lt;br /&gt;See http://www.isi.edu/nsnam/ns/ns-problems.html for problems&lt;br /&gt;&lt;br /&gt;Solution&lt;br /&gt;&lt;span style=&quot;color: blue;&quot;&gt;In pgm/pgm-sender.cc at line 186,&lt;br /&gt;&lt;br /&gt;-&amp;nbsp;&amp;nbsp; void PgmReceiver::trace_event(char *evType, double evTime);&lt;br /&gt;+&amp;nbsp;&amp;nbsp; void trace_event(char *evType, double evTime);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://ramakrishnamundugar.blogspot.com/feeds/5863795680739408110/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ramakrishnamundugar.blogspot.com/2012/12/ns-229-installation-in-ubuntu-1204.html#comment-form' title='63 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8723115167618750432/posts/default/5863795680739408110'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8723115167618750432/posts/default/5863795680739408110'/><link rel='alternate' type='text/html' href='http://ramakrishnamundugar.blogspot.com/2012/12/ns-229-installation-in-ubuntu-1204.html' title='NS-2.29 installation in Ubuntu 12.04'/><author><name>Ramakrishna M</name><uri>http://www.blogger.com/profile/00604979190341937062</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>63</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8723115167618750432.post-3604378833942697955</id><published>2012-11-17T00:09:00.000-08:00</published><updated>2012-11-17T00:09:04.851-08:00</updated><title type='text'>nrlsensorsim patching to ns-2.27</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Please find the details in the below given link:&lt;br /&gt;
&lt;br /&gt;
http://ppvbhat.blogspot.in/2012/07/ns-227-installation-on-fc8-with.html&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://ramakrishnamundugar.blogspot.com/feeds/3604378833942697955/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ramakrishnamundugar.blogspot.com/2012/11/nrlsensorsim-patching-to-ns-227.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8723115167618750432/posts/default/3604378833942697955'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8723115167618750432/posts/default/3604378833942697955'/><link rel='alternate' type='text/html' href='http://ramakrishnamundugar.blogspot.com/2012/11/nrlsensorsim-patching-to-ns-227.html' title='nrlsensorsim patching to ns-2.27'/><author><name>Ramakrishna M</name><uri>http://www.blogger.com/profile/00604979190341937062</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8723115167618750432.post-8185638852641035215</id><published>2012-10-23T21:44:00.003-07:00</published><updated>2012-10-23T21:44:20.889-07:00</updated><title type='text'>GnuPlot installation in Ubuntu 12.04</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
We need to make sure some packages are already installed before we try to compile gnuplot&lt;br /&gt;
&lt;br /&gt;
&lt;ol style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&lt;b&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;code&gt;sudo apt-get install libwxgtk2.8-dev libpango1.0-dev libreadline5-dev libx11-dev libxt-dev texinfo libgd2-xpm-dev&lt;/code&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;&lt;b&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;code&gt;wget http://sourceforge.net/projects/gnuplot/files/gnuplot/4.4.0/gnuplot-4.4.0.tar.gz/download&lt;/code&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;&lt;b&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;code&gt;tar xzf gnuplot-4.4.0.tar.gz&lt;/code&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;&lt;b&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;code&gt;cd&amp;nbsp; &lt;code&gt;gnuplot-4.4.0&lt;/code&gt;&lt;/code&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;&lt;b&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;code&gt;&lt;code&gt;./configure&lt;/code&gt;&lt;/code&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;&lt;b&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;code&gt;&lt;code&gt;sudo make install&amp;nbsp;&lt;/code&gt;&lt;/code&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt; &lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://ramakrishnamundugar.blogspot.com/feeds/8185638852641035215/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ramakrishnamundugar.blogspot.com/2012/10/gnuplot-installation-in-ubuntu-1204.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8723115167618750432/posts/default/8185638852641035215'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8723115167618750432/posts/default/8185638852641035215'/><link rel='alternate' type='text/html' href='http://ramakrishnamundugar.blogspot.com/2012/10/gnuplot-installation-in-ubuntu-1204.html' title='GnuPlot installation in Ubuntu 12.04'/><author><name>Ramakrishna M</name><uri>http://www.blogger.com/profile/00604979190341937062</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8723115167618750432.post-6612956545110471212</id><published>2012-10-20T23:23:00.001-07:00</published><updated>2013-03-15T04:27:03.994-07:00</updated><title type='text'>Installing NS-2.31 in Ubuntu 12.04</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Follow the below given steps:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;Download ns-allinnone-2.31 from nasam website&lt;/li&gt;
&lt;/ul&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;a href=&quot;http://sourceforge.net/projects/nsnam/files/ns-2&quot;&gt;http://sourceforge.net/projects/nsnam/files/ns-2&lt;/a&gt;&lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;Create a folder in /home with the name &lt;span style=&quot;color: red;&quot;&gt;ns2&lt;/span&gt; &lt;/li&gt;
&lt;/ul&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&amp;nbsp;Extract the tar file in &lt;span style=&quot;color: red;&quot;&gt;ns2&lt;/span&gt;&amp;nbsp;&lt;/li&gt;
&lt;/ul&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;Open terminal and type &lt;span style=&quot;color: red;&quot;&gt;cd ns2/ns-allinone-2.31&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&amp;nbsp;Install required libraries for ns2 using terminal&lt;/li&gt;
&lt;/ul&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: red;&quot;&gt;sudo apt-get install build-essential autoconf automake libxmu-dev&lt;/span&gt;&lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&amp;nbsp;Then, &lt;span style=&quot;color: red;&quot;&gt;sudo ./install&amp;nbsp; &lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp;-----------------------------------------------------------------------------------------------------------------&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp;&lt;/span&gt;For errors,&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;1. &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;ld: libotcl.so: hidden symbol `__stack_chk_fail_local&#39; isn&#39;t defined&lt;br /&gt;ld: final link failed: Bad value&lt;br /&gt;make: *** [libotcl.so] Error 1&lt;br /&gt;otcl-1.13 make failed! Exiting ...&lt;br /&gt;See http://www.isi.edu/nsnam/ns/ns-problems.html for problems&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Solution:&lt;br /&gt;
In &lt;em&gt;otcl-1.13/configure, &lt;/em&gt;line number 5516&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: lime;&quot;&gt;-SHLIB_LD=&quot;ld -shared&quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: lime;&quot;&gt;+SHLIB_LD=&quot;gcc -shared&quot;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://ramakrishnamundugar.blogspot.com/feeds/6612956545110471212/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ramakrishnamundugar.blogspot.com/2012/10/installing-ns-231-in-ubuntu-1204.html#comment-form' title='93 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8723115167618750432/posts/default/6612956545110471212'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8723115167618750432/posts/default/6612956545110471212'/><link rel='alternate' type='text/html' href='http://ramakrishnamundugar.blogspot.com/2012/10/installing-ns-231-in-ubuntu-1204.html' title='Installing NS-2.31 in Ubuntu 12.04'/><author><name>Ramakrishna M</name><uri>http://www.blogger.com/profile/00604979190341937062</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>93</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8723115167618750432.post-2583545335422792621</id><published>2012-09-07T03:52:00.001-07:00</published><updated>2012-09-07T03:52:32.800-07:00</updated><title type='text'>NS-2.34 installation in Ubuntu 12.04</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Follow the below given steps:&lt;br /&gt;
&lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;Download ns-allinnone-2.34 from nasam website&lt;/li&gt;
&lt;/ul&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;a href=&quot;http://sourceforge.net/projects/nsnam/files/ns-2&quot;&gt;http://sourceforge.net/projects/nsnam/files/ns-2&lt;/a&gt;&lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;Create a folder in home with name &lt;span style=&quot;color: red;&quot;&gt;ns2&lt;/span&gt; &lt;/li&gt;
&lt;/ul&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&amp;nbsp;Extract the tar file in &lt;span style=&quot;color: red;&quot;&gt;ns2&lt;/span&gt;&amp;nbsp;&lt;/li&gt;
&lt;/ul&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;Open terminal and type &lt;span style=&quot;color: red;&quot;&gt;cd ns2/ns-allinone-2.34&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&amp;nbsp;Install required libraries for ns2 using terminal&lt;/li&gt;
&lt;/ul&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: red;&quot;&gt;sudo apt-get install build-essential autoconf automake libxmu-dev&lt;/span&gt;&lt;br /&gt;&lt;div&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&amp;nbsp;Then, &lt;span style=&quot;color: red;&quot;&gt;sudo ./install&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
For errors,&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
1. &lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;color: red;&quot;&gt;ld: libotcl.so: hidden symbol `__stack_chk_fail_local&#39; isn&#39;t defined&lt;br /&gt;ld: final link failed: Bad value&lt;br /&gt;make: *** [libotcl.so] Error 1&lt;br /&gt;otcl-1.13 make failed! Exiting ...&lt;/span&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;ul&gt;&lt;/ul&gt;
&lt;/ul&gt;
Solution:&lt;br /&gt;
In &lt;em&gt;otcl-1.13/configure, &lt;/em&gt;line number 6304&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: lime;&quot;&gt;-SHLIB_LD=&quot;ld -shared&quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: lime;&quot;&gt;+SHLIB_LD=&quot;gcc -shared&quot;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
2. &lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;tools/ranvar.cc: In member function ‘virtual double GammaRandomVariable::value()’:&lt;br /&gt;tools/ranvar.cc:219:70: error: cannot call constructor ‘GammaRandomVariable::GammaRandomVariable’ directly [-fpermissive]&lt;br /&gt;tools/ranvar.cc:219:70: error:&amp;nbsp;&amp;nbsp; for a function-style cast, remove the redundant ‘::GammaRandomVariable’ [-fpermissive]&lt;br /&gt;make: *** [tools/ranvar.o] Error 1&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Solution:&lt;br /&gt;
In ns-2.34/tools/ranvar.cc,  line 219&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: lime;&quot;&gt;-return GammaRandomVariable::GammaRandomVariable(1.0 + alpha_, beta_).value() * pow (u, 1.0 / alpha_);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: lime;&quot;&gt;+return GammaRandomVariable(1.0 + alpha_, beta_).value() * pow (u, 1.0 / alpha_);&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
3.&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;In file included from mac/mac-802_11Ext.cc:66:0:&lt;br /&gt;mac/mac-802_11Ext.h: In member function ‘u_int32_t PHY_MIBExt::getHdrLen11()’:&lt;br /&gt;mac/mac-802_11Ext.h:175:19: error: expected primary-expression before ‘struct’&lt;br /&gt;mac/mac-802_11Ext.h:175:41: error: ‘dh_body’ was not declared in this scope&lt;br /&gt;mac/mac-802_11Ext.h:175:51: error: ‘offsetof’ was not declared in this scope&lt;br /&gt;mac/mac-802_11Ext.h:177:3: warning: control reaches end of non-void function [-Wreturn-type]&lt;br /&gt;make: *** [mac/mac-802_11Ext.o] Error 1&lt;br /&gt;Ns make failed!&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Solution:&lt;br /&gt;
In mac/mac-802_Ext.h, line 65&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: lime;&quot;&gt;+#include&amp;lt;cstddef&amp;gt; &lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
4.&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;mobile/nakagami.cc: In member function ‘virtual double Nakagami::Pr(PacketStamp*, PacketStamp*, WirelessPhy*)’:&lt;br /&gt;mobile/nakagami.cc:183:73: error: cannot call constructor ‘ErlangRandomVariable::ErlangRandomVariable’ directly [-fpermissive]&lt;br /&gt;mobile/nakagami.cc:183:73: error:&amp;nbsp;&amp;nbsp; for a function-style cast, remove the redundant ‘::ErlangRandomVariable’ [-fpermissive]&lt;br /&gt;mobile/nakagami.cc:185:67: error: cannot call constructor ‘GammaRandomVariable::GammaRandomVariable’ directly [-fpermissive]&lt;br /&gt;mobile/nakagami.cc:185:67: error:&amp;nbsp;&amp;nbsp; for a function-style cast, remove the redundant ‘::GammaRandomVariable’ [-fpermissive]&lt;br /&gt;make: *** [mobile/nakagami.o] Error 1&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Solution:&lt;br /&gt;
In ns-2.34/mobile/nakagami.cc, Line no.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: lime;&quot;&gt;-if (int_m == m) {&lt;br /&gt;-&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; resultPower = ErlangRandomVariable::ErlangRandomVariable(Pr/m, int_m).value();&lt;br /&gt;-&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; } else {&lt;br /&gt;-&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; resultPower = GammaRandomVariable::GammaRandomVariable(m, Pr/m).value();&lt;br /&gt;-&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;-&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; return resultPower;&lt;br /&gt;-&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: lime;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: lime;&quot;&gt;&amp;nbsp;+if (int_m == m) {&lt;br /&gt;&amp;nbsp;+ &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; resultPower = ErlangRandomVariable(Pr/m, int_m).value();&lt;br /&gt;&amp;nbsp;+ &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; } else {&lt;br /&gt;&amp;nbsp;+ &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; resultPower = GammaRandomVariable(m, Pr/m).value();&lt;br /&gt;&amp;nbsp;+ &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;+ &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; return resultPower;&lt;br /&gt;&amp;nbsp;+ &amp;nbsp; }&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Path Setup:&lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;In terminal &lt;span style=&quot;color: red;&quot;&gt;sudo gedit ~/.bash_aliases&lt;/span&gt;&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Then copy the following path and modify according to your system path&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;# LD_LIBRARY_PATH&lt;br /&gt;OTCL_LIB=/home/ramakrishna/ns2/ns-allinone-2.34/otcl-1.13&lt;br /&gt;NS2_LIB=/home/ramakrishna/ns2/ns-allinone-2.34/lib&lt;br /&gt;X11_LIB=/usr/X11R6/lib&lt;br /&gt;USR_LOCAL_LIB=/usr/local/lib&lt;br /&gt;export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$OTCL_LIB:$NS2_LIB:$X11_LIB:$USR_LOCAL_LIB&lt;br /&gt;&lt;br /&gt;# TCL_LIBRARY&lt;br /&gt;TCL_LIB=/home/ramakrishna/ns2/ns-allinone-2.34/tcl8.4.18/library&lt;br /&gt;USR_LIB=/usr/lib&lt;br /&gt;export TCL_LIBRARY=$TCL_LIB:$USR_LIB&lt;br /&gt;&lt;br /&gt;# PATH&lt;br /&gt;XGRAPH=/home/ramakrishna/ns2/ns-allinone-2.34/bin:/home/ramakrishna/ns2/ns-allinone-2.34/tcl8.4.18/unix:/home/ramakrishna/ns2/ns-allinone-2.34/tk8.4.18/unix&lt;br /&gt;NS=/home/ramakrishna/ns2/ns-allinone-2.34/ns-2.34/&lt;br /&gt;NAM=/home/ramakrishna/ns2/ns-allinone-2.34/nam-1.14/&lt;br /&gt;PATH=$PATH:$XGRAPH:$NS:$NAM&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;Save the file and type &lt;span style=&quot;color: red;&quot;&gt;source ~/.bash_aliases&lt;/span&gt; &lt;/li&gt;
&lt;/ul&gt;
&amp;nbsp;Now if you type ns in terminal it will show % symbol &lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://ramakrishnamundugar.blogspot.com/feeds/2583545335422792621/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ramakrishnamundugar.blogspot.com/2012/09/ns-234-installation-in-ubuntu-1204.html#comment-form' title='300 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8723115167618750432/posts/default/2583545335422792621'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8723115167618750432/posts/default/2583545335422792621'/><link rel='alternate' type='text/html' href='http://ramakrishnamundugar.blogspot.com/2012/09/ns-234-installation-in-ubuntu-1204.html' title='NS-2.34 installation in Ubuntu 12.04'/><author><name>Ramakrishna M</name><uri>http://www.blogger.com/profile/00604979190341937062</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>300</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8723115167618750432.post-1730183745854307890</id><published>2011-11-22T07:31:00.001-08:00</published><updated>2012-01-01T08:05:02.089-08:00</updated><title type='text'>Visit my blog for Photography</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;a href=&quot;http://ramakrishnaphotos.blogspot.com/&quot; target=&quot;_blank&quot;&gt;ramakrishnaphotos.blogspot.com &lt;/a&gt;&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ramakrishnamundugar.blogspot.com/feeds/1730183745854307890/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ramakrishnamundugar.blogspot.com/2011/11/visit-my-blog-for-photography.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8723115167618750432/posts/default/1730183745854307890'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8723115167618750432/posts/default/1730183745854307890'/><link rel='alternate' type='text/html' href='http://ramakrishnamundugar.blogspot.com/2011/11/visit-my-blog-for-photography.html' title='Visit my blog for Photography'/><author><name>Ramakrishna M</name><uri>http://www.blogger.com/profile/00604979190341937062</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>