public inbox for insight@sourceware.org
 help / color / mirror / Atom feed
From: Tom Tromey <tromey@redhat.com>
To: Insight List <insight@sources.redhat.com>
Subject: build failure
Date: Fri, 21 Feb 2003 17:48:00 -0000	[thread overview]
Message-ID: <87y949eeo7.fsf@fleche.redhat.com> (raw)

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@redhat.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))
     {

             reply	other threads:[~2003-02-21 17:26 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-02-21 17:48 Tom Tromey [this message]
2003-02-21 17:49 ` Keith Seitz
2003-02-21 19:07   ` Keith Seitz
2003-02-24 20:12     ` Christopher Faylor
2003-02-22 21:51   ` Tom Tromey
  -- strict thread matches above, loose matches on Subject: below --
2001-05-10 13:42 Tom Tromey
2001-05-10 13:49 ` Fernando Nasser
2001-05-10 13:51 ` Keith Seitz
2001-05-10 13:56   ` Tom Tromey

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=87y949eeo7.fsf@fleche.redhat.com \
    --to=tromey@redhat.com \
    --cc=insight@sources.redhat.com \
    /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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).