[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: unable to build arm9 gdb lack of termcap, termcap not provided by nc
From: |
Dan Kegel |
Subject: |
Re: unable to build arm9 gdb lack of termcap, termcap not provided by ncurses, rather terminfo |
Date: |
Fri, 31 Oct 2003 11:29:51 -0800 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030617 |
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