[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ns] compile problem about rtProtoLS



Dear sir:
 
I try to use your routing model rtProtoLS in ns2. But, I can't compile it. would you give me a hand?
The compile error message is following
 

gulong#: make -f /work/software/ns-allinone-2.1b5/ns-2.1b5/Makefile -f Makefile.local nsls

make[1]: Entering directory `/work/software/ns-allinone-2.1b5/ns-2.1b5/rtProtoLS_b5'

Makefile.local:17: warning: overriding commands for target `.cc.o'

/work/software/ns-allinone-2.1b5/ns-2.1b5/Makefile:79: warning: ignoring old commands for target `.cc.o'

c++ -c -DNSLS -I. -I/work/software/ns-allinone-2.1b5/ns-2.1b5 -I/work/software/ns-allinone-2.1b5/tcl8.0.4/generic -I/work/software/ns-allinone-2.1b5/otcl-1.0a4 -I/work/software/ns-allinone-2.1b5/tclcl-1.0b8 -I. -I../tclcl-1.0b8 -I../otcl-1.0a4 -I../tkbox/include -I../tclbox/include -g -Wall -DNO_TK -DTCLCL_CLASSINSTVAR -DNDEBUG -DUSE_SHM -DHAVE_LIBTCLCL1_0B8 -DHAVE_TCLCL_H -DHAVE_LIBOTCL1_0A4 -DHAVE_OTCL_H -DHAVE_LIBTK8_0 -DHAVE_TK_H -DHAVE_LIBTCL8_0 -DHAVE_TCL_H -DSTDC_HEADERS=1 -DHAVE_STRING_H=1 -DHAVE_TCL_H=1 -DHAVE_LIBTCL8_0=1 -DHAVE_TK_H=1 -DHAVE_LIBTK8_0=1 -DHAVE_OTCL_H=1 -DHAVE_LIBOTCL1_0A4=1 -DHAVE_TCLCL_H=1 -DHAVE_LIBTCLCL1_0B8=1 -DHAVE_GETRUSAGE=1 -DHAVE_SBRK=1 -DHAVE_STRTOQ=1

-DHAVE_STRTOLL=1 \

-o packet.o packet.cc

c++ -c -DNSLS -I. -I/work/software/ns-allinone-2.1b5/ns-2.1b5 -I/work/software/ns-allinone-2.1b5/tcl8.0.4/generic -I/work/software/ns-allinone-2.1b5/otcl-1.0a4 -I/work/software/ns-allinone-2.1b5/tclcl-1.0b8 -I. -I../tclcl-1.0b8 -I../otcl-1.0a4 -I../tkbox/include -I../tclbox/include -g -Wall -DNO_TK -DTCLCL_CLASSINSTVAR -DNDEBUG -DUSE_SHM -DHAVE_LIBTCLCL1_0B8 -DHAVE_TCLCL_H -DHAVE_LIBOTCL1_0A4 -DHAVE_OTCL_H -DHAVE_LIBTK8_0 -DHAVE_TK_H -DHAVE_LIBTCL8_0 -DHAVE_TCL_H -DSTDC_HEADERS=1 -DHAVE_STRING_H=1 -DHAVE_TCL_H=1 -DHAVE_LIBTCL8_0=1 -DHAVE_TK_H=1 -DHAVE_LIBTK8_0=1 -DHAVE_OTCL_H=1 -DHAVE_LIBOTCL1_0A4=1 -DHAVE_TCLCL_H=1 -DHAVE_LIBTCLCL1_0B8=1 -DHAVE_GETRUSAGE=1 -DHAVE_SBRK=1 -DHAVE_STRTOQ=1

-DHAVE_STRTOLL=1 \

-o trace.o trace.cc

c++ -c -DNSLS -I. -I/work/software/ns-allinone-2.1b5/ns-2.1b5 -I/work/software/ns-allinone-2.1b5/tcl8.0.4/generic -I/work/software/ns-allinone-2.1b5/otcl-1.0a4 -I/work/software/ns-allinone-2.1b5/tclcl-1.0b8 -I. -I../tclcl-1.0b8 -I../otcl-1.0a4 -I../tkbox/include -I../tclbox/include -g -Wall -DNO_TK -DTCLCL_CLASSINSTVAR -DNDEBUG -DUSE_SHM -DHAVE_LIBTCLCL1_0B8 -DHAVE_TCLCL_H -DHAVE_LIBOTCL1_0A4 -DHAVE_OTCL_H -DHAVE_LIBTK8_0 -DHAVE_TK_H -DHAVE_LIBTCL8_0 -DHAVE_TCL_H -DSTDC_HEADERS=1 -DHAVE_STRING_H=1 -DHAVE_TCL_H=1 -DHAVE_LIBTCL8_0=1 -DHAVE_TK_H=1 -DHAV

-o rtProtoLS.o rtProtoLS.cc

ls.h: In method `LsList<int>::LsList<ls_node_id_t>()':

ls.h:302: instantiated from here

In file included from rtProtoLS.h:12,

from rtProtoLS.cc:6:

ls.h:95: Internal compiler error.

ls.h:95: Please submit a full bug report to `[email protected]'.

ls.h:95: See <URL:http://egcs.cygnus.com/faq.html#bugreport> for details.

make[1]: *** [rtProtoLS.o] Error 1

make[1]: Leaving directory `/work/software/ns-allinone-2.1b5/ns-2.1b5/rtProtoLS_b5'

make: *** [all] Error 2

I tried to compile it in ns-2.1b4, ns-2.1b5. I use corel linux, my gcc version is 2.7.3.2. I also found STL include files in /usr/include/g++-2/.

thank you in advance

Yan Qiang 

****************************************************************
   YAN Qiang                  
   University of Gent, Belgium
   SINT-PIETERSNIUWSTRAAT 41  
   9000 Gent, Belgium         
   TEL. +32 9 2673591      FAX. +32 9 2673599         
   E-MAIL.                       [email protected]
****************************************************************