LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-26-2011, 03:00 AM   #1
shweta jain
LQ Newbie
 
Registered: Oct 2010
Posts: 4

Rep: Reputation: 0
ddd debugger installation


Hi all,

I want to debug ns2 code with gdb debugger. As I am told to make the following changes in installation file and make file.

1- # Build Tcl8.3.2 (should be around line 173)


In this section you need to add the option

--enable-symbols to the line :

./configure --enable-gcc --disable-shared

--prefix=$CUR_PATH || ....
so it becomes:

./configure --enable-gcc --enable-symbols
--disable-shared --prefix=$CUR_PATH || ....


2- Build tclcl (should be around line 260)

in this section, you need to add --enable-debug to
your configure line, such
that:
./configure || ...
becomes
./configure --enable-debug || ...

3-now, go into your ns-allinone/ns directory, and open

your Makefile.in. change-

CFLAGS = $(CCOPT) $(DEFINE)
to
CFLAGS = -g $(CCOPT) $(DEFINE)
./install.

I did the same but during installation following error is coming----------

* Build Tclcl-1.19

============================================================

configure: WARNING: you should use --build, --host, --target

No .configure file found in current directory

Continuing with default options...

checking build system type... Invalid configuration `enable-debug': machine `enable' not recognized

configure: error: /bin/sh ./config.sub enable-debug failed

tclcl-1.19 configuration failed! Exiting ...

Please check http://www.isi.edu/nsnam/ns/ns-problems.html

for common problems and bug fixes.



What to do now
Plz help me
Regard Shweta jain
 
Old 07-29-2011, 12:44 PM   #2
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware-current, Cross Linux from Scratch, Gentoo
Posts: 2,812
Blog Entries: 1

Rep: Reputation: 259Reputation: 259Reputation: 259
It's nice that you told us what you're supposed to change in the files, but what about posting what you actually changed and please wrap it in code tags. Second, you don't give enough of the output preceding the error message. Finally, when you went to the link provided by the ns developers, what did it tell you to do, did you do it, and what were the results?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
help me pls! ddd with bash debugger! dreams Linux - Software 8 09-17-2014 05:53 PM
Linux debugger: DDD on solaris kranti Linux - Newbie 1 11-19-2005 03:51 PM
String variables in DDD Qt debugger impeteperry Linux - Software 0 06-12-2005 07:57 AM
ddd Debugger lmellen Programming 6 01-26-2004 01:07 PM
ddd debugger jclark00001 Linux - Software 1 06-23-2003 11:33 PM


All times are GMT -5. The time now is 01:04 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration