This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.
See the CrossGCC FAQ for lots more information.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
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'
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
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |