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

Mike Abbott michael.abbott at apple.com
Tue Oct 27 20:13:09 EET 2009


> 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.

>> Second, Mac OS X can't link loadable modules against other loadable  
>> modules (http://www.finkproject.org/doc/porting/porting.en.html#shared.lib-and-mod 
>> ):
>
> So are you saying that the compiling part also fails with you?

Yes:
/bin/sh ../../../libtool --tag=CC   --mode=link gcc  -Os -pipe -module  
-avoid-version  -o lib02_imap_acl_plugin.la -rpath /usr/lib/dovecot  
imap-acl-plugin.lo ../acl/lib01_acl_plugin.la

*** Warning: Linking the shared library lib02_imap_acl_plugin.la  
against the loadable module
*** lib01_acl_plugin.so is not portable!
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



More information about the dovecot mailing list