Installing NS2 on Ubuntu Dapper LTS
December 2, 2006 at 12:17 am | In GNU/Linux, ns2, simulation |Before proceeding to install NS2 and its packages, please ensure that you have already installed the following packages
gcc,gdb,g++, and make.
if not install them as like bellow
(NOTE: Since there is the differences between the ascii notations in browser and the gedit, some cahrecters like “- -” are represtented as “-” in the browser. So if you have faced any problem you can download the entire script here).
Pre-Install Configuration
Add the sufficient repositories
wget http://onlythesandeep.googlepages.com/sources.list
sudo cp /etc/apt/sources.list /etc/apt/sources.list_old
sudo cp sources.list /etc/apt/sources.list
sudo apt-get update
sudo apt-get install build-essentials
Installing NS-2.30 and other companents
Create a directoy named ns or ns2install
mkdir ns2install
cd ns2install
sudo su
apt-get install tcl8.4 tcl8.4-dev tk8.4 tk8.4-dev stow
ln -s /usr/include/tcl8.4 /usr/include/tk8.4
ln -s /usr/include/tcl8.4/tcl-private/generic/* /usr/include/tcl8.4/
ln -s /usr/lib/tcl8.4/http2.4 /usr/lib/tcl8.4/http2.3
echo “/usr/local/lib” >> /etc/ld.so.conf
Next we need to download all the components required
wget http://jaist.dl.sourceforge.net/sourceforge/otcl-tclcl/otcl-src-1.12.tar.gz
wget http://nchc.dl.sourceforge.net/sourceforge/otcl-tclcl/tclcl-src-1.18.tar.gz
wget http://jaist.dl.sourceforge.net/sourceforge/nsnam/ns-src-2.30.tar.gz
wget http://jaist.dl.sourceforge.net/sourceforge/nsnam/nam-src-1.12.tar.gz
Once all the components are downloaded, Proceed with configuring them
Installing OTcl ………………..
tar -xzvf otcl-1.12.tar.gz
cd otcl-1.12
./configure –prefix=/usr/local/stow/otcl-1.12 –with-tk=/usr
make
mkdir -p /usr/local/stow/otcl-1.12/bin
mkdir -p /usr/local/stow/otcl-1.12/lib
mkdir -p /usr/local/stow/otcl-1.12/include
make install
cd /usr/local/stow/
stow otcl-1.12
ldconfig
Installing TCLCL …………………..
tar -xzvf tclcl-src-1.18.tar.gz
cd tclcl-1.18
./configure –prefix=/usr/local/stow/tclcl-1.18 –with-tk=/usr
make
mkdir -p /usr/local/stow/tclcl-1.18/include
mkdir -p /usr/local/stow/tclcl-1.18/bin
mkdir -p /usr/local/stow/tclcl-1.18/lib
make install
cd /usr/local/stow/
stow tclcl-1.18
ldconfig
Installing NS 2.30 ….. tis would be taking a bit longer time … than all the other components
tar -xzvf ns-src-2.30.tar.gz
cd ns-2.30
./configure –prefix=/usr/local/stow/ns-2.30 –with-tk=/usr
make
make test
mkdir -p /usr/local/stow/ns-2.30/bin
mkdir -p /usr/local/stow/ns-2.30/man/man1
make install
cd /usr/local/stow
stow ns-2.30
Installing NAM and required libraries…
apt-get install libxmu-dev
tar -xzvf nam-src-1.12.tar.gz
cd nam-1.12
./configure –prefix=/usr/local/stow/nam-1.12 –with-tk=/usr
make
mkdir -p /usr/local/stow/nam-1.12/bin
make install
cd /usr/local/stow
stow nam-1.12
apt-get install perl-tk xgraph graphviz
Thats all …. NS2 is done …..you can now start with the tutorials
1. http://www.isi.edu/nsnam/ns/tutorial
3. http://del.icio.us/thesandeep/AdHoc
An Example to test NS-2.30 on your system
download a simple file from here
and open a terminal, type
ns ns-simple.tcl
then the NAM (Network animator) automatically opens up.
(COURTESY: http://wiki.splitbrain.org/ns2 )
Waiting for your coments…..
Later.
16 Comments »
RSS feed for comments on this post. TrackBack URI
Leave a comment
Blog at WordPress.com. | Theme: Pool by Borja Fernandez.
Entries and comments feeds.
Hi Sandy
nice guide
Yesterday I installed ns-2.30 on Ubuntu 6.06 but i got some warnings about “lanRouter::debug_” while making the “./validate” test after compiling correctly.
Did you have any warnings like mine? and did you try to validate the installation? please let me know!
Now I’m going to try to follow your guide…hope it works flawlessly!
Bye
Comment by Matteo — January 25, 2007 #
Hi Sandy,
Thanks for your guide on installing NS2 on Ubuntu. I could not have got NS2 to install and run without your guide.
Thanks and Regards,
Sumedh
Comment by Sumedh Kapoor — January 28, 2007 #
Hi,
I downlaoded the entire script for installing ns-2.30. After installing, in NS-2.30 directory when i type ns ns-simple.tcl or specify ns /simple_tcl_path/simple.tcl, i have an error “bash : ns : command not found “. The same error with user root. Before seing your guide, i looked for and i downloaded ns-allinone-2.27 and ns-allinone-2.29.30 i tried with them, i’ve got the same error ns : command not found. I searched and i didn’t see the ns executable. how can i resolve this problem.
I use ubutun 6.10. Thank you for your help.
Thanks
Comment by Serge — February 27, 2007 #
I have a new ns2 user. I have just install ns2 on ubuntu dapper. but I take following error message.
I look for nam.exe it works but when I call it from the simple.tcl file I take this error message. I think there is no file path but I don’t know where it must be. nam.exe and ns.exe are in the same directoriy ( ns-allinone /bin) I don’t understand the problem.ns work but nam don’t work.
Please help me. I use ns2.31 version and nam 1.13
ns simple.tcl
210
0.0037499999999999999
running nam…
ns: finish: couldn’t execute “nam”: no such file or directory
while executing
“exec nam out.nam &”
(procedure “finish” line
invoked from within
“finish”
Comment by bilge — March 21, 2007 #
this works for ubuntu feisty??
Comment by ketty6 — April 13, 2007 #
Found this extremely useful in Ubuntu (not 7.04 yet I might add). The downloadable script I found a small error, nothing major, but it will cause errors as far as I can see. Replace:
tar -xzvf otcl-1.12.tar.gz
With:
tar -xzvf otcl-src-1.12.tar.gz
HTH, and thanks again for a great blog entry,
Alex.
Comment by Alex Mason — May 3, 2007 #
how about installation for NSallinone? please help me ..this is the first time i using LINUX
Comment by azhar aris — August 16, 2007 #
./configure –prefix=/usr/local/stow/otcl-1.12 –with-tk=/usr
i dont understand what mean of -prefix
———————–
root@azhar-laptop:/home/azhar/ns2install/otcl-1.13# ./configure –prefix=/usr/local/stow/otcl-1.12 –with-tk=/usr
help me!
Comment by azhar aris — August 16, 2007 #
my last question ..
i try to execute s ns-simple.tcl
but
bash: ns: command not found
Comment by azhar aris — August 16, 2007 #
MY XGRPAH NOT COMING OUT
checking for a BSD compatible install… (cached) /usr/bin/install -c
checking whether build environment is sane… yes
checking whether make sets ${MAKE}… (cached) yes
checking for working aclocal… missing
checking for working autoconf… missing
checking for working automake… missing
checking for working autoheader… missing
checking for working makeinfo… missing
checking if malloc debugging is wanted… no
checking for gcc… (cached) gcc
checking whether the C compiler (gcc ) works… yes
checking whether the C compiler (gcc ) is a cross-compiler… no
checking whether we are using GNU C… (cached) yes
checking whether gcc accepts -g… (cached) yes
checking how to run the C preprocessor… (cached) gcc -E
checking for X… (cached) libraries /usr/X11R6/lib, headers
checking for dnet_ntoa in -ldnet… (cached) no
checking for dnet_ntoa in -ldnet_stub… (cached) no
checking for gethostbyname… (cached) yes
checking for connect… (cached) yes
checking for remove… (cached) yes
checking for shmat… (cached) yes
checking for IceConnectionNumber in -lICE… (cached) yes
checking for float.h… (cached) yes
checking for limits.h… (cached) yes
checking for stdlib.h… (cached) yes
checking for string.h… (cached) yes
checking for strings.h… (cached) yes
checking for unistd.h… (cached) yes
checking for strcasecmp… (cached) yes
creating ./config.status
creating Makefile
creating autoconf.h
autoconf.h is unchanged
Comment by azhar aris — August 16, 2007 #
hi,
i want to ask sumthing about when runngin tcl program on linux environment.
i have got something i would not be happened.
after i type :
# ns example1a.tcl
then the error come out with this type:
ns: cannot read “name”;
….
….
“finish”
i want to know whether i have not setting my X window for linux or there have different kind of setting to overcome this problem.
Thank you on all co-operation.
Comment by ronaldo — September 18, 2007 #
my last question ..
i try to execute s ns-simple.tcl
but
bash: ns: command not found
SOLUTION :
engkau kene set PATH dulu.hahhaha..aku dah kene dah.
kan aku kata linux nie biler reboot dier defaul system. aku pun tak tahu camner nak kasik dier jadik permanent. carik kat internet.
Comment by ronaldo — September 18, 2007 #
hi..,
i am using ubuntu7.04
which version of ns-2 is best for my os?
what are the pre-requirements for that version?
Comment by Sugumar — October 5, 2007 #
home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:88: error: for ea ch function it appears in.)
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:93: error: syntax error before ‘)’ token
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:109: warning: imp licit declaration of function ‘ScreenOfDisplay’
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:109: error: synta x error before ‘)’ token
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:109: error: synta x error before ‘)’ token
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:110: error: synta x error before ‘)’ token
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:134: error: ‘firs tBorderPtr’ undeclared (first use in this function)
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:135: error: synta x error before ‘)’ token
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:139: error: synta x error before ‘)’ token
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:139: error: synta x error before ‘)’ token
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:140: error: synta x error before ‘)’ token
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:153: error: synta x error before ‘)’ token
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c: In function ‘Tk_ Get3DBorder’:
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:193: error: ‘bord erPtr’ undeclared (first use in this function)
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:193: error: ‘exis tingBorderPtr’ undeclared (first use in this function)
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:193: warning: lef t-hand operand of comma expression has no effect
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:193: warning: sta tement with no effect
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:195: error: ‘XGCV alues’ undeclared (first use in this function)
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:195: error: synta x error before ‘gcValues’
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:196: error: ‘XCol or’ undeclared (first use in this function)
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:197: error: inval id operands to binary *
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:199: error: synta x error before ‘)’ token
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:201: error: reque st for member ‘borderInit’ in something not a structure or union
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:205: error: reque st for member ‘borderTable’ in something not a structure or union
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:205: error: reque st for member ‘borderTable’ in something not a structure or union
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:207: error: synta x error before ‘)’ token
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:210: error: synta x error before ‘)’ token
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:210: error: synta x error before ‘)’ token
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:211: error: synta x error before ‘)’ token
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:233: error: synta x error before ‘)’ token
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:233: error: synta x error before ‘)’ token
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:234: error: synta x error before ‘)’ token
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:235: error: synta x error before ‘)’ token
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:236: error: synta x error before ‘)’ token
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:242: error: ‘None ’ undeclared (first use in this function)
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:256: error: ‘gcVa lues’ undeclared (first use in this function)
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:257: error: ‘GCFo reground’ undeclared (first use in this function)
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c: In function ‘Tk_ Draw3DRectangle’:
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:284: error: synta x error before ‘Drawable’
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c: In function ‘Tk_ NameOf3DBorder’:
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:331: error: ‘bord erPtr’ undeclared (first use in this function)
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:331: error: synta x error before ‘)’ token
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c: At top level:
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:352: error: synta x error before ‘*’ token
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:354: warning: ret urn type defaults to ‘int’
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c: In function ‘Tk_ 3DBorderColor’:
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:356: error: synta x error before ‘)’ token
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c: At top level:
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:376: error: synta x error before ‘Tk_3DBorderGC’
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:377: warning: ret urn type defaults to ‘int’
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c: In function ‘Tk_ 3DBorderGC’:
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:383: error: ‘bord erPtr’ undeclared (first use in this function)
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:383: error: synta x error before ‘)’ token
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:385: error: ‘None ’ undeclared (first use in this function)
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:402: error: synta x error before ‘None’
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c: In function ‘Tk_ Free3DBorder’:
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:428: error: ‘bord erPtr’ undeclared (first use in this function)
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:428: error: synta x error before ‘)’ token
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:429: error: ‘Disp lay’ undeclared (first use in this function)
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:429: warning: imp licit declaration of function ‘DisplayOfScreen’
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:430: error: ‘prev Ptr’ undeclared (first use in this function)
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:437: error: synta x error before ‘)’ token
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:448: error: ‘None ’ undeclared (first use in this function)
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c: In function ‘Fre eBorderObjProc’:
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:532: error: ‘bord erPtr’ undeclared (first use in this function)
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:532: error: synta x error before ‘)’ token
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c: In function ‘Dup BorderObjProc’:
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:567: error: ‘bord erPtr’ undeclared (first use in this function)
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:567: error: synta x error before ‘)’ token
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c: In function ‘Tk_ SetBackgroundFromBorder’:
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:599: error: synta x error before ‘*’ token
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:601: error: ‘bord erPtr’ undeclared (first use in this function)
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c: In function ‘Tk_ Draw3DPolygon’:
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:755: error: synta x error before ‘Drawable’
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:757: error: synta x error before ‘XPoint’
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:769: error: ‘XPoi nt’ undeclared (first use in this function)
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:769: error: synta x error before ‘poly’
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:771: error: synta x error before ‘*’ token
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:772: error: ‘bord erPtr’ undeclared (first use in this function)
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:772: error: synta x error before ‘)’ token
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:775: error: ‘Disp lay’ undeclared (first use in this function)
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:775: error: synta x error before ‘)’ token
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:777: error: ‘None ’ undeclared (first use in this function)
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:803: error: ‘p1Pt r’ undeclared (first use in this function)
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:803: error: subsc ripted value is neither array nor pointer
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:804: error: ‘p2Pt r’ undeclared (first use in this function)
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:804: error: subsc ripted value is neither array nor pointer
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:850: error: subsc ripted value is neither array nor pointer
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:850: warning: val ue computed is not used
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:850: warning: val ue computed is not used
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:851: warning: val ue computed is not used
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:851: warning: val ue computed is not used
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:862: error: ‘newB 1’ undeclared (first use in this function)
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:863: error: ‘newB 2’ undeclared (first use in this function)
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:865: error: ‘poly ’ undeclared (first use in this function)
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:868: error: ‘b1’ undeclared (first use in this function)
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:868: error: ‘b2’ undeclared (first use in this function)
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:900: error: ‘perp ’ undeclared (first use in this function)
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:903: error: ‘c’ u ndeclared (first use in this function)
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:904: error: ‘shif t1’ undeclared (first use in this function)
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:905: error: ‘shif t2’ undeclared (first use in this function)
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:919: error: ‘gc’ undeclared (first use in this function)
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:923: warning: imp licit declaration of function ‘XFillPolygon’
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:923: error: ‘Conv ex’ undeclared (first use in this function)
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:924: error: ‘Coor dModeOrigin’ undeclared (first use in this function)
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c: In function ‘Tk_ Fill3DRectangle’:
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:963: error: synta x error before ‘Drawable’
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:971: error: synta x error before ‘*’ token
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:997: warning: imp licit declaration of function ‘XFillRectangle’
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:997: error: synta x error before ‘)’ token
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:997: error: ‘bord erPtr’ undeclared (first use in this function)
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c: In function ‘Tk_ Fill3DPolygon’:
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1028: error: synt ax error before ‘Drawable’
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1030: error: synt ax error before ‘XPoint’
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1042: error: synt ax error before ‘*’ token
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1044: error: synt ax error before ‘)’ token
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1044: error: ‘bor derPtr’ undeclared (first use in this function)
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1045: error: ‘Com plex’ undeclared (first use in this function)
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1045: error: ‘Coo rdModeOrigin’ undeclared (first use in this function)
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c: At top level:
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1070: error: synt ax error before ‘TkDisplay’
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1070: warning: da ta definition has no type or storage class
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1071: error: synt ax error before ‘{’ token
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1073: error: synt ax error before ‘&’ token
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1073: error: conf licting types for ‘Tcl_InitHashTable’
/home/senthil/ns-allinone-2.31/tcl8.4.14/generic/tclDecls.h:595: error: previous declaration of ‘Tcl_InitHashTable’ was here
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1073: warning: da ta definition has no type or storage class
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1096: error: synt ax error before ‘XPoint’
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1096: warning: da ta definition has no type or storage class
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1097: error: synt ax error before ‘*’ token
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1097: warning: da ta definition has no type or storage class
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1102: error: synt ax error before ‘*’ token
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1102: warning: da ta definition has no type or storage class
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1104: error: synt ax error before ‘{’ token
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1127: error: synt ax error before ‘if’
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1131: error: synt ax error before ‘for’
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1133: error: conf licting types for ‘cosine’
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1129: error: prev ious declaration of ‘cosine’ was here
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1133: error: init ializer element is not constant
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1133: warning: da ta definition has no type or storage class
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1134: error: ‘i’ undeclared here (not in a function)
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1134: warning: da ta definition has no type or storage class
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1135: error: synt ax error before ‘}’ token
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1138: warning: in itialization makes pointer from integer without a cast
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1138: error: init ializer element is not constant
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1138: warning: da ta definition has no type or storage class
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1139: error: requ est for member ‘x’ in something not a structure or union
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1139: error: requ est for member ‘x’ in something not a structure or union
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1139: warning: da ta definition has no type or storage class
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1140: error: requ est for member ‘y’ in something not a structure or union
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1140: error: requ est for member ‘y’ in something not a structure or union
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1140: warning: da ta definition has no type or storage class
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1141: error: synt ax error before ‘if’
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1143: error: rede finition of ‘dy’
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1140: error: prev ious definition of ‘dy’ was here
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1143: error: init ializer element is not constant
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1143: warning: da ta definition has no type or storage class
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1144: error: synt ax error before ‘}’ token
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1149: error: rede finition of ‘dx’
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1139: error: prev ious definition of ‘dx’ was here
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1149: error: init ializer element is not constant
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1149: warning: da ta definition has no type or storage class
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1150: error: synt ax error before ‘}’ token
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1189: error: synt ax error before ‘XPoint’
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1189: warning: da ta definition has no type or storage class
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1190: error: synt ax error before ‘*’ token
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1190: warning: da ta definition has no type or storage class
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1191: error: synt ax error before ‘*’ token
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1191: warning: da ta definition has no type or storage class
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1192: error: synt ax error before ‘*’ token
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1192: warning: da ta definition has no type or storage class
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1193: error: synt ax error before ‘*’ token
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1193: warning: da ta definition has no type or storage class
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1194: error: synt ax error before ‘{’ token
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1203: error: requ est for member ‘x’ in something not a structure or union
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1203: error: requ est for member ‘x’ in something not a structure or union
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1203: error: requ est for member ‘y’ in something not a structure or union
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1203: error: requ est for member ‘y’ in something not a structure or union
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1203: warning: da ta definition has no type or storage class
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1204: error: requ est for member ‘x’ in something not a structure or union
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1204: error: requ est for member ‘x’ in something not a structure or union
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1204: error: requ est for member ‘y’ in something not a structure or union
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1204: error: requ est for member ‘y’ in something not a structure or union
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1204: warning: da ta definition has no type or storage class
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1205: error: requ est for member ‘x’ in something not a structure or union
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1205: error: requ est for member ‘x’ in something not a structure or union
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1205: error: requ est for member ‘x’ in something not a structure or union
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1205: error: requ est for member ‘x’ in something not a structure or union
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1205: warning: da ta definition has no type or storage class
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1206: error: requ est for member ‘y’ in something not a structure or union
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1206: error: requ est for member ‘y’ in something not a structure or union
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1206: error: requ est for member ‘y’ in something not a structure or union
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1206: error: requ est for member ‘y’ in something not a structure or union
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1206: warning: da ta definition has no type or storage class
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1208: error: synt ax error before ‘if’
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1211: error: requ est for member ‘x’ in something not a structure or union
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1211: error: requ est for member ‘x’ in something not a structure or union
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1211: error: requ est for member ‘y’ in something not a structure or union
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1211: error: requ est for member ‘y’ in something not a structure or union
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1211: warning: da ta definition has no type or storage class
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1212: error: init ializer element is not constant
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1212: warning: da ta definition has no type or storage class
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1213: error: synt ax error before ‘if’
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1215: error: rede finition of ‘q’
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1212: error: prev ious definition of ‘q’ was here
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1215: error: init ializer element is not constant
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1215: warning: da ta definition has no type or storage class
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1216: error: synt ax error before ‘}’ token
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1222: error: rede finition of ‘p’
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1211: error: prev ious definition of ‘p’ was here
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1222: error: requ est for member ‘y’ in something not a structure or union
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1222: error: requ est for member ‘y’ in something not a structure or union
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1222: error: requ est for member ‘x’ in something not a structure or union
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1222: error: requ est for member ‘x’ in something not a structure or union
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1222: warning: da ta definition has no type or storage class
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1223: error: rede finition of ‘q’
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1212: error: prev ious definition of ‘q’ was here
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1223: error: init ializer element is not constant
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1223: warning: da ta definition has no type or storage class
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1224: error: synt ax error before ‘if’
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1226: error: rede finition of ‘q’
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1212: error: prev ious definition of ‘q’ was here
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1226: error: init ializer element is not constant
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1226: warning: da ta definition has no type or storage class
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1227: error: synt ax error before ‘}’ token
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c: In function ‘Tk_ Get3DBorderFromObj’:
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1262: error: ‘bor derPtr’ undeclared (first use in this function)
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1264: error: inva lid operands to binary *
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1264: error: synt ax error before ‘)’ token
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1277: error: synt ax error before ‘)’ token
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1280: error: synt ax error before ‘)’ token
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1280: error: synt ax error before ‘)’ token
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1281: error: synt ax error before ‘)’ token
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1301: error: requ est for member ‘borderTable’ in something not a structure or union
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1301: error: requ est for member ‘borderTable’ in something not a structure or union
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1305: error: synt ax error before ‘)’ token
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1307: error: synt ax error before ‘)’ token
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1307: error: synt ax error before ‘)’ token
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1308: error: synt ax error before ‘)’ token
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c: In function ‘TkD ebugBorder’:
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1388: error: ‘bor derPtr’ undeclared (first use in this function)
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1391: error: inva lid operands to binary *
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1391: error: synt ax error before ‘)’ token
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1394: error: requ est for member ‘borderTable’ in something not a structure or union
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1394: error: requ est for member ‘borderTable’ in something not a structure or union
/home/senthil/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c:1396: error: synt ax error before ‘)’ token
{standard input}: Assembler messages:
{standard input}:13: Error: symbol `q’ is already defined
{standard input}:25: Error: symbol `q’ is already defined
{standard input}:31: Error: symbol `q’ is already defined
{standard input}:37: Error: symbol `p’ is already defined
{standard input}:79: Error: symbol `dy’ is already defined
{standard input}:85: Error: symbol `dx’ is already defined
make: *** [tk3d.o] Error 1
tk8.4.14 make failed! Exiting …
i tried to install the allinone package got these errors
dunno how to proceed
Comment by senthil — December 14, 2007 #
When i make Nam … Following error occur
/usr/bin/ld: final link failed: Nonrepresentable section on output
collect2: ld returned 1 exit status
make: *** [nam] Error 1
Comment by Sundaresh — December 15, 2007 #
Hi, Sandy:
When I make ns2.30, I found error as follows. Do you have any idea about this. Please email me to loocalvinci@gmail.com
root@loocalvinci-laptop:/usr/NS/ns2install/ns-2.30# make
g++ -o ns \
common/tclAppInit.o tools/random.o tools/rng.o tools/ranvar.o common/misc.o common/timer-handler.o common/scheduler.o common/object.o common/packet.o common/ip.o routing/route.o common/connector.o common/ttl.o trace/trace.o trace/trace-ip.o classifier/classifier.o classifier/classifier-addr.o classifier/classifier-hash.o classifier/classifier-virtual.o classifier/classifier-mcast.o classifier/classifier-bst.o classifier/classifier-mpath.o mcast/replicator.o classifier/classifier-mac.o classifier/classifier-qs.o classifier/classifier-port.o src_rtg/classifier-sr.o src_rtg/sragent.o src_rtg/hdr_src.o adc/ump.o qs/qsagent.o qs/hdr_qs.o apps/app.o apps/telnet.o tcp/tcplib-telnet.o tools/trafgen.o trace/traffictrace.o tools/pareto.o tools/expoo.o tools/cbr_traffic.o adc/tbf.o adc/resv.o adc/sa.o tcp/saack.o tools/measuremod.o adc/estimator.o adc/adc.o adc/ms-adc.o adc/timewindow-est.o adc/acto-adc.o adc/pointsample-est.o adc/salink.o adc/actp-adc.o adc/hb-adc.o adc/expavg-est.o adc/param-adc.o adc/null-estimator.o adc/adaptive-receiver.o apps/vatrcvr.o adc/consrcvr.o common/agent.o common/message.o apps/udp.o common/session-rtp.o apps/rtp.o tcp/rtcp.o common/ivs.o common/messpass.o common/tp.o common/tpm.o apps/worm.o tcp/tcp.o tcp/tcp-sink.o tcp/tcp-reno.o tcp/tcp-newreno.o tcp/tcp-vegas.o tcp/tcp-rbp.o tcp/tcp-full.o tcp/rq.o baytcp/tcp-full-bay.o baytcp/ftpc.o baytcp/ftps.o tcp/scoreboard.o tcp/scoreboard-rq.o tcp/tcp-sack1.o tcp/tcp-fack.o tcp/tcp-asym.o tcp/tcp-asym-sink.o tcp/tcp-fs.o tcp/tcp-asym-fs.o tcp/tcp-int.o tcp/chost.o tcp/tcp-session.o tcp/nilist.o sctp/sctp.o apps/sctp_app1.o sctp/sctp-timestamp.o sctp/sctp-hbAfterRto.o sctp/sctp-multipleFastRtx.o sctp/sctp-mfrHbAfterRto.o sctp/sctp-mfrTimestamp.o sctp/sctp-cmt.o sctp/sctpDebug.o tools/integrator.o tools/queue-monitor.o tools/flowmon.o tools/loss-monitor.o queue/queue.o queue/drop-tail.o adc/simple-intserv-sched.o queue/red.o queue/semantic-packetqueue.o queue/semantic-red.o tcp/ack-recons.o queue/sfq.o queue/fq.o queue/drr.o queue/srr.o queue/cbq.o queue/jobs.o queue/marker.o queue/demarker.o link/hackloss.o queue/errmodel.o queue/fec.o link/delay.o tcp/snoop.o gaf/gaf.o link/dynalink.o routing/rtProtoDV.o common/net-interface.o mcast/ctrMcast.o mcast/mcast_ctrl.o mcast/srm.o common/sessionhelper.o queue/delaymodel.o mcast/srm-ssm.o mcast/srm-topo.o routing/alloc-address.o routing/address.o lib/int.Vec.o lib/int.RVec.o lib/dmalloc_support.o webcache/http.o webcache/tcp-simple.o webcache/pagepool.o webcache/inval-agent.o webcache/tcpapp.o webcache/http-aux.o webcache/mcache.o webcache/webtraf.o webcache/webserver.o webcache/logweb.o empweb/empweb.o empweb/empftp.o realaudio/realaudio.o mac/lanRouter.o classifier/filter.o common/pkt-counter.o common/Decapsulator.o common/Encapsulator.o common/encap.o mac/channel.o mac/mac.o mac/ll.o mac/mac-802_11.o mac/mac-802_3.o mac/mac-tdma.o mac/smac.o mobile/mip.o mobile/mip-reg.o mobile/gridkeeper.o mobile/propagation.o mobile/tworayground.o mobile/antenna.o mobile/omni-antenna.o mobile/shadowing.o mobile/shadowing-vis.o mobile/dumb-agent.o common/bi-connector.o common/node.o common/mobilenode.o mac/arp.o mobile/god.o mobile/dem.o mobile/topography.o mobile/modulation.o queue/priqueue.o queue/dsr-priqueue.o mac/phy.o mac/wired-phy.o mac/wireless-phy.o mac/mac-timers.o trace/cmu-trace.o mac/varp.o mac/mac-simple.o satellite/sat-hdlc.o dsdv/dsdv.o dsdv/rtable.o queue/rtqueue.o routing/rttable.o imep/imep.o imep/dest_queue.o imep/imep_api.o imep/imep_rt.o imep/rxmit_queue.o imep/imep_timers.o imep/imep_util.o imep/imep_io.o tora/tora.o tora/tora_api.o tora/tora_dest.o tora/tora_io.o tora/tora_logs.o tora/tora_neighbor.o dsr/dsragent.o dsr/hdr_sr.o dsr/mobicache.o dsr/path.o dsr/requesttable.o dsr/routecache.o dsr/add_sr.o dsr/dsr_proto.o dsr/flowstruct.o dsr/linkcache.o dsr/simplecache.o dsr/sr_forwarder.o aodv/aodv_logs.o aodv/aodv.o aodv/aodv_rtable.o aodv/aodv_rqueue.o common/ns-process.o satellite/satgeometry.o satellite/sathandoff.o satellite/satlink.o satellite/satnode.o satellite/satposition.o satellite/satroute.o satellite/sattrace.o rap/raplist.o rap/rap.o rap/media-app.o rap/utilities.o common/fsm.o tcp/tcp-abs.o diffusion/diffusion.o diffusion/diff_rate.o diffusion/diff_prob.o diffusion/diff_sink.o diffusion/flooding.o diffusion/omni_mcast.o diffusion/hash_table.o diffusion/routing_table.o diffusion/iflist.o tcp/tfrc.o tcp/tfrc-sink.o mobile/energy-model.o apps/ping.o tcp/tcp-rfc793edu.o queue/rio.o queue/semantic-rio.o tcp/tcp-sack-rh.o tcp/scoreboard-rh.o plm/loss-monitor-plm.o plm/cbr-traffic-PP.o linkstate/hdr-ls.o mpls/classifier-addr-mpls.o mpls/ldp.o mpls/mpls-module.o routing/rtmodule.o classifier/classifier-hier.o routing/addr-params.o nix/hdr_nv.o nix/classifier-nix.o nix/nixnode.o routealgo/rnode.o routealgo/bfs.o routealgo/rbitmap.o routealgo/rlookup.o routealgo/routealgo.o nix/nixvec.o nix/nixroute.o diffserv/dsred.o diffserv/dsredq.o diffserv/dsEdge.o diffserv/dsCore.o diffserv/dsPolicy.o diffserv/ew.o diffserv/dewp.o queue/red-pd.o queue/pi.o queue/vq.o queue/rem.o queue/gk.o pushback/rate-limit.o pushback/rate-limit-strategy.o pushback/ident-tree.o pushback/agg-spec.o pushback/logging-data-struct.o pushback/rate-estimator.o pushback/pushback-queue.o pushback/pushback.o common/parentnode.o trace/basetrace.o common/simulator.o asim/asim.o common/scheduler-map.o common/splay-scheduler.o linkstate/ls.o linkstate/rtProtoLS.o pgm/classifier-pgm.o pgm/pgm-agent.o pgm/pgm-sender.o pgm/pgm-receiver.o mcast/rcvbuf.o mcast/classifier-lms.o mcast/lms-agent.o mcast/lms-receiver.o mcast/lms-sender.o queue/delayer.o xcp/xcpq.o xcp/xcp.o xcp/xcp-end-sys.o wpan/p802_15_4csmaca.o wpan/p802_15_4fail.o wpan/p802_15_4hlist.o wpan/p802_15_4mac.o wpan/p802_15_4nam.o wpan/p802_15_4phy.o wpan/p802_15_4sscs.o wpan/p802_15_4timer.o wpan/p802_15_4trace.o wpan/p802_15_4transac.o diffusion3/lib/nr/nr.o diffusion3/lib/dr.o diffusion3/filters/diffusion/one_phase_pull.o diffusion3/filters/diffusion/two_phase_pull.o diffusion3/lib/diffapp.o diffusion3/ns/diffagent.o diffusion3/ns/diffrtg.o diffusion3/ns/difftimer.o diffusion3/filter_core/filter_core.o diffusion3/filter_core/iolog.o diffusion3/filter_core/iostats.o diffusion3/lib/main/attrs.o diffusion3/lib/main/events.o diffusion3/lib/main/iodev.o diffusion3/lib/main/iohook.o diffusion3/lib/main/timers.o diffusion3/lib/main/message.o diffusion3/lib/main/tools.o diffusion3/apps/gear_examples/gear_common.o diffusion3/apps/gear_examples/gear_receiver.o diffusion3/apps/gear_examples/gear_sender.o diffusion3/apps/rmst_examples/rmst_sink.o diffusion3/apps/rmst_examples/rmst_source.o diffusion3/apps/ping/1pp_ping_sender.o diffusion3/apps/ping/1pp_ping_receiver.o diffusion3/apps/ping/2pp_ping_sender.o diffusion3/apps/ping/2pp_ping_receiver.o diffusion3/apps/ping/ping_common.o diffusion3/apps/ping/push_receiver.o diffusion3/apps/ping/push_sender.o diffusion3/filters/gear/gear_attr.o diffusion3/filters/gear/gear.o diffusion3/filters/gear/gear_tools.o diffusion3/filters/misc/log.o diffusion3/filters/misc/srcrt.o diffusion3/filters/misc/tag.o diffusion3/filters/rmst/rmst.o diffusion3/filters/rmst/rmst_filter.o delaybox/delaybox.o packmime/packmime_HTTP.o packmime/packmime_HTTP_rng.o packmime/packmime_OL.o packmime/packmime_OL_ranvar.o packmime/packmime_ranvar.o gen/version.o gen/ns_tcl.o gen/ptypes.o common/win32.o -L/usr/NS/ns2install/tclcl-1.18 -ltclcl -L/usr/NS/ns2install/otcl-1.12 -lotcl -L/usr/lib -ltk8.4 -L/usr/lib -ltcl8.4 -lnsl -ldl -lm -lm
/usr/bin/ld: ns: hidden symbol `__stack_chk_fail_local’ in /usr/lib/libc_nonshared.a(stack_chk_fail_local.oS) is referenced by DSO
/usr/bin/ld: final link failed: Nonrepresentable section on output
collect2: ld returned 1 exit status
make: *** [ns] Error 1
Comment by loocalvinci — March 8, 2008 #