[Dovecot] Problem compiling 2.2.5
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...
Thanks for the good software, BTW,
luciano.
/"\ /Via A. Salaino, 7 - 20144 Milano (Italy) \ / ASCII RIBBON CAMPAIGN / PHONE : +39 2 485781 FAX: +39 2 48578250 X AGAINST HTML MAIL / E-MAIL: posthamster@sublink.sublink.ORG / \ AND POSTINGS / WWW: http://www.lesassaie.IT/
Le 20 août 2013 à 18:57, Luciano Mannucci a écrit :
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? :-)
Hello Luciano,
Wouldn't
unsigned char * prefix_text
be equivalent in such a context?
I don't think it's woth modifying the distribution only for us owning machines that should be in a museum by now...
Solaris 8... yes, quite a long time now. :-)
Axel
On Tue, 20 Aug 2013 22:29:08 +0200 Axel Luttgens <AxelLuttgens@swing.be> wrote:
Wouldn't
unsigned char * prefix_text
be equivalent in such a context? It should. That's the first thing I tried. It dumps core, tough...
Luciano.
/"\ /Via A. Salaino, 7 - 20144 Milano (Italy) \ / ASCII RIBBON CAMPAIGN / PHONE : +39 2 485781 FAX: +39 2 48578250 X AGAINST HTML MAIL / E-MAIL: posthamster@sublink.sublink.ORG / \ AND POSTINGS / WWW: http://www.lesassaie.IT/
On 08/20/13 12:57 PM, Luciano Mannucci 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.
opencsw.org might have dovecot 2.2.4 for Solaris 8 You might need lots of dependencies if you have not used opencsw before, but their pkg installer should take care of them too. They also have newer versions of gcc, if you still prefer to compile 2.2.5 from source.
On Tue, 20 Aug 2013 16:43:31 -0400 Oscar del Rio <delrio@mie.utoronto.ca> wrote:
opencsw.org might have dovecot 2.2.4 for Solaris 8 Thanks for the pointer. I'll have a look.
Thanks again,
Luciano.
/"\ /Via A. Salaino, 7 - 20144 Milano (Italy) \ / ASCII RIBBON CAMPAIGN / PHONE : +39 2 485781 FAX: +39 2 48578250 X AGAINST HTML MAIL / E-MAIL: posthamster@sublink.sublink.ORG / \ AND POSTINGS / WWW: http://www.lesassaie.IT/
On 08/21/13 05:08 AM, Luciano Mannucci wrote:
On Tue, 20 Aug 2013 16:43:31 -0400 Oscar del Rio <delrio@mie.utoronto.ca> wrote:
opencsw.org might have dovecot 2.2.4 for Solaris 8 Thanks for the pointer. I'll have a look.
Correction. OpenCSW no longer supports Solaris 8. But they still have a "legacy" repository where you could get gcc3 and try to compile dovecot. http://mirror.opencsw.org/opencsw/legacy/sparc/5.8
On Wed, 21 Aug 2013 10:34:48 -0400 Oscar del Rio <delrio@mie.utoronto.ca> wrote:
Correction. OpenCSW no longer supports Solaris 8. But they still have a "legacy" repository where you could get gcc3 and try to compile dovecot. Yes, I've noticed there's no more "unstable" repository for 5.8...
http://mirror.opencsw.org/opencsw/legacy/sparc/5.8 Yes. Though, "testing" seems to have newer software. There is even a dovecot 11.1.1 and a rich gcc 4:
http://mirror.opencsw.org/opencsw/testing/sparc/5.8/
Thanks again,
Luciano.
/"\ /Via A. Salaino, 7 - 20144 Milano (Italy) \ / ASCII RIBBON CAMPAIGN / PHONE : +39 2 485781 FAX: +39 2 48578250 X AGAINST HTML MAIL / E-MAIL: posthamster@sublink.sublink.ORG / \ AND POSTINGS / WWW: http://www.lesassaie.IT/
On 20.8.2013, at 19.57, Luciano Mannucci <luciano@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?
participants (4)
-
Axel Luttgens
-
Luciano Mannucci
-
Oscar del Rio
-
Timo Sirainen