Kostantinos Katsaros <dinos.katsaros <at> gmail.com> writes: > > > Hey there, > > I'm new in ns2. I tried to install it under Ubuntu 8.04, 9.10 and Fedora 12 > (all of them running in VMware) but I always get the same error. tclcl does > not compile. > > 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 ... > > This was from the last attempt of ns2.29 under Fedora12 . same with 2.28 > > I found in NS2 webpage that there was a problem with gcc 3.4 and tclcl but > it says that it has been fixed. > > I want to install ns2.28 in order to work with 802.11e MAC possible under > linux 9.10 that I'm more used to. > > Thank you for your help, > > Marry X-Mas! >
Hi: I'm installing ns-2.30 on Ubuntu 10.04.1. I got the very same errors and will try to avoid them by casting types. Any other suggestion? I think the main problem is that ns-2.30 only works properly using g++ and gcc 4.0 and no newer versions of those. Maybe I would change to any other distro of Debian or Fedora. I had to use the Ubuntu 6 dapper repository to get installed g++ and gcc 4.0, but the graphical interface and the sound of my system crashed. Anyway, I can't use the dapper repository any more as it seems it is not supported. Any suggestion or links? Thanks a lot!!! J.Carlos