This is the mail archive of the
insight@sources.redhat.com
mailing list for the Insight project.
build failure
- From: Tom Tromey <tromey at redhat dot com>
- To: Insight List <insight at sources dot redhat dot com>
- Date: 21 Feb 2003 10:17:44 -0700
- Subject: build failure
- Reply-to: tromey at redhat dot com
I updated and built the trunk today. It failed like so:
gcc -c -g -O2 -I. -I../../src/gdb -I../../src/gdb/config -DLOCALEDIR="\"/home/tromey/gnu/baseline-gdb/install/share/locale\"" -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 -Wimplicit -Wreturn-type -Wcomment -Wtrigraphs -Wformat -Wparentheses -Wpointer-arith -Wuninitialized -I../../src/gdb/../libgui/src -I/home/tromey/gnu/baseline-gdb/src/itcl/itcl/generic \
-I/home/tromey/gnu/baseline-gdb/src/tcl/generic -I/home/tromey/gnu/baseline-gdb/src/tk/generic -I/usr/X11R6/include -fwritable-strings \
../../src/gdb/gdbtk/generic/gdbtk-interp.c
../../src/gdb/gdbtk/generic/gdbtk-interp.c: In function `gdbtk_interpreter_init':
../../src/gdb/gdbtk/generic/gdbtk-interp.c:62: parse error before `struct'
../../src/gdb/gdbtk/generic/gdbtk-interp.c:67: `alias' undeclared (first use in this function)
../../src/gdb/gdbtk/generic/gdbtk-interp.c:67: (Each undeclared identifier is reported only once
../../src/gdb/gdbtk/generic/gdbtk-interp.c:67: for each function it appears in.)../../src/gdb/gdbtk/generic/gdbtk-interp.c:67: `prefix' undeclared (first use in this function)
../../src/gdb/gdbtk/generic/gdbtk-interp.c:67: `cmd' undeclared (first use in this function)
I'm using x86 Red Hat Linux 7.3. I built with the system compiler.
I'm checking in the appended patch as obvious.
Tom
Index: ChangeLog
from Tom Tromey <tromey at redhat dot com>
* generic/gdbtk-interp.c (gdbtk_interpreter_init): Declare locals
before code.
Index: generic/gdbtk-interp.c
===================================================================
RCS file: /cvs/src/src/gdb/gdbtk/generic/gdbtk-interp.c,v
retrieving revision 1.1
diff -u -r1.1 gdbtk-interp.c
--- generic/gdbtk-interp.c 18 Feb 2003 23:33:05 -0000 1.1
+++ generic/gdbtk-interp.c 21 Feb 2003 17:24:39 -0000
@@ -56,13 +56,13 @@
static void *
gdbtk_interpreter_init (void)
{
- gdbtk_init ();
-
/* Disable interpreter-exec. It causes us big trouble right now. */
struct cmd_list_element *cmd = NULL;
struct cmd_list_element *alias = NULL;
struct cmd_list_element *prefix = NULL;
struct cmd_list_element *c;
+
+ gdbtk_init ();
if (lookup_cmd_composition ("interpreter-exec", &alias, &prefix, &cmd))
{