Hello, thank You, this solution worked too. But had to do same thing for those files: test-http-client-errors.c:388 test-http-client-errors.c:484 test-http-client-errors.c:556 test-http-client-errors.c:636 test-http-server-errors.c:594 main.c:63 director.c:1445 director.c:1448 imap-client.c:253 director.c:1445 director.c:1448 mail-stats.c:56 Is this an old compiler issue or something else? Timo Sirainen <tss at iki.fi> ra??:> On 2 Feb 2017, at 19.38, Mantas Gegu?is <mantas.geguzis at ittc.vu.lt> wrote: >> >> Hello, >> >> I am tying to compile Dovecot 2.2.27 on Solaris 10, and I get this error: >> test-ioloop.c: In function `test_ioloop_pending_io': >> test-ioloop.c:188: error: size of array `type name' is negative > > Change NULL to (void *)NULL in that line.-- Pagarbiai Mantas Gegu?is VU Informacini? technologij? taikymo centras tel. 8 5 236 6208
On 6 Feb 2017, at 17.06, Mantas Gegu?is <mantas.geguzis at ittc.vu.lt> wrote:> > Hello, > > thank You, this solution worked too. But had to do same thing for those files: > > test-http-client-errors.c:388 > test-http-client-errors.c:484 > test-http-client-errors.c:556 > test-http-client-errors.c:636 > test-http-server-errors.c:594 > main.c:63 > director.c:1445 > director.c:1448 > imap-client.c:253 > director.c:1445 > director.c:1448 > mail-stats.c:56 > > Is this an old compiler issue or something else?Try this: https://github.com/dovecot/core/commit/dd6043c05e32a8e8db1233ed711a2c74d1477a89 <https://github.com/dovecot/core/commit/dd6043c05e32a8e8db1233ed711a2c74d1477a89>
Timo Sirainen <tss at iki.fi> ra??:> On 6 Feb 2017, at 17.06, Mantas Gegu?is <mantas.geguzis at ittc.vu.lt>wrote:> >> Hello, >> >> thank You, this solution worked too. But had to do same thing for those >> files: >> >> test-http-client-errors.c:388 >> test-http-client-errors.c:484 >> test-http-client-errors.c:556 >> test-http-client-errors.c:636 >> test-http-server-errors.c:594 >> main.c:63 >> director.c:1445 >> director.c:1448 >> imap-client.c:253 >> director.c:1445 >> director.c:1448 >> mail-stats.c:56 >> >> Is this an old compiler issue or something else? > > ? > Try >this:?https://github.com/dovecot/core/commit/dd6043c05e32a8e8db1233ed711a2c74d1477a89 This one fixes issue with old Solaris 10 compiler. Pagarbiai Mantas Gegu?is VU Informacini? technologij? taikymo centras tel. 8 5 236 6208