Dovecot 2.3.6 on Solaris10: build issues, segfaults

Aki Tuomi aki.tuomi at
Tue Jul 9 08:35:33 EEST 2019

On 9.7.2019 3.02, Joseph Tam via dovecot wrote:
> Hopefully, there is some fix for issue 3 which is beyond my
> skill to fix.
> Issue 1) Need recent gcc version
>     Building Dovecot versions <=2.2.x using gcc 3.4.4 worked,
>     but this gcc version fails to build 2.3.x properly: symptoms
>     include compile failures and executable crashes that depended
>     on the amount of optimization used, which is usually a sign of
>     compiler bugs.    (It could also be issue 3 in disguise.)
>     Either way, I updated to gcc 9.1.0.
> Issue 2) Cannot build with --enable-hardening
>     Using gcc 9.1.0, "configure" step fails because fd passing was
>     broken, but the real problem was a compilation failure when
>     "--enable-hardening" is used.  Demonstration:
>     # echo 'int main(){char a[1]; strcpy(a,a);} ' | gcc -w
> -fstack-protector-strong -x c -
>     Undefined                       first referenced
>      symbol                             in file
>     __stack_chk_guard                   /var/tmp//cc12L9zV.o  (symbol
> scope specifies local binding)
>     ld: fatal: symbol referencing errors. No output written to a.out
>     collect2: error: ld returned 1 exit status
>     I'm not sure if this is a Solaris10 fumble, but configuring
>     "--disable-hardening" removes the "-fstack-protector-strong"
>     compiler option, which resolves this issue.
> Issue 3) dovecot/doveconf segfaults on startup
>     It crashes here while processing dovecot.conf, as does "doveconf"
Just to be sure ... 

You did gmake clean; ./configure <opts>; gmake

We'll look at the 3rd issue, the 2nd issue looks really odd, and I'm
verging on compiler bug there. As for 1st, isn't gcc 3 rather old?


More information about the dovecot mailing list