[GRASSLIST:5835] Re: Compiling redhat8.0 update
Glynn Clements
glynn.clements at virgin.net
Sat Mar 22 09:03:17 EST 2003
sjors wrote:
> > Can you locate the corresponding error message in the config.log file
> configure:5288: checking for readline in -lreadline
> configure:5305: gcc -o conftest -g -O2 conftest.c -lreadline 1>&5
> /usr/lib/gcc-lib/i386-redhat-linux/3.2/../../../libreadline.so:
> undefined reference to `tgetnum'
OK; it's a known problem. At present, the only workaround is to
manually edit src/CMD/head/head, e.g.
READLINELIB = -lreadline -lncurses
and src/include/config.h, e.g.
/* define if readline exists */
#define HAVE_READLINE_READLINE_H 1
Unfortunately, it's far from clear as to which additional libraries we
should be checking for. Actually, it's fairly clear which libraries
are plausible (lib[n]curses, libtinfo and libtermcap), but the termcap
functions (e.g. tgetnum) are often provided by more than one of them,
and it isn't clear as to exactly which one we should choose.
--
Glynn Clements <glynn.clements at virgin.net>
More information about the grass-user
mailing list