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 My configuration is like this: Install prefix . : /usr/local File offsets ... : 64bit I/O polling .... : poll I/O notifys .... : none SSL ............ : yes (OpenSSL) GSSAPI ......... : no passdbs ........ : static passwd passwd-file shadow pam checkpassword dcrypt ..........: yes : -bsdauth -sia -ldap -sql -vpopmail userdbs ........ : static prefetch passwd passwd-file checkpassword : -ldap -sql -vpopmail -nss SQL drivers .... : : -pgsql -mysql -sqlite -cassandra Full text search : squat : -lucene -solr Last version that I have compiled was 2.2.24, version 2.2.25 failed with error: In file included from guid.c:6: sha1.h:80: error: static or type qualifiers in abstract declarator Is there anyone who can help me? -- Pagarbiai Mantas Gegu?is VU Informacini? technologij? taikymo centras tel. 8 5 236 6208
Hello, I don't have problems building 2.2.27 on Solaris 10 (using Sun Workshop compiler 5.11). The configuration is the same as your. Maybe a compiler/version problem on your system ? Regards, Martin Mantas Gegu?is 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 > > My configuration is like this: > Install prefix . : /usr/local > File offsets ... : 64bit > I/O polling .... : poll > I/O notifys .... : none > SSL ............ : yes (OpenSSL) > GSSAPI ......... : no > passdbs ........ : static passwd passwd-file shadow pam checkpassword > dcrypt ..........: yes > : -bsdauth -sia -ldap -sql -vpopmail > userdbs ........ : static prefetch passwd passwd-file checkpassword > : -ldap -sql -vpopmail -nss > SQL drivers .... : > : -pgsql -mysql -sqlite -cassandra > Full text search : squat > : -lucene -solr > > Last version that I have compiled was 2.2.24, version 2.2.25 failed with error: > In file included from guid.c:6: > sha1.h:80: error: static or type qualifiers in abstract declarator > > Is there anyone who can help me?---------------------------------------------------------------------- Martin Preen, Universit?t Freiburg, Institut f?r Informatik Georges-Koehler-Allee 52, Raum EG-006, 79110 Freiburg, Germany phone: ++49 761 203-8250 preen at informatik.uni-freiburg.de fax: ++49 761 203-8242 swt.informatik.uni-freiburg.de/staff/preen -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 5047 bytes Desc: S/MIME Cryptographic Signature URL: <http://dovecot.org/pipermail/dovecot/attachments/20170203/02705b06/attachment.p7s>
Hi there... I just had the same problem yesterday. I believe you're using the gcc3 compiler from /usr/sfw ? Try with a newer gcc 4. I used/installed the gcc4 packages from opencsw.org to get it going faster. (Installs under /opt/csw, so no problems with existing software.) Change your PATH to "/opt/csw/bin/gcc4:/opt/csw/bin:$PATH" bevor configure/compile and give it a try. Worked for me ... and 2.2.27 runs since a few hours. Am 02.02.2017 um 18:38 schrieb Mantas Gegu?is:> 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 > > My configuration is like this: > Install prefix . : /usr/local > File offsets ... : 64bit > I/O polling .... : poll > I/O notifys .... : none > SSL ............ : yes (OpenSSL) > GSSAPI ......... : no > passdbs ........ : static passwd passwd-file shadow pam checkpassword > dcrypt ..........: yes > : -bsdauth -sia -ldap -sql -vpopmail > userdbs ........ : static prefetch passwd passwd-file checkpassword > : -ldap -sql -vpopmail -nss > SQL drivers .... : > : -pgsql -mysql -sqlite -cassandra > Full text search : squat > : -lucene -solr > > Last version that I have compiled was 2.2.24, version 2.2.25 failed > with error: > In file included from guid.c:6: > sha1.h:80: error: static or type qualifiers in abstract declarator > > Is there anyone who can help me? >
Hi, thank You for a reply, compiling with Solaris Studio 12.5 solved this case. Martin Preen <preen at informatik.uni-freiburg.de> ra??:> Hello, > I don't have problems building 2.2.27 on Solaris 10 > (using Sun Workshop compiler 5.11). > > The configuration is the same as your. > Maybe a compiler/version problem on your system ? > > Regards, > Martin > > Mantas Gegu?is 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 >> >> My configuration is like this: >> Install prefix . : /usr/local >> File offsets ... : 64bit >> I/O polling .... : poll >> I/O notifys .... : none >> SSL ............ : yes (OpenSSL) >> GSSAPI ......... : no >> passdbs ........ : static passwd passwd-file shadow pam checkpassword >> dcrypt ..........: yes >> : -bsdauth -sia -ldap -sql -vpopmail >> userdbs ........ : static prefetch passwd passwd-file checkpassword >> : -ldap -sql -vpopmail -nss >> SQL drivers .... : >> : -pgsql -mysql -sqlite -cassandra >> Full text search : squat >> : -lucene -solr >> >> Last version that I have compiled was 2.2.24, version 2.2.25 failed >> with error: >> In file included from guid.c:6: >> sha1.h:80: error: static or type qualifiers in abstract declarator >> >> Is there anyone who can help me? > > ---------------------------------------------------------------------- > Martin Preen, Universit?t Freiburg, Institut f?r Informatik > Georges-Koehler-Allee 52, Raum EG-006, 79110 Freiburg, Germany > > phone: ++49 761 203-8250 preen at informatik.uni-freiburg.de > fax: ++49 761 203-8242 swt.informatik.uni-freiburg.de/staff/preen-- Pagarbiai Mantas Gegu?is VU Informacini? technologij? taikymo centras tel. 8 5 236 6208
Same here Sun compiler v5.12 on SPARC. Built cleanly this morning. I'll be upgrading from 2.2.18 this afternoon. :) -Dave On 02/03/2017 05:36 AM, Martin Preen wrote:> Hello, > I don't have problems building 2.2.27 on Solaris 10 > (using Sun Workshop compiler 5.11). > > The configuration is the same as your. > Maybe a compiler/version problem on your system ? > > Regards, > Martin > > Mantas Gegu?is 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 >> >> My configuration is like this: >> Install prefix . : /usr/local >> File offsets ... : 64bit >> I/O polling .... : poll >> I/O notifys .... : none >> SSL ............ : yes (OpenSSL) >> GSSAPI ......... : no >> passdbs ........ : static passwd passwd-file shadow pam checkpassword >> dcrypt ..........: yes >> : -bsdauth -sia -ldap -sql -vpopmail >> userdbs ........ : static prefetch passwd passwd-file checkpassword >> : -ldap -sql -vpopmail -nss >> SQL drivers .... : >> : -pgsql -mysql -sqlite -cassandra >> Full text search : squat >> : -lucene -solr >> >> Last version that I have compiled was 2.2.24, version 2.2.25 failed >> with error: >> In file included from guid.c:6: >> sha1.h:80: error: static or type qualifiers in abstract declarator >> >> Is there anyone who can help me? > > ---------------------------------------------------------------------- > Martin Preen, Universit?t Freiburg, Institut f?r Informatik > Georges-Koehler-Allee 52, Raum EG-006, 79110 Freiburg, Germany > > phone: ++49 761 203-8250 preen at informatik.uni-freiburg.de > fax: ++49 761 203-8242 swt.informatik.uni-freiburg.de/staff/preen >-- Dave McGuire, AK4HZ New Kensington, PA
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 negativeChange NULL to (void *)NULL in that line.
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