From: Joel Brobecker <brobecker@gnat.com>
To: Mark Kettenis <kettenis@gnu.org>
Cc: gdb-patches@sources.redhat.com
Subject: Re: [COMMIT] Fix compilations problem on sparc-sun-solaris2.9
Date: Mon, 15 Nov 2004 16:29:00 -0000 [thread overview]
Message-ID: <20041115162905.GC981@gnat.com> (raw)
In-Reply-To: <200411150947.iAF9lUWT018125@juw15.nfra.nl>
[-- Attachment #1: Type: text/plain, Size: 788 bytes --]
> Fallout from the recent term.h fix related to Solaris header
> brandamage. AFAICT "terminal.h" isn't necessary at all in tui-io.c,
> so I removed it. Let's hope there isn't another braindamages systems
> that needs it.
Do you remember the error that you had without your fix? On our side,
we had a failure on this platform too:
> In file included from gdb_curses.h:38,
> from tui/tui-data.h:29,
> from tui/tui-io.c:33:
> /usr/include/term.h:1060: field `Ottyb' has incomplete type
> /usr/include/term.h:1061: field `Nttyb' has incomplete type
> make[1]: *** [tui-io.o] Error 1
We had a patch that I was testing on all our native configuration.
It looks like I can dump it, but I wanted to make sure you address
the same problem.
Thanks!
--
Joel
[-- Attachment #2: gdb_curses.diff --]
[-- Type: text/plain, Size: 889 bytes --]
Index: gdb/gdb_curses.h
===================================================================
RCS file: /cvs/src/src/gdb/gdb_curses.h,v
retrieving revision 1.4
diff -c -p -r1.4 gdb_curses.h
*** gdb/gdb_curses.h 9 Nov 2004 00:59:03 -0000 1.4
--- gdb/gdb_curses.h 12 Nov 2004 02:35:21 -0000
***************
*** 35,40 ****
--- 35,49 ----
#if defined (HAVE_NCURSES_TERM_H)
#include <ncurses/term.h>
#elif defined (HAVE_TERM_H)
+ #ifdef HAVE_TERMIO_H
+ /* Some definitions from termio are sometimes needed for term.h.
+ For instance, on Solaris 2.8, strm term contains two fields
+ named Ottyb and Nttyb of type SGTTY, which is defined as a
+ typedef of struct termio in term.h. Without including term.h,
+ the compiler has an incomplete definition of the type of these
+ two fields, and aborts the builds. */
+ #include <termio.h>
+ #endif
#include <term.h>
#endif
next prev parent reply other threads:[~2004-11-15 16:29 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-11-15 9:48 Mark Kettenis
2004-11-15 16:29 ` Joel Brobecker [this message]
2004-11-15 18:11 ` Mark Kettenis
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20041115162905.GC981@gnat.com \
--to=brobecker@gnat.com \
--cc=gdb-patches@sources.redhat.com \
--cc=kettenis@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox