LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Installing ns 2.34 (https://www.linuxquestions.org/questions/linux-newbie-8/installing-ns-2-34-a-4175454534/)

Lambor 03-18-2013 10:47 AM

Installing ns 2.34
 
While installing ns 2.34 in Ubuntu 12.04, I get the following error. I have made the necessary changes in cmu-trace.cc, however the error is not resolved.

Need help.

mit/rca/rcagent.cc: In constructor ‘RCAgent::RCAgent()’:
mit/rca/rcagent.cc:34: error: ‘PT_RCA’ was not declared in this scope
mit/rca/rcagent.cc: In member function ‘void RCAgent::sendmsg(int, const char*, int, int, double, int)’:
mit/rca/rcagent.cc:137: error: ‘hdr_rca’ was not declared in this scope
mit/rca/rcagent.cc:137: error: ‘rca_hdr’ was not declared in this scope
mit/rca/rcagent.cc:137: error: ‘HDR_RCA’ was not declared in this scope
mit/rca/rcagent.cc: In member function ‘virtual void RCAgent::recv(Packet*, Handler*)’:
mit/rca/rcagent.cc:163: error: ‘hdr_rca’ was not declared in this scope
mit/rca/rcagent.cc:163: error: ‘rca_hdr’ was not declared in this scope
mit/rca/rcagent.cc:163: error: ‘HDR_RCA’ was not declared in this scope
make: *** [mit/rca/rcagent.o] Error 1
Ns make failed!

knudfl 03-18-2013 12:16 PM

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/.

-


All times are GMT -5. The time now is 03:33 PM.