All of lore.kernel.org
 help / color / mirror / Atom feed
From: Boris Ostrovsky <boris.ostrovsky@oracle.com>
To: Ian Campbell <Ian.Campbell@citrix.com>
Cc: Wei Liu <wei.liu2@citrix.com>,
	ian.jackson@eu.citrix.com, xen-devel@lists.xen.org
Subject: Re: [PATCH v6 00/18] libxl: JSON infrastructure, fixes and prerequisite patches for new API
Date: Tue, 10 Jun 2014 16:51:35 -0400	[thread overview]
Message-ID: <53976FD7.9040309@oracle.com> (raw)
In-Reply-To: <53976631.7040001@oracle.com>

On 06/10/2014 04:10 PM, Boris Ostrovsky wrote:
> On 06/10/2014 10:14 AM, Ian Campbell wrote:
>> On Mon, 2014-06-09 at 13:43 +0100, Wei Liu wrote:
>>> Wei Liu (18):
>>>   A libxl: make cpupool_qualifier_to_cpupoolid a library function
>> Applied.
>>>   A xl: remove parsing of "vncviewer" option in xl domain config file
>> Applied.
>>
>>>   M libxl: fix JSON generator for uint64_t
>> Acked + applied.
>>
>>>   A libxl IDL: rename json_fn to json_gen_fn
>>>   A libxl_json: introduce libxl__object_from_json
>>>   A libxl_json: introduce parser functions for builtin types
>
> The last one breaks on older gcc:
>
> In file included from flexarray.c:16:
> libxl_internal.h:136: error: redefinition of typedef ‘libxl__gc’
> libxl_json.h:25: note: previous declaration of ‘libxl__gc’ was here
> In file included from flexarray.c:16:
> libxl_internal.h:1641: error: redefinition of typedef 
> ‘libxl__json_object’
> libxl_json.h:26: note: previous declaration of ‘libxl__json_object’ 
> was here
> make[4]: *** [flexarray.o] Error 1
>
>
> Looks like at some point gcc started allowing multiple typedefs. So, 
> for example:

And this is apparently that point (for version 4.6, I believe):

https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=ce3765bf44e49ef0568a1ad4a0b7f807591d6412


-boris

>
>
> FC-64 <build@build-mk2:/tmp> cat foo.c; gcc --version |head -1; gcc foo.c
> typedef int foo;
> typedef int foo;
> main(){}
> gcc (GCC) 4.4.4 20100503 (Red Hat 4.4.4-2)
> foo.c:2: error: redefinition of typedef ‘foo’
> foo.c:1: note: previous declaration of ‘foo’ was here
> FC-64 <build@build-mk2:/tmp>
>
>
> but
>
> ostr@workbase> cat foo.c; gcc --version |head -1; gcc foo.c
> typedef int foo;
> typedef int foo;
> main(){}
>
> gcc (GCC) 4.7.2 20121109 (Red Hat 4.7.2-8)
> ostr@workbase>
>
>
> -boris
>
>
>> Applied all three.
>>
>>>   M libxl/gentypes.py: special-case KeyedUnion map handle generation
>> Acked + applied.
>>
>>>   C libxl IDL: generate code to parse libxl__json_object to libxl_FOO
>>>       struct
>>>   A libxl/gentest.py: test JSON parser
>> I skipped reviewing these ones this time around. Will come back to them.
>>
>>>   A libxl: introduce libxl_key_value_list_length
>>>   A libxl: introduce libxl_cpuid_policy_list_length
>> Applied.
>>
>>>   A libxl: copy function for builtin types
>> This one didn't apply due to some missing prerequisites. At this point I
>> stopped trying to apply things because I figured the rest wouldn't apply
>> either.
>>
>> Ian.
>>
>>
>> _______________________________________________
>> Xen-devel mailing list
>> Xen-devel@lists.xen.org
>> http://lists.xen.org/xen-devel
>
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xen.org
> http://lists.xen.org/xen-devel

  reply	other threads:[~2014-06-10 20:51 UTC|newest]

Thread overview: 48+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-09 12:43 [PATCH v6 00/18] libxl: JSON infrastructure, fixes and prerequisite patches for new API Wei Liu
2014-06-09 12:43 ` [PATCH v6 01/18] libxl: make cpupool_qualifier_to_cpupoolid a library function Wei Liu
2014-06-09 12:43 ` [PATCH v6 02/18] xl / libxl: push parsing of SSID and CPU pool ID down to libxl Wei Liu
2014-06-10 12:57   ` Ian Campbell
2014-06-10 14:16     ` Wei Liu
2014-06-09 12:43 ` [PATCH v6 03/18] xl / libxl: push VCPU affinity pinning " Wei Liu
2014-06-09 12:53   ` Wei Liu
2014-06-10  6:59   ` Dario Faggioli
2014-06-10  8:09     ` Wei Liu
2014-06-10 13:01       ` Ian Campbell
2014-06-10 13:09         ` Dario Faggioli
2014-06-10 13:46           ` Wei Liu
2014-06-10 14:01   ` Ian Campbell
2014-06-10 14:06     ` Wei Liu
2014-06-10 15:59       ` Dario Faggioli
2014-06-09 12:43 ` [PATCH v6 04/18] libxl: libxl_uuid_copy now takes a ctx argument Wei Liu
2014-06-10 13:05   ` Ian Campbell
2014-06-10 13:55     ` Wei Liu
2014-06-09 12:43 ` [PATCH v6 05/18] xl: remove parsing of "vncviewer" option in xl domain config file Wei Liu
2014-06-09 12:43 ` [PATCH v6 06/18] libxl: fix JSON generator for uint64_t Wei Liu
2014-06-09 12:43 ` [PATCH v6 07/18] libxl IDL: rename json_fn to json_gen_fn Wei Liu
2014-06-09 12:43 ` [PATCH v6 08/18] libxl_json: introduce libxl__object_from_json Wei Liu
2014-06-09 12:43 ` [PATCH v6 09/18] libxl_json: introduce parser functions for builtin types Wei Liu
2014-06-09 12:43 ` [PATCH v6 10/18] libxl/gentypes.py: special-case KeyedUnion map handle generation Wei Liu
2014-06-09 12:43 ` [PATCH v6 11/18] libxl/gentypes.py: don't generate default values Wei Liu
2014-06-10 13:25   ` Ian Campbell
2014-06-10 13:43     ` Wei Liu
2014-06-10 14:31       ` Wei Liu
2014-06-10 14:56       ` Ian Campbell
2014-06-10 15:49         ` Wei Liu
2014-06-10 15:54           ` Ian Campbell
2014-06-10 15:59             ` Wei Liu
2014-06-09 12:43 ` [PATCH v6 12/18] libxl IDL: generate code to parse libxl__json_object to libxl_FOO struct Wei Liu
2014-06-10 13:32   ` Ian Campbell
2014-06-09 12:43 ` [PATCH v6 13/18] libxl/gentest.py: test JSON parser Wei Liu
2014-06-09 12:43 ` [PATCH v6 14/18] libxl: introduce libxl_key_value_list_length Wei Liu
2014-06-09 12:43 ` [PATCH v6 15/18] libxl: introduce libxl_cpuid_policy_list_length Wei Liu
2014-06-09 12:43 ` [PATCH v6 16/18] libxl: copy function for builtin types Wei Liu
2014-06-09 12:43 ` [PATCH v6 17/18] libxl IDL: generate deep copy functions Wei Liu
2014-06-09 12:43 ` [PATCH v6 18/18] libxl/gentest.py: test " Wei Liu
2014-06-10 14:14 ` [PATCH v6 00/18] libxl: JSON infrastructure, fixes and prerequisite patches for new API Ian Campbell
2014-06-10 20:10   ` Boris Ostrovsky
2014-06-10 20:51     ` Boris Ostrovsky [this message]
2014-06-10 21:21       ` Wei Liu
2014-06-10 21:38         ` Boris Ostrovsky
2014-06-10 21:42           ` Wei Liu
2014-06-11  8:47         ` Ian Campbell
2014-06-11  8:53           ` Wei Liu

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=53976FD7.9040309@oracle.com \
    --to=boris.ostrovsky@oracle.com \
    --cc=Ian.Campbell@citrix.com \
    --cc=ian.jackson@eu.citrix.com \
    --cc=wei.liu2@citrix.com \
    --cc=xen-devel@lists.xen.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.