Tuesday, January 12, 2010

Installing/compiling ns-2.34 on Ubuntu/Debian

I had to install the following dev's to get ns-2.34 "all-in-one" package to work:
apt-get install libx11-dev xorg-dev

Recently stumbled upon another problem compiling otcl. The error message looks like the following:
ld: libotcl.so: hidden symbol `__stack_chk_fail_local' isn't defined
Apparently this an incompatibility between ld and gcc-4.4. The quick fix will be to replace "SHLIB_LD" variable for "Linux*)" targets from "ld -shared" to "${CC} -shared".