install NS 2 on ubuntu

Leila M mech.loulou at
Wed Sep 21 09:59:34 UTC 2011

i'm trying to install Network Simulator NS2 on ubuntu 11.04. while executing
the following command:


I got the following error:

gcc -c -g -O2 -DNDEBUG -DUSE_SHM -fpic -I.
-I/home/leila/leilans/ns-allinone-2.34/include -I/include  otcl.c
ld -shared -o otcl.o
otcl.o: In function `OTclDispatch':
/home/leila/leilans/ns-allinone-2.34/otcl-1.13/otcl.c:495: undefined
reference to `__stack_chk_fail_local'
otcl.o: In function `Otcl_Init':
/home/leila/leilans/ns-allinone-2.34/otcl-1.13/otcl.c:2284: undefined
reference to `__stack_chk_fail_local'
ld: hidden symbol `__stack_chk_fail_local' isn't defined
ld: final link failed: Bad value
make: *** [] Error 1
otcl-1.13 make failed! Exiting ...
See for problems
leila at leila-HP-ProBook-4520s:~/leilans/ns-allinone-2.34$

please help me to solve this problem
thanx in advance
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the ubuntu-users mailing list