I noticed that ns-allinone-2.34 did not build on the new Ubuntu 9.10
Karmic, due to this this error when linking:

  otcl.o: In function `OTclDispatch':
  /home/ns/ns-allinone-2.34/otcl/otcl.c:495: undefined reference to
`__stack_chk_fail_local'
  otcl.o: In function `Otcl_Init':
  /home/ns/ns-allinone-2.34/otcl/otcl.c:2284: undefined reference to
`__stack_chk_fail_local'
  ld: libotcl.so: hidden symbol `__stack_chk_fail_local' isn't defined
  ld: final link failed: Nonrepresentable section on output
  make: *** [libotcl.so] Error 1

The problem is that otcl is trying to use the ld linker instead of the
gcc linker to build a shared library.  I have read that this problem can
occur with gcc versions 4 and greater.  There is a one line fix to
otcl-1.13/configure file that is posted here:
http://nsnam.isi.edu/nsnam/index.php/User_Information#Ubuntu_Installation_Guide

This may affect other Linux distributions, but I didn't notice it until
this Ubuntu release.

Tom

Reply via email to