Hi,

Yeah, I successfully installed ns-allinone-2.29.2 on FC5 but after 
slightly modifying the whole package. First, I updated the Tcl and Tk 
sources to the 8.4.13 (you can grab a copy from sf.net). Then you'll 
have to modify the configure files (Tcl, Tk, OTcl and TclCL) in this way:

cp -v configure{,.orig}
sed "s/relid'/relid/" configure.orig > configure

Actually, bash was updated in FC5 and it doesn't accept anymore that ' 
character, which is useless IMHO. Please refer to 
http://wiki.splitbrain.org/ns2 for more information.

Once done, you'll have to fix some C++ code within the NS-2.29 source 
tree. This is mainly has to do with some class names being used within 
the class declaration itself (in .h files). Just remove those names 
which are used as prefixes for the local variables. Then you'll have 
some errors related to some forward function declarations. Just move the 
needed functions up. Each time you fix something, just redo make to get 
the new errors till you fix them all. These issues aren't really 
critical, fixing them should be really easy. Another option should be 
getting the updated NS from the CVS if you want to avoid all that hassle.

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.
> 

Reply via email to