From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31826 invoked by alias); 31 Oct 2003 18:41:25 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 31619 invoked from network); 31 Oct 2003 18:41:22 -0000 Received: from unknown (HELO racerx.ixiacom.com) (64.60.75.69) by sources.redhat.com with SMTP; 31 Oct 2003 18:41:22 -0000 Received: from ixiacom.com (dank.ixiacom.com [192.168.3.117]) by racerx.ixiacom.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id VV0LXGS6; Fri, 31 Oct 2003 10:42:44 -0800 Message-ID: <3FA2B82F.5070100@ixiacom.com> Date: Fri, 31 Oct 2003 18:41:00 -0000 From: Dan Kegel User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030617 X-Accept-Language: en MIME-Version: 1.0 To: "Wolcott, Ken (MED, Compuware)" CC: Dan Kegel , gdb mailing list , crossgcc@sources.redhat.com, ncurses mailing list Subject: Re: unable to build arm9 gdb lack of termcap, termcap not provided by ncurses, rather terminfo References: <200310301552.03913.ken.wolcott@med.ge.com> <3FA18E26.8030309@kegel.com> <200310311143.29532.ken.wolcott@med.ge.com> In-Reply-To: <200310311143.29532.ken.wolcott@med.ge.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2003-10/txt/msg00353.txt.bz2 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