[ns] Howto use Dmalloc?

John Heidemann johnh at ISI.EDU
Thu Feb 26 09:11:01 PST 2004


On Thu, 26 Feb 2004 07:19:49 +0200, "dun" wrote: 
>I am trying to use Dmalloc with latest version of ns. I downloaded and
>installed Dmalloc 4.8.2  with
>./configure
>make
> 
>Then I tried to install ns by changing the configure command of ns in
>"install" file to  --with-dmalloc=/myns/dmalloc. However when I tried to
>install ns, it gave me the error at the bottom of this page and exited. How
>can I solve this problem?  I am using ns over Red Hat 9.
> 
>Thank you
>
>*******
> 
> In function `Tcl_Alloc':
>: multiple definition of `Tcl_Alloc'
>lib/dmalloc_support.o(.text+0x88): first defined here
>/usr/bin/ld: Warning: size of symbol `Tcl_Alloc' changed from 70 to 72 in /
>home/myns/lib/libtcl8.4.a(tclCkalloc.o)
>/home/myns/lib/libtcl8.4.a(tclAlloc.o)(.text+0x0): In function `TclpAlloc':
>: multiple definition of `TclpAlloc'
>lib/dmalloc_support.o(.text+0x66): first defined here
>/usr/bin/ld: Warning: size of symbol `TclpAlloc' changed from 33 to 32 in /
>home/myns/lib/libtcl8.4.a(tclAlloc.o)
>collect2: ld returned 1 exit status
>make: *** [ns] Error 1
>Ns make failed!
>See http://www.isi.edu/nsnam/ns/ns-problems.html for problems
>
>

What platform are you on?  I've never seen "size of symbol" errors
before.

You might try comparing the Tcl_Alloc definitions in ns's
lib/dmalloc_support.cc with what's in tcl-8.4. Perhaps they've gotten
out of sync.

   -John Heidemann



More information about the Ns-users mailing list