From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3472 invoked by alias); 7 Mar 2002 00:00:24 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 3388 invoked from network); 7 Mar 2002 00:00:17 -0000 Received: from unknown (HELO cygnus.com) (205.180.230.5) by sources.redhat.com with SMTP; 7 Mar 2002 00:00:17 -0000 Received: from cse.cygnus.com (cse.cygnus.com [205.180.230.236]) by runyon.cygnus.com (8.8.7-cygnus/8.8.7) with ESMTP id QAA24996; Wed, 6 Mar 2002 16:00:16 -0800 (PST) Received: from free.redhat.lsd.ic.unicamp.br (vpnuser.sfbay.redhat.com [10.255.17.130] (may be forged)) by cse.cygnus.com (8.8.8+Sun/8.6.4) with ESMTP id QAA11946; Wed, 6 Mar 2002 16:00:14 -0800 (PST) Received: (from aoliva@localhost) by free.redhat.lsd.ic.unicamp.br (8.11.6/8.11.6) id g2700CO11167; Wed, 6 Mar 2002 21:00:12 -0300 To: gdb-patches@sources.redhat.com Cc: Don Libes Subject: expect won't build with Tru64 cc From: Alexandre Oliva Organization: GCC Team, Red Hat Date: Wed, 06 Mar 2002 16:00:00 -0000 Message-ID: User-Agent: Gnus/5.0805 (Gnus v5.8.5) Emacs/20.7 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-SW-Source: 2002-03/txt/msg00083.txt.bz2 --=-=-= Content-length: 523 Using the following C compiler on alphaev6-dec-osf4.0f % cc -V | head -1 DEC C V5.9-010 on Digital UNIX V4.0 (Rev. 1229) GDB won't build (both CVS and mainline). One of the reasons is that expect contains an ill-formed C construct that the DEC C compiler rejects (actually, it warns about it, but the #define fails to take effect). This patch fixes the problem. I don't know whether this is already fixed in expect upstream, so I'm Cc:ing Don Libes. GDB/expect maintainers, ok to install in mainline and 5.2 branch? --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=expect-alpha-cc.patch Content-length: 929 Index: expect/ChangeLog from Alexandre Oliva * exp_command.c (STARARGV): Indent #defines properly. Index: expect/exp_command.c =================================================================== RCS file: /cvs/src/src/expect/exp_command.c,v retrieving revision 1.3 diff -u -p -r1.3 exp_command.c --- expect/exp_command.c 2001/09/11 19:24:03 1.3 +++ expect/exp_command.c 2002/03/06 23:52:38 @@ -2648,13 +2648,13 @@ Tcl_Obj *CONST argv[]; /* Argument objec argc--; argv++; #if TCL_MAJOR_VERSION < 8 - #define STARARGV *argv +# define STARARGV *argv #else - #if TCL_MINOR_VERSION < 3 - #define STARARGV Tcl_GetStringFromObj(*argv,(int *)0) - #else - #define STARARGV Tcl_GetString(*argv) - #endif +# if TCL_MINOR_VERSION < 3 +# define STARARGV Tcl_GetStringFromObj(*argv,(int *)0) +# else +# define STARARGV Tcl_GetString(*argv) +# endif #endif for (;argc>0;argc--,argv++) { --=-=-= Content-length: 289 -- Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/ Red Hat GCC Developer aoliva@{cygnus.com, redhat.com} CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org} Free Software Evangelist Professional serial bug killer --=-=-=--