[Image-SIG] pbs with Jpeg

Fredrik Lundh fredrik@pythonware.com
Fri, 9 Jul 1999 10:36:01 +0200


Arne Keller <arne.keller@ppm.u-psud.fr> wrote:
> I'm trying to install PIL (Imaging-1.0b1) on linux.
> 
> and I have the following compilation error:
> 
> gcc -O -I./. -I/usr/local/include -DHAVE_CONFIG_H   -c JpegDecode.c -o
> JpegDecode.o
> JpegDecode.c:42: parse error before `void'
> JpegDecode.c:48: parse error before `boolean'
> JpegDecode.c:55: parse error before `void'
> JpegDecode.c:96: parse error before `void'
> JpegDecode.c:100: `cinfo' undeclared here (not in a function)
> JpegDecode.c:100: warning: data definition has no type or storage class
> JpegDecode.c:105: parse error before `->'
> JpegDecode.c:105: conflicting types for `longjmp'
> /usr/include/setjmp.h:93: previous declaration of `longjmp'
> JpegDecode.c:105: warning: data definition has no type or storage class
> JpegDecode.c: In function `ImagingJpegDecode':
> JpegDecode.c:130: warning: assignment makes pointer from integer without a cast
> make: *** [JpegDecode.o] Error 1

you have an old version of the JPEG library (probably
version 6, not 6a or later).

either update your JPEG library, or change the offending
lines from

    METHODDEF(...)

to

    METHODDEF ...

(and so on)

</F>