Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [RFA] fix for utils.c bool problem
@ 2002-02-07 13:33 Martin M. Hunt
  2002-02-07 13:39 ` Daniel Jacobowitz
  2002-02-07 13:40 ` Fernando Nasser
  0 siblings, 2 replies; 13+ messages in thread
From: Martin M. Hunt @ 2002-02-07 13:33 UTC (permalink / raw)
  To: gdb-patches

Am I the only one seeing this?  On three different build systems I am getting errors like

gcc -c -g -O2  -I/usr/include/v9  -I. -I../../src/gdb -I../../src/gdb/config -DHAVE_CONFIG_H -I../../src/gdb/../include/opcode -I../../src/gdb/../readline/.. -I../bfd -I../../src/gdb/../bfd  -I../../src/gdb/../include -I../intl -I../../src/gdb/../intl  -DMI_OUT=1 -DGDBTK -DUI_OUT=1 -Wimplicit -Wreturn-type -Wcomment -Wtrigraphs -Wformat -Wparentheses -Wpointer-arith -Wuninitialized  ../../src/gdb/utils.c
In file included from /usr/progressive/lib/gcc-lib/sparc-sun-solaris2.5/2.96-gnupro-00r1/include/curses.h:5,
                 from ../../src/gdb/utils.c:30:
/usr/include/curses.h:69: conflicting types for `_Bool'
/usr/progressive/lib/gcc-lib/sparc-sun-solaris2.5/2.96-gnupro-00r1/include/stdbool.h:41: previous declaration of `_Bool'

Some newer versions of gcc apparently have stdbool.h improvements that 
fix the problem.  Another fix is to simply reorder the patch, which fixes builds 
on all of my systems (Windows, Linux, Solaris)

-- 
Martin Hunt
GDB Engineer
Red Hat, Inc.

2002-02-07  Martin M. Hunt  <hunt@redhat.com>

	* utils.c: Reorder includes to eliminate bool conflict.

Index: utils.c
===================================================================
RCS file: /cvs/src/src/gdb/utils.c,v
retrieving revision 1.61
diff -u -p -r1.61 utils.c
--- utils.c	2002/02/05 04:37:22	1.61
+++ utils.c	2002/02/07 21:32:35
@@ -20,18 +20,18 @@
    Foundation, Inc., 59 Temple Place - Suite 330,
    Boston, MA 02111-1307, USA.  */
 
-#include "defs.h"
-#include "gdb_assert.h"
-#include <ctype.h>
-#include "gdb_string.h"
-#include "event-top.h"
-
 #ifdef HAVE_CURSES_H
 #include <curses.h>
 #endif
 #ifdef HAVE_TERM_H
 #include <term.h>
 #endif
+
+#include "defs.h"
+#include "gdb_assert.h"
+#include <ctype.h>
+#include "gdb_string.h"
+#include "event-top.h"
 
 #ifdef __GO32__
 #include <pc.h>


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2002-03-01  6:04 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-02-07 13:33 [RFA] fix for utils.c bool problem Martin M. Hunt
2002-02-07 13:39 ` Daniel Jacobowitz
2002-02-07 14:01   ` Andrew Cagney
2002-02-07 14:14     ` Daniel Jacobowitz
2002-02-07 15:28       ` Andrew Cagney
2002-02-08  7:57   ` Daniel Jacobowitz
2002-02-08  8:51     ` Andrew Cagney
2002-02-08  8:57       ` Daniel Jacobowitz
2002-02-08  9:09         ` Andrew Cagney
2002-02-08  9:38           ` Daniel Jacobowitz
2002-02-08 10:55             ` Andrew Cagney
2002-02-28 22:04               ` Andrew Cagney
2002-02-07 13:40 ` Fernando Nasser

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox