[ns] Fwd: patch for ns-2.29-allinone to use with gcc-4.x
Md. Atiur Rahman Siddique
atiurrs at yahoo.com
Thu Apr 24 19:31:10 PDT 2008
Hi Gaiz n Galz,
To my knowledge there are some bugs in ns-allinone-2.29 (available as
http://www.isi.edu/nsnam/dist/ns-allinone-2.29.tar.gz). These bugs give rise to a number of
errors
in multiple phases of installation over gcc-4+ systems. These are due to mismatch in syntax for
newer gcc and newer bash ports.
I have developed a patch to fix these installation problems which is attached here. You are
welcome to use and comment on it.
To use the patch you need to execute the following commands (assuming the patch file
"ns-2.29-allinone.patch" is copied to your home folder already) in order.
------------------------------------------
cd
wget http://www.isi.edu/nsnam/dist/ns-allinone-2.29.tar.gz
tar -zxvf ns-allinone-2.29.tar.gz
patch -p0 < ns-2.29-allinone.patch
cd ns-allinone-2.29
./install
-----------------------------------------
You are done installing. To validate, do the following in order
export
PATH=~/ns-allinone-2.29/bin:~/ns-allinone-2.29/tcl8.4.11/unix:~/ns-allinone-2.29/tk8.4.11/unix:$PATH
export LD_LIBRARY_PATH=~/ns-allinone-2.29/otcl-1.11:~/ns-allinone-2.29/lib
export TCL_LIBRARY=~/ns-allinone-2.29/tcl8.4.11/library
cd ns-2.29
./validate
To run your simulation script "sim01.tcl", set up the environment variables as shown above and
simply run
ns sim01.tcl
---------------------------------------------------------
Let me know how it goes or if you face any problem. Happy simulating!
I have tested it on following systems
Architecture:
AMD Opteron
Intel 686+
OS:
CentOS 5 64 bit
Debian GNU/Linux
Kernel:
2.6.18-6-686
GCC and G++ version:
4.1.2 20070626
4.1.2 20061115
It fixes the following problems. There were some other problems, too which is fixed but I can
not
remember those anymore.
OSF:
checking system version (for dynamic loading)... ./configure: line 7624: syntax error near
unexpected token ')'
./configure: line 7624: ' OSF*)'
tcl8.3.2 configuration failed! Exiting ...
Tcl is not part of the ns project. Please see www.Scriptics.com to see
if they have a fix for your problem."
SCTP:
./sctp/sctp.h:705: error: extra qualification 'SctpAgent::' on member 'DumpSendBuffer'
make: *** [trace/trace.o] Error 1
Ns make failed!
DSR:
dsr/dsragent.cc
dsr/dsragent.cc: In member function void DSRAgent::handleFlowForwarding(SRPacket&, int):
dsr/dsragent.cc:828: error: XmitFlowFailureCallback was not declared in this scope
dsr/dsragent.cc: In member function void DSRAgent::sendOutPacketWithRoute(SRPacket&, bool,
Time):
dsr/dsragent.cc:1385: error: XmitFailureCallback was not declared in this scope
dsr/dsragent.cc:1386: error: XmitFlowFailureCallback was not declared in this scope
dsr/dsragent.cc:1403: error: XmitFailureCallback was not declared in this scope
make: *** [dsr/dsragent.o] Error 1
etc...
Regards,
Atiur
Disclaimer notice: I have used informations available at
"http://ravemz.blogspot.com/2006/04/problem-in-installing-ns-2292-allinone.html" for the OSF
problem.
Get the name you always wanted with the new y7mail email address. www.yahoo7.com.au/y7mail
More information about the Ns-users
mailing list