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

[ns] Nam compile problem on RH6.2




Hi,

 While installing all-in-one-latest NS package on RedHat Linux 6.2 there
was a small problem with linking of Nam. It required __rethrow function
which does not seem to be available in libgcc.a of gcc version
egcs-2.91.66 19990314/Linux (egcs-1.1.2 release) supplied with RH6.2.
Grabbing libgcc.a version 2.95.2 and linking it (in addition to the
original libgcc.a) to nam helped. Nam seems to work fine after that.

Andrei

[root@mowet95 nam-1.0a10]# make
rm -f nam
 c++ -o nam \
        tkcompat.o tkUnixInit.o xwd.o netview.o netmodel.o edge.o packet.o
node.o main.o trace.o queue.o drop.o animation.o agent.o feature.o route.o
transform.o paint.o state.o monitor.o anetmodel.o random.o rng.o view.o
graphview.o netgraph.o tracehook.o lan.o psview.o group.o editview.o tag.o
address.o animator.o wnetmodel.o nam_stream.o enetmodel.o testview.o
parser.o trafficsource.o gen/version.o gen/nam_tcl.o
-L/usr/local/src/ns-allinone-2.1b8/tclcl-1.0b11 -ltclcl
-L/usr/local/src/ns-allinone-2.1b8/otcl-1.0a7 -lotcl
-L/usr/local/src/ns-allinone-2.1b8/lib -ltk8.3
-L/usr/local/src/ns-allinone-2.1b8/lib -ltcl8.3
-L/usr/local/src/ns-allinone-2.1b8/zlib-1.1.3 -lz -L/usr/X11R6/lib -lXext
-lX11 -lnsl -ldl -lm netview.o: In function `NetView::NetView(char const
*, NetModel *)': netview.o(.text+0xb8): undefined reference to `__rethrow'
netmodel.o: In function `NetModel::NetModel(char const *)':
netmodel.o(.text+0x327): undefined reference to `__rethrow'
netmodel.o(.text+0x346): undefined reference to `__rethrow' netmodel.o: In
function `NetModel::add_monitor(Animation *)': netmodel.o(.text+0xa2b):
undefined reference to `__rethrow' netmodel.o: In function
`NetModel::handle(TraceEvent const &, double, int)':
netmodel.o(.text+0x2693): undefined reference to `__rethrow'
netmodel.o(.text+0x26b3): more undefined references to `__rethrow' follow
collect2: ld returned 1 exit status make: *** [nam] Error 1
[root@mowet95 nam-1.0a10]#