On Wed, Aug 3, 2011 at 12:11 PM, Patrick Ohly <patrick.ohly@intel.com> wrote:
On Mi, 2011-08-03 at 13:59 +0300, Dumez, Christophe wrote:
> Hi,
>
> I was unable to compile the latest libsynthesis git (master) with gcc
> 4.6.0 on Fedora 15.
> The problem was that offsetof() function is used in 2 places but the
> cstddef header is not included.

After looking at this I found a similar patch in our master branch:

commit cde00a25eec9ff33f61f8adf2a9f5fb4be75eb6e
Author: Patrick Ohly <patrick.ohly@intel.com>
Date:   Thu May 5 19:40:45 2011 +0800

   gcc 4.6: fixed compile issue

   gcc 4.6 seems to change header dependencies. cstddef must
   be included explicitly. Kudos to Peter Robinson for
   reporting this and providing the patch.

Please use the libsynthesis from meego.gitorious.org, it is more recent
than the latest upstream.


Works fine with the bundled copy in 1.1.99.5a

Peter