GDB build problem (XML parser)

Richard Earnshaw rearnsha@arm.com
Mon Jan 8 16:16:00 GMT 2007


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  <rearnsha@arm.com>

	* configure (expat): Test for XML_StopParser.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: gdb.patch
Type: text/x-patch
Size: 583 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/gdb/attachments/20070108/35a1ed43/attachment.bin>


More information about the Gdb mailing list