Author: Carl Worth <email@example.com>
Date: Wed Oct 1 14:12:18 2008 -0700
Use symbolic constants for Render repeat modes.
Names like RepeatNone and RepeatNormal are much easier to
read and understand than bare 0 and 1.
src/cairo-xlib-surface.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
...adds a dependency on the RepeatNone and RepeatNormal constants, which are defined in Xrender 0.10. The Xrender checks check for >= 0.6, and if you have 0.6, cairo defines it's own internal Xrender header in cairo-xlib-xrender-private.h, but for 0.8, it's in a no-man's land where it includes the headers, but doesn't define the constants.
You end up with this build failure:
gcc -DHAVE_CONFIG_H -I. -I.. -I. -I/sw/lib/fontconfig2/include -I/sw/include/pixman-1 -I/sw/lib/freetype219/include/freetype2 -I/sw/lib/freetype219/include -I/sw/lib/fontconfig2/include -I/sw/include -I/sw/include/libpng12 -Wall -Wextra -Wsign-compare -Werror-implicit-function-declaration -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wpacked -Wswitch-enum -Wstrict-aliasing=2 -Winit-self -Wdeclaration-after-statement -Wold-style-definition -Wno-missing-field-initializers -Wno-unused-parameter -Wno-long-long -Winline -fno-strict-aliasing -fno-common -Wp,-D_FORTIFY_SOURCE=2 -I/usr/X11R6/include -I/sw/lib/fontconfig2/include -I/sw/include -Os -c cairo-xlib-surface.c -fno-common -DPIC -o .libs/cairo-xlib-surface.o
cairo-xlib-surface.c: In function '_cairo_xlib_surface_set_attributes':
cairo-xlib-surface.c:1440: error: 'RepeatNone' undeclared (first use in this function)
cairo-xlib-surface.c:1440: error: (Each undeclared identifier is reported only once
cairo-xlib-surface.c:1440: error: for each function it appears in.)
cairo-xlib-surface.c:1443: error: 'RepeatNormal' undeclared (first use in this function)
make: *** [cairo-xlib-surface.lo] Error 1
make: *** [all] Error 2
make: *** [all-recursive] Error 1
make: *** [all] Error 2
Created attachment 20069 [details] [review]
simple patch to define the missing constants
Attached is a simple patch to add the defines if the Xrender version is < 0.10.
Thanks, I pushed a slightly modified patch.
Author: Behdad Esfahbod <firstname.lastname@example.org>
Date: Wed Nov 5 11:50:20 2008 -0500
Define RepeatNone, etc if the available Render version doesn't (#18385)
*** Bug 18331 has been marked as a duplicate of this bug. ***
*** Bug 18485 has been marked as a duplicate of this bug. ***
*** Bug 18478 has been marked as a duplicate of this bug. ***