Welcome to LQ.
Please use gcc / g++ version 4.1.2 for ns-allinone-2.34 :
Post #17 here, the "Note" ..
http://www.linuxquestions.org/questi...ml#post4913902
Probably start from scratch, with $ tar xvf ns-allinone-2.34.tar.gz,
or do a 'make clean' + delete all Makefile here :
tcl8*/unix/, tk8*/unix/, otcl*/, tclcl*/, ns-2.34/.
-