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

[ns] micromobility compiling error



Hi, I'm using ns2.1b7-micro on Redhat7.
When I want to MAKE after doing MAKE DEPEND, this error is coming up:


c++  -o ns \
 tclAppInit.o  cip-reg.o classifier-cip.o watchdog.o circular-q.o
hawaii.o random.o rng.o ranvar.o misc.o timer-handler.o scheduler.o
object.o packet.o ip.o route.o connector.o ttl.o trace.o trace-ip.o
classifier.o classifier-addr.o classifier-hash.o classifier-virtual.o
classifier-mcast.o classifier-bst.o classifier-mpath.o replicator.o
classifier-mac.o classifier-port.o app.o telnet.o tcplib-telnet.o
trafgen.o traffictrace.o pareto.o expoo.o cbr_traffic.o tbf.o resv.o
sa.o saack.o measuremod.o estimator.o adc.o ms-adc.o timewindow-est.o
acto-adc.o pointsample-est.o salink.o actp-adc.o hb-adc.o expavg-est.o
param-adc.o null-estimator.o adaptive-receiver.o vatrcvr.o consrcvr.o
agent.o message.o udp.o session-rtp.o rtp.o rtcp.o ivs.o tcp.o
tcp-sink.o tcp-reno.o tcp-newreno.o tcp-vegas.o tcp-rbp.o tcp-full.o
scoreboard.o tcp-sack1.o tcp-fack.o tcp-asym.o tcp-asym-sink.o tcp-fs.o
tcp-asym-fs.o tcp-int.o chost.o tcp-session.o nilist.o integrator.o
queue-monitor.o flowmon.o loss-monitor.o queue.o drop-tail.o
simple-intserv-sched.o red.o semantic-packetqueue.o semantic-red.o
ack-recons.o sfq.o fq.o drr.o cbq.o hackloss.o errmodel.o delay.o
snoop.o dynalink.o rtProtoDV.o net-interface.o ctrMcast.o mcast_ctrl.o
srm.o sessionhelper.o delaymodel.o srm-ssm.o srm-topo.o mftp.o
mftp_snd.o mftp_rcv.o codeword.o alloc-address.o address.o lib/int.Vec.o
lib/int.RVec.o lib/dmalloc_support.o webcache/http.o
webcache/tcp-simple.o webcache/pagepool.o webcache/inval-agent.o
webcache/tcpapp.o webcache/http-aux.o webcache/mcache.o
webcache/webtraf.o lanRouter.o filter.o pkt-counter.o Decapsulator.o
Encapsulator.o channel.o mac.o ll.o mac-802_11.o mac-802_3.o mip.o
mip-reg.o gridkeeper.o propagation.o tworayground.o sdist.o antenna.o
omni-antenna.o bi-connector.o node.o mobilenode.o arp.o god.o dem.o
topography.o modulation.o priqueue.o phy.o wired-phy.o wireless-phy.o
mac-timers.o cmu-trace.o varp.o dsdv/dsdv.o dsdv/rtable.o noah/noah.o
rtqueue.o rttable.o imep/imep.o imep/dest_queue.o imep/imep_api.o
imep/imep_rt.o imep/rxmit_queue.o imep/imep_timers.o imep/imep_util.o
imep/imep_io.o tora/tora.o tora/tora_api.o tora/tora_dest.o
tora/tora_io.o tora/tora_logs.o tora/tora_neighbor.o dsr/dsragent.o
dsr/hdr_sr.o dsr/mobicache.o dsr/path.o dsr/requesttable.o
dsr/routecache.o aodv/aodv_logs.o aodv/aodv.o ns-process.o satgeometry.o
sathandoff.o satlink.o satnode.o satposition.o satroute.o sattrace.o
rap/raplist.o rap/rap.o rap/media-app.o rap/utilities.o fsm.o tcp-abs.o
tfrc.o tfrc-sink.o energy-model.o ping.o tcp-rfc793edu.o gen/version.o
gen/ns_tcl.o gen/ptypes.o  win32.o
-L/opt/ns-allinone-2.1b7a/tclcl-1.0b10 -ltclcl
-L/opt/ns-allinone-2.1b7a/otcl-1.0a6 -lotcl -L/usr/lib -ltk8.3
-L/usr/lib -ltcl8.3 -L/usr/X11R6/lib -lXext -lX11 -ldl -lm

tcp-reno.o: In function 'virtual function thunk (delta:-8)for
RenoTcpAgent::windowd(void)':
tcp-reno.o(.gn.linkonce.t.__thunk_8_windowd__12RenoTcpAgent+0*6):undefined
refrence to 'RenoTcpAgent::windowd(void)' tcp-newreno.o: In function
'RenoTcpAgent::n1040_windowd(void)':
tcp-newreno.o(.gnu.linkonce.t.__thunk_n1040_windowd_12RenoTcpAgent+0*9):
undefined reference to 'RenoTcpAgent::windowd(void)'
tcp-asym.o:In function 'virtual function thunk (delta:-64) for
RenoTcpAgent::windowd(void)':
tcp-asym.o(.gnu.linkonce.t.__thunk_64_windowd__12RenoTcpAgent+0*6):
undefined reference to 'RenoTcpAgent::windowd(void)'
tcp-fs.o: In function 'virtual function thunk (delta:-100) for
RenoTcpAgent::windowd(void)':
tcp-fs.o(.gnu.limnkonce.t.__thunk100_windowd__12RenoTcpAgent+0*6):
undefined reference to 'RenoTcpAgent::windowd(void)'
collect2: ld returned 1 exit status
make: *** [ns] Error 1



I've checked the mailing list replies , I tried make distclean before
make but that does not help, I 've tried to understand if my problem
like the one in the
http://www.isi.edu/nsnam/ns/ns-problems.html#ns-2.1b7 , but i'm not sure
if I have the same problem as the problems are not exactly the same ,but
I understand from my Makefile.in that my compiler is gcc , Any one has
an idea for my problem?
Thanks
Mona


# I've attached the solution from the above site following:

Problem: I get linking errors when building ns or nam like

       Undefined                       first referenced
        symbol                             in file
       et_tclobject
       /space/opt/ns-allinone-2.1b6/tclcl-1.0b9/libtclcl.a(Tcl.o)
       ld: fatal: Symbol referencing errors. No output written to ns
       collect2: ld returned 1 exit status
       *** Error code 1
       make: Fatal error: Command failed for target `ns'

       (or other symbols that begin with et_*).

       Solution: Build everything with gcc, don't mix gcc/g++ and cc/ld.
(Insure that if you build any C++ code with g++ that you link with g++,
and
       that they're the same version.)

       (These very confusing errors are from gcc. "et" is part of the
run-time type checking. This code is generated at load time; gcc gets
confused
       if you mix compilers.)