[PYTHON IMAGE-SIG] Another PIL bug.

Fredrik Lundh fredrik_lundh@ivab.se
Mon, 9 Dec 1996 09:46:57 +0100


> I have just upgraded to libjpeg 6.0, using the redhat RPM's,
> and now I get these errors:

You're obviously using libjpeg 6.0a, not the 6.0 version provided at
the PIL distribution site.  From the libjpeg change log:

  "All routine declarations changed to the style "GLOBAL(type) name ...",
  that is, GLOBAL, LOCAL, METHODDEF, EXTERN are now macros taking the
  routine's return type as an argument.  This makes it possible to add
  Microsoft-style linkage keywords to all the routines by changing just
  these macros.  Note that any application code that was using these macros
  will have to be changed."

The following patches might help (thanks to Jan Danielsson).

	/F

--- JpegDecode.c.~1~	Thu Aug 15 15:12:57 1996
+++ JpegDecode.c	Tue Oct 29 21:11:36 1996
@@ -33,3 +33,3 @@
 
-METHODDEF void
+METHODDEF(void)
 stub(j_decompress_ptr cinfo)
@@ -39,3 +39,3 @@
 
-METHODDEF boolean
+METHODDEF(boolean)
 fill_input_buffer(j_decompress_ptr cinfo)
@@ -46,3 +46,3 @@
 
-METHODDEF void
+METHODDEF(void)
 skip_input_data(j_decompress_ptr cinfo, long num_bytes)
@@ -66,3 +66,3 @@
 
-GLOBAL void
+GLOBAL(void)
 jpeg_buffer_src(j_decompress_ptr cinfo, JPEGSOURCE* source)
@@ -87,3 +87,3 @@
 
-METHODDEF void
+METHODDEF(void)
 error(j_common_ptr cinfo)



--- JpegEncode.c.~1~	Thu Aug 15 15:12:58 1996
+++ JpegEncode.c	Tue Oct 29 21:12:21 1996
@@ -31,3 +31,3 @@
 
-METHODDEF void
+METHODDEF(void)
 stub(j_compress_ptr cinfo)
@@ -37,3 +37,3 @@
 
-METHODDEF boolean
+METHODDEF(boolean)
 empty_output_buffer (j_compress_ptr cinfo)
@@ -44,3 +44,3 @@
 
-GLOBAL void
+GLOBAL(void)
 jpeg_buffer_dest(j_compress_ptr cinfo, JPEGDESTINATION* destination)
@@ -59,3 +59,3 @@
 
-METHODDEF void
+METHODDEF(void)
 error(j_common_ptr cinfo)

=================
IMAGE-SIG - SIG on Image Processing with Python

send messages to: image-sig@python.org
administrivia to: image-sig-request@python.org
=================