Today I was required to install ns-2 from scratch in Ubuntu 10.10.
For this purpose it is needed to download archive from official site, extract it and run ./install in it's directory.
Before that build-essentials package is required to be installed via
apt-get install build-essentials.
After build-essential is installed, you can run ./install. This script will give you the error about undefined reference to `__stack_chk_fail_local' in otcl.c. How can you fix it? Simplest way:
disable stack protection: set the CFLAGS to -fno-stack-protector
For this purpose you can modify "install" on line 497 and set
./configure CFLAGS=-fno-stack-protector || die "otcl-$OTCLVER configuration failed! Exiting ...";
instead of
./configure || die "otcl-$OTCLVER configuration failed! Exiting ...";
For this purpose it is needed to download archive from official site, extract it and run ./install in it's directory.
Before that build-essentials package is required to be installed via
apt-get install build-essentials.
After build-essential is installed, you can run ./install. This script will give you the error about undefined reference to `__stack_chk_fail_local' in otcl.c. How can you fix it? Simplest way:
disable stack protection: set the CFLAGS to -fno-stack-protector
For this purpose you can modify "install" on line 497 and set
./configure CFLAGS=-fno-stack-protector || die "otcl-$OTCLVER configuration failed! Exiting ...";
instead of
./configure || die "otcl-$OTCLVER configuration failed! Exiting ...";