Timo,
I installed beta8 plus your patch on Solaris 10 sparc, and it seems to be working so far...
Jeff Earickson Colby College
On Sat, 13 May 2006, grant beattie wrote:
Date: Sat, 13 May 2006 10:52:01 +1000 From: grant beattie grant@grunta.com To: Mike Brudenell pmb1@york.ac.uk Cc: Timo Sirainen tss@iki.fi, dovecot@dovecot.org Subject: Re: [Dovecot] 1.0beta8 won't start: Fatal: Protocol imaps given more than once
On Fri, May 12, 2006 at 02:28:25PM +0100, Mike Brudenell wrote:
Greetings -
--On 12 May 2006 16:00:31 +0300 Timo Sirainen tss@iki.fi wrote:
OK, I guess you didn't compile with C99-compatible C compiler.
If it's any help I'm using a quite up to date copy of Sun's WSpro C compiler (don't know if there's a more up to date product name: they change it every now and then)...
% cc -V cc: Sun C 5.8 Patch 121016-02 2006/03/31
Its man page mentions a "-xc99" command line option which I've just tried using to build the (unpatched) source ... which then runs fine.
The problem is that Dovecot fallbacks to old way of initializing structs, and looks like I've been lazy and not keeping them working properly.
Attached patch should fix it.
I then applied your patch and rebuilt Dovecot *without* the "-xc99" compiler option ... and that, too, works fine.
Timo, Mike,
I wonder if this has something to do with the occasional crashing problem I'm observing on Solaris?... I am using
# /opt/SUNWspro/bin/cc -V cc: Sun C 5.7 Patch 117837-04 2005/05/11
I'll give this a try later today.
grant.