From: Dan Kegel <dkegel@ixiacom.com>
To: "Wolcott, Ken (MED, Compuware)" <ken.wolcott@med.ge.com>
Cc: Dan Kegel <dank@kegel.com>,
gdb mailing list <gdb@sources.redhat.com>,
crossgcc@sources.redhat.com,
ncurses mailing list <bug-ncurses@gnu.org>
Subject: Re: unable to build arm9 gdb lack of termcap, termcap not provided by ncurses, rather terminfo
Date: Fri, 31 Oct 2003 18:41:00 -0000 [thread overview]
Message-ID: <3FA2B82F.5070100@ixiacom.com> (raw)
In-Reply-To: <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
next prev parent reply other threads:[~2003-10-31 18:41 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-10-30 21:49 Wolcott, Ken (MED, Compuware)
2003-10-30 22:12 ` Dan Kegel
2003-10-31 17:41 ` Wolcott, Ken (MED, Compuware)
2003-10-31 18:41 ` Dan Kegel [this message]
[not found] ` <20031030232655.GA15004@invisible-island.net>
2003-10-31 14:43 ` Wolcott, Ken (MED, Compuware)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3FA2B82F.5070100@ixiacom.com \
--to=dkegel@ixiacom.com \
--cc=bug-ncurses@gnu.org \
--cc=crossgcc@sources.redhat.com \
--cc=dank@kegel.com \
--cc=gdb@sources.redhat.com \
--cc=ken.wolcott@med.ge.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox