The below given details are the errors and solutions, which I found while installing.
1.
Build tcl8.4.11
============================================================
loading cache ./config.cache
checking whether to use symlinks for manpages... no
checking whether to compress the manpages... no
checking whether to add a package name suffix for the manpages... no
checking for gcc... 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... yes
checking whether gcc accepts -g... yes
checking for building with threads... no (default)
checking if the compiler understands -pipe... yes
checking how to run the C preprocessor... gcc -pipe -E
checking for sin... no
checking for main in -lieee... yes
checking for main in -linet... no
checking for net/errno.h... no
checking for connect... yes
checking for gethostbyname... yes
checking how to build libraries... static
checking for ranlib... ranlib
checking if 64bit support is requested... no
checking if 64bit Sparc VIS support is requested... no
checking system version (for dynamic loading)... ./configure: 1: Syntax error: Unterminated quoted string
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 platform.
Solution:
Basically, in some of the configure scripts the calls to awk are malformed.
Go to the ns-allinone folder and type
find . -name configure
A list of the configure scripts should appear.
For each of these replace any line that looks like this:
system=MP-RAS-`awk ‘{print }’ /etc/.relid’`
with ...
system=MP-RAS-`awk ‘{print }’ /etc/.relid`
Now rerun ./install in the ns-allinone folder.
2.
ld: libotcl.so: hidden symbol `__stack_chk_fail_local' isn't defined
ld: final link failed: Bad value
make: *** [libotcl.so] Error 1
otcl-1.13 make failed! Exiting ...
See http://www.isi.edu/nsnam/ns/ns-problems.html for problems
Solution:
In otcl-1.13/configure, line number 5516
- SHLIB_LD="ld -shared"
+SHLIB_LD="gcc -shared"
3.
Tcl.cc: In member function ‘void Tcl::eval(char*)’:
Tcl.cc:182:8: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
Tcl.cc: In member function ‘int TclObject::traceVar(const char*, TclObject*)’:
Tcl.cc:421:50: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
Tcl.cc: In static member function ‘static int TclClass::create_shadow(ClientData, Tcl_Interp*, int, const char**)’:
Tcl.cc:509:57: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
Tcl.cc:511:61: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
Tcl.cc: In static member function ‘static int TclClass::dispatch_instvar(ClientData, Tcl_Interp*, int, const char**)’:
Tcl.cc:566:35: error: invalid conversion from ‘const char*’ to ‘char*’ [-fpermissive]
Tcl.cc:571:72: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
Tcl.cc: In member function ‘virtual void TclClass::bind()’:
Tcl.cc:603:60: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
Tcl.cc:605:60: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
make: *** [Tcl.o] Error 1
tclcl-1.17 make failed! Exiting ...
See http://www.isi.edu/nsnam/ns/ns-problems.html for problems
Soultion:
Go to file tclcl-1.17/tcl.cc at line no. 564 replace the line following line
- char *p =strchr(localName, '(');
+ char *p =const_cast<char*>( strchr(localName, '('));
4.
./sctp/sctp.h:558:1: warning: ‘typedef’ was ignored in this declaration [enabled by default]
./sctp/sctp.h:564:1: warning: ‘typedef’ was ignored in this declaration [enabled by default]
./sctp/sctp.h:571:1: warning: ‘typedef’ was ignored in this declaration [enabled by default]
./sctp/sctp.h:577:1: warning: ‘typedef’ was ignored in this declaration [enabled by default]
./sctp/sctp.h:705:8: error: extra qualification ‘SctpAgent::’ on member ‘DumpSendBuffer’ [-fpermissive]
trace/trace.cc:185:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
trace/trace.cc:185:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
trace/trace.cc:185:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
trace/trace.cc:185:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
trace/trace.cc:185:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
make: *** [trace/trace.o] Error 1
Ns make failed!
See http://www.isi.edu/nsnam/ns/ns-problems.html for problems
Solution:
In file sctp/sctp.h in line 705, please change as follows:
- void SctpAgent::DumpSendBuffer();
+void DumpSendBuffer();
5.
In file included from ./trace/cmu-trace.h:43:0,
from src_rtg/sragent.cc:53:
./mobile/god.h: At global scope:
./mobile/god.h:88:14: error: extra qualification ‘vector::’ on member ‘operator=’ [-fpermissive]
./mobile/god.h:93:14: error: extra qualification ‘vector::’ on member ‘operator+=’ [-fpermissive]
./mobile/god.h:98:13: error: extra qualification ‘vector::’ on member ‘operator==’ [-fpermissive]
./mobile/god.h:101:13: error: extra qualification ‘vector::’ on member ‘operator!=’ [-fpermissive]
make: *** [src_rtg/sragent.o] Error 1
Ns make failed!
See http://www.isi.edu/nsnam/ns/ns-problems.html for problems
Solution:
The changes to be done to solve this problem is in the file mobile/god.h
In line 88, 93, 98 and 101
remove vector::
6.
queue/red.cc: In member function ‘double REDQueue::estimator(int, int, double, double)’:
queue/red.cc:388:18: warning: variable ‘old_ave’ set but not used [-Wunused-but-set-variable]
queue/red.cc: In member function ‘virtual void REDQueue::trace(TracedVar*)’:
queue/red.cc:874:35: error: invalid conversion from ‘const char*’ to ‘char*’ [-fpermissive]
queue/red.cc:875:36: error: invalid conversion from ‘const char*’ to ‘char*’ [-fpermissive]
queue/red.cc:876:36: error: invalid conversion from ‘const char*’ to ‘char*’ [-fpermissive]
queue/red.cc:877:41: error: invalid conversion from ‘const char*’ to ‘char*’ [-fpermissive]
make: *** [queue/red.o] Error 1
Ns make failed!
See http://www.isi.edu/nsnam/ns/ns-problems.html for problems
Solution:
In file queue/red.cc at line 874,
-if (((p = strstr(v->name(), "ave")) == NULL) &&
- ((p = strstr(v->name(), "prob")) == NULL) &&
- ((p = strstr(v->name(), "curq")) == NULL) &&
- ((p = strstr(v->name(), "cur_max_p"))==NULL) ) {
+if (((p = const_cast<char*>(strstr(v->name(), "ave"))) == NULL) &&
+ ((p = const_cast<char*>(strstr(v->name(), "prob"))) == NULL) &&
+ ((p = const_cast<char*>(strstr(v->name(), "curq"))) == NULL) &&
+ ((p = const_cast<char*>(strstr(v->name(), "cur_max_p")))==NULL) ) {
7.
dsr/dsragent.cc:2737:18: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
dsr/dsragent.cc:2756:28: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
make: *** [dsr/dsragent.o] Error 1
Ns make failed!
See http://www.isi.edu/nsnam/ns/ns-problems.html for problems
Solution:
In dsr/dsragent.cc at line 216 add following lines,
void XmitFlowFailureCallback(Packet *pkt, void *data);
void XmitFailureCallback(Packet *pkt, void *data);
8.
diffusion/diffusion.cc: In member function ‘void DiffusionAgent::MACprepare(Packet*, nsaddr_t, int, bool)’:
diffusion/diffusion.cc:427:26: error: ‘XmitFailedCallback’ was not declared in this scope
make: *** [diffusion/diffusion.o] Error 1
Ns make failed!
See http://www.isi.edu/nsnam/ns/ns-problems.html for problems
Solution:
In diffusion/diffusion.cc at line 85 add following line,
void XmitFailedCallback(Packet *pkt, void *data);
9.
diffusion/omni_mcast.cc: In member function ‘void OmniMcastAgent::ConsiderNew(Packet*)’:
diffusion/omni_mcast.cc:243:19: warning: variable ‘hashPtr’ set but not used [-Wunused-but-set-variable]
diffusion/omni_mcast.cc:246:27: warning: variable ‘forward_nodeID’ set but not used [-Wunused-but-set-variable]
diffusion/omni_mcast.cc: In member function ‘void OmniMcastAgent::MACprepare(Packet*, nsaddr_t, unsigned int, bool)’:
diffusion/omni_mcast.cc:388:26: error: ‘OmniMcastXmitFailedCallback’ was not declared in this scope
make: *** [diffusion/omni_mcast.o] Error 1
Ns make failed!
See http://www.isi.edu/nsnam/ns/ns-problems.html for problems
Solution:
In diffusion/omni_mcast.cc at line 83 add followinf line
void OmniMcastXmitFailedCallback(Packet *pkt, void *data);
10.
queue/rio.cc: In member function ‘virtual void RIOQueue::enque(Packet*)’:
queue/rio.cc:481:56: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
queue/rio.cc: In member function ‘virtual void RIOQueue::trace(TracedVar*)’:
queue/rio.cc:565:35: error: invalid conversion from ‘const char*’ to ‘char*’ [-fpermissive]
queue/rio.cc:566:38: error: invalid conversion from ‘const char*’ to ‘char*’ [-fpermissive]
queue/rio.cc:567:39: error: invalid conversion from ‘const char*’ to ‘char*’ [-fpermissive]
queue/rio.cc:568:36: error: invalid conversion from ‘const char*’ to ‘char*’ [-fpermissive]
queue/rio.cc:569:39: error: invalid conversion from ‘const char*’ to ‘char*’ [-fpermissive]
queue/rio.cc:570:40: error: invalid conversion from ‘const char*’ to ‘char*’ [-fpermissive]
queue/rio.cc:571:36: error: invalid conversion from ‘const char*’ to ‘char*’ [-fpermissive]
make: *** [queue/rio.o] Error 1
Ns make failed!
See http://www.isi.edu/nsnam/ns/ns-problems.html for problems
Solution:
Do the following changes in queue/rio.cc at line 565 onwards,
- if (((p = strstr(v->name(), "ave")) == NULL) &&
- ((p = strstr(v->name(), "in_ave")) == NULL) &&
- ((p = strstr(v->name(), "out_ave")) == NULL) &&
- ((p = strstr(v->name(), "prob")) == NULL) &&
- ((p = strstr(v->name(), "in_prob")) == NULL) &&
- ((p = strstr(v->name(), "out_prob")) == NULL) &&
- ((p = strstr(v->name(), "curq")) == NULL)) {
+ if (((p = const_cast<char*>(strstr(v->name(), "ave"))) == NULL) &&
+ ((p = const_cast<char*>(strstr(v->name(), "in_ave"))) == NULL) &&
+ ((p = const_cast<char*>(strstr(v->name(), "out_ave"))) == NULL) &&
+ ((p = const_cast<char*>(strstr(v->name(), "prob"))) == NULL) &&
+ ((p = const_cast<char*>(strstr(v->name(), "in_prob"))) == NULL) &&
+ ((p = const_cast<char*>(strstr(v->name(), "out_prob"))) == NULL) &&
+ ((p = const_cast<char*>(strstr(v->name(), "curq"))) == NULL)) {
11.
tcp/tcp-sack-rh.cc: At global scope:
tcp/tcp-sack-rh.cc:68:15: error: extra qualification ‘SackRHTcpAgent::’ on member ‘newack’ [-fpermissive]
make: *** [tcp/tcp-sack-rh.o] Error 1
Ns make failed!
See http://www.isi.edu/nsnam/ns/ns-problems.html for problems
Solution:
In tcp/tcp-sack-rh.cc at line 68,
- virtual void SackRHTcpAgent::newack(Packet* pkt);
+ virtual void newack(Packet* pkt);
12.
queue/pi.cc: In member function ‘virtual void PIQueue::trace(TracedVar*)’:
queue/pi.cc:316:36: error: invalid conversion from ‘const char*’ to ‘char*’ [-fpermissive]
queue/pi.cc:317:36: error: invalid conversion from ‘const char*’ to ‘char*’ [-fpermissive]
make: *** [queue/pi.o] Error 1
Ns make failed!
See http://www.isi.edu/nsnam/ns/ns-problems.html for problems
Solution:
In queue/pi.cc at line 316, do the following changes,
- if (((p = strstr(v->name(), "prob")) == NULL) &&
- ((p = strstr(v->name(), "curq")) == NULL)) {
+ if (((p = const_cast<char*>(strstr(v->name(), "prob"))) == NULL) &&
+ ((p = const_cast<char*>(strstr(v->name(), "curq"))) == NULL)) {
13.
queue/vq.cc: In member function ‘virtual void Vq::trace(TracedVar*)’:
queue/vq.cc:333:35: error: invalid conversion from ‘const char*’ to ‘char*’ [-fpermissive]
make: *** [queue/vq.o] Error 1
Ns make failed!
See http://www.isi.edu/nsnam/ns/ns-problems.html for problems
Solution:
In file queue/vq.cc at line 333,
- if ((p = strstr(v->name(), "curq")) == NULL) {
+ if ((p = const_cast<char*>(strstr(v->name(), "curq"))) == NULL) {
14.
queue/rem.cc: In member function ‘virtual void REMQueue::trace(TracedVar*)’:
queue/rem.cc:335:35: error: invalid conversion from ‘const char*’ to ‘char*’ [-fpermissive]
queue/rem.cc:336:36: error: invalid conversion from ‘const char*’ to ‘char*’ [-fpermissive]
queue/rem.cc:337:36: error: invalid conversion from ‘const char*’ to ‘char*’ [-fpermissive]
make: *** [queue/rem.o] Error 1
Ns make failed!
See http://www.isi.edu/nsnam/ns/ns-problems.html for problems
Solution:
In file queue/rem.cc at line 335,
- if (((p = strstr(v->name(), "ave")) == NULL) &&
- ((p = strstr(v->name(), "prob")) == NULL) &&
- ((p = strstr(v->name(), "curq")) == NULL)) {
+ if (((p =const_cast<char*>(strstr(v->name(), "ave"))) == NULL) &&
+ ((p = const_cast<char*>(strstr(v->name(), "prob"))) == NULL) &&
+ ((p = const_cast<char*>(strstr(v->name(), "curq"))) == NULL)) {
15.
queue/gk.cc: In member function ‘virtual void GK::trace(TracedVar*)’:
queue/gk.cc:207:35: error: invalid conversion from ‘const char*’ to ‘char*’ [-fpermissive]
make: *** [queue/gk.o] Error 1
Ns make failed!
See http://www.isi.edu/nsnam/ns/ns-problems.html for problems
Solution:
In file queue/gk.cc at line 207,
- if ((p = strstr(v->name(), "curq")) == NULL) {
+ if ((p = const_cast<char*>(strstr(v->name(), "curq"))) == NULL) {
16.
pgm/pgm-agent.cc: At global scope:
pgm/pgm-agent.cc:307:8: error: extra qualification ‘PgmAgent::’ on member ‘trace_event’ [-fpermissive]
pgm/pgm-agent.cc: In member function ‘void PgmAgent::handle_rdata(Packet*)’:
pgm/pgm-agent.cc:607:30: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
pgm/pgm-agent.cc: In member function ‘void PgmAgent::handle_nak(Packet*)’:
pgm/pgm-agent.cc:756:43: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
pgm/pgm-agent.cc: In member function ‘void PgmAgent::handle_ncf(Packet*)’:
pgm/pgm-agent.cc:853:28: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
make: *** [pgm/pgm-agent.o] Error 1
Ns make failed!
See http://www.isi.edu/nsnam/ns/ns-problems.html for problem
Solution
In pgm/pgm-agent.cc at line 307,
- void PgmAgent::trace_event(char *evType, double evTime);
+ void trace_event(char *evType, double evTime);
17.
pgm/pgm-sender.cc: At global scope:
pgm/pgm-sender.cc:189:8: error: extra qualification ‘PgmSender::’ on member ‘trace_event’ [-fpermissive]
pgm/pgm-sender.cc: In member function ‘virtual void PgmSender::handle_nak(Packet*)’:
pgm/pgm-sender.cc:501:67: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
pgm/pgm-sender.cc: In member function ‘virtual void PgmSender::send_rdata(RdataItem*)’:
pgm/pgm-sender.cc:645:51: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
make: *** [pgm/pgm-sender.o] Error 1
Ns make failed!
See http://www.isi.edu/nsnam/ns/ns-problems.html for problems
Solution
In pgm/pgm-sender.cc at line 189,
- void PgmSender::trace_event(char *evType, nsaddr_t daddr, double evTime);
+ void trace_event(char *evType, nsaddr_t daddr, double evTime);
18.
pgm/pgm-receiver.cc: At global scope:
pgm/pgm-receiver.cc:186:8: error: extra qualification ‘PgmReceiver::’ on member ‘trace_event’ [-fpermissive]
pgm/pgm-receiver.cc: In member function ‘void PgmReceiver::generate_Nak(int)’:
pgm/pgm-receiver.cc:617:34: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
make: *** [pgm/pgm-receiver.o] Error 1
Ns make failed!
See http://www.isi.edu/nsnam/ns/ns-problems.html for problems
Solution
In pgm/pgm-sender.cc at line 186,
- void PgmReceiver::trace_event(char *evType, double evTime);
+ void trace_event(char *evType, double evTime);
1.
Build tcl8.4.11
============================================================
loading cache ./config.cache
checking whether to use symlinks for manpages... no
checking whether to compress the manpages... no
checking whether to add a package name suffix for the manpages... no
checking for gcc... 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... yes
checking whether gcc accepts -g... yes
checking for building with threads... no (default)
checking if the compiler understands -pipe... yes
checking how to run the C preprocessor... gcc -pipe -E
checking for sin... no
checking for main in -lieee... yes
checking for main in -linet... no
checking for net/errno.h... no
checking for connect... yes
checking for gethostbyname... yes
checking how to build libraries... static
checking for ranlib... ranlib
checking if 64bit support is requested... no
checking if 64bit Sparc VIS support is requested... no
checking system version (for dynamic loading)... ./configure: 1: Syntax error: Unterminated quoted string
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 platform.
Solution:
Basically, in some of the configure scripts the calls to awk are malformed.
Go to the ns-allinone folder and type
find . -name configure
A list of the configure scripts should appear.
For each of these replace any line that looks like this:
system=MP-RAS-`awk ‘{print }’ /etc/.relid’`
with ...
system=MP-RAS-`awk ‘{print }’ /etc/.relid`
Now rerun ./install in the ns-allinone folder.
2.
ld: libotcl.so: hidden symbol `__stack_chk_fail_local' isn't defined
ld: final link failed: Bad value
make: *** [libotcl.so] Error 1
otcl-1.13 make failed! Exiting ...
See http://www.isi.edu/nsnam/ns/ns-problems.html for problems
Solution:
In otcl-1.13/configure, line number 5516
- SHLIB_LD="ld -shared"
+SHLIB_LD="gcc -shared"
3.
Tcl.cc: In member function ‘void Tcl::eval(char*)’:
Tcl.cc:182:8: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
Tcl.cc: In member function ‘int TclObject::traceVar(const char*, TclObject*)’:
Tcl.cc:421:50: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
Tcl.cc: In static member function ‘static int TclClass::create_shadow(ClientData, Tcl_Interp*, int, const char**)’:
Tcl.cc:509:57: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
Tcl.cc:511:61: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
Tcl.cc: In static member function ‘static int TclClass::dispatch_instvar(ClientData, Tcl_Interp*, int, const char**)’:
Tcl.cc:566:35: error: invalid conversion from ‘const char*’ to ‘char*’ [-fpermissive]
Tcl.cc:571:72: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
Tcl.cc: In member function ‘virtual void TclClass::bind()’:
Tcl.cc:603:60: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
Tcl.cc:605:60: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
make: *** [Tcl.o] Error 1
tclcl-1.17 make failed! Exiting ...
See http://www.isi.edu/nsnam/ns/ns-problems.html for problems
Soultion:
Go to file tclcl-1.17/tcl.cc at line no. 564 replace the line following line
- char *p =strchr(localName, '(');
+ char *p =const_cast<char*>( strchr(localName, '('));
4.
./sctp/sctp.h:558:1: warning: ‘typedef’ was ignored in this declaration [enabled by default]
./sctp/sctp.h:564:1: warning: ‘typedef’ was ignored in this declaration [enabled by default]
./sctp/sctp.h:571:1: warning: ‘typedef’ was ignored in this declaration [enabled by default]
./sctp/sctp.h:577:1: warning: ‘typedef’ was ignored in this declaration [enabled by default]
./sctp/sctp.h:705:8: error: extra qualification ‘SctpAgent::’ on member ‘DumpSendBuffer’ [-fpermissive]
trace/trace.cc:185:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
trace/trace.cc:185:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
trace/trace.cc:185:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
trace/trace.cc:185:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
trace/trace.cc:185:1: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
make: *** [trace/trace.o] Error 1
Ns make failed!
See http://www.isi.edu/nsnam/ns/ns-problems.html for problems
Solution:
In file sctp/sctp.h in line 705, please change as follows:
- void SctpAgent::DumpSendBuffer();
+void DumpSendBuffer();
5.
In file included from ./trace/cmu-trace.h:43:0,
from src_rtg/sragent.cc:53:
./mobile/god.h: At global scope:
./mobile/god.h:88:14: error: extra qualification ‘vector::’ on member ‘operator=’ [-fpermissive]
./mobile/god.h:93:14: error: extra qualification ‘vector::’ on member ‘operator+=’ [-fpermissive]
./mobile/god.h:98:13: error: extra qualification ‘vector::’ on member ‘operator==’ [-fpermissive]
./mobile/god.h:101:13: error: extra qualification ‘vector::’ on member ‘operator!=’ [-fpermissive]
make: *** [src_rtg/sragent.o] Error 1
Ns make failed!
See http://www.isi.edu/nsnam/ns/ns-problems.html for problems
Solution:
The changes to be done to solve this problem is in the file mobile/god.h
In line 88, 93, 98 and 101
remove vector::
6.
queue/red.cc: In member function ‘double REDQueue::estimator(int, int, double, double)’:
queue/red.cc:388:18: warning: variable ‘old_ave’ set but not used [-Wunused-but-set-variable]
queue/red.cc: In member function ‘virtual void REDQueue::trace(TracedVar*)’:
queue/red.cc:874:35: error: invalid conversion from ‘const char*’ to ‘char*’ [-fpermissive]
queue/red.cc:875:36: error: invalid conversion from ‘const char*’ to ‘char*’ [-fpermissive]
queue/red.cc:876:36: error: invalid conversion from ‘const char*’ to ‘char*’ [-fpermissive]
queue/red.cc:877:41: error: invalid conversion from ‘const char*’ to ‘char*’ [-fpermissive]
make: *** [queue/red.o] Error 1
Ns make failed!
See http://www.isi.edu/nsnam/ns/ns-problems.html for problems
Solution:
In file queue/red.cc at line 874,
-if (((p = strstr(v->name(), "ave")) == NULL) &&
- ((p = strstr(v->name(), "prob")) == NULL) &&
- ((p = strstr(v->name(), "curq")) == NULL) &&
- ((p = strstr(v->name(), "cur_max_p"))==NULL) ) {
+if (((p = const_cast<char*>(strstr(v->name(), "ave"))) == NULL) &&
+ ((p = const_cast<char*>(strstr(v->name(), "prob"))) == NULL) &&
+ ((p = const_cast<char*>(strstr(v->name(), "curq"))) == NULL) &&
+ ((p = const_cast<char*>(strstr(v->name(), "cur_max_p")))==NULL) ) {
7.
dsr/dsragent.cc:2737:18: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
dsr/dsragent.cc:2756:28: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
make: *** [dsr/dsragent.o] Error 1
Ns make failed!
See http://www.isi.edu/nsnam/ns/ns-problems.html for problems
Solution:
In dsr/dsragent.cc at line 216 add following lines,
void XmitFlowFailureCallback(Packet *pkt, void *data);
void XmitFailureCallback(Packet *pkt, void *data);
8.
diffusion/diffusion.cc: In member function ‘void DiffusionAgent::MACprepare(Packet*, nsaddr_t, int, bool)’:
diffusion/diffusion.cc:427:26: error: ‘XmitFailedCallback’ was not declared in this scope
make: *** [diffusion/diffusion.o] Error 1
Ns make failed!
See http://www.isi.edu/nsnam/ns/ns-problems.html for problems
Solution:
In diffusion/diffusion.cc at line 85 add following line,
void XmitFailedCallback(Packet *pkt, void *data);
9.
diffusion/omni_mcast.cc: In member function ‘void OmniMcastAgent::ConsiderNew(Packet*)’:
diffusion/omni_mcast.cc:243:19: warning: variable ‘hashPtr’ set but not used [-Wunused-but-set-variable]
diffusion/omni_mcast.cc:246:27: warning: variable ‘forward_nodeID’ set but not used [-Wunused-but-set-variable]
diffusion/omni_mcast.cc: In member function ‘void OmniMcastAgent::MACprepare(Packet*, nsaddr_t, unsigned int, bool)’:
diffusion/omni_mcast.cc:388:26: error: ‘OmniMcastXmitFailedCallback’ was not declared in this scope
make: *** [diffusion/omni_mcast.o] Error 1
Ns make failed!
See http://www.isi.edu/nsnam/ns/ns-problems.html for problems
Solution:
In diffusion/omni_mcast.cc at line 83 add followinf line
void OmniMcastXmitFailedCallback(Packet *pkt, void *data);
10.
queue/rio.cc: In member function ‘virtual void RIOQueue::enque(Packet*)’:
queue/rio.cc:481:56: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
queue/rio.cc: In member function ‘virtual void RIOQueue::trace(TracedVar*)’:
queue/rio.cc:565:35: error: invalid conversion from ‘const char*’ to ‘char*’ [-fpermissive]
queue/rio.cc:566:38: error: invalid conversion from ‘const char*’ to ‘char*’ [-fpermissive]
queue/rio.cc:567:39: error: invalid conversion from ‘const char*’ to ‘char*’ [-fpermissive]
queue/rio.cc:568:36: error: invalid conversion from ‘const char*’ to ‘char*’ [-fpermissive]
queue/rio.cc:569:39: error: invalid conversion from ‘const char*’ to ‘char*’ [-fpermissive]
queue/rio.cc:570:40: error: invalid conversion from ‘const char*’ to ‘char*’ [-fpermissive]
queue/rio.cc:571:36: error: invalid conversion from ‘const char*’ to ‘char*’ [-fpermissive]
make: *** [queue/rio.o] Error 1
Ns make failed!
See http://www.isi.edu/nsnam/ns/ns-problems.html for problems
Solution:
Do the following changes in queue/rio.cc at line 565 onwards,
- if (((p = strstr(v->name(), "ave")) == NULL) &&
- ((p = strstr(v->name(), "in_ave")) == NULL) &&
- ((p = strstr(v->name(), "out_ave")) == NULL) &&
- ((p = strstr(v->name(), "prob")) == NULL) &&
- ((p = strstr(v->name(), "in_prob")) == NULL) &&
- ((p = strstr(v->name(), "out_prob")) == NULL) &&
- ((p = strstr(v->name(), "curq")) == NULL)) {
+ if (((p = const_cast<char*>(strstr(v->name(), "ave"))) == NULL) &&
+ ((p = const_cast<char*>(strstr(v->name(), "in_ave"))) == NULL) &&
+ ((p = const_cast<char*>(strstr(v->name(), "out_ave"))) == NULL) &&
+ ((p = const_cast<char*>(strstr(v->name(), "prob"))) == NULL) &&
+ ((p = const_cast<char*>(strstr(v->name(), "in_prob"))) == NULL) &&
+ ((p = const_cast<char*>(strstr(v->name(), "out_prob"))) == NULL) &&
+ ((p = const_cast<char*>(strstr(v->name(), "curq"))) == NULL)) {
11.
tcp/tcp-sack-rh.cc: At global scope:
tcp/tcp-sack-rh.cc:68:15: error: extra qualification ‘SackRHTcpAgent::’ on member ‘newack’ [-fpermissive]
make: *** [tcp/tcp-sack-rh.o] Error 1
Ns make failed!
See http://www.isi.edu/nsnam/ns/ns-problems.html for problems
Solution:
In tcp/tcp-sack-rh.cc at line 68,
- virtual void SackRHTcpAgent::newack(Packet* pkt);
+ virtual void newack(Packet* pkt);
12.
queue/pi.cc: In member function ‘virtual void PIQueue::trace(TracedVar*)’:
queue/pi.cc:316:36: error: invalid conversion from ‘const char*’ to ‘char*’ [-fpermissive]
queue/pi.cc:317:36: error: invalid conversion from ‘const char*’ to ‘char*’ [-fpermissive]
make: *** [queue/pi.o] Error 1
Ns make failed!
See http://www.isi.edu/nsnam/ns/ns-problems.html for problems
Solution:
In queue/pi.cc at line 316, do the following changes,
- if (((p = strstr(v->name(), "prob")) == NULL) &&
- ((p = strstr(v->name(), "curq")) == NULL)) {
+ if (((p = const_cast<char*>(strstr(v->name(), "prob"))) == NULL) &&
+ ((p = const_cast<char*>(strstr(v->name(), "curq"))) == NULL)) {
13.
queue/vq.cc: In member function ‘virtual void Vq::trace(TracedVar*)’:
queue/vq.cc:333:35: error: invalid conversion from ‘const char*’ to ‘char*’ [-fpermissive]
make: *** [queue/vq.o] Error 1
Ns make failed!
See http://www.isi.edu/nsnam/ns/ns-problems.html for problems
Solution:
In file queue/vq.cc at line 333,
- if ((p = strstr(v->name(), "curq")) == NULL) {
+ if ((p = const_cast<char*>(strstr(v->name(), "curq"))) == NULL) {
14.
queue/rem.cc: In member function ‘virtual void REMQueue::trace(TracedVar*)’:
queue/rem.cc:335:35: error: invalid conversion from ‘const char*’ to ‘char*’ [-fpermissive]
queue/rem.cc:336:36: error: invalid conversion from ‘const char*’ to ‘char*’ [-fpermissive]
queue/rem.cc:337:36: error: invalid conversion from ‘const char*’ to ‘char*’ [-fpermissive]
make: *** [queue/rem.o] Error 1
Ns make failed!
See http://www.isi.edu/nsnam/ns/ns-problems.html for problems
Solution:
In file queue/rem.cc at line 335,
- if (((p = strstr(v->name(), "ave")) == NULL) &&
- ((p = strstr(v->name(), "prob")) == NULL) &&
- ((p = strstr(v->name(), "curq")) == NULL)) {
+ if (((p =const_cast<char*>(strstr(v->name(), "ave"))) == NULL) &&
+ ((p = const_cast<char*>(strstr(v->name(), "prob"))) == NULL) &&
+ ((p = const_cast<char*>(strstr(v->name(), "curq"))) == NULL)) {
15.
queue/gk.cc: In member function ‘virtual void GK::trace(TracedVar*)’:
queue/gk.cc:207:35: error: invalid conversion from ‘const char*’ to ‘char*’ [-fpermissive]
make: *** [queue/gk.o] Error 1
Ns make failed!
See http://www.isi.edu/nsnam/ns/ns-problems.html for problems
Solution:
In file queue/gk.cc at line 207,
- if ((p = strstr(v->name(), "curq")) == NULL) {
+ if ((p = const_cast<char*>(strstr(v->name(), "curq"))) == NULL) {
16.
pgm/pgm-agent.cc: At global scope:
pgm/pgm-agent.cc:307:8: error: extra qualification ‘PgmAgent::’ on member ‘trace_event’ [-fpermissive]
pgm/pgm-agent.cc: In member function ‘void PgmAgent::handle_rdata(Packet*)’:
pgm/pgm-agent.cc:607:30: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
pgm/pgm-agent.cc: In member function ‘void PgmAgent::handle_nak(Packet*)’:
pgm/pgm-agent.cc:756:43: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
pgm/pgm-agent.cc: In member function ‘void PgmAgent::handle_ncf(Packet*)’:
pgm/pgm-agent.cc:853:28: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
make: *** [pgm/pgm-agent.o] Error 1
Ns make failed!
See http://www.isi.edu/nsnam/ns/ns-problems.html for problem
Solution
In pgm/pgm-agent.cc at line 307,
- void PgmAgent::trace_event(char *evType, double evTime);
+ void trace_event(char *evType, double evTime);
17.
pgm/pgm-sender.cc: At global scope:
pgm/pgm-sender.cc:189:8: error: extra qualification ‘PgmSender::’ on member ‘trace_event’ [-fpermissive]
pgm/pgm-sender.cc: In member function ‘virtual void PgmSender::handle_nak(Packet*)’:
pgm/pgm-sender.cc:501:67: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
pgm/pgm-sender.cc: In member function ‘virtual void PgmSender::send_rdata(RdataItem*)’:
pgm/pgm-sender.cc:645:51: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
make: *** [pgm/pgm-sender.o] Error 1
Ns make failed!
See http://www.isi.edu/nsnam/ns/ns-problems.html for problems
Solution
In pgm/pgm-sender.cc at line 189,
- void PgmSender::trace_event(char *evType, nsaddr_t daddr, double evTime);
+ void trace_event(char *evType, nsaddr_t daddr, double evTime);
18.
pgm/pgm-receiver.cc: At global scope:
pgm/pgm-receiver.cc:186:8: error: extra qualification ‘PgmReceiver::’ on member ‘trace_event’ [-fpermissive]
pgm/pgm-receiver.cc: In member function ‘void PgmReceiver::generate_Nak(int)’:
pgm/pgm-receiver.cc:617:34: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
make: *** [pgm/pgm-receiver.o] Error 1
Ns make failed!
See http://www.isi.edu/nsnam/ns/ns-problems.html for problems
Solution
In pgm/pgm-sender.cc at line 186,
- void PgmReceiver::trace_event(char *evType, double evTime);
+ void trace_event(char *evType, double evTime);
Thank you Very much, you saved my day..
ReplyDeleteHi,
DeleteCan you please tell me weather you found (void PgmReceiver::trace_event(char *evType, double evTime);) in pgm/pgm-sender.cc regarding problem 18?
Network Simulator - 2: Ns-2.29 Installation In Ubuntu 12.04 >>>>> Download Now
Delete>>>>> Download Full
Network Simulator - 2: Ns-2.29 Installation In Ubuntu 12.04 >>>>> Download LINK
>>>>> Download Now
Network Simulator - 2: Ns-2.29 Installation In Ubuntu 12.04 >>>>> Download Full
>>>>> Download LINK PH
Thanks a lot bro. But I did the modification in problem 2 and still I am getting the same error message.
ReplyDeleteCan you help?
Hi,
ReplyDeletePlease give me the error details, let me check for the same.
Hi
ReplyDeleteI am still getting the same following message :
(mainly I did not understand what do you mean by
- SHLIB_LD="ld -shared"
+SHLIB_LD="gcc -shared"
)
In my file the variable looks like this
SHLIB_LD="cc -G"
Please help I have changed SHLIB_LD but still same problem.
Thanking you.
Sorry this is the message that I am getting:
ReplyDelete__stack_chk_fail_local'
otcl.o: In function `Otcl_Init':
/home/abdulsalam/ns-allinone-2.29/otcl-1.11/otcl.c:2284: undefined reference to `__stack_chk_fail_local'
ld: libotcl.so: hidden symbol `__stack_chk_fail_local' isn't defined
ld: final link failed: Bad value
make: *** [libotcl.so] Error 1
otcl-1.11 make failed! Exiting ...
See http://www.isi.edu/nsnam/ns/ns-problems.html for problems
I overcame problem 2.
ReplyDeleteWill let you know about others.
Thanks and regards.
Hi,
ReplyDeleteEvery thing went fine till problem 17.
However, in problem 18, in my file(In pgm/pgm-sender.cc,) there is no
void PgmReceiver::trace_event(char *evType, double evTime);
at all. So if you dont mind sending me the entire procedure to see if I can past it in the file as it is the only remaining thing to complete my installation.
Thanking your help in advance.
Every thing is fine.
ReplyDeleteActually the last error is in pgm/pgm-receiver.cc at line 186,
not in pgm/pgm-sender.cc at line 186,
Regards.
Hi,
DeleteIn the same file search for
void PgmSender::trace_event(char *evType, nsaddr_t daddr, double evTime);
change accordingly.
Hi bro
ReplyDeleteAfter doing all your steps, got NS installed but MAN is not . And I got the following message
parser.h:97:15: error: extra qualification ‘ParseTable::’ on member ‘nam4wpan’ [-fpermissive]
parser.h:98:14: error: extra qualification ‘ParseTable::’ on member ‘wpan_bradius’ [-fpermissive]
In file included from netview.cc:51:0:
node.h:226:9: error: extra qualification ‘Node::’ on member ‘getTclScriptLabel’ [-fpermissive]
node.h: In member function ‘virtual char* BoxNode::style()’:
node.h:280:24: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
node.h: In member function ‘virtual char* CircleNode::style()’:
node.h:291:24: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
node.h: In member function ‘virtual char* HexagonNode::style()’:
node.h:302:24: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
node.h: In member function ‘virtual char* VirtualNode::style()’:
node.h:318:24: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
make: *** [netview.o] Error 1
Nam make failed! Continue ...
See http://www.isi.edu/nsnam/ns-problems.html for problems
ln: failed to create symbolic link `ns': File exists
Please compile your nam separately.
Please compile your xgraph separately.
Please compile your gt-itm & sgb2ns separately.
Ns-allinone package has been installed successfully.
Here are the installation places:
tcl8.4.11: /home/abdulsalam/ns-allinone-2.29/{bin,include,lib}
tk8.4.11: /home/abdulsalam/ns-allinone-2.29/{bin,include,lib}
otcl: /home/abdulsalam/ns-allinone-2.29/otcl-1.11
tclcl: /home/abdulsalam/ns-allinone-2.29/tclcl-1.17
ns: /home/abdulsalam/ns-allinone-2.29/ns-2.29/ns
Please help.
Hi,
DeleteOpen the parser.h file, go to line 97 and remove the "ParseTable::"
before nam4wpan.
what about node.h error ?
Deletethanks
In line no 229 remove node::
Delete@Ramakrishna M Please i need your help ..
Deletei've faced the same NAM problem,,so i went to the nam directory to modify node.h&parser.h files
after that i wrote make & make install commands ..but i got the following error:
/usr/bin/install -c -m 555 -o bin -g bin nam /usr/local/bin
/usr/bin/install: invalid user `bin'
make: *** [install] Error 1
what is the solution ?
thanks in advance for your help :)
Regards,
how to add routing table.. where to add parameters of it... can u give me idea abt it..
ReplyDeleteHi,
DeleteYou can refer Introduction to Network Simulator -2 by springer for theoretical aspects of implementation. As an example you can refer to AODV_rtable.h and .cc file in AODV folder.
Hi. During ./install, m getting the error ./configure: Permission denied
ReplyDeleteotcl-1.11 configuration failed! Exiting ...
on typing find. -name configure , m getting this:
./zlib-1.2.3/configure
./tclcl-1.17/configure
./xgraph-12.1/configure
./tcl8.4.11/tools/configure
./tcl8.4.11/unix/configure
./tcl8.4.11/win/configure
./nam-1.11/configure
./ns-2.29-original/configure
./otcl-1.11/configure
./ns-2.29/configure
./tk8.4.11/unix/configure
./tk8.4.11/win/configure
can u please tell me what should i do next?
Hi,
ReplyDeleteI am trying to install ns-allinone-2.29 on my laptop. My groupmates have been able to successfully install it on their work stations using the steps you mentioned in your tutorial. I have run all the necessary commands and made the changes as you mentioned but getting the error when setup is trying to install otcl-1.11
Error:
tk8.4.11 installation succeeded.
============================================================
* Build OTcl-1.11
============================================================
./install: 473: ./install: ./configure: Permission denied
otcl-1.11 configuration failed! Exiting ...
Please check http://www.isi.edu/nsnam/ns/ns-problems.html
for common problems and bug fixes.
hello sir, i cant find these command below..can u show how to find it..ur help are very appreciated.
ReplyDeleteGo to the ns-allinone folder and type
find . -name configure
A list of the configure scripts should appear.
For each of these replace any line that looks like this:
system=MP-RAS-`awk ‘{print }’ /etc/.relid’`
HI,
DeleteError1:
checking system version (for dynamic loading)... ./configure: 1: Syntax error: Unterminated quoted string
tcl8.3.2 configuration failed! Exiting ...
patch file: ns-allinone-2.27/tcl8.4.5/unix/configure
- system=MP-RAS-`awk '{print }' /etc/.relid'`
+ system=MP-RAS-`awk '{print }' /etc/.relid`
Error2:
checking system version (for dynamic loading)... ./configure: 1: Syntax error: Unterminated quoted string
tk8.3.2 configuration failed! Exiting ...
patch file: ns-allinone-2.27/tk8.4.5/unix/configure
- system=MP-RAS-`awk '{print }' /etc/.relid'`
+ system=MP-RAS-`awk '{print }' /etc/.relid`
Error3:
checking system version (for dynamic loading)... ./configure: 1: Syntax error: Unterminated quoted string
otcl-1.8 configuration failed! Exiting ...
patch file: ns-allinone-2.27/otcl-1.8/configure
- system=MP-RAS-`awk '{print $3}' /etc/.relid'`
+ system=MP-RAS-`awk '{print $3}' /etc/.relid`
Thank you sir. but it is applicable for ns-allinone-2.29?
Deleteand my second question: do ns-allinone-2.29 is compatible for Ubuntu 12.10?
Ur help is highly appreciated and thanks again for the early explanation.
HI,
DeleteYou can apply it for ns-2.29 too.
Hi sir..sorry to interrupt. i got this error which does not existed in ur list:
ReplyDeletemac/mac-802_11.cc:3399:10: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
mac/mac-802_11.cc:3401:10: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
mac/mac-802_11.cc:3403:10: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
mac/mac-802_11.cc:3405:10: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
mac/mac-802_11.cc: In member function ‘void Mac802_11::update_throughput(ThroughputWatch*, double)’:
mac/mac-802_11.cc:3442:10: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
mac/mac-802_11.cc:3444:10: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
mac/mac-802_11.cc:3446:10: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
mac/mac-802_11.cc:3448:10: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
make: *** [mac/mac-802_11.o] Error 1
Ns make failed!
can u help. ASAP
HI,
DeleteThese are warnings can you send the error messages.
hi sir, This the error. :
DeleteIn file included from mac/mac-802_11.h:49:0,
from mac/mac-802_11.cc:63:
mac/mac-stats.h: In member function ‘virtual threshold_action_t StatWatch::update(double)’:
mac/mac-stats.h:102:58: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
mac/mac-stats.h:103:58: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
mac/mac-stats.h:128:58: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
mac/mac-stats.h:129:58: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
mac/mac-stats.h: In member function ‘threshold_action_t ThroughputWatch::update(double, double)’:
mac/mac-stats.h:214:59: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
mac/mac-stats.h:215:59: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
mac/mac-stats.h:240:59: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
mac/mac-stats.h:241:59: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
In file included from mac/mac-802_11.cc:63:0:
mac/mac-802_11.h: At global scope:
mac/mac-802_11.h:620:9: error: extra qualification ‘Mac802_11::’ on member ‘calFreq’ [-fpermissive]
mac/mac-802_11.cc: In member function ‘void Mac802_11::update_watch(StatWatch*, double)’:
mac/mac-802_11.cc:3399:10: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
mac/mac-802_11.cc:3401:10: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
mac/mac-802_11.cc:3403:10: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
mac/mac-802_11.cc:3405:10: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
mac/mac-802_11.cc: In member function ‘void Mac802_11::update_throughput(ThroughputWatch*, double)’:
mac/mac-802_11.cc:3442:10: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
mac/mac-802_11.cc:3444:10: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
mac/mac-802_11.cc:3446:10: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
mac/mac-802_11.cc:3448:10: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
make: *** [mac/mac-802_11.o] Error 1
Ns make failed!
Hi sir , I have the same errors could any one help me thank you
Deletemac/mac-802_11.h:620:9: error: extra qualification ‘Mac802_11::’ on member ‘calFreq’
Deleteto find Mac802_11::calFreq, and dele Mac802_11::
Hi sir, can you help me I have the same problem, which method to solve this pb, thank you
Deletemake: *** [mac/mac-802_11.o] Erreur 1
Ns make failed!
Hi,
DeletePlease try below solution:
mac/mac-802_11.h at line no. 620
remove Mac802_11::
and compile again.
HI sir, i got this error. why it happened? can u help me?
ReplyDelete* Build tcl8.4.11
============================================================
loading cache ./config.cache
checking whether to use symlinks for manpages... no
checking whether to compress the manpages... no
checking whether to add a package name suffix for the manpages... no
checking for gcc... 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... yes
checking whether gcc accepts -g... yes
checking for building with threads... no (default)
checking if the compiler understands -pipe... yes
checking how to run the C preprocessor... gcc -pipe -E
checking for sin... no
checking for main in -lieee... yes
checking for main in -linet... no
checking for net/errno.h... no
checking for connect... yes
checking for gethostbyname... yes
checking how to build libraries... static
checking for ranlib... ranlib
checking if 64bit support is requested... no
checking if 64bit Sparc VIS support is requested... no
checking system version (for dynamic loading)... Linux-3.5.0-23-generic
checking for dlopen in -ldl... yes
checking for ar... ar
checking for build with symbols... no
checking for required early compiler flags... _LARGEFILE64_SOURCE
checking for 64-bit integer type... long long
checking for struct dirent64... no
checking for struct stat64... yes
checking for open64... yes
checking for lseek64... yes
checking for off64_t... yes
checking whether byte ordering is bigendian... no
checking for getcwd... yes
checking for opendir... yes
checking for strstr... yes
checking for strtol... yes
checking for strtoll... yes
checking for strtoull... yes
checking for tmpnam... yes
checking for waitpid... yes
checking for strerror... yes
checking for getwd... yes
checking for wait3... yes
checking for uname... yes
checking for realpath... yes
checking dirent.h... no
checking for errno.h... yes
checking for float.h... yes
checking for values.h... yes
checking for limits.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for sys/wait.h... yes
checking for dlfcn.h... yes
checking for unistd.h... yes
checking for sys/param.h... yes
checking for sys/modem.h... no
checking termios vs. termio vs. sgtty... termios
checking for fd_set in sys/types... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for sys/time.h... yes
checking whether time.h and sys/time.h may both be included... yes
checking for tm_zone in struct tm... yes
checking for gmtime_r... yes
checking for localtime_r... yes
checking tm_tzadj in struct tm... no
checking tm_gmtoff in struct tm... yes
checking long timezone variable... yes
checking for st_blksize in struct stat... yes
checking for fstatfs... yes
checking for 8-bit clean memcmp... yes
checking for memmove... yes
checking proper strstr implementation... yes
checking for strtoul... yes
checking for strtod... yes
checking for strtod... (cached) yes
checking for Solaris2.4/Tru64 strtod bugs... ok
checking for ANSI C header files... yes
checking for mode_t... yes
checking for pid_t... yes
checking for size_t... yes
checking for uid_t in sys/types.h... yes
checking for socklen_t... yes
checking for opendir... (cached) yes
checking union wait... yes
checking for strncasecmp... yes
checking for BSDgettimeofday... no
checking for gettimeofday... yes
checking for gettimeofday declaration... present
checking whether char is unsigned... no
checking signed char declarations... yes
checking for a putenv() that copies the buffer... no
checking for langinfo.h... yes
checking whether to use nl_langinfo... yes
checking for sys/ioctl.h... yes
checking for sys/filio.h... no
checking FIONBIO vs. O_NONBLOCK for nonblocking I/O... ./configure: 1: ./configure: Syntax error: Unterminated quoted string
tcl8.3.2 configuration failed! Exiting ...
Hi,
DeletePlease follow the solution given in no.1.
Hello sir, can i apply patch for PMIPv6 after installing ns-2.29? and another question is I've already remove the extra qualification as u had suggested in previous email. But the new problem is occurred as i followed the patch from this site: http://commani.net/pmip6ns/download.html
ReplyDeleteIn file included from mac/wireless-phy.cc:61:0:
./interference/interference.h: At global scope:
./interference/interference.h:120:107: error: redefinition of ‘double pktRx_start’
./interference/interference.h:120:71: error: ‘double pktRx_start’ previously declared here
mac/wireless-phy.cc: In member function ‘virtual int WirelessPhy::sendUp(Packet*)’:
mac/wireless-phy.cc:477:117: error: no matching function for call to ‘Interference::interference(MobileNode*, Packet*&, double, Packet*&, double)’
mac/wireless-phy.cc:477:117: note: candidate is:
./interference/interference.h:120:14: note: static int Interference::interference(MobileNode*, Packet*, double, Packet*)
./interference/interference.h:120:14: note: candidate expects 4 arguments, 5 provided
make: *** [mac/wireless-phy.o] Error 1
Ns make failed!
Please help me sir. I dont know what to do and hope u reply as soon as possible.
Sorry for any inconvenience cause.
Thank you.
Hi,
DeleteI didn't get any solution. You better to use error messages for solving.
HI
Deletehow to use error messages for solving? i dont quite understand that.
Thanks in advance
interference.h line120
Deletereplace to:
static int interference(MobileNode *receiver, Packet *pktRx, double pktRx_start, Packet *pktInt, double pktInt_start);
To Anonymous April 17, 2013 at 4.03 AM
Deletedo u know how to use commani patch in ns-2.29? can u email me at this address : 0832107@gmail.com
ur help is highly appreciated!
HI,
Deletewhat is the meaning of commani patch in ns-2.29?
HI sir, its like this..
Deletemy project is concerning about Proxy MIPv6 protocol and my research ended up with this patch which I got at this link :
http://commani.net/pmip6ns/download.html
In this page, it provides patch for PMIPv6 in ns-2.29. but i've already try to install for months. but still faced errors in installation. so sir, do u know the solution for it? or do u know any ns-2 version or patch that can be used to simulate PMIPv6..
Ur help is very crucial. Thanks in advance
Hi,
DeleteYou use ns-2.29 and patch it. Then it should work.
HI sir,
DeleteI've already tried it..Still got errors which I mentioned before.
Hi
ReplyDeletei install clustering patch on ns2-2.29
an this error will accure
how to troubleshout this error?
make: ***[clustering/rajaraman/rajaraman.o] error 1
na make faild
my mail is bejarzahi@gmail.com
tanks
Hi,
DeletePlease check the path of .cc file and update the same in makefile.in.
hi sir.. why i cant execute nam?
ReplyDeletei got this error..i've already modify the bashrc file
% nam
nam:
[code omitted because of length]
: no event type or button # or keysym
while executing
"bind Listbox {
%W yview scroll [expr {- (%D / 120) * 4}] units
}"
invoked from within
"if {[string equal [tk windowingsystem] "classic"]
|| [string equal [tk windowingsystem] "aqua"]} {
bind Listbox {
%W yview scroll [expr {..."
child process exited abnormally
Thank u in advance
Hi,
DeleteCompile the nam separately.
Even after following the fix u gave, i am getting the error message saying
ReplyDeletemake: *** [Tcl.o] Error 1
tclcl-1.17 make failed! Exiting ...
See http://www.isi.edu/nsnam/ns/ns-problems.html for problems
I am using version 2.29. Please help.
Hi,
DeleteGive more details about the error.
Hello Sir,
ReplyDeletePlease tell how can i get the id of an intermediate node who has generated RREP in AODV in ns 2.34. rp_src has address of source node and rp_dst of destination node copied from RREQ. Which field of RREP is used?? I want id prior to making its entry in routing table.
Hi,
DeleteWhat ids you want?
Sir node id or index of a node that generated route reply message so that later on I can check if any data packet has originated by this node.
ReplyDeleteBasically ns_addr_t is needed for a node generating RREP message.
DeleteHi,
DeleteNode index gives ID only.
hi sir, after validate i have error like this
ReplyDeletevalidate overall report: some tests failed: ./test-all-newreno ./test-all-tcpOptions ./test-all-tcpVariants ./test-all-aimd ./test-all-frto ./test-all-quickstart ./test-all-manual-routing ./test-all-session ./test-all-red ./test-all-links
some forums, said those fine. but when i try to type ns
the output is ns: command not found
the % symbol just show up after i type ./ns
and nam still error.
please i really looking forward your answer.
sincerely arief
Hi,
DeleteCompile the NAM separately.
Hello sir,
ReplyDeleteI am trying to mpolsr enabled ns2.29 but getting following error
tclcl-1.17 has been installed successfully.
============================================================
* Build ns-2.29
============================================================
./install: line 527: ./configure: Permission denied
Ns configuration failed! Exiting ...
Please check http://www.isi.edu/nsnam/ns/ns-problems.html
for common problems and bug fixes.
Hi,
DeleteCheck the permission of configure file in ns-2.29. Give all permission to that.
Hello Sir,
ReplyDeleteI am trying to install eurane patch in ns-2.30. I have added the patch and now getting error in executing make install. I am getting the following error:
make install
for d in /usr/local/man/man1; do \
if [ ! -d $d ]; then \
mkdir -p $d ;\
fi;\
done
/usr/bin/install -c -m 755 ns /usr/local/bin
/usr/bin/install: cannot stat `ns': No such file or directory
make: *** [install-ns] Error 1
Could you please help me in solving this error? I am using ubuntu 10.04 version.
Thanks
Hi,
DeleteUse sudo make install.
Dear Ramakrishna ,
ReplyDeletei have got following error while installing ns2 2.27 in ubtunu 12.04. please help me
* Build tcl8.4.5
============================================================
loading cache ./config.cache
checking whether to use symlinks for manpages... no
checking compression for manpages... no
checking for gcc... 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... yes
checking whether gcc accepts -g... yes
checking how to run the C preprocessor... gcc -E
checking for unistd.h... yes
checking for limits.h... yes
checking for building with threads... no (default)
checking if the compiler understands -pipe... yes
checking for required early compiler flags... _LARGEFILE64_SOURCE
checking for 64-bit integer type... using long
checking whether byte ordering is bigendian... no
checking for getcwd... yes
checking for opendir... yes
checking for strstr... yes
checking for strtol... yes
checking for strtoll... yes
checking for strtoull... yes
checking for tmpnam... yes
checking for waitpid... yes
checking for strerror... yes
checking for getwd... yes
checking for wait3... yes
checking for uname... yes
checking for realpath... yes
checking dirent.h... yes
checking for errno.h... yes
checking for float.h... yes
checking for values.h... yes
checking for limits.h... (cached) yes
checking for stdlib.h... yes
checking for string.h... yes
checking for sys/wait.h... yes
checking for dlfcn.h... yes
checking for unistd.h... (cached) yes
checking for sys/param.h... yes
checking for sys/modem.h... no
checking termios vs. termio vs. sgtty... termios
checking for fd_set in sys/types... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for sys/time.h... yes
checking whether time.h and sys/time.h may both be included... yes
checking for tm_zone in struct tm... yes
checking for gmtime_r... yes
checking for localtime_r... yes
checking tm_tzadj in struct tm... no
checking tm_gmtoff in struct tm... yes
checking long timezone variable... yes
checking for st_blksize in struct stat... yes
checking for fstatfs... yes
checking for 8-bit clean memcmp... yes
checking for memmove... yes
checking proper strstr implementation... yes
checking for strtoul... yes
checking for strtod... yes
checking for strtod... (cached) yes
checking for Solaris2.4/Tru64 strtod bugs... ok
checking for ANSI C header files... yes
checking for mode_t... yes
checking for pid_t... yes
checking for size_t... yes
checking for uid_t in sys/types.h... yes
checking for socklen_t... yes
checking for opendir... (cached) yes
checking union wait... yes
checking for strncasecmp... yes
checking for BSDgettimeofday... no
checking for gettimeofday... yes
checking for gettimeofday declaration... present
checking whether char is unsigned... no
checking signed char declarations... yes
checking for a putenv() that copies the buffer... no
checking for langinfo.h... yes
checking whether to use nl_langinfo... yes
checking for sin... no
checking for main in -lieee... yes
checking for main in -linet... no
checking for net/errno.h... no
checking for connect... yes
checking for gethostbyname... yes
checking how to build libraries... static
checking for ranlib... ranlib
checking if 64bit support is requested... no
checking if 64bit Sparc VIS support is requested... no
checking system version (for dynamic loading)... ./configure: 3: ./configure: Syntax error: Unterminated quoted string
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 platform.
Hi,
DeleteThe error is due to syntax of quote in configure file. Please check the permissions given to the file also.
Dear Ramakrishna,
DeleteI am unable grab your answer.Particular which configure file ,i have to correction.Please tell me detail.Hoping positive result
Network Simulator - 2: Ns-2.29 Installation In Ubuntu 12.04 >>>>> Download Now
ReplyDelete>>>>> Download Full
Network Simulator - 2: Ns-2.29 Installation In Ubuntu 12.04 >>>>> Download LINK
>>>>> Download Now
Network Simulator - 2: Ns-2.29 Installation In Ubuntu 12.04 >>>>> Download Full
>>>>> Download LINK SS