[Dovecot] dovecot-2.0.alpha2 doesn't compile on Mac OS X

Timo Sirainen tss at iki.fi
Tue Oct 27 21:21:07 EET 2009


On Tue, 2009-10-27 at 13:13 -0500, Mike Abbott wrote:
> > Thanks, fixed. But why is your compiler taking that code path?
> >
> > #if (defined(__STDC__) && __STDC_VERSION__ >= 199901L)
> 
> For whatever reason, __STDC_VERSION__ isn't defined.  __STDC__ is  
> though.

Sounds like gcc isn't being run in C99 mode for some reason. Are you
giving any special configure or CFLAGS options?

> libtool: link: gcc -Wl,-undefined -Wl,dynamic_lookup -o .libs/ 
> lib02_imap_acl_plugin.so -bundle  .libs/imap-acl-plugin.o   ../ 
> acl/.libs/lib01_acl_plugin.so
> ld: in ../acl/.libs/lib01_acl_plugin.so, can't link with bundle  
> (MH_BUNDLE) only dylibs (MH_DYLIB) for architecture i386
> collect2: ld returned 1 exit status

I guess there's something different in your setup than in regular OSX. I
just got a new macbook, installed Xcode and Dovecot 2.0.alpha2 tarball
compiled without any errors.

Although fdatasync() seems to have gone missing from .h files, but still
exists in libc. I guess that's intentional?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
Url : http://dovecot.org/pipermail/dovecot/attachments/20091027/393581b5/attachment-0001.bin 


More information about the dovecot mailing list