[Image-SIG] Error while "make check" under PIL's libImaging directory

Fredrik Lundh fredrik@pythonware.com
Wed, 5 Dec 2001 18:51:34 +0100


Ziying Sherwin wrote:
> nob>make check
> gcc -O -I./. -I/depot/include -DHAVE_CONFIG_H  -c  JpegDecode.c
> 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"

looks like you're using an old version of the JPEG library.

either upgrade to the latest version (6b), or modify the function
signatures in PIL's Jpeg modules.  iirc, you need to change

    METHODDEF(void)
    stub(j_decompress_ptr cinfo)

to

    METHODDEF void
    stub(j_decompress_ptr cinfo)

(etc)

recent versions of the JPEG library is available from www.ijg.org

</F>