NS 2.29.3 installation problem

681 views
Skip to first unread message

Haider AL-Hashimi

unread,
Sep 12, 2010, 1:45:01 AM9/12/10
to ns-3-...@googlegroups.com
Dear all I am trying to install NS2.29.3 on ubuntu 10.04 but I have this problem that I could not solve as listed below

g++ -c  -DNO_TK  -DNDEBUG -DUSE_SHM -DHAVE_LIBOTCL1_11 -DHAVE_OTCL_H -DHAVE_LIBTK8_4 -DHAVE_TK_H -DHAVE_LIBTCL8_4 -DHAVE_TCLINT_H -DHAVE_TCL_H  -DHAVE_CONFIG_H -I. -I/home/haider/Downloads/ns-allinone-2.29/otcl-1.11 -I/home/haider/Downloads/ns-allinone-2.29/include -I/home/haider/Downloads/ns-allinone-2.29/include -I/home/haider/Downloads/ns-allinone-2.29/include -o Tcl.o Tcl.cc
Tcl.cc: In member function ‘void Tcl::eval(char*)’:
Tcl.cc:182: warning: deprecated conversion from string constant to ‘char*’
Tcl.cc: In member function ‘int TclObject::traceVar(const char*, TclObject*)’:
Tcl.cc:421: warning: deprecated conversion from string constant to ‘char*’
Tcl.cc: In static member function ‘static int TclClass::create_shadow(void*, Tcl_Interp*, int, const char**)’:
Tcl.cc:509: warning: deprecated conversion from string constant to ‘char*’
Tcl.cc:511: warning: deprecated conversion from string constant to ‘char*’
Tcl.cc: In static member function ‘static int TclClass::dispatch_instvar(void*, Tcl_Interp*, int, const char**)’:
Tcl.cc:566: error: invalid conversion from ‘const char*’ to ‘char*’
Tcl.cc:571: warning: deprecated conversion from string constant to ‘char*’
Tcl.cc: In member function ‘virtual void TclClass::bind()’:
Tcl.cc:603: warning: deprecated conversion from string constant to ‘char*’
Tcl.cc:605: warning: deprecated conversion from string constant to ‘char*’
make: *** [Tcl.o] Error 1
tclcl-1.17 make failed! Exiting ...

can any one help me to overcome this problem

Thank You

--
Haider Noori AL-Hashimi
Ph.D Student, Computer Science
Faculty Of Computer Science & Information Technology
UNIVERSITI TEKNOLOGI MALAYSIA

udhay prakash

unread,
Sep 12, 2010, 1:58:09 AM9/12/10
to ns-3-...@googlegroups.com
hi hashimi...follow these steps and chek if it is working.. 
i hope u wont hav any prob.
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------

sudo apt-get install gcc g++ python

 $ sudo apt-get install gcc g++ python python-dev

 $ sudo apt-get install mercurial

 $ sudo apt-get install bzr

 $ sudo apt-get install gdb valgrind

 $ sudo apt-get install gsl-bin libgsl0-dev libgsl0ldbl

 $ sudo apt-get install flex bison

 $ sudo apt-get install gcc

 $ sudo apt-get install g++

 $ sudo apt-get install tcpdump

 $ sudo apt-get install sqlite sqlite3 libsqlite3-dev

 $ sudo apt-get install libxml2 libxml2-dev

 $ sudo apt-get install libgtk2.0-0 libgtk2.0-dev

 $ sudo apt-get install vtun lxc

 $ sudo apt-get install uncrustify

 $ sudo apt-get install doxygen graphviz imagemagick

 

 $ sudo apt-get install texlive texlive-pdf texlive-latex-extra texlive-generic-extra texlive-generic-recommended

 

 $ sudo apt-get install python-pygraphviz python-kiwi python-pygoocanvas libgoocanvas-dev

 

 $ mkdir repos

 $ cd repos

 $ hg clone http://code.nsnam.org/ns-3-allinone

 $ cd ns-3-allinone

 $ ./download.py -n ns-3.9 -r ns-3.9-ref-traces

 $ ./build.py

 $ cd ns-3.9

 $ ./waf configure

 $ ./waf

-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------



--
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To post to this group, send email to ns-3-...@googlegroups.com.
To unsubscribe from this group, send email to ns-3-users+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/ns-3-users?hl=en.

Haider AL-Hashimi

unread,
Sep 12, 2010, 2:03:03 AM9/12/10
to ns-3-...@googlegroups.com
Thank you now I am having this problem

gcc-4.1 -c -Wall  -DUSE_802_21 -DTCP_DELAY_BIND_ALL -DNO_TK -DTCLCL_CLASSINSTVAR  -DNDEBUG -DLINUX_TCP_HEADER -DUSE_SHM -DHAVE_LIBTCLCL -DHAVE_TCLCL_H -DHAVE_LIBOTCL1_11 -DHAVE_OTCL_H -DHAVE_LIBTK8_4 -DHAVE_TK_H -DHAVE_LIBTCL8_4 -DHAVE_TCL_H  -DHAVE_CONFIG_H -DNS_DIFFUSION -DSMAC_NO_SYNC -DCPP_NAMESPACE=std -DUSE_SINGLE_ADDRESS_SPACE -Drng_test -I. -I/home/haider/Downloads/ns-allinone-2.29/tclcl-1.17 -I/home/haider/Downloads/ns-allinone-2.29/otcl-1.11 -I/home/haider/Downloads/ns-allinone-2.29/include -I/home/haider/Downloads/ns-allinone-2.29/include -I/usr/include/pcap -I./tcp -I./sctp -I./common -I./link -I./queue -I./adc -I./apps -I./mac -I./mobile -I./trace -I./routing -I./tools -I./classifier -I./mcast -I./diffusion3/lib/main -I./diffusion3/lib -I./diffusion3/lib/nr -I./diffusion3/ns -I./diffusion3/filter_core -I./asim/ -I./qs -I./diffserv -I./satellite -I./bluetooth -I./hsntg -I./hsntg/802_21 -I./wimax -I./interference -I./myevalvid -I./wpan -I./pmip6 -o tools/random.o tools/random.cc
gcc-4.1 -c -Wall  -DUSE_802_21 -DTCP_DELAY_BIND_ALL -DNO_TK -DTCLCL_CLASSINSTVAR  -DNDEBUG -DLINUX_TCP_HEADER -DUSE_SHM -DHAVE_LIBTCLCL -DHAVE_TCLCL_H -DHAVE_LIBOTCL1_11 -DHAVE_OTCL_H -DHAVE_LIBTK8_4 -DHAVE_TK_H -DHAVE_LIBTCL8_4 -DHAVE_TCL_H  -DHAVE_CONFIG_H -DNS_DIFFUSION -DSMAC_NO_SYNC -DCPP_NAMESPACE=std -DUSE_SINGLE_ADDRESS_SPACE -Drng_test -I. -I/home/haider/Downloads/ns-allinone-2.29/tclcl-1.17 -I/home/haider/Downloads/ns-allinone-2.29/otcl-1.11 -I/home/haider/Downloads/ns-allinone-2.29/include -I/home/haider/Downloads/ns-allinone-2.29/include -I/usr/include/pcap -I./tcp -I./sctp -I./common -I./link -I./queue -I./adc -I./apps -I./mac -I./mobile -I./trace -I./routing -I./tools -I./classifier -I./mcast -I./diffusion3/lib/main -I./diffusion3/lib -I./diffusion3/lib/nr -I./diffusion3/ns -I./diffusion3/filter_core -I./asim/ -I./qs -I./diffserv -I./satellite -I./bluetooth -I./hsntg -I./hsntg/802_21 -I./wimax -I./interference -I./myevalvid -I./wpan -I./pmip6 -o tools/rng.o tools/rng.cc
gcc-4.1 -c -Wall  -DUSE_802_21 -DTCP_DELAY_BIND_ALL -DNO_TK -DTCLCL_CLASSINSTVAR  -DNDEBUG -DLINUX_TCP_HEADER -DUSE_SHM -DHAVE_LIBTCLCL -DHAVE_TCLCL_H -DHAVE_LIBOTCL1_11 -DHAVE_OTCL_H -DHAVE_LIBTK8_4 -DHAVE_TK_H -DHAVE_LIBTCL8_4 -DHAVE_TCL_H  -DHAVE_CONFIG_H -DNS_DIFFUSION -DSMAC_NO_SYNC -DCPP_NAMESPACE=std -DUSE_SINGLE_ADDRESS_SPACE -Drng_test -I. -I/home/haider/Downloads/ns-allinone-2.29/tclcl-1.17 -I/home/haider/Downloads/ns-allinone-2.29/otcl-1.11 -I/home/haider/Downloads/ns-allinone-2.29/include -I/home/haider/Downloads/ns-allinone-2.29/include -I/usr/include/pcap -I./tcp -I./sctp -I./common -I./link -I./queue -I./adc -I./apps -I./mac -I./mobile -I./trace -I./routing -I./tools -I./classifier -I./mcast -I./diffusion3/lib/main -I./diffusion3/lib -I./diffusion3/lib/nr -I./diffusion3/ns -I./diffusion3/filter_core -I./asim/ -I./qs -I./diffserv -I./satellite -I./bluetooth -I./hsntg -I./hsntg/802_21 -I./wimax -I./interference -I./myevalvid -I./wpan -I./pmip6 -o tools/ranvar.o tools/ranvar.cc
gcc-4.1 -c -Wall  -DUSE_802_21 -DTCP_DELAY_BIND_ALL -DNO_TK -DTCLCL_CLASSINSTVAR  -DNDEBUG -DLINUX_TCP_HEADER -DUSE_SHM -DHAVE_LIBTCLCL -DHAVE_TCLCL_H -DHAVE_LIBOTCL1_11 -DHAVE_OTCL_H -DHAVE_LIBTK8_4 -DHAVE_TK_H -DHAVE_LIBTCL8_4 -DHAVE_TCL_H  -DHAVE_CONFIG_H -DNS_DIFFUSION -DSMAC_NO_SYNC -DCPP_NAMESPACE=std -DUSE_SINGLE_ADDRESS_SPACE -Drng_test -I. -I/home/haider/Downloads/ns-allinone-2.29/tclcl-1.17 -I/home/haider/Downloads/ns-allinone-2.29/otcl-1.11 -I/home/haider/Downloads/ns-allinone-2.29/include -I/home/haider/Downloads/ns-allinone-2.29/include -I/usr/include/pcap -I./tcp -I./sctp -I./common -I./link -I./queue -I./adc -I./apps -I./mac -I./mobile -I./trace -I./routing -I./tools -I./classifier -I./mcast -I./diffusion3/lib/main -I./diffusion3/lib -I./diffusion3/lib/nr -I./diffusion3/ns -I./diffusion3/filter_core -I./asim/ -I./qs -I./diffserv -I./satellite -I./bluetooth -I./hsntg -I./hsntg/802_21 -I./wimax -I./interference -I./myevalvid -I./wpan -I./pmip6 -o common/misc.o common/misc.cc
gcc-4.1 -c -Wall  -DUSE_802_21 -DTCP_DELAY_BIND_ALL -DNO_TK -DTCLCL_CLASSINSTVAR  -DNDEBUG -DLINUX_TCP_HEADER -DUSE_SHM -DHAVE_LIBTCLCL -DHAVE_TCLCL_H -DHAVE_LIBOTCL1_11 -DHAVE_OTCL_H -DHAVE_LIBTK8_4 -DHAVE_TK_H -DHAVE_LIBTCL8_4 -DHAVE_TCL_H  -DHAVE_CONFIG_H -DNS_DIFFUSION -DSMAC_NO_SYNC -DCPP_NAMESPACE=std -DUSE_SINGLE_ADDRESS_SPACE -Drng_test -I. -I/home/haider/Downloads/ns-allinone-2.29/tclcl-1.17 -I/home/haider/Downloads/ns-allinone-2.29/otcl-1.11 -I/home/haider/Downloads/ns-allinone-2.29/include -I/home/haider/Downloads/ns-allinone-2.29/include -I/usr/include/pcap -I./tcp -I./sctp -I./common -I./link -I./queue -I./adc -I./apps -I./mac -I./mobile -I./trace -I./routing -I./tools -I./classifier -I./mcast -I./diffusion3/lib/main -I./diffusion3/lib -I./diffusion3/lib/nr -I./diffusion3/ns -I./diffusion3/filter_core -I./asim/ -I./qs -I./diffserv -I./satellite -I./bluetooth -I./hsntg -I./hsntg/802_21 -I./wimax -I./interference -I./myevalvid -I./wpan -I./pmip6 -o common/timer-handler.o common/timer-handler.cc
gcc-4.1 -c -Wall  -DUSE_802_21 -DTCP_DELAY_BIND_ALL -DNO_TK -DTCLCL_CLASSINSTVAR  -DNDEBUG -DLINUX_TCP_HEADER -DUSE_SHM -DHAVE_LIBTCLCL -DHAVE_TCLCL_H -DHAVE_LIBOTCL1_11 -DHAVE_OTCL_H -DHAVE_LIBTK8_4 -DHAVE_TK_H -DHAVE_LIBTCL8_4 -DHAVE_TCL_H  -DHAVE_CONFIG_H -DNS_DIFFUSION -DSMAC_NO_SYNC -DCPP_NAMESPACE=std -DUSE_SINGLE_ADDRESS_SPACE -Drng_test -I. -I/home/haider/Downloads/ns-allinone-2.29/tclcl-1.17 -I/home/haider/Downloads/ns-allinone-2.29/otcl-1.11 -I/home/haider/Downloads/ns-allinone-2.29/include -I/home/haider/Downloads/ns-allinone-2.29/include -I/usr/include/pcap -I./tcp -I./sctp -I./common -I./link -I./queue -I./adc -I./apps -I./mac -I./mobile -I./trace -I./routing -I./tools -I./classifier -I./mcast -I./diffusion3/lib/main -I./diffusion3/lib -I./diffusion3/lib/nr -I./diffusion3/ns -I./diffusion3/filter_core -I./asim/ -I./qs -I./diffserv -I./satellite -I./bluetooth -I./hsntg -I./hsntg/802_21 -I./wimax -I./interference -I./myevalvid -I./wpan -I./pmip6 -o common/scheduler.o common/scheduler.cc
gcc-4.1 -c -Wall  -DUSE_802_21 -DTCP_DELAY_BIND_ALL -DNO_TK -DTCLCL_CLASSINSTVAR  -DNDEBUG -DLINUX_TCP_HEADER -DUSE_SHM -DHAVE_LIBTCLCL -DHAVE_TCLCL_H -DHAVE_LIBOTCL1_11 -DHAVE_OTCL_H -DHAVE_LIBTK8_4 -DHAVE_TK_H -DHAVE_LIBTCL8_4 -DHAVE_TCL_H  -DHAVE_CONFIG_H -DNS_DIFFUSION -DSMAC_NO_SYNC -DCPP_NAMESPACE=std -DUSE_SINGLE_ADDRESS_SPACE -Drng_test -I. -I/home/haider/Downloads/ns-allinone-2.29/tclcl-1.17 -I/home/haider/Downloads/ns-allinone-2.29/otcl-1.11 -I/home/haider/Downloads/ns-allinone-2.29/include -I/home/haider/Downloads/ns-allinone-2.29/include -I/usr/include/pcap -I./tcp -I./sctp -I./common -I./link -I./queue -I./adc -I./apps -I./mac -I./mobile -I./trace -I./routing -I./tools -I./classifier -I./mcast -I./diffusion3/lib/main -I./diffusion3/lib -I./diffusion3/lib/nr -I./diffusion3/ns -I./diffusion3/filter_core -I./asim/ -I./qs -I./diffserv -I./satellite -I./bluetooth -I./hsntg -I./hsntg/802_21 -I./wimax -I./interference -I./myevalvid -I./wpan -I./pmip6 -o common/object.o common/object.cc
gcc-4.1 -c -Wall  -DUSE_802_21 -DTCP_DELAY_BIND_ALL -DNO_TK -DTCLCL_CLASSINSTVAR  -DNDEBUG -DLINUX_TCP_HEADER -DUSE_SHM -DHAVE_LIBTCLCL -DHAVE_TCLCL_H -DHAVE_LIBOTCL1_11 -DHAVE_OTCL_H -DHAVE_LIBTK8_4 -DHAVE_TK_H -DHAVE_LIBTCL8_4 -DHAVE_TCL_H  -DHAVE_CONFIG_H -DNS_DIFFUSION -DSMAC_NO_SYNC -DCPP_NAMESPACE=std -DUSE_SINGLE_ADDRESS_SPACE -Drng_test -I. -I/home/haider/Downloads/ns-allinone-2.29/tclcl-1.17 -I/home/haider/Downloads/ns-allinone-2.29/otcl-1.11 -I/home/haider/Downloads/ns-allinone-2.29/include -I/home/haider/Downloads/ns-allinone-2.29/include -I/usr/include/pcap -I./tcp -I./sctp -I./common -I./link -I./queue -I./adc -I./apps -I./mac -I./mobile -I./trace -I./routing -I./tools -I./classifier -I./mcast -I./diffusion3/lib/main -I./diffusion3/lib -I./diffusion3/lib/nr -I./diffusion3/ns -I./diffusion3/filter_core -I./asim/ -I./qs -I./diffserv -I./satellite -I./bluetooth -I./hsntg -I./hsntg/802_21 -I./wimax -I./interference -I./myevalvid -I./wpan -I./pmip6 -o common/packet.o common/packet.cc
gcc-4.1 -c -Wall  -DUSE_802_21 -DTCP_DELAY_BIND_ALL -DNO_TK -DTCLCL_CLASSINSTVAR  -DNDEBUG -DLINUX_TCP_HEADER -DUSE_SHM -DHAVE_LIBTCLCL -DHAVE_TCLCL_H -DHAVE_LIBOTCL1_11 -DHAVE_OTCL_H -DHAVE_LIBTK8_4 -DHAVE_TK_H -DHAVE_LIBTCL8_4 -DHAVE_TCL_H  -DHAVE_CONFIG_H -DNS_DIFFUSION -DSMAC_NO_SYNC -DCPP_NAMESPACE=std -DUSE_SINGLE_ADDRESS_SPACE -Drng_test -I. -I/home/haider/Downloads/ns-allinone-2.29/tclcl-1.17 -I/home/haider/Downloads/ns-allinone-2.29/otcl-1.11 -I/home/haider/Downloads/ns-allinone-2.29/include -I/home/haider/Downloads/ns-allinone-2.29/include -I/usr/include/pcap -I./tcp -I./sctp -I./common -I./link -I./queue -I./adc -I./apps -I./mac -I./mobile -I./trace -I./routing -I./tools -I./classifier -I./mcast -I./diffusion3/lib/main -I./diffusion3/lib -I./diffusion3/lib/nr -I./diffusion3/ns -I./diffusion3/filter_core -I./asim/ -I./qs -I./diffserv -I./satellite -I./bluetooth -I./hsntg -I./hsntg/802_21 -I./wimax -I./interference -I./myevalvid -I./wpan -I./pmip6 -o common/ip.o common/ip.cc
gcc-4.1 -c -Wall  -DUSE_802_21 -DTCP_DELAY_BIND_ALL -DNO_TK -DTCLCL_CLASSINSTVAR  -DNDEBUG -DLINUX_TCP_HEADER -DUSE_SHM -DHAVE_LIBTCLCL -DHAVE_TCLCL_H -DHAVE_LIBOTCL1_11 -DHAVE_OTCL_H -DHAVE_LIBTK8_4 -DHAVE_TK_H -DHAVE_LIBTCL8_4 -DHAVE_TCL_H  -DHAVE_CONFIG_H -DNS_DIFFUSION -DSMAC_NO_SYNC -DCPP_NAMESPACE=std -DUSE_SINGLE_ADDRESS_SPACE -Drng_test -I. -I/home/haider/Downloads/ns-allinone-2.29/tclcl-1.17 -I/home/haider/Downloads/ns-allinone-2.29/otcl-1.11 -I/home/haider/Downloads/ns-allinone-2.29/include -I/home/haider/Downloads/ns-allinone-2.29/include -I/usr/include/pcap -I./tcp -I./sctp -I./common -I./link -I./queue -I./adc -I./apps -I./mac -I./mobile -I./trace -I./routing -I./tools -I./classifier -I./mcast -I./diffusion3/lib/main -I./diffusion3/lib -I./diffusion3/lib/nr -I./diffusion3/ns -I./diffusion3/filter_core -I./asim/ -I./qs -I./diffserv -I./satellite -I./bluetooth -I./hsntg -I./hsntg/802_21 -I./wimax -I./interference -I./myevalvid -I./wpan -I./pmip6 -o routing/route.o routing/route.cc
gcc-4.1 -c -Wall  -DUSE_802_21 -DTCP_DELAY_BIND_ALL -DNO_TK -DTCLCL_CLASSINSTVAR  -DNDEBUG -DLINUX_TCP_HEADER -DUSE_SHM -DHAVE_LIBTCLCL -DHAVE_TCLCL_H -DHAVE_LIBOTCL1_11 -DHAVE_OTCL_H -DHAVE_LIBTK8_4 -DHAVE_TK_H -DHAVE_LIBTCL8_4 -DHAVE_TCL_H  -DHAVE_CONFIG_H -DNS_DIFFUSION -DSMAC_NO_SYNC -DCPP_NAMESPACE=std -DUSE_SINGLE_ADDRESS_SPACE -Drng_test -I. -I/home/haider/Downloads/ns-allinone-2.29/tclcl-1.17 -I/home/haider/Downloads/ns-allinone-2.29/otcl-1.11 -I/home/haider/Downloads/ns-allinone-2.29/include -I/home/haider/Downloads/ns-allinone-2.29/include -I/usr/include/pcap -I./tcp -I./sctp -I./common -I./link -I./queue -I./adc -I./apps -I./mac -I./mobile -I./trace -I./routing -I./tools -I./classifier -I./mcast -I./diffusion3/lib/main -I./diffusion3/lib -I./diffusion3/lib/nr -I./diffusion3/ns -I./diffusion3/filter_core -I./asim/ -I./qs -I./diffserv -I./satellite -I./bluetooth -I./hsntg -I./hsntg/802_21 -I./wimax -I./interference -I./myevalvid -I./wpan -I./pmip6 -o common/connector.o common/connector.cc
gcc-4.1 -c -Wall  -DUSE_802_21 -DTCP_DELAY_BIND_ALL -DNO_TK -DTCLCL_CLASSINSTVAR  -DNDEBUG -DLINUX_TCP_HEADER -DUSE_SHM -DHAVE_LIBTCLCL -DHAVE_TCLCL_H -DHAVE_LIBOTCL1_11 -DHAVE_OTCL_H -DHAVE_LIBTK8_4 -DHAVE_TK_H -DHAVE_LIBTCL8_4 -DHAVE_TCL_H  -DHAVE_CONFIG_H -DNS_DIFFUSION -DSMAC_NO_SYNC -DCPP_NAMESPACE=std -DUSE_SINGLE_ADDRESS_SPACE -Drng_test -I. -I/home/haider/Downloads/ns-allinone-2.29/tclcl-1.17 -I/home/haider/Downloads/ns-allinone-2.29/otcl-1.11 -I/home/haider/Downloads/ns-allinone-2.29/include -I/home/haider/Downloads/ns-allinone-2.29/include -I/usr/include/pcap -I./tcp -I./sctp -I./common -I./link -I./queue -I./adc -I./apps -I./mac -I./mobile -I./trace -I./routing -I./tools -I./classifier -I./mcast -I./diffusion3/lib/main -I./diffusion3/lib -I./diffusion3/lib/nr -I./diffusion3/ns -I./diffusion3/filter_core -I./asim/ -I./qs -I./diffserv -I./satellite -I./bluetooth -I./hsntg -I./hsntg/802_21 -I./wimax -I./interference -I./myevalvid -I./wpan -I./pmip6 -o common/ttl.o common/ttl.cc
gcc-4.1 -c -Wall  -DUSE_802_21 -DTCP_DELAY_BIND_ALL -DNO_TK -DTCLCL_CLASSINSTVAR  -DNDEBUG -DLINUX_TCP_HEADER -DUSE_SHM -DHAVE_LIBTCLCL -DHAVE_TCLCL_H -DHAVE_LIBOTCL1_11 -DHAVE_OTCL_H -DHAVE_LIBTK8_4 -DHAVE_TK_H -DHAVE_LIBTCL8_4 -DHAVE_TCL_H  -DHAVE_CONFIG_H -DNS_DIFFUSION -DSMAC_NO_SYNC -DCPP_NAMESPACE=std -DUSE_SINGLE_ADDRESS_SPACE -Drng_test -I. -I/home/haider/Downloads/ns-allinone-2.29/tclcl-1.17 -I/home/haider/Downloads/ns-allinone-2.29/otcl-1.11 -I/home/haider/Downloads/ns-allinone-2.29/include -I/home/haider/Downloads/ns-allinone-2.29/include -I/usr/include/pcap -I./tcp -I./sctp -I./common -I./link -I./queue -I./adc -I./apps -I./mac -I./mobile -I./trace -I./routing -I./tools -I./classifier -I./mcast -I./diffusion3/lib/main -I./diffusion3/lib -I./diffusion3/lib/nr -I./diffusion3/ns -I./diffusion3/filter_core -I./asim/ -I./qs -I./diffserv -I./satellite -I./bluetooth -I./hsntg -I./hsntg/802_21 -I./wimax -I./interference -I./myevalvid -I./wpan -I./pmip6 -o trace/trace.o trace/trace.cc
./sctp/sctp.h:705: error: extra qualification ‘SctpAgent::’ on member ‘DumpSendBuffer’
make: *** [trace/trace.o] Error 1
Ns make failed!
See http://www.isi.edu/nsnam/ns/ns-problems.html for problems

udhayaprakash

unread,
Sep 12, 2010, 2:07:06 AM9/12/10
to ns-3-users
Jst try all those commands wich i said starting from your home
folder.. dont execute any command being from any already created
folder of ns ..
> -I./satellite -I./bluetooth -I./hsntg...
>
> read more »

Haider AL-Hashimi

unread,
Sep 12, 2010, 2:28:54 AM9/12/10
to ns-3-...@googlegroups.com
Dear all I am trying to install NS2.29.3 on ubuntu 10.04 but I have this problem that I could not solve as listed below

g++ -c -Wall  -DUSE_802_21 -DTCP_DELAY_BIND_ALL -DNO_TK -DTCLCL_CLASSINSTVAR  -DNDEBUG -DLINUX_TCP_HEADER -DUSE_SHM -DHAVE_LIBTCLCL -DHAVE_TCLCL_H -DHAVE_LIBOTCL1_11 -DHAVE_OTCL_H -DHAVE_LIBTK8_4 -DHAVE_TK_H -DHAVE_LIBTCL8_4 -DHAVE_TCL_H  -DHAVE_CONFIG_H -DNS_DIFFUSION -DSMAC_NO_SYNC -DCPP_NAMESPACE=std -DUSE_SINGLE_ADDRESS_SPACE -Drng_test -I. -I/home/haider/Downloads/ns-allinone-2.29/tclcl-1.17 -I/home/haider/Downloads/ns-allinone-2.29/otcl-1.11 -I/home/haider/Downloads/ns-allinone-2.29/include -I/home/haider/Downloads/ns-allinone-2.29/include -I/usr/include/pcap -I./tcp -I./sctp -I./common -I./link -I./queue -I./adc -I./apps -I./mac -I./mobile -I./trace -I./routing -I./tools -I./classifier -I./mcast -I./diffusion3/lib/main -I./diffusion3/lib -I./diffusion3/lib/nr -I./diffusion3/ns -I./diffusion3/filter_core -I./asim/ -I./qs -I./diffserv -I./satellite -I./bluetooth -I./hsntg -I./hsntg/802_21 -I./wimax -I./interference -I./myevalvid -I./wpan -I./pmip6 -o trace/trace.o trace/trace.cc
In file included from trace/trace.cc:39:
./common/packet.h: In constructor ‘p_info::p_info()’:
./common/packet.h:215: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:216: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:217: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:218: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:219: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:220: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:221: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:222: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:223: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:224: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:225: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:226: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:227: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:228: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:229: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:230: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:231: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:232: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:233: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:234: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:236: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:237: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:238: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:239: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:240: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:241: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:243: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:244: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:245: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:246: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:247: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:248: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:249: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:250: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:251: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:252: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:253: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:254: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:255: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:256: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:258: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:259: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:261: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:262: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:263: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:266: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:269: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:272: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:275: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:278: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:281: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:285: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:288: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:289: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:290: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:291: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:292: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:293: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:295: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:296: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:297: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:301: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:302: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:304: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:305: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:308: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:311: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:313: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:316: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:318: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:319: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:320: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:323: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:324: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:325: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:326: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:327: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:328: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:329: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:330: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:332: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:333: warning: deprecated conversion from string constant to ‘char*’
./common/packet.h:335: warning: deprecated conversion from string constant to ‘char*’
In file included from trace/trace.cc:42:
./sctp/sctp.h: At global scope:
./sctp/sctp.h:65: warning: ‘typedef’ was ignored in this declaration
./sctp/sctp.h:78: warning: ‘typedef’ was ignored in this declaration
./sctp/sctp.h:85: warning: ‘typedef’ was ignored in this declaration
./sctp/sctp.h:95: warning: ‘typedef’ was ignored in this declaration
./sctp/sctp.h:104: warning: ‘typedef’ was ignored in this declaration
./sctp/sctp.h:135: warning: ‘typedef’ was ignored in this declaration
./sctp/sctp.h:150: warning: ‘typedef’ was ignored in this declaration
./sctp/sctp.h:162: warning: ‘typedef’ was ignored in this declaration
./sctp/sctp.h:191: warning: ‘typedef’ was ignored in this declaration
./sctp/sctp.h:203: warning: ‘typedef’ was ignored in this declaration
./sctp/sctp.h:209: warning: ‘typedef’ was ignored in this declaration
./sctp/sctp.h:221: warning: ‘typedef’ was ignored in this declaration
./sctp/sctp.h:229: warning: ‘typedef’ was ignored in this declaration
./sctp/sctp.h:241: warning: ‘typedef’ was ignored in this declaration
./sctp/sctp.h:262: warning: ‘typedef’ was ignored in this declaration
./sctp/sctp.h:268: warning: ‘typedef’ was ignored in this declaration
./sctp/sctp.h:273: warning: ‘typedef’ was ignored in this declaration
./sctp/sctp.h:280: warning: ‘typedef’ was ignored in this declaration
./sctp/sctp.h:282: warning: ‘typedef’ was ignored in this declaration
./sctp/sctp.h:291: warning: ‘typedef’ was ignored in this declaration
./sctp/sctp.h:306: warning: ‘typedef’ was ignored in this declaration
./sctp/sctp.h:425: warning: ‘typedef’ was ignored in this declaration
./sctp/sctp.h:431: warning: ‘typedef’ was ignored in this declaration
./sctp/sctp.h:443: warning: ‘typedef’ was ignored in this declaration
./sctp/sctp.h:451: warning: ‘typedef’ was ignored in this declaration
./sctp/sctp.h:458: warning: ‘typedef’ was ignored in this declaration
./sctp/sctp.h:460: warning: ‘typedef’ was ignored in this declaration
./sctp/sctp.h:510: warning: ‘typedef’ was ignored in this declaration
./sctp/sctp.h:516: warning: ‘typedef’ was ignored in this declaration
./sctp/sctp.h:527: warning: ‘typedef’ was ignored in this declaration
./sctp/sctp.h:534: warning: ‘typedef’ was ignored in this declaration
./sctp/sctp.h:553: warning: ‘typedef’ was ignored in this declaration
./sctp/sctp.h:558: warning: ‘typedef’ was ignored in this declaration
./sctp/sctp.h:564: warning: ‘typedef’ was ignored in this declaration
./sctp/sctp.h:571: warning: ‘typedef’ was ignored in this declaration
./sctp/sctp.h:577: warning: ‘typedef’ was ignored in this declaration

./sctp/sctp.h:705: error: extra qualification ‘SctpAgent::’ on member ‘DumpSendBuffer’
trace/trace.cc:185: warning: deprecated conversion from string constant to ‘char*’
trace/trace.cc:185: warning: deprecated conversion from string constant to ‘char*’
trace/trace.cc:185: warning: deprecated conversion from string constant to ‘char*’
trace/trace.cc:185: warning: deprecated conversion from string constant to ‘char*’
trace/trace.cc:185: warning: deprecated conversion from string constant to ‘char*’

make: *** [trace/trace.o] Error 1
Ns make failed!

Thank you

udhay prakash

unread,
Sep 12, 2010, 2:33:51 AM9/12/10
to ns-3-...@googlegroups.com
Try these steps from the scratch.. 
Download ns allinone -2
$ wget http://nchc.dl.sourceforge.net/sourceforge/nsnam/ns-allinone-2.34.tar.gz
 

$ tar -xzvf ns-allinone-2.34.tar.gz



Install required tools.

$ sudo apt-get install build-essential autoconf automake libxmu-dev gcc-4.3

important:

It turns out that otcl does not like the version of gcc installed by default in Lucid. So go ahead and change ns-allinone-2.34/otcl-1.13/Makefile.in. Find the line that says:

CC= @CC@

and change it to:

CC= gcc-4.3

now in unzipped folder

$ cd ns-allinone-2.34
 $ ./install

Now validate the installation .
     cd ns-2.29
./validate

Haider AL-Hashimi

unread,
Sep 12, 2010, 3:22:09 PM9/12/10
to ns-3-...@googlegroups.com
hi every one I am having this problem in installing NS2.29

g++ -c -Wall  -DUSE_802_21 -DTCP_DELAY_BIND_ALL -DNO_TK -DTCLCL_CLASSINSTVAR  -DNDEBUG -DLINUX_TCP_HEADER -DUSE_SHM -DHAVE_LIBTCLCL -DHAVE_TCLCL_H -DHAVE_LIBOTCL1_11 -DHAVE_OTCL_H -DHAVE_LIBTK8_4 -DHAVE_TK_H -DHAVE_LIBTCL8_4 -DHAVE_TCL_H  -DHAVE_CONFIG_H -DNS_DIFFUSION -DSMAC_NO_SYNC -DCPP_NAMESPACE=std -DUSE_SINGLE_ADDRESS_SPACE -Drng_test -I. -I/home/haider/Downloads/ns-allinone-2.29/tclcl-1.17 -I/home/haider/Downloads/ns-allinone-2.29/otcl-1.11 -I/home/haider/Downloads/ns-allinone-2.29/include -I/home/haider/Downloads/ns-allinone-2.29/include -I/usr/include/pcap -I./tcp -I./sctp -I./common -I./link -I./queue -I./adc -I./apps -I./mac -I./mobile -I./trace -I./routing -I./tools -I./classifier -I./mcast -I./diffusion3/lib/main -I./diffusion3/lib -I./diffusion3/lib/nr -I./diffusion3/ns -I./diffusion3/filter_core -I./asim/ -I./qs -I./diffserv -I./satellite -I./bluetooth -I./hsntg -I./hsntg/802_21 -I./wimax -I./interference -I./myevalvid -I./wpan -I./pmip6 -o queue/red.o queue/red.cc
In file included from ./common/flags.h:45,
                 from queue/red.cc:68:
queue/red.cc: In member function ‘virtual void REDQueue::trace(TracedVar*)’:
queue/red.cc:874: error: invalid conversion from ‘const char*’ to ‘char*’
queue/red.cc:875: error: invalid conversion from ‘const char*’ to ‘char*’
queue/red.cc:876: error: invalid conversion from ‘const char*’ to ‘char*’
queue/red.cc:877: error: invalid conversion from ‘const char*’ to ‘char*’
make: *** [queue/red.o] Error 1
Ns make failed!

Salvador Climent Bayarri

unread,
Sep 13, 2010, 10:32:54 AM9/13/10
to ns-3-...@googlegroups.com
I think Haider is trying to compile the ns2 simulator, not the ns3.

If that's the case you should ask here:
http://mailman.isi.edu/mailman/listinfo/ns-users

I tried once to compile an old version of the ns2 and had those
errors. I think what I did was just remove the extra qualification the
compiler was complaining about.

Reply all
Reply to author
Forward
0 new messages