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 at 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 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 20.8.2013, at 19.57, Luciano Mannucci <luciano at 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?