[cairo] Cairo 1.4.6 release-candidate snapshot available

Dave Yeo daveryeo at telus.net
Sat Apr 28 21:14:50 PDT 2007

On Sat, 28 Apr 2007 20:21:17 +0200, Peter Weilbacher wrote:

>Dave Yeo wrote:
>> In file included from ../src/cairo-scaled-font-private.h:44,
>>                  from cairo-boilerplate.c:65:
>> ../src/cairo-mutex-private.h:183: error: syntax error before "extern"
>> ../src/cairo-mutex-private.h:184: error: syntax error before "void"
>> ../src/cairo-mutex-private.h:185: error: syntax error before "void"
>> make[3]: *** [cairo-boilerplate.lo] Error 1
>> So doesn't like the cairo_private here.
>> Also had this error a couple of days ago with a git pull.
>I first tried to include cairoint.h but that gave errors about duplicate
>definitions. Then I just did
>--- boilerplate/cairo-boilerplate.h
>+++ boilerplate/cairo-boilerplate.h
>@@ -34,6 +34,8 @@
> #include <stdlib.h>
> #include <math.h>
> #include <cairo.h>
> #include <string.h>
>+#define cairo_private
>to work around the problem. But I still wonder why it hits OS/2 but nobody
>   Peter.

Might be safer to do 
+#ifndef cairo_private
+#define cairo_private

And why it hits us, I can guess that it is a combination of GCC version
and CFLAGS. I used to see this kind of problem with one version of GCC
eg 2.95 but not another eg 3.03. Seems different versions of GCC
interpret those warning CFLAGS differently.

More information about the cairo mailing list