ns2出错解决

Ubuntu 10.04 下 安装 NS2.30 

 安装 出错处理 

1). 

ld -shared -olibotcl.so otcl.o 

otcl.o: Infunction `OTclDispatch': 

/home/yanna/ns-allinone-2.30/otcl-1.12/otcl.c:495:undefined reference to `__stack_chk_fail_local' 

otcl.o: Infunction `Otcl_Init': 

/home/yanna/ns-allinone-2.30/otcl-1.12/otcl.c:2284:undefined reference to `__stack_chk_fail_local' 

ld: libotcl.so:hidden symbol `__stack_chk_fail_local' isn't defined 

ld: final linkfailed: Nonrepresentable section on output 

make: ***[libotcl.so] 错误 1cd ns-2.30;./validate 

otcl-1.12 makefailed! Exiting ... 

Seehttp://www.isi.edu/nsnam/ns/ns-problems.html for problems 

 

在官网上有解决方案,应该是个BUG,会在以后版本中解决: 

解决办法:

            修改 /ns-allinone-2.34/otcl-1.13/configure.in第77行修改 SHLIB_LD="ld-shared"改为 SHLIB_LD="gcc-shared"

          修改configure 6304行把ld改为gcc

你可能感兴趣的:(ns2出错解决)