unable to build arm9 gdb lack of termcap, termcap not provided by ncurses, rather terminfo

Dan Kegel dkegel@ixiacom.com
Fri Oct 31 18:41:00 GMT 2003


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


------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com



More information about the crossgcc mailing list