[patch] configure.ac, configure: curses/termcap on *-*-osf5.*

Michael Elizabeth Chastain mec.gnu@mindspring.com
Wed Apr 28 20:43:00 GMT 2004


Daniel Jacobowitz writes:
> That's a mighty deficient ncurses implementation.  Are they in the
> ncurses on your system and not being pulled in?  If they aren't there,
> what IS?

That's a fruitful line of inquiry.

/usr/local/lib/libncurses.a is a version of ncurses 5.2.
But the "tinfo" subdirectory of ncurses has been built as a separate
library, so I have to link gdb with "-lncurses -ltinfo".
This is similar to the situation on hpux where libcur_colr.a is
needed for 'wborder'.

There is another problem.  configure.ac is finding libncurses.a in
/usr/local/lib, but it is not looking for include files in
/usr/local/include.  So gdb is using /usr/include/curses.h at compile
time and /usr/local/lib/libncurses.a at link time.  Fortunately, this
just causes unresolved externals on my particular system.

I worked around *that* problem with "-I /usr/local/include/ncurses".
Now I get a gdbtui that links and runs, but it crashes shortly after
"break main; run; next; next".

Michael C



More information about the Gdb-patches mailing list