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

ns 2.1b3 problems



Hello,

I am attempting to run ns-2.1b3.  When I run it from c-shell I get:

ariel{connors}#108: ns ./tcl/ex/simple.tcl
210
0.0037499999999999999
Segmentation fault (core dumped)
ariel{connors}#109:

When I run it from GBD I get the following:

GDB 4.16 (sparc-sun-solaris2.5), Copyright 1996 Free Software Foundation, Inc...
(gdb) pwd
Working directory /home/dangle/connors/sim-tools/bin.
(gdb) set args ../../simple.tcl
(gdb) run
Starting program: /home/dangle/connors/sim-tools/bin/ns-2.1b3 ../../simple.tcl
ld.so.1: /home/dangle/connors/sim-tools/bin/ns-2.1b3: fatal: relocation error: symbol not found: snprintf: referenced in /home/dangle/connors/sim-tools/bin/ns-2.1b3

Program terminated with signal SIGKILL, Killed.
The program no longer exists.

I recompiled with "-lc" since this is the library which contains "snprintf()" .

ariel{connors}#107: ldd ns
        libotcl.so =>    /home/dangle/connors/sim-tools/lib/libotcl.so
        libXext.so.0 =>  /lib/libXext.so.0
        libX11.so.4 =>   /lib/libX11.so.4
        libsocket.so.1 =>        /lib/libsocket.so.1
        libnsl.so.1 =>   /lib/libnsl.so.1
        libdl.so.1 =>    /lib/libdl.so.1
        libc.so.1 =>     /lib/libc.so.1
        libm.so.1 =>     /lib/libm.so.1
        libmp.so.2 =>    /lib/libmp.so.2

I then re-ran it in GDB

(gdb) run
`/home/dangle/connors/sim-tools/bin/ns-2.1b3' has changed; re-reading symbols.
Starting program: /home/dangle/connors/sim-tools/bin/ns-2.1b3 ../../simple.tcl
ld.so.1: /home/dangle/connors/sim-tools/bin/ns-2.1b3: fatal: relocation error: symbol not found: snprintf: referenced in /home/dangle/connors/sim-tools/bin/ns-2.1b3

Program terminated with signal SIGKILL, Killed.
The program no longer exists.
(gdb)

I am using Tcl/Tk 8.0 and oTcl 1.0a2 with dmalloc and tcl-debug.
Any suggestions?

Dennis
 

-- 
Dennis P. Connors                       email: [email protected]
Research Staff Member                   phone: (310) 317-5261
Information Sciences Laboratory         fax: (310) 317-5695
URL: http://www.wins.hrl.com/2.0/people/connors

HRL Laboratories, L.L.C. 
(formerly Hughes Research Labs)
3011 Malibu Canyon Road
Malibu, CA  90265