Compiling Dovecot on Solaris 10
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 negativeMy 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@informatik.uni-freiburg.de fax: ++49 761 203-8242 swt.informatik.uni-freiburg.de/staff/preen
Hi,
thank You for a reply, compiling with Solaris Studio 12.5 solved this case.
Martin Preen <preen@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 negativeMy 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 declaratorIs 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@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
On 2017.02.03. 16:10, Mantas Gegužis wrote:
Hi,
thank You for a reply, compiling with Solaris Studio 12.5 solved this case.
Martin Preen <preen@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
A bit offtopic, but I'm interested what's the point of using so old OS (support still exists though)?
-- Kaspars
On 02/03/2017 03:22 PM, KSB wrote:
A bit offtopic, but I'm interested what's the point of using so old OS (support still exists though)?
Short version: It works.
Long version:
Solaris 10 is still supported; the production systems here are patched up to current as of last week. So while the base release is quite a few years old, the OS installed on these systems is considered current. When support and a current patch stream are no longer available, we will revisit our configuration.
For these production systems, there is currently no need for any capability or feature that exists only in "newer" OS releases. When that changes, we will revisit our configuration.
Until then, it's rock solid and does everything required of it. There are no problems to be addressed. At least here, we don't fix things that aren't broken.
-Dave
-- Dave McGuire, AK4HZ New Kensington, PA
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 negativeMy 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@informatik.uni-freiburg.de fax: ++49 761 203-8242 swt.informatik.uni-freiburg.de/staff/preen
-- Dave McGuire, AK4HZ New Kensington, PA
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 negativeMy 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?
On 2 Feb 2017, at 19.38, Mantas Gegužis <mantas.geguzis@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.
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@iki.fi> rašė:
On 2 Feb 2017, at 19.38, Mantas Gegužis <mantas.geguzis@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.
-- 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@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/dd6043c05e32a8e8db1233ed711a2c74d1477... <https://github.com/dovecot/core/commit/dd6043c05e32a8e8db1233ed711a2c74d1477a89>
Timo Sirainen <tss@iki.fi> rašė:
On 6 Feb 2017, at 17.06, Mantas Gegužis <mantas.geguzis@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/dd6043c05e32a8e8db1233ed711a2c74d1477...
This one fixes issue with old Solaris 10 compiler.
Pagarbiai Mantas Gegužis VU Informacinių technologijų taikymo centras tel. 8 5 236 6208
participants (6)
-
Dave McGuire
-
KSB
-
Mantas Gegužis
-
Martin Preen
-
Matthias Lohmann
-
Timo Sirainen