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

ns-2 and nam installation on Red Hat 5.1 Linux



1)  After some wrestling, mainly with the "allinone" "install" file, each of
    Tcl, Tk, Otcl, TclCL, xgraph and ns "has been installed successfully!"
    - or so the screen log declared when running "install"...
    
2)  However, subsequently running "validate" in the ns-2 directory resulted in
    ~~~~~~~
validate overall report: some tests failed:
     ./test-all-simple ./test-all-tcp ./test-all-full ./test-all-red 
./test-all-sack ./test-all-schedule ./test-all-cbq ./test-all-red-v1 
./test-all-cbq-v1 ./test-all-sack-v1 ./test-all-v1 ./test-all-vegas-v1 
./test-all-rbp ./test-all-tcp-init-win ./test-all-tcpVariants 
./test-all-ecn ./test-all-manual-routing ./test-all-session

    That much about the proclamation "ns has been installed successfully!"...
    Does anyone have a clue what is going on?

    
3)  "nam" did not pretend to have been "installed successfully!": it said it 
    refused to "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 netgra
ph.o lan.o gen/version.o gen/nam_tcl.o  -L../tcl-debug-1.7 -ltcldbg -L../TclCL -
ltclcl -L../otcl -lotcl -L/usr/local/NS/ns-allinone/nam-1/../tk8.0/unix -ltk8.0
-L../tcl8.0/unix -ltcl8.0 -L/usr/X11R6/lib -lXext -lX11 -lnsl -lm
../tcl8.0/unix/libtcl8.0.a(tclLoadDl.o): In function `TclLoadFile':
tclLoadDl.o(.text+0x19): undefined reference to `dlopen'
tclLoadDl.o(.text+0x29): undefined reference to `dlerror'
tclLoadDl.o(.text+0x4f): undefined reference to `dlsym'
tclLoadDl.o(.text+0x89): undefined reference to `dlsym'
tclLoadDl.o(.text+0xa3): undefined reference to `dlsym'
tclLoadDl.o(.text+0xdf): undefined reference to `dlsym'
collect2: ld returned 1 exit status
make: *** [nam] Error 1

4)  According to http://www-mash.cs.berkeley.edu/nam/nam-problems.html :

      "Problem: undefined reference to 'dlopen', etc. 
       This happens when doing a static build. There are at least three 
       solutions: 
           *** The easiest solution is to remove the -static in your Makefile. 
           *** Do a make distclean in your nam dir, then re-do configuration 
               with --disable-static. 
           *** The above solutions will [sic!] If you really want to do a 
               static build, add the following in the LIBS (before all 
               libraries) in your Makefile:
               -Xlinker -Bstatic. (This is tested for FreeBSD, which put its 
               libdl codes in its crt.o)"

    Neither of these three hints solved the problem here, the error message
    persists unchanged.
    
    Could anyone on the list help?   

    Thank you very much indeed.

    Miroslav