Hi again, You can use this patch to address the compilation issues under FC5. This was published in a previous e-mail by Qihe Wang and Tom Henderson.
http://www.ececs.uc.edu/~cdmc/ucbt/src/ns2292-gcc410.patch This one takes care of the NS source tree. But I think you'll have to handle the Tcl/Tk compilation on you own. One more thing: don't downgrade to an older compiler. The GCC 4.x series are far better and more compliant to the C++ language specification. Regards, Ilyes Gouta. Ali Hamidian wrote: > Hi, > > I wonder if you've managed to install ns-2 (any version, but I'm > especially interested in ns-2.26 and ns-2.29) in Fedora Core 5. I tried > installing ns-allinone-2.29.2, but the installation of tcl/tk failed. > > As I understood from the emails below, one way is to use "the CVS > version", which should compile with gcc 4.0.x and 4.1.x. But what does > "the CVS version" mean? Is it the daily snapshots? And the snapshot for > all packages or only some of them (like ns-2, tcl, tk, etc.)? Are they > stable? > > Another way seem to be to downgrade to gcc 3.3. Do you know if that works? > > Kind regards > Ali Hamidian > > > Ilyes Gouta schrieb: >>/ Yeah, FC5 comes with a brand new GCC compiler (the 4.0.x series). This > />/ is the source of all the trouble. I did the same from Tcl/Tk and I was > />/ able to get it up and building. However, I got some other issues w/ > />/ OTcl/TclCl related to some shell incompatibilities (expression > />/ evaluation) and then I gave up since a release is meant to run > />/ flawlessly out of the box and it's not up to the users to fix it. I > />/ hope it gets fixed by the next pending NS 2.30 release. > />/ > /You should try the CVS version - it compiles with gcc 4.0.x and 4.1.x > without problems - at least on a Debian 3.1 system. > > > Daniel. >
