[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Please Help ~~ I can't install NS-simulator
> >
> > c++ -static -o ns -I/home/Tcl-1.0a6 -mv8 -msupersparc -D__svr4__
> > -DUSE_SHM -DNO_TK -O2 scheduler.o ns_tclsh.o object.o classifier.o
> > classifier-addr.o
> > classifier-mcast.o replicator.o packet.o connector.o agent.o cbr.o
> > misc.o
> > delay.o queue.o drop-tail.o random.o trace.o tcp.o tcp-sink.o
> > tcp-reno.o
> > tcp-newreno.o tcplib-telnet.o red.o route.o loss-monitor.o message.o
> > ivs.o scoreboard.o
> > tcp-sack1.o session-rtp.o rtp.o rtcp.o gen/version.o gen/ns_tcl.o
> > -R/home/Tcl-1.0a6 -L/home/Tcl-1.0a6 -lTcl -R/usr/local/lib
> > -L/usr/local/lib -lotcl -ltcl
> > -lsocket -lnsl -lintl
> > Undefined first referenced
> > symbol in file
> > dlclose /usr/lib/libnsl.a(netdir.o)
> > dlsym /usr/lib/libtcl.a(tclLoadDl.o)
> > dlopen /usr/lib/libtcl.a(tclLoadDl.o)
> > dlerror /usr/lib/libtcl.a(tclLoadDl.o)
> > ld: fatal: Symbol referencing errors. No output written to ns
> > --
>
> The four missing functions are all in libdl.so (you can find this out with
> "nm libdl.so"), which appears to be missing for some reason in your script.
> As a quick & dirty solution, try adding "-ldl" after "-lintl" in your
> Makefile. Seems like the configure script doesn't generate a properly
> designed Makefile in your case.
>
> -Chris.
>
I would recommend what Chris said here, but also to remove
the -static. You will have problems trying to link with -ldl
if static is turned on.
- K