[Dovecot] issues with 2.1b1 on OS X
Two issues came up for me when building 2.1beta1 on OS X (10.5.8 on PPC). The first was already mentioned in an earlier thread by a BSD user (http://dovecot.org/list/dovecot/2011-September/061201.html). I just wanted to point out that the error is still occurring in spite of a new test for GNU ld in the configure script. I needed to remove "-no-undefined" specifically:
#NOPLUGIN_LDFLAGS="-no-undefined"
if test "$with_gnu_ld" = yes; then
NOPLUGIN_LDFLAGS="$NOPLUGIN_LDFLAGS -Wl,--as-needed"
fi
More important, Dovecot aborts on launch with the following error:
Nov 19 10:23:52 kerio2 dovecot[33553]: master: Fatal: kevent(EV_ADD,
READ, 16) failed: Invalid argument
I configured using the same args as I had used successfully on 2.0.15: --with-gssapi --with-ldap --with-sql --prefix=/opt/dovecot-2.X.X. I also tried an exact copy of my known-good config from 2.0.15, to no avail.
Thanks, Tony
On 19.11.2011, at 21.05, metro_domain_admin@fastmail.fm wrote:
Two issues came up for me when building 2.1beta1 on OS X (10.5.8 on PPC). The first was already mentioned in an earlier thread by a BSD user (http://dovecot.org/list/dovecot/2011-September/061201.html). I just wanted to point out that the error is still occurring in spite of a new test for GNU ld in the configure script. I needed to remove "-no-undefined" specifically:
This error?
Undefined symbols: "_environ", referenced from: _env_clean in env-util.o
http://hg.dovecot.org/dovecot-2.1/rev/b2c9298e981 and http://hg.dovecot.org/dovecot-2.1/rev/9d022d3fba42 fixes it.
More important, Dovecot aborts on launch with the following error:
Nov 19 10:23:52 kerio2 dovecot[33553]: master: Fatal: kevent(EV_ADD, READ, 16) failed: Invalid argument I configured using the same args as I had used successfully on 2.0.15: --with-gssapi --with-ldap --with-sql --prefix=/opt/dovecot-2.X.X. I also tried an exact copy of my known-good config from 2.0.15, to no avail.
Works in 10.6. What is the gdb backtrace of the crash with the attached patch?
On Sat, 2011-11-19 at 14:05 -0500, metro_domain_admin@fastmail.fm wrote:
More important, Dovecot aborts on launch with the following error:
Nov 19 10:23:52 kerio2 dovecot[33553]: master: Fatal: kevent(EV_ADD, READ, 16) failed: Invalid argument
This probably helps:
service stats { fifo_listener stats-mail { mode = 0 } }
Since this fails only in OSX 10.5 (not 10.6), I don't know if I'll bother adding any special code to work around it. In any case it means that kevent() can't be used on a FIFO, and that means you can't use v2.1's stats tracking feature. Or possibly you could try if it works with configure --with-ioloop=poll or select instead of kqueue.
participants (2)
-
metro_domain_admin@fastmail.fm
-
Timo Sirainen