[cairo] Build error w/ Cairo 0.1.23
Dave Beckett
dave at dajobe.org
Sat Oct 9 03:46:39 PDT 2004
On Fri, 08 Oct 2004 19:16:04 -0500
Eric Scott <scottclansman at cwazy.co.uk> wrote:
> Hey; I've been trying to install cairo-0.1.23 from source on a
> Redhat
> 8.0 system w/ an Athlon chip. I need it to run some parts of Mono
> (http://www.mono-project.com), but it won't make. I'm a relative
> newbie to Linux, and installing a large project like mono and it's
> dependencies is a real task for my little noggin. NEwho, here's the
> error:
>
> > gcc -DHAVE_CONFIG_H -I. -I. -I.. -I. -I/usr/local/include
> > -I/usr/include/freetype2 -I/usr/local/include -g -O2 -MT
> > cairo_xlib_surface.lo -MD -MP -MF .deps/cairo_xlib_surface.Tpo -c
> > cairo_xlib_surface.c -fPIC -DPIC -o .libs/cairo_xlib_surface.o
> > cc1: warning: changing search order for system directory
> > "/usr/local/include"
> > cc1: warning: as it has already been specified as a non-system
> > directory
> > cairo_xlib_surface.c: In function `_cairo_xlib_surface_set_matrix':
> > cairo_xlib_surface.c:290: `XTransform' undeclared (first use in this
> >
> > function)
That's a structure from XRender
> > cairo_xlib_surface.c:290: (Each undeclared identifier is reported
> > only once
> > cairo_xlib_surface.c:290: for each function it appears in.)
> > cairo_xlib_surface.c:290: parse error before "xtransform"
> > cairo_xlib_surface.c:295: `xtransform' undeclared (first use in this
> >
> > function)
> > cairo_xlib_surface.c: In function
> > `_cairo_xlib_surface_composite_trapezoids':
> > cairo_xlib_surface.c:553: `PictStandardA8' undeclared (first use in
> > this function)
ditto
> > cairo_xlib_surface.c:554: `XTrapezoid' undeclared (first use in this
> >
> > function)
> > cairo_xlib_surface.c:554: parse error before ')' token
> > cairo_xlib_surface.c: In function `cairo_xlib_surface_create':
> > cairo_xlib_surface.c:681: `PictStandardA1' undeclared (first use in
> > this function)
> > cairo_xlib_surface.c:684: `PictStandardA8' undeclared (first use in
> > this function)
> > cairo_xlib_surface.c:687: `PictStandardRGB24' undeclared (first use
> > in this function)
> > cairo_xlib_surface.c:691: `PictStandardARGB32' undeclared (first use
> >
> > in this function)
> > cairo_xlib_surface.c:700: warning: pointer/integer type mismatch in
> > conditional
> > expression
> > make[2]: *** [cairo_xlib_surface.lo] Error 1
> > make[2]: Leaving directory
> > `/home/eric/documents/downloads/mono/src/libgdiplus-deps/cairo-0.1.
> > 23/src'
> >
> > make[1]: *** [all-recursive] Error 1
> > make[1]: Leaving directory
> > `/home/eric/documents/downloads/mono/src/libgdiplus-deps/cairo-0.1.
> > 23' make: *** [all] Error 2
So it looks like you are either missing XRender includes or have
an old version.
I had access to such an old system and indeed Redhat8's XRender library
is too old and doesn't have those values.
> I don't know much about C++ and all that fun stuff, but this seems as
> simple as a left out #include statement in the source, maybe? Anyway,
No, the configure part of the process would have picked this up.
> anybody know how to get around this? If all else fails I can finally
>
> do the upgrade from Redhat 8.0 to 9.0 or Fedora, as Mono has RPM
> packages for the later RH/RH-Based distros.
I suggest you upgrade. Fedora Core 2 is about 2 years newer
Dave
More information about the cairo
mailing list