public inbox for insight@sourceware.org
 help / color / mirror / Atom feed
* build failure
@ 2003-02-21 17:48 Tom Tromey
  2003-02-21 17:49 ` Keith Seitz
  0 siblings, 1 reply; 9+ messages in thread
From: Tom Tromey @ 2003-02-21 17:48 UTC (permalink / raw)
  To: Insight List

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))
     {

^ permalink raw reply	[flat|nested] 9+ messages in thread
* build failure
@ 2001-05-10 13:42 Tom Tromey
  2001-05-10 13:49 ` Fernando Nasser
  2001-05-10 13:51 ` Keith Seitz
  0 siblings, 2 replies; 9+ messages in thread
From: Tom Tromey @ 2001-05-10 13:42 UTC (permalink / raw)
  To: Insight List

I just updated and rebuilt gdb and got this:

gcc -c -g -O2    -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  -DGDBTK -DUI_OUT=1 -Wimplicit -Wreturn-type -Wcomment -Wtrigraphs -Wformat -Wparentheses -Wpointer-arith -Wuninitialized  -I../../src/gdb/../libgui/src  -I/x2/egcs-stuff/gdb/src/itcl/itcl/generic \
        -I/x2/egcs-stuff/gdb/src/itcl/itk/generic -I/x2/egcs-stuff/gdb/src/tix/generic \
-I/x2/egcs-stuff/gdb/src/tcl/generic -I/x2/egcs-stuff/gdb/src/tk/generic -I/x2/egcs-stuff/gdb/src/tk/generic -I/usr/X11R6/include \
	../../src/gdb/gdbtk/generic/gdbtk.c -DGDBTK_LIBRARY=\"/x2/egcs-stuff/gdb/install/share/gdbtcl\"
../../src/gdb/gdbtk/generic/gdbtk.c: In function `gdbtk_init':
../../src/gdb/gdbtk/generic/gdbtk.c:389: warning: implicit declaration of function `cli_out_new'
../../src/gdb/gdbtk/generic/gdbtk.c:389: warning: assignment makes pointer from integer without a cast

Tom

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

end of thread, other threads:[~2003-02-22 21:51 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-02-21 17:48 build failure Tom Tromey
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

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).