This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: unable to build arm9 gdb lack of termcap, termcap not providedby ncurses, rather terminfo
- From: Dan Kegel <dkegel at ixiacom dot com>
- To: "Wolcott, Ken (MED, Compuware)" <ken dot wolcott at med dot ge dot com>
- Cc: Dan Kegel <dank at kegel dot com>, gdb mailing list <gdb at sources dot redhat dot com>, crossgcc at sources dot redhat dot com, ncurses mailing list <bug-ncurses at gnu dot org>
- Date: Fri, 31 Oct 2003 11:29:51 -0800
- Subject: Re: unable to build arm9 gdb lack of termcap, termcap not providedby ncurses, rather terminfo
- References: <200310301552.03913.ken.wolcott@med.ge.com> <3FA18E26.8030309@kegel.com> <200310311143.29532.ken.wolcott@med.ge.com>
Wolcott, Ken (MED, Compuware) wrote:
I'm trying to remember to append my replies to the bottom of existing msgs
:-)
Also please remember to trim the message you're quoting; ideally you'll
only keep the gist. Remember, people's eyes glaze over after line 5 of the message.
I looked at gdb configure and the resultant Makefile for the specific error
string...it is very hard for me to follow :-(
$ grep termcap ../gdb-6.0/configure
configdirs="$configdirs libtermcap" ;;
target_configdirs="$target_configdirs target-libtermcap target-winsup"
A better command for digging for termcap configure stuff might be
$ find . -type f -not -name '*.c' | xargs egrep -l 'termcap|ncurses'
In gdb-5.3, the most interesting match is gdb-5.3/gdb/configure.in, which says
AC_CHECK_LIB(ncurses, tgetent, TERM_LIB=-lncurses,
AC_CHECK_LIB(Hcurses, tgetent, TERM_LIB=-lHcurses,
AC_CHECK_LIB(termlib, tgetent, TERM_LIB=-ltermlib,
AC_CHECK_LIB(termcap, tgetent, TERM_LIB=-ltermcap,
AC_CHECK_LIB(curses, tgetent, TERM_LIB=-lcurses,
AC_CHECK_LIB(terminfo, tgetent, TERM_LIB=-lterminfo))))))
Now, you did go and do an autotools tutorial from the list I pointed you to,
right? :-) Then you'll know what AC_CHECK_LIB(foo, bar, ...) does: it just tries to
link a little C program that refers to symbol 'bar' in library -lfoo.
So try that by hand without gdb or autoconf! If it doesn't link the
way you expect, ncurses is installed wrong. You can use the --print-search-dirs
option to your gcc, and look for the "libraries:" line, to see what
directories it searches to find the library. You can also use -L to
add a directory to that list.
Cheers,
Dan
- References:
- unable to build arm9 gdb lack of termcap, termcap not provided by ncurses, rather terminfo
- From: Wolcott, Ken (MED, Compuware)
- Re: unable to build arm9 gdb lack of termcap, termcap not providedby ncurses, rather terminfo
- Re: unable to build arm9 gdb lack of termcap, termcap not provided by ncurses, rather terminfo
- From: Wolcott, Ken (MED, Compuware)