<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><div>Hello,<br><br>I'm trying to build libcairo (version 1.6.4) on AIX 5.3 (TL7), but I'm failing a compile time assert:<br><br> /dfs/projects/opensource/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I. -I/.../austin.ibm.com/fs/home/smccants/landman/include/freetype2/ -I/.../austin.ibm.com/fs/home/smccants/landman/include -I/.../austin.ibm.com/fs/home/smccants/landman/include/fontconfig -I/opt/freeware/include/libpng12 -DXTHREADS -I/opt/freeware/include -I/.../austin.ibm.com/fs/home/smccants/landman/include/pixman-1 -Wall -Wsign-compare -Werror-implicit-function-declaration -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wpacked -Wswitch-enum -Wmissing-format-attribute -Wno-unused-parameter -Wno-long-long -Winline -fno-strict-aliasing -g
-O2 -MT libcairo_la-cairo-xlib-surface.lo -MD -MP -MF .deps/libcairo_la-cairo-xlib-surface.Tpo -c cairo-xlib-surface.c -DPIC -o .libs/libcairo_la-cairo-xlib-surface.o<br>cairo-xlib-surface.c:3124: error: size of array 'cairo_xlib_glyph_t_size_assertion' is negative<br><br>cairo-xlib-surface.c - line 3123-4 reads:<br><br>/* compile-time assert that #cairo_xlib_glyph_t is the same size as #cairo_glyph_t */<br>typedef int cairo_xlib_glyph_t_size_assertion [sizeof (cairo_xlib_glyph_t) == sizeof (cairo_glyph_t) ? 1 : -1];<br><br>The cairo_xlib_glyph_t struct (defined in cairo-xlib-surface.c) is:<br><br>typedef struct {<br> unsigned long index;<br> union {<br> struct {<br> double x;<br> double y;<br> } d;<br> struct {<br> int x;<br> int y;<br> }
i;<br> } p;<br>} cairo_xlib_glyph_t;<br><br>The cairo_glyph_t struct (defined in cairo.h) is:<br><br>typedef struct {<br> unsigned long index;<br> double x;<br> double y;<br>} cairo_glyph_t;<br><br>It seems unlikely that these two structs would be the same size under any compiler, but I suspect I'm wrong since other people must be compiling libcairo successfully. I'm using gcc version 4.2.2:<br><br>/dfs/projects/opensource/bin/gcc --version<br>gcc (GCC) 4.2.2<br>Copyright (C) 2007 Free Software Foundation, Inc.<br>This is free software; see the source for copying conditions. There is NO<br>warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.<br><br>I'm not sure what to do to work through
this problem, so any advice or ideas would be appreciated. Thanks in advance!<br><br>Sincerely,<br>Stephen McCants<br><br></div></div><br>
</body></html>