[ns] NS2 debugger
qweq adcsad
nill_akaser_tara at yahoo.com
Wed Jul 1 06:38:49 PDT 2009
Hello,
I am using ns 2.33.Hence there could be little bit difference of the mentioned file in(http://pauseandreconsider.blogspot.com/2007/07/debugging-ns-2.html). I am giving the changes that I made below...
Could you please check the following things ?
1)INSTALL file
a) In line no 432 the --enable-symbols is entered------
# Build Tcl8.4.18
echo "============================================================"
echo "* Build tcl$TCLVER"
echo "============================================================"
cd ./tcl$TCLVER/unix
if [ -f Makefile ] ; then
make distclean
fi
blame='Tcl is not part of the ns project. Please see www.Scriptics.com
to see if they have a fix for your platform.'
autoconf
./configure --enable-gcc --enable-symbols --disable-shared --prefix=$CUR_PATH || die "tcl$TCLVER configuration failed! Exiting ..."
if make
then
b)In line 497 --enable-debug is entered
# Build otcl
echo "============================================================"
echo "* Build OTcl-$OTCLVER"
echo "============================================================"
cd ./otcl-$OTCLVER
blame='Please check http://www.isi.edu/nsnam/ns/ns-problems.html
for common problems and bug fixes.'
if [ "${test_cygwin}" = "true" ]; then
./configure --x-libraries=/usr/X11R6/lib --x-includes=/usr/X11R6/include || die "otcl-$OTCLVER configuration failed! Exiting ...";
else
./configure --enable-debug || die "otcl-$OTCLVER configuration failed! Exiting ...";
fi
2)In Makefile.in the -g flag is entered in line no 85
LIB = \
@V_LIBS@ \
@V_LIB_X11@ \
@V_LIB@ \
-lm @LIBS@
# -L at libdir@ \
CFLAGS += -g $(CCOPT) $(DEFINE)
# Explicitly define compilation rules since SunOS 4's make doesn't like gcc.
# Also, gcc does not remove the .o before forking 'as', which can be a
# problem if you don't own the file but can write to the directory.
.SUFFIXES: .cc # $(.SUFFIXES)
Then I had to run ./configure in ns-allinone-2.33/ns-2.33 folder
make clean
./install from ns-allinone-2.33 folder
sudo make install in ns-allinone-2.33/ns-2.33 folder
tried ddd ns in ns-allinone-2.33/ns-2.33 folder
But again the namespace error that was mentioned before is coming after ddd is loaded.
Please let me know if there is anything wrong in the above procedure. Really it would be a great experience for me if I could run ddd with NS2.
Regards,
Nill
--- On Wed, 7/1/09, Mubashir Rehmani <mshrehmani at gmail.com> wrote:
> From: Mubashir Rehmani <mshrehmani at gmail.com>
> Subject: Re: [ns] NS2 debugger
> To: "qweq adcsad" <nill_akaser_tara at yahoo.com>
> Cc: "ns-users" <ns-users at isi.edu>
> Date: Wednesday, July 1, 2009, 5:14 AM
> Hi,
>
> Yes, it worked well for me. First confirm that DDD is
> running properly or not, then proceed with this guide...
>
> Regards
> Mubashir Husain Rehmani
>
> 2009/7/1 qweq adcsad <nill_akaser_tara at yahoo.com>
>
>
>
>
> Hi,
>
> Thanks a lot. I followed that guide(http://pauseandreconsider.blogspot.com/2007/07/debugging-ns-2.html)
> but could not succeed.
>
>
>
> Have you tried it before? If it had already worked for
> you please let me know.
>
>
>
> Regards,
>
> Nill
>
>
>
> --- On Wed, 7/1/09, Mubashir Rehmani <mshrehmani at gmail.com>
> wrote:
>
>
>
> > From: Mubashir Rehmani <mshrehmani at gmail.com>
>
> > Subject: Re: [ns] NS2 debugger
>
> > To: "qweq adcsad" <nill_akaser_tara at yahoo.com>
>
> > Cc: "ns-users" <ns-users at isi.edu>
>
> > Date: Wednesday, July 1, 2009, 3:53 AM
>
> > Hi
>
> >
>
> > Here are a very nice link for debugging ns2 with DDD.
>
> >
>
> > http://pauseandreconsider.blogspot.com/2007/07/debugging-ns-2.html
>
> >
>
> >
>
> > Regards
>
> > Mubashir Husain Rehmani
>
> > Lip6, UPMC, Paris, France
>
> >
>
> > 2009/7/1 qweq adcsad <nill_akaser_tara at yahoo.com>
>
> >
>
> >
>
> >
>
> >
>
> >
>
> > Hello,
>
> >
>
> > I am trying to debug NS2 with DDD. I
> compiled it
>
> > with -g flag, but still it can not load the source
> code. It
>
> > says "/home/..../ns2.33/<<C++-namespaces:no
> such
>
> > file or directory>>" .
>
> >
>
> >
>
> >
>
> > I am using Ubuntu 9.04 and the compiler is gcc-4.3
> .Even
>
> > when I use gdb in command prompt and put "
> list"
>
> > command it gives the above message.Could anybody
> help me
>
> > in this matter?
>
> >
>
> >
>
> >
>
> >
>
> >
>
> > regards,
>
> >
>
> > Nill
>
> >
>
> >
>
> >
>
> >
>
> >
>
> >
>
> >
>
> >
>
> >
>
> >
>
> >
>
> >
>
> >
>
> >
>
> >
>
> >
>
> > --
>
> > Mubashir Husain Rehmani
>
> >
>
> >
>
> >
>
> >
>
>
>
>
>
>
>
>
>
>
> --
> Mubashir Husain Rehmani
>
>
>
>
More information about the Ns-users
mailing list