[Dovecot] dovecot-2.0.beta4: compiler gets stuck making master-service-settings.o Mac OS X 10.6.2
Axel Luttgens
AxelLuttgens at swing.be
Sat Apr 3 16:35:18 EEST 2010
Le 3 avr. 2010 à 15:02:47, Giuliano Gavazzi a écrit :
> dovecot-2.0.beta4
>
> Environment:
>
> MacOS X 10.6.2, Xcode 3.2.1 (gcc-4.2)
>
> Problem:
>
> ./configure --sysconfdir=/usr/local/conf/
>
> make
>
> [...]
>
> /bin/sh ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../.. -I../../src/lib -I../../src/lib-settings -DPKG_RUNDIR=\""/usr/local/var/run/dovecot"\" -DSYSCONFDIR=\""/usr/local/conf/dovecot"\" -DBINDIR=\""/usr/local/bin"\" -std=gnu99 -g -O2 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -Wstrict-aliasing=2 -MT master-service-settings.lo -MD -MP -MF .deps/master-service-settings.Tpo -c -o master-service-settings.lo master-service-settings.c
> libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../.. -I../../src/lib -I../../src/lib-settings -DPKG_RUNDIR=\"/usr/local/var/run/dovecot\" -DSYSCONFDIR=\"/usr/local/conf/dovecot\" -DBINDIR=\"/usr/local/bin\" -std=gnu99 -g -O2 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -Wstrict-aliasing=2 -MT master-service-settings.lo -MD -MP -MF .deps/master-service-settings.Tpo -c master-service-settings.c -fno-common -DPIC -o .libs/master-service-settings.o
>
> never ends (well, I let it take over 3 minutes of cpu on a Xserve 2.26GHz Xeon and over 5 minutes on a Core 2 Duo before killing it).
Hello Giuliano,
You may want to add flag -fno-reorder-blocks to line 121 of src/lib-master/Makefile:
CFLAGS = -std=gnu99 -g -O2 -fno-reorder-blocks -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -Wstrict-aliasing=2
then run make.
Otherwise, Timo devised those patches:
http://hg.dovecot.org/dovecot-2.0/rev/ddbc6e8b2776
http://hg.dovecot.org/dovecot-2.0/rev/43f2452b7dd8
http://hg.dovecot.org/dovecot-2.0/rev/f483bbface26
which also are included in the current development tarball (http://hg.dovecot.org/dovecot-2.0/archive/tip.tar.gz).
It is likeley that there a slight problem with Apple's implementation of GNU suite (bug report submitted).
HTH,
Axel
More information about the dovecot
mailing list