[Dovecot] Problem compiling 2.2.5

Timo Sirainen tss at iki.fi
Thu Aug 22 19:58:07 EEST 2013


On 20.8.2013, at 19.57, Luciano Mannucci <luciano at vespaperitivo.it> wrote:

> I'm trying to upgrade a very old sparcstation running Solaris 8 which
> is running dovecot 1.x for few users. All I have for the task is good
> old gcc 2.95.2. The poor sod complains because it can't compute the
> sizeof(unsigned char prefix_text[]) at line 13 of log-error-buffer.c.
> Can I help it by - say - putting a constant between the '[]'?
> Or is it unfair? :-)
> I don't think it's woth modifying the distribution only for us owning
> machines that should be in a museum by now…

unsigned char prefix_text[FLEXIBLE_ARRAY_MEMBER]; probably works? Any other places where it fails?



More information about the dovecot mailing list