[Image-SIG] Compile problem on SGI IRIX 6.2

Fredrik Lundh fredrik@pythonware.com
Wed, 16 Jun 1999 13:10:41 +0200


Mona Wong <mona@eel.ucsd.edu> wrote:
> I'm attempting to compile PIL 1.0b1 on a SGI IRIX 6.2 machine.  I got
> the following error:
> 
> ...
> gcc -O -I./. -I/usr/local/include -DHAVE_CONFIG_H   -c Draw.c -o Draw.o
> In file included from Draw.c:28:
> /usr/local/lib/gcc-lib/mips-sgi-irix6.2/2.8.1/include/math.h:686: parse error
> before `size_t'
> gmake: *** [Draw.o] Error 1
> 
> I looked at the math.h file and it is this line:
> 
> extern char *   initstate(unsigned int, char *, size_t);
> 
> Does anyone know how to fix this problem?

from the look of it, your math.h library doesn't
include the necessary support files.  you could
try adding:

#include <stdlib.h>

before the math.h include in Draw.c.  please
tell us if that helped (I have access to a lot of
platforms, but no SGI.  contributions are wel-
come ;-)

</F>