Op maandag 14-12-2009 om 10:24 uur [tijdzone +0800], schreef aaron lwe:
> >>You'll probably want to have a look at the configure.{in,ac} file to
> >>see what causes this error. But the error itself is pretty clear: C
> >>doesn't define a type called "boolean"! The code should probably be
> >>using _Bool instead (standardized in C99).
>
> I look into configure.in and found the following statements:
>
> dnl boolean is defined by the jpeg headers and also by the
> dnl Windows headers of some compilers. This type has been
> dnl renamed in the builtin, so it is only an issue when
> dnl using an external jpeg lib on Windows.
>
> I have mingw32-libjpeg installed under fedora 12 but not fedora 11, so
> I guess this is the problem. I've disabled the build of the jpeg
> support and the problem is gone.
Hi Aaron,
The w32api header rpcndr.h contains a definition for the boolean data
type. However, this definition differs from what libjpeg thinks a
boolean is. This resulted in compile errors and strange segfaults:
https://bugzilla.redhat.com/show_bug.cgi?id=497492
To fix these compile errors and strange segfaults we decided to rename
libjpeg's boolean definition to 'jpeg_boolean'. Every program/library
which uses libjpeg should be patched to use 'jpeg_boolean' instead of
'boolean' to avoid any confusion.
Kind regards,
Erik van Pienbroek
_______________________________________________
fedora-mingw mailing list
[email protected]
https://admin.fedoraproject.org/mailman/listinfo/fedora-mingw