* An install question and a bug
@ 2002-01-28 11:06 Salman Khilji
2002-01-28 14:31 ` Andrew Cagney
0 siblings, 1 reply; 5+ messages in thread
From: Salman Khilji @ 2002-01-28 11:06 UTC (permalink / raw)
To: gdb
Mandrake Linux 8.1, gcc 2.96, gdb 5.1.1
When I configure the source code for gdb 5.1.1, it says after a while . . .
...
...
checking for tgetent in -lterminfo... no
configure: error: Could not find a term library
Configure in /home/salman/softdev/gdb/gdb-5.1.1/gdb failed, exiting.
What is term library? Where do I install this from?
Here is a bug that I just submitted through the bug reporting database on
the gdb homepage. I searched for it in the archives and someone asked the
exact same question but didn't receive a reply. Anyone has a solution or
patch to this?:
Cannot look at global variables inside a C++ namespace
======================================================
reproducable on 5.0 and 5.1 of gdb
Assuming the code:
#include <iostream>
using namespace std;
namespace FOO{
float fSomeVar = 67.8;
}
namespace BAR{
float fSomeVar = 27.2;
}
float fSomeVar = 23.0;
int main()
{
FOO::fSomeVar = 100.0;
BAR::fSomeVar = 200.0;
fSomeVar = 300.0;
cout << FOO::fSomeVar << endl;
cout << BAR::fSomeVar << endl;
cout << fSomeVar << endl;
return 0;
}
The gdb output as is follows---Please note that I have tried the string with
and without single-quotes. GDB doesn't find the symbol without the
quotes---with the quotes it is giving me a junk value:
Current directory is ~/softdev/nbug/
GNU gdb 20010813 (MI_OUT)
Copyright 2001 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-mandrake-linux"...
(gdb) b main
Breakpoint 1 at 0x8048656: file main.cpp, line 17.
(gdb) run
Starting program: /home/salman/softdev/nbug/hello
Breakpoint 1, main () at main.cpp:17
(gdb) n
(gdb)
(gdb)
(gdb) p fSomeVar
$1 = 300
(gdb) p FOO::fSomeVar
No symbol "FOO" in current context.
(gdb) p 'FOO::fSomeVar'
$2 = 1120403456
(gdb) p 'BAR::fSomeVar'
$3 = 1128792064
(gdb)c
Continuing.
100
200
300
Program exited normally.
(gdb)
_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: An install question and a bug
2002-01-28 11:06 An install question and a bug Salman Khilji
@ 2002-01-28 14:31 ` Andrew Cagney
0 siblings, 0 replies; 5+ messages in thread
From: Andrew Cagney @ 2002-01-28 14:31 UTC (permalink / raw)
To: Salman Khilji; +Cc: gdb
> Mandrake Linux 8.1, gcc 2.96, gdb 5.1.1
>
> When I configure the source code for gdb 5.1.1, it says after a while . . .
>
> ...
> ...
> checking for tgetent in -lterminfo... no
> configure: error: Could not find a term library
> Configure in /home/salman/softdev/gdb/gdb-5.1.1/gdb failed, exiting.
>
> What is term library? Where do I install this from?
Term, termcap, curses, ncurses, ... are all libraries that can be used
when controlling a text based display (a tty). Things like, terminal
width and height, but also other things.
In the above, it appears that the configuration process can't find a
suitable library. There could be two reasons for this:
o
a library is missing from your system (less likely)
o
GDB's configuration messed up and didn't detect the library your system
has installed (more likely)
The script gdb/configure (generated from gdb/configure.in) controls this.
You mentioned that you were using 5.1. Was that built by you or did it come with a Mandrake distro?
If it came with a Mandrake distro I suspect the first thing to do is
find out how that was built - 5.1 and 5.1.1 are only marginally different.
Andrew
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: An install question and a bug
@ 2002-01-28 16:00 Salman Khilji
0 siblings, 0 replies; 5+ messages in thread
From: Salman Khilji @ 2002-01-28 16:00 UTC (permalink / raw)
To: gdb
I am using
ftp://speakeasy.rpmfind.net/linux/Mandrake-devel/cooker/SRPMS/gdb-5.1-3mdk.src.rpm
I tried it on two Mandrake 8.1 systems. both give me the error that
libterminfo is not found. If I got to Mandrake's side, there is no such
thing as libterminfo for Mandrake. The PLD Linux distribution, however,
does have a libterminfo package. I am too scared to install it. What would
you recommend??
All I do is just type ./configre --with-mmap
No other options.
Salman
>You mentioned that you were using 5.1. Was that built by you or did it
>come with a Mandrake distro?
>
>If it came with a Mandrake distro I suspect the first thing to do is
>find out how that was built - 5.1 and 5.1.1 are only marginally different.
>
>Andrew
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: An install question and a bug
@ 2002-01-29 6:33 Salman Khilji
2002-01-29 7:37 ` Daniel Jacobowitz
0 siblings, 1 reply; 5+ messages in thread
From: Salman Khilji @ 2002-01-29 6:33 UTC (permalink / raw)
To: gdb
Here is a hint that I got from someone else about this issue. Still no luck
:-(
urpmi libtermcap2-devel
>>Mandrake Linux 8.1, gcc 2.96, gdb 5.1.1
>>
>>When I configure the source code for gdb 5.1.1, it says after a while . .
>>.
>>
>>...
>>...
>>checking for tgetent in -lterminfo... no
>>configure: error: Could not find a term library
>>Configure in /home/salman/softdev/gdb/gdb-5.1.1/gdb failed, exiting.
>>
>>What is term library? Where do I install this from?
>
_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: An install question and a bug
2002-01-29 6:33 Salman Khilji
@ 2002-01-29 7:37 ` Daniel Jacobowitz
0 siblings, 0 replies; 5+ messages in thread
From: Daniel Jacobowitz @ 2002-01-29 7:37 UTC (permalink / raw)
To: gdb
You are problabyl looking for the NCurses development package. I don't
know what Mandrake calls it.
On Tue, Jan 29, 2002 at 02:33:23PM +0000, Salman Khilji wrote:
> Here is a hint that I got from someone else about this issue. Still no luck
>
> :-(
>
> urpmi libtermcap2-devel
>
>
> >>Mandrake Linux 8.1, gcc 2.96, gdb 5.1.1
> >>
> >>When I configure the source code for gdb 5.1.1, it says after a while . .
> >>.
> >>
> >>...
> >>...
> >>checking for tgetent in -lterminfo... no
> >>configure: error: Could not find a term library
> >>Configure in /home/salman/softdev/gdb/gdb-5.1.1/gdb failed, exiting.
> >>
> >>What is term library? Where do I install this from?
> >
>
>
> _________________________________________________________________
> Send and receive Hotmail on your mobile device: http://mobile.msn.com
>
>
--
Daniel Jacobowitz Carnegie Mellon University
MontaVista Software Debian GNU/Linux Developer
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2002-01-29 15:37 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-01-28 11:06 An install question and a bug Salman Khilji
2002-01-28 14:31 ` Andrew Cagney
2002-01-28 16:00 Salman Khilji
2002-01-29 6:33 Salman Khilji
2002-01-29 7:37 ` Daniel Jacobowitz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox