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

[ns] Compile problem with gcc-3.1-0.14?



Dear ns-2 users

Has anybody had any luck compiling with a recent 3.1 gcc version?
I tried the patches and advices at
http://www.isi.edu/nsnam/archive/ns-users/webarch/current/msg06060.html,
which helped to compile the sources. But now it seems to fail at linking and
I get the following message:
...
simulator.o(.gnu.linkonce.d._ZTV14SimulatorClass+0x1c): undefined reference
to `TclClass::method(int, char const* const*)'
simulator.o: In function `SimulatorClass::~SimulatorClass()':
simulator.o(.gnu.linkonce.t._ZN14SimulatorClassD0Ev+0x16): undefined
reference to `TclClass::~TclClass()'
simulator.o: In function `Simulator::Simulator()':
simulator.o(.gnu.linkonce.t._ZN9SimulatorC1Ev+0xf): undefined reference to
`TclObject::TclObject()'
collect2: ld returned 1 exit status
make: *** [ns] Error 1

The command that fails is:
[root@TravelMate ns-2.1b8]# make
c++  -o ns \
        tclAppInit.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 src_rtg/classifier-sr.o
src_rtg/sragent.o src_rtg/hdr_src.o ump.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 baytcp/tcp-full-bay.o
baytcp/ftpc.o baytcp/ftps.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
fec.o delay.o snoop.o gaf/gaf.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
realaudio/realaudio.o lanRouter.o filter.o pkt-counter.o Decapsulator.o
Encapsulator.o encap.o channel.o mac.o ll.o mac-802_11.o mac-802_3.o
mac-tdma.o mip.o mip-reg.o gridkeeper.o propagation.o tworayground.o
antenna.o omni-antenna.o shadowing.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
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
diffusion/diffusion.o diffusion/diff_rate.o
diffusion/diff_prob.o diffusion/diff_sink.o diffusion/flooding.o
diffusion/omni_mcast.o diffusion/hash_table.o diffusion/routing_table.o
diffusion/iflist.o tfrc.o tfrc-sink.o energy-model.o ping.o tcp-rfc793edu.o
rio.o semantic-rio.o tcp-sack-rh.o scoreboard-rh.o plm/loss-monitor-plm.o
plm/cbr-traffic-PP.o linkstate/hdr-ls.o mpls/classifier-addr-mpls.o
mpls/ldp.o mpls/mpls-module.o rtmodule.o classifier-hier.o addr-params.o
nix/hdr_nv.o nix/classifier-nix.o nix/nixnode.o routealgo/rnode.o
routealgo/bfs.o routealgo/rbitmap.o routealgo/rlookup.o routealgo/routealgo.o
nix/nixvec.o nix/nixroute.o diffserv/dsred.o diffserv/dsEdge.o
diffserv/dsCore.o diffserv/dsPolicy.o diffserv/dsredq.o red-pd.o
pushback/rate-limit.o pushback/rate-limit-strategy.o pushback/ident-tree.o
pushback/agg-spec.o pushback/logging-data-struct.o pushback/rate-estimator.o
pushback/pushback-queue.o pushback/pushback.o parentnode.o basetrace.o
simulator.o  gen/version.o gen/ns_tcl.o gen/ptypes.o  win32.o
-L/usr/local/lib -ltclcl -L/usr/local/lib -lotcl -L/usr/lib -ltk8.3
-L/usr/lib -ltcl8.3 -L/usr/X11R6/lib -lXext -lX11 -lnsl -ldl -lm

I have a RedHat Linux 7.2 system with the latest gcc-3.1 compiler and
libraries from RawHide 1.0.
If I can not get it to run I have to switch back to the bad gcc-2.9.6 version
shipped with RedHat 7.2, which breakes many other things!

Any help would be very much appreciated!

Cheers

Marcel Ziswiler
--
------------------------------------------------------------------
Marcel Ziswiler		Phone: +41 (1) 252 43 59
Freiestrasse 11		Mobile: +41 (76) 438 38 80
CH-8032 Zurich		Email: mailto:[email protected]
Switzerland		Internet: http://www.ziswiler.com