Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Denis PILAT <denis.pilat@st.com>
To: Daniel Jacobowitz <drow@false.org>,
	        gdb-patches <gdb-patches@sourceware.org>
Subject: Re: Compilation error, expat version too old.
Date: Tue, 13 Feb 2007 09:52:00 -0000	[thread overview]
Message-ID: <45D18A63.8040506@st.com> (raw)
In-Reply-To: <20070212205100.GA28635@caradoc.them.org>

Daniel Jacobowitz wrote:
> On Mon, Feb 12, 2007 at 04:38:13PM +0100, Denis PILAT wrote:
>   
>> Daniel Jacobowitz wrote:
>>     
>>> On Mon, Feb 12, 2007 at 11:10:31AM +0100, Denis PILAT wrote:
>>>  
>>>       
>>>> Hello,
>>>>
>>>> I am facing compilation error with xml-support.c, it comes from the 
>>>> expat version I have, it should be too old to define XMLCALL I guess.
>>>> Bellow is the the error.
>>>>    
>>>>         
>>> What version of expat is it?  We should either update the configure
>>> check to reject it, or provide a fallback definition of XMLCALL.
>>>  
>>>       
>> I have "expat-1.95.5-6".
>> (I know it's a prehistoric version, but I guess I'm not the only one 
>> working in the 20ieth century ...;-)
>>     
>
> Yep:
>
> Release 1.95.7 Mon Oct 20 2003
>
>         - Introduced an XMLCALL macro to control the calling
>           convention used by the Expat API; this macro should be used
>           to annotate prototypes and definitions of callback
>           implementations in code compiled with a calling convention
>           other than the default convention for the host platform.
>
> We could provide a default definition of XMLCALL in gdb_expat.h,
> to empty.  Does that work?
>
>   
Yes it works with that.

Here is the proposed patch

-- 
Denis

2007-02-13  Denis Pilat  <denis.pilat@st.com>

	* gdb_expat.h (XMLCALL): Defined.

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	13 Feb 2007 09:47:21 -0000
@@ -31,4 +31,10 @@
 # define XML_STATUS_ERROR 0
 #endif
 
+/* Provide an empty definition of XMLCALL since it is defined only from
+   version 1.95.7 of Expat.  */
+#ifndef XMLCALL
+# define XMLCALL
+#endif
+
 #endif /* !defined(GDB_EXPAT_H) */




  parent reply	other threads:[~2007-02-13  9:52 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-02-12 13:57 Denis PILAT
2007-02-12 15:11 ` Daniel Jacobowitz
     [not found]   ` <45D089E5.8040900@st.com>
     [not found]     ` <20070212205100.GA28635@caradoc.them.org>
2007-02-13  9:52       ` Denis PILAT [this message]
2007-02-20 19:53         ` Daniel Jacobowitz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=45D18A63.8040506@st.com \
    --to=denis.pilat@st.com \
    --cc=drow@false.org \
    --cc=gdb-patches@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox