[cairo-bugs] [Bug 18385] New: build fails against XRender 0.8
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Wed Nov 5 08:44:25 PST 2008
http://bugs.freedesktop.org/show_bug.cgi?id=18385
Summary: build fails against XRender 0.8
Product: cairo
Version: 1.8.2
Platform: All
OS/Version: Mac OS X (All)
Status: NEW
Severity: trivial
Priority: medium
Component: xlib backend
AssignedTo: cworth at cworth.org
ReportedBy: ranger at befunk.com
QAContact: cairo-bugs at cairographics.org
This commit:
commit 8ea9cb187a198c64bfb79af8001d95eab29715b4
Author: Carl Worth <cworth at cworth.org>
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[3]: *** [cairo-xlib-surface.lo] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
--
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
More information about the cairo-bugs
mailing list