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.
Please find the patch in attachment. Kr, -- Dr. Christophe Dumez Linux Software Engineer Intel Finland Oy - Open Source Technology Center
From 0d1e6ae3bcefa42cc66dd441c04fe37cdabf5fe5 Mon Sep 17 00:00:00 2001 From: Christophe Dumez <[email protected]> Date: Wed, 3 Aug 2011 13:52:20 +0300 Subject: [PATCH] Fix compilation with gcc 4.6.0 Add missing includes to <cstddef> to use offsetof() function. --- src/sysync/binfileimplclient.cpp | 1 + src/sysync/binfileimplds.cpp | 2 ++ 2 files changed, 3 insertions(+), 0 deletions(-) diff --git a/src/sysync/binfileimplclient.cpp b/src/sysync/binfileimplclient.cpp index 3b694be..e3a563e 100755 --- a/src/sysync/binfileimplclient.cpp +++ b/src/sysync/binfileimplclient.cpp @@ -20,6 +20,7 @@ #include "binfileimplds.h" #include "syserial.h" +#include <cstddef> namespace sysync { diff --git a/src/sysync/binfileimplds.cpp b/src/sysync/binfileimplds.cpp index 1a0d5d9..96a48cb 100755 --- a/src/sysync/binfileimplds.cpp +++ b/src/sysync/binfileimplds.cpp @@ -20,6 +20,8 @@ #include "binfileimplclient.h" #include "binfileimplds.h" +#include <cstddef> + #if defined(BINFILE_ALWAYS_ACTIVE) && defined(SYSYNC_SERVER) #error "BINFILE_ALWAYS_ACTIVE is not compatible with server-enabled builds" #endif -- 1.7.6
_______________________________________________ SyncEvolution mailing list [email protected] http://lists.syncevolution.org/listinfo/syncevolution
