From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8589 invoked by alias); 20 Feb 2007 19:30:44 -0000 Received: (qmail 8581 invoked by uid 22791); 20 Feb 2007 19:30:43 -0000 X-Spam-Check-By: sourceware.org Received: from nile.gnat.com (HELO nile.gnat.com) (205.232.38.5) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 20 Feb 2007 19:30:38 +0000 Received: from localhost (localhost [127.0.0.1]) by filtered-nile.gnat.com (Postfix) with ESMTP id A17E848CEB7 for ; Tue, 20 Feb 2007 14:29:02 -0500 (EST) Received: from nile.gnat.com ([127.0.0.1]) by localhost (nile.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 19529-01-10 for ; Tue, 20 Feb 2007 14:29:02 -0500 (EST) Received: from takamaka.act-europe.fr (unknown [70.71.0.212]) by nile.gnat.com (Postfix) with ESMTP id 1418C48CE5C for ; Tue, 20 Feb 2007 14:29:02 -0500 (EST) Received: by takamaka.act-europe.fr (Postfix, from userid 1000) id 7FA4134C099; Tue, 20 Feb 2007 11:30:09 -0800 (PST) Date: Tue, 20 Feb 2007 19:30:00 -0000 From: Joel Brobecker To: gdb-patches@sourceware.org Subject: [RFA] Fix build failure with old versions of expat Message-ID: <20070220193009.GO29202@adacore.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="sdtB3X0nJg68CQEu" Content-Disposition: inline User-Agent: Mutt/1.4.2.2i Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2007-02/txt/msg00248.txt.bz2 --sdtB3X0nJg68CQEu Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-length: 485 Hello, On certain machines we have, GDB fails to build because the libexpat version it has installed is so old that the XMLCALL macro is not defined (we have version 1.95.8). The attached patch should fix the problem. 2007-02-20 Joel Brobecker * gdb_expat.h (XMLCALL): Define if not already defined. Tested on 2 different x86-linux machines: One that does have a recent libexpat, and another that has an older one. OK to apply? Thanks, -- Joel --sdtB3X0nJg68CQEu Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="expat.diff" Content-length: 490 Index: gdb_expat.h =================================================================== RCS file: /cvs/src/src/gdb/gdb_expat.h,v retrieving revision 1.2 diff -u -p -r1.2 gdb_expat.h --- gdb_expat.h 9 Jan 2007 17:58:50 -0000 1.2 +++ gdb_expat.h 20 Feb 2007 18:44:01 -0000 @@ -31,4 +31,10 @@ # define XML_STATUS_ERROR 0 #endif +/* Old versions of expat do not define this macro, so define it + as void. */ +#ifndef XMLCALL +#define XMLCALL +#endif + #endif /* !defined(GDB_EXPAT_H) */ --sdtB3X0nJg68CQEu--