Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: 4.1.1 doesn't compile
- X-seq: zsh-workers 18633
- From: Tomi Vainio - Sun Finland <Tomi.Vainio@xxxxxxx>
- To: Oliver Kiddle <okiddle@xxxxxxxxxxx>
- Subject: Re: 4.1.1 doesn't compile
- Date: Wed, 25 Jun 2003 14:58:47 +0300
- Cc: zsh-workers@xxxxxxxxxx
- In-reply-to: <21028.1056534512@xxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <16120.21181.974421.168422@xxxxxxxxxxxxxxxxxxxxxxxx> <13714.1056468548@xxxxxxxxxxx> <16121.23378.685635.437515@xxxxxxxxxxxxxxxxxxxxxxxx> <21028.1056534512@xxxxxxxxxxx>
- Reply-to: Tomi.Vainio@xxxxxxx
Oliver Kiddle writes:
> Tomi Vainio - Sun Finland wrote:
> > I also found another problem but this time only when I try to compile
> > 32bit binary.
> >
> > Compiler is Sun ONE Studio 8, Compiler Collection
> > cc: Sun C 5.5 Patch 112760-01 2003/05/18
> >
> > cc -c -I. -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DHAVE_CONFIG_H -xO4 -o compat.o compat.c
> > "compat.c", line 441: variable length array can not be declared with a static storage class: llbuf
> > cc: acomp failed for compat.c
>
> This I can't reproduce. The compiler I have is older than that.
>
> The line in question is:
> static char llbuf[DIGBUFSIZE];
> and system.h defines:
> #define DIGBUFSIZE ((int)(((sizeof(zlong) * 8) - 1) * 0.30103) + 3)
>
> So quite why the compiler thinks it has a variable length array I
> don't understand. Could you perhaps try substituting that in directly
> and see if you can tweak it to work. The int cast might be causing the
> problem in which case the * 0.30103 could perhaps be changed to * 30103
> / 100000. But I don't understand what the calculation is doing. Anyone
> else have any idea?
>
I also tried with older compiler "cc: Forte Developer 7 C 5.4
2002/03/09" which doesn't give an error on this.
Tomppa
Messages sorted by:
Reverse Date,
Date,
Thread,
Author