Hi Stojan,

Thanks for reporting the issue.

The problem seems related to a missing #include <stdbool.h>

You can either add this line before #include <util/time.h> in
SOGoMAPIFSFolder.m:43 or maybe include <mapistore/mapistore.h> prior to
<util/time.h>.

If you hit this issue more than once, you can also directly add #include
<stdbool.h> at the top of util/time.h but I would rather suggest you the
first option.

In The meanwhile, I'll start a FAQ at the end of the documentation to
cover these different issues.

Kind Regards,
Julien.

On Tue, 2011-12-27 at 22:31 +0100, Stojan Rancic (Iprom) wrote:
> Hello,
> 
> I'm following the OC/SoGo appliance installation script 
> (http://tracker.openchange.org/projects/openchange/wiki/HowTo_build_your_own_OpenChangeSOGo_appliance)
>  
> and I'm having issues when compiling the SOGo OpenChange plugin.
> 
> I get the error below. If I take a look at time.h I can see all the 
> errors occur with 'bool' usage..
> 
> I'm compiling this on Debian/Stable (6.0.3) .
> 
> Making all for bundle SOGoBackend...
>   Creating SOGoBackend.MAPIStore/....
>   Compiling file MAPIApplication.m ...
>   Compiling file MAPIStoreActiveTables.m ...
>   Compiling file MAPIStoreAuthenticator.m ...
>   Compiling file MAPIStoreMapping.m ...
>   Compiling file MAPIStoreMIME.m ...
>   Compiling file MAPIStoreTypes.m ...
>   Compiling file MAPIStorePropertySelectors.m ...
>   Compiling file MAPIStoreSamDBUtils.m ...
>   Compiling file SOGoMAPIVolatileMessage.m ...
>   Compiling file SOGoMAPIFSFolder.m ...
> In file included from SOGoMAPIFSFolder.m:43:
> /usr/local/samba/include/util/time.h:83: error: expected ‘=’, ‘,’, ‘;’, 
> ‘asm’ or ‘__attribute__’ before ‘null_time’
> /usr/local/samba/include/util/time.h:88: error: expected ‘=’, ‘,’, ‘;’, 
> ‘asm’ or ‘__attribute__’ before ‘null_nttime’
> /usr/local/samba/include/util/time.h:132: error: expected declaration 
> specifiers or ‘...’ before ‘bool’
> /usr/local/samba/include/util/time.h:139: error: expected declaration 
> specifiers or ‘...’ before ‘bool’
> /usr/local/samba/include/util/time.h:191: error: expected ‘=’, ‘,’, ‘;’, 
> ‘asm’ or ‘__attribute__’ before ‘timeval_is_zero’
> /usr/local/samba/include/util/time.h:241: error: expected ‘=’, ‘,’, ‘;’, 
> ‘asm’ or ‘__attribute__’ before ‘timeval_expired’
> /usr/local/samba/include/util/time.h:291: error: expected ‘=’, ‘,’, ‘;’, 
> ‘asm’ or ‘__attribute__’ before ‘nt_time_equal’
> /usr/local/samba/include/util/time.h:301: error: expected ‘=’, ‘,’, ‘;’, 
> ‘asm’ or ‘__attribute__’ before ‘null_timespec’
> make[3]: *** [obj/SOGoBackend.obj/SOGoMAPIFSFolder.m.o] Error 1
> make[2]: *** [internal-bundle-run-compile-submake] Error 2
> make[1]: *** [SOGoBackend.all.bundle.variables] Error 2
> make: *** [internal-all] Error 2
> _______________________________________________
> devel mailing list
> devel@lists.openchange.org
> http://mailman.openchange.org/listinfo/devel

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
devel mailing list
devel@lists.openchange.org
http://mailman.openchange.org/listinfo/devel

Reply via email to