Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* GDB and Insight query
@ 2002-08-28 12:40 Manish.Mukherjee
  2002-08-28 12:48 ` Keith Seitz
  0 siblings, 1 reply; 3+ messages in thread
From: Manish.Mukherjee @ 2002-08-28 12:40 UTC (permalink / raw)
  To: gdb, Manish.Mukherjee


[-- Attachment #1.1: Type: text/plain, Size: 3104 bytes --]


Hi,
      I am trying to use "Insight" which is a GUI to native gdb. I did
the following steps:
1. ./configure --prefix [dir]
2. make 
3. make install

The software seems to have been installed, but when I run [dir]/bin/gdb,
I get the following error:
----------------- Log -----------------
./gdb
ld.so.1: ./gdb: fatal: libncurses.so.5: open failed: No such file or
directory
Killed
---------------------------------------

I am not sure why I got this error and I need some guidance to get
around this. Looks like the "gdb" delivered as a part of Insight is
trying to use ncurses, whereas it should not.

The "Insight" guys asked me to get in touch with you. Please read the
following mail trail for details.

Any help in this regards is appreciated.

Thanks,
- Manish M

On Wed, 28 Aug 2002 Manish.Mukherjee@tellabs.com wrote:

> ./gdb
> ld.so.1: ./gdb: fatal: libncurses.so.5: open failed: No such file or
> directory
> Killed

Insight does not use ncurses. I would try building *just* gdb (no
insight) 
from 5.2 (--disable-gdbtk option). If it fails with the same error (and 
I'm sure it will), contact gdb@sources.redhat.com, the GDB mailing
lists. 
They should be able to help you.

Keith

Hi,
      I am trying to use Insight 5.2 on a SUN machine. I did the
following three steps:

1. ./configure --prefix [dir]
2. make 
3. make install

After the above three steps, the software seems to have been installed
in the [dir] I wanted, but when I try to execute it by doing a ./gdb
from [dir]/bin, it gives me the following error and exits. Any ideas!
----------------- Log -----------------
./gdb
ld.so.1: ./gdb: fatal: libncurses.so.5: open failed: No such file or
directory
Killed
---------------------------------------

Thanks,
- Manish M

-----Original Message-----
From: ltinney@caci.com [mailto:ltinney@caci.com]
Sent: Wednesday, August 28, 2002 8:59 AM
To: Mukherjee, Manish
Cc: insight@sources.redhat.com; insight-owner@sources.redhat.com;
ltinney@caci.com
Subject: Re: FW: failure notice



Instead of ./configure do the following

./configure --prefix=[dir]
replacing [dir] with the directory that you want Insight installed into.

You can then run Insight by typing ./gdb in [dir]/bin.  BTW I don't know
if
it's clear on your text editor (it's not on mine) but there are 2 dashes
in
front of "prefix" in the configure statement.

Have fun,
Lynn



------------------------------------------------------------------------

Hi There,

I am trying to use Insight. I have a SUN machine.

I have successfully downloaded the tar.gz file and have run the
./configure command. I have also run the "make" command and everything
seems to have built properly.

Now, how do I invoke Insight. The README file states that I have to
install the tools by doing a "make install". However, when I invoke the
command it tries to install the tools in /usr/local/lib perhaps and I
dont have write priviledges to that directory.

How do I install the tools in some other personal directory? After
installing the tools, how do I invoke Insight?

Thanks,
- Manish M
 << File: Manish Mukherjee (E-mail).vcf >> 

[-- Attachment #1.2: BDY.RTF --]
[-- Type: application/rtf, Size: 3884 bytes --]

[-- Attachment #2: Type: text/plain, Size: 676 bytes --]

============================================================
The information contained in this message may be privileged 
and confidential and protected from disclosure.  If the 
reader of this message is not the intended recipient, or an 
employee or agent responsible for delivering this message to 
the intended recipient, you are hereby notified that any 
reproduction, dissemination or distribution of this 
communication is strictly prohibited. If you have received 
this communication in error, please notify us immediately by 
replying to the message and deleting it from your computer.

Thank you.
Tellabs
============================================================

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: GDB and Insight query
  2002-08-28 12:40 GDB and Insight query Manish.Mukherjee
@ 2002-08-28 12:48 ` Keith Seitz
  0 siblings, 0 replies; 3+ messages in thread
From: Keith Seitz @ 2002-08-28 12:48 UTC (permalink / raw)
  To: Manish.Mukherjee; +Cc: gdb

On Wed, 28 Aug 2002 Manish.Mukherjee@tellabs.com wrote:

> The software seems to have been installed, but when I run [dir]/bin/gdb,
> I get the following error:
> ----------------- Log -----------------
> ./gdb
> ld.so.1: ./gdb: fatal: libncurses.so.5: open failed: No such file or
> directory
> Killed

Some thoughts: What did gdb link against? Can you do "rm gdb; make" in 
the gdb build directory and send the result?

Is LD_LIBRARY_PATH (or equivalent under Solaris) set properly?

Keith



^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: GDB and Insight query
       [not found] <H0000b450f531d70.1030571341.mail@MHS>
@ 2002-08-28 14:57 ` Keith Seitz
  0 siblings, 0 replies; 3+ messages in thread
From: Keith Seitz @ 2002-08-28 14:57 UTC (permalink / raw)
  To: Manish.Mukherjee; +Cc: gdb

[-- Attachment #1: Type: TEXT/PLAIN, Size: 2036 bytes --]

On Wed, 28 Aug 2002 Manish.Mukherjee@tellabs.com wrote:

> Keith,
>       Attached is the log for the whole compilation process. It contains
> 3 sections:
> 1. Configure section.
> 2. Build section.
> 3. Install section. 
> 
> They are separated using "--------" characters.

Thanks. In this I see:

  checking for ncurses.h... yes
  checking for tgetent in -lncurses... yes

and

gcc -g -O2  -I/usr/include/v9      -o gdb \
main.o libgdb.a cli-decode.o cli-script.o cli-cmds.o cli-setshow.o 
cli-utils.o mi-out.o mi-console.o  mi-cmds.o mi-cmd-var.o mi-cmd-break.o 
mi-cmd-stack.o  mi-cmd-disas.o
mi-main.o mi-parse.o mi-getopt.o gdbtk.o gdbtk-bp.o gdbtk-cmds.o 
gdbtk-hooks.o  gdbtk-register.o gdbtk-stack.o gdbtk-varobj.o 
gdbtk-wrapper.o    ../bfd/libbfd.a ../readline/libreadline.a 
../opcodes/libopcodes.a  ../libiberty/libiberty.a  -lncurses -lsocket 
-lnsl   ../libgui/src/libgui.a 
-L/home/tlabbd-12/manish/bin/Insight/insight-5.2/itcl/itcl -litcl3.2 
-L/home/tlabbd-12/manish/bin/Insight/insight-5.2/itcl/itk -litk3.2 
-L/home/tlabbd-12/manish/bin/Insight/insight-5.2/tix/unix/tk8.3 
-ltix4.1.8.1 -L/home/tlabbd-12/manish/bin/Insight/insight-5.2/tk/unix 
-ltk8.3 -Wl,-R,/home/tlabbd-12/manish/Tools/XGDB/lib 
-L/home/tlabbd-12/manish/bin/Insight/insight-5.2/tcl/unix -ltcl8.3   
-L/usr/openwin/lib -lX11 -R/usr/openwin/lib -ldl  -lsocket -lnsl -lm -ldl 
-lm -lsocket    ../libiberty/libiberty.a \

So you must have ncurses somewhere.

Hmmm. Google search revealed this:
http://groups.google.com/groups?q=ncurses+gdb+solaris&hl=en&lr=&ie=UTF-8&selm=200006282023.NAA16273%40ruby.twinsun.com&rnum=1

Does libncurses exist in any of these directories? What does "gcc -v" say 
(out of curiosity).

> I am not quite sure what the equivalent for LD_LIBRARY_PATH is for Solaris. 

I'd hazard a guess that it is LD_LIBRARY_PATH. :-)

Somewhere, GDB found libncurses.so.5 to link against. We need to find the 
library and get its path added to LD_LIBRARY_PATH (so that it can be 
found by the dynamic linker/loader can find it).

Keith

[-- Attachment #2: Type: APPLICATION/zip, Size: 23721 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-08-28 21:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-08-28 12:40 GDB and Insight query Manish.Mukherjee
2002-08-28 12:48 ` Keith Seitz
     [not found] <H0000b450f531d70.1030571341.mail@MHS>
2002-08-28 14:57 ` Keith Seitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox