IM: 6.4.8-8
(w/ libpng-1.6.1, jpeg-9, libtiff-4.0.3)
- - - - -
I updated to 6.4.8-8 yesterday, and I had some errors, so I thought I should report them. Last configure/update I made was 6.4.8-4 and that one was ok with the same configure line:
Code: Select all
./configure --prefix=/usr/local --disable-dependency-tracking --without-perl
Code: Select all
coders/jpeg.c: In function 'FillInputBuffer':
coders/jpeg.c:248: error: 'FALSE' undeclared (first use in this function)
coders/jpeg.c:248: error: (Each undeclared identifier is reported only once
coders/jpeg.c:248: error: for each function it appears in.)
coders/jpeg.c:257: error: 'TRUE' undeclared (first use in this function)
coders/jpeg.c: In function 'InitializeSource':
coders/jpeg.c:274: error: 'TRUE' undeclared (first use in this function)
coders/jpeg.c: In function 'EmptyOutputBuffer':
coders/jpeg.c:1564: error: 'TRUE' undeclared (first use in this function)
make[2]: *** [coders/magick_libMagickCore_6_Q16_la-jpeg.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
I could fix it by changing the TRUE/FALSE to small letters. Then the install was ok.
It's like they were treated like constants intead of bool values when being in capital letters? Perhaps I should make all the NULL -> null to?
Here's a patch of my bypass:
Code: Select all
--- jpeg.c.original 2013-04-07 18:20:50.000000000 +0200
+++ jpeg.c 2013-04-12 04:42:24.000000000 +0200
@@ -246,5 +246,5 @@ static boolean FillInputBuffer(j_decompr
if (source->manager.bytes_in_buffer == 0)
{
- if (source->start_of_blob != FALSE)
+ if (source->start_of_blob != false)
ERREXIT(cinfo,JERR_INPUT_EMPTY);
WARNMS(cinfo,JWRN_JPEG_EOF);
@@ -254,6 +254,6 @@ static boolean FillInputBuffer(j_decompr
}
source->manager.next_input_byte=source->buffer;
- source->start_of_blob=FALSE;
- return(TRUE);
+ source->start_of_blob=false;
+ return(true);
}
@@ -272,5 +272,5 @@ static void InitializeSource(j_decompres
source=(SourceManager *) cinfo->src;
- source->start_of_blob=TRUE;
+ source->start_of_blob=true;
}
@@ -1562,5 +1562,5 @@ static boolean EmptyOutputBuffer(j_compr
ERREXIT(cinfo,JERR_FILE_WRITE);
destination->manager.next_output_byte=destination->buffer;
- return(TRUE);
+ return(true);
}