This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]