From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10571 invoked by alias); 8 Jan 2007 16:16:37 -0000 Received: (qmail 10538 invoked by uid 22791); 8 Jan 2007 16:16:36 -0000 X-Spam-Check-By: sourceware.org Received: from cam-admin0.cambridge.arm.com (HELO cam-admin0.cambridge.arm.com) (193.131.176.58) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 08 Jan 2007 16:16:26 +0000 Received: from cam-owa1.Emea.Arm.com (cam-owa1.emea.arm.com [10.1.255.62]) by cam-admin0.cambridge.arm.com (8.12.6/8.12.6) with ESMTP id l08GGHYo018281; Mon, 8 Jan 2007 16:16:17 GMT Received: from [10.1.205.4] ([10.1.255.211]) by cam-owa1.Emea.Arm.com with Microsoft SMTPSVC(6.0.3790.0); Mon, 8 Jan 2007 16:16:54 +0000 Subject: Re: GDB build problem (XML parser) From: Richard Earnshaw To: Daniel Jacobowitz Cc: gdb@sourceware.org In-Reply-To: <20070105175744.GA32499@nevyn.them.org> References: <1168019622.1427.7.camel@pc960.cambridge.arm.com> <20070105175744.GA32499@nevyn.them.org> Content-Type: multipart/mixed; boundary="=-1OWSg1ob/ar5DE/Hcy9L" Date: Mon, 08 Jan 2007 16:16:00 -0000 Message-Id: <1168272973.15455.17.camel@pc960.cambridge.arm.com> Mime-Version: 1.0 X-Mailer: Evolution 2.8.0nb1 X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2007-01/txt/msg00118.txt.bz2 --=-1OWSg1ob/ar5DE/Hcy9L Content-Type: text/plain Content-Transfer-Encoding: 7bit Content-length: 1352 On Fri, 2007-01-05 at 12:57 -0500, Daniel Jacobowitz wrote: > On Fri, Jan 05, 2007 at 05:53:42PM +0000, Richard Earnshaw wrote: > > My system has expat 1.95.5 installed on it. Unfortunately, this version > > seems to lack XML_StopParser(), so a build of the current sources dies > > with the following: > > > > cc1: warnings being treated as errors > > /home/rearnsha/gnusrc/gcc-cross/trunk/gdb/xml-support.c: In function > > `gdb_xml_start_element_wrapper': > > /home/rearnsha/gnusrc/gcc-cross/trunk/gdb/xml-support.c:289: warning: > > implicit declaration of function `XML_StopParser' > > D'oh! I guess there are two options: update the configure check to > test for XML_StopParser, or avoid using it. I've got no opinion > which is better. > While I'd quite like to have the XML support code, I don't need it for my current testing. I've not studied expat enough to be sure how to re-write the source code, so here's a patch that changes configure to test for what we currently need. This patch is redundant if the sources are fixed. I don't currently have autoconf-2.59 on my machine, so I've tested this by cut-n-paste. It might be wise for someone with the right autoconf version to verify this patch and then apply it if appropriate. 2007-01-08 Richard Earnshaw * configure (expat): Test for XML_StopParser. --=-1OWSg1ob/ar5DE/Hcy9L Content-Disposition: attachment; filename=gdb.patch Content-Type: text/x-patch; name=gdb.patch; charset=us-ascii Content-Transfer-Encoding: 7bit Content-length: 583 Index: configure.ac =================================================================== RCS file: /cvs/src/src/gdb/configure.ac,v retrieving revision 1.38 diff -u -r1.38 configure.ac --- configure.ac 4 Jan 2007 19:42:10 -0000 1.38 +++ configure.ac 8 Jan 2007 16:08:20 -0000 @@ -322,7 +322,7 @@ fi AC_LIB_HAVE_LINKFLAGS([expat], [], [#include "expat.h"], - [XML_Parser p = XML_ParserCreate (0);]) + [enum XML_Status s = XML_StopParser (0,0);]) if test "$HAVE_LIBEXPAT" != yes; then AC_MSG_WARN([expat is missing or unusable; some features may be disabled.]) fi --=-1OWSg1ob/ar5DE/Hcy9L--