LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   error in rebuilding ns-2.33 (https://www.linuxquestions.org/questions/linux-newbie-8/error-in-rebuilding-ns-2-33-a-4175452167/)

vishalpolara 02-28-2013 10:32 PM

error in rebuilding ns-2.33
 
i am having following error while rebuild ns-2.33

i have type two command 'make clean' and 'make'

anybody help me

common/packet.h:391: error: ‘PT_LOCS’ was not declared in this scope
common/packet.h:394: error: ‘PT_HLS’ was not declared in this scope
common/packet.h:397: error: ‘PT_GPSR’ was not declared in this scope
common/packet.h:400: warning: deprecated conversion from string constant to ‘char*’
common/scheduler.cc: In member function ‘virtual int Scheduler::command(int, const char* const*)’:
common/scheduler.cc:216: warning: deprecated conversion from string constant to ‘char*’
make: *** [common/scheduler.o] Error 1

knudfl 03-01-2013 01:33 AM

Rebuilding ns-2.33/ , Ubuntu 10.04 :

Either reconfigure ( If you have a new / edited `Makefile.in` ) with :
$ export CXX=g++-4.1 && ./configure

If you are using an edited Makefile for the rebuild :
Please change Makefile line 37 to : CPP = g++-4.1


.. If you made some changes in 'packet.h' :
Could be you will have to look for errors in packet.h .

-

vishalpolara 03-01-2013 07:50 AM

i got the following error after changing in packet.h file

i had type 'make clean' and 'make'

trace/cmu-trace.cc:1278: error: invalid use of undefined type ‘struct hdr_hls’
trace/cmu-trace.cc:1151: error: forward declaration of ‘struct hdr_hls’
trace/cmu-trace.cc:1280: error: invalid use of undefined type ‘struct hdr_hls’
trace/cmu-trace.cc:1151: error: forward declaration of ‘struct hdr_hls’
trace/cmu-trace.cc:1281: error: invalid use of undefined type ‘struct hdr_hls’
trace/cmu-trace.cc:1151: error: forward declaration of ‘struct hdr_hls’
make: *** [trace/cmu-trace.o] Error 1


All times are GMT -5. The time now is 10:42 AM.