Stojan Rancic (Iprom | 27 Dec 2011 22:31
Picon

[openchange]SoGo / Openchange plugin compile failure

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 
(Continue reading)

Julien Kerihuel | 3 Jan 2012 10:33
Favicon
Gravatar

Re: [openchange]SoGo / Openchange plugin compile failure

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..
(Continue reading)


Gmane