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

Q: Problem compiling rtProtoLS with egcs-1.1.1



Hi,

For one of my research problems, I need to simulate a link-state routing
protocol in ns-2 (basically, I need an implementation of a simplified
version of OSPF).

So, I downloaded rtProtoLS (developed by Mingzhou Sun at RPI
http://networks.ecse.rpi.edu/~sunmin/rtProtoLS/) and tried compiling it
with egcs-1.1.1. This is what happened:

1. packet.cc and trace.cc compiled successfully.
2. While compiling rtProtoLS.cc, I got the following error(s):

----------------------------------------------------------------
c++ -c -DNSLS -I. -I/home/sahasrab/ns/ns-allinone-2.1b4a/ns-2
-I/home/sahasrab/ns/ns-allinone-2.1b4a/tcl8.0/generic
-I/home/sahasrab/ns/ns-allinone-2.1b4a/otcl -I. -I/usr/include
-I../tclcl -I../otcl -I../tkbox/include -I../tclbox/include -g -Wall
-DNO_TK -DTCLCL_CLASSINSTVAR  -DNDEBUG -DUSE_SHM -DHAVE_DBG_H
-DHAVE_LIBTCLCL1_0B7 -DHAVE_TCLCL_H -DHAVE_LIBOTCL1_0A3 -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_0A3=1
-DHAVE_TCLCL_H=1-DHAVE_LIBTCLCL1_0B7=1 -DHAVE_DBG_H=1 -DHAVE_GETRUSAGE=1
-DHAVE_SBRK=1  -o rtProtoLS.o rtProtoLS.cc
ls.h: In method `LsList<int>::LsList<ls_node_id_t>()':
ls.h:183:   instantiated from here
In file included from rtProtoLS.h:12,
                 from rtProtoLS.cc:6:
ls.h:96: Internal compiler error.
ls.h:96: Please submit a full bug report to `[email protected]'.
ls.h:96: See <URL:http://egcs.cygnus.com/faq.html#bugreport> for
details.
gmake[1]: *** [rtProtoLS.o] Error 1
gmake[1]: Leaving directory
`/home/sahasrab/ns/ns-allinone-2.1b4a/rtProtoLS_b4'
make: *** [all] Error 2
----------------------------------------------------------------

Maybe the problem is in the compiler and I will be sending a bug report
to [email protected], but if you know a quick fix or you have some
suggestions, please let me know asap. Btw, I have sent a separate
request to Mingzhou Sun (the author of rtProtoLS).

Also, if you know of some other OSPF-like module (not rtProtoLS) that
works with ns-2, please let me know.

Thanks in advance,
Laxman.