This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [patch] configure.ac, configure: curses/termcap on *-*-osf5.*
- From: mec dot gnu at mindspring dot com (Michael Elizabeth Chastain)
- To: drow at false dot org, mec dot gnu at mindspring dot com
- Cc: gdb-patches at sources dot redhat dot com, kettenis at chello dot nl
- Date: Wed, 28 Apr 2004 16:44:06 -0400 (EDT)
- Subject: Re: [patch] configure.ac, configure: curses/termcap on *-*-osf5.*
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