[cairo] Breakage on Solaris 9

Geyer, Nikolas nikolas.geyer at cybertrust.com
Tue May 9 18:27:09 PDT 2006


Ok overcame this problem by moving the freetype2.pc file into the
correct location that pkg-config actually looks for it and it sorted all
my issues. Have run into another problem now, being below. After a quick
search the main cause for this seems to be missing Xutil.h file, however
this is on the box and seems to be found without a problem (its in
/usr/openwin/share/include/X11/Xutil.h).

if /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I.
-I. -I.. -I. -I../pixman/src -I/usr/sfw/include/libpng10
-I/usr/local/fontconfig/include
-I/usr/local/freetype/include/freetype2   -Wall -Wpointer-arith
-Wstrict-prototypes       -Wmissing-prototypes -Wmissing-declarations
-Wnested-externs -fno-strict-aliasing    -g -O2 -MT
cairo-xlib-surface.lo -MD -MP -MF ".deps/cairo-xlib-surface.Tpo" -c -o
cairo-xlib-surface.lo cairo-xlib-surface.c; \
then mv -f ".deps/cairo-xlib-surface.Tpo"
".deps/cairo-xlib-surface.Plo"; else rm -f
".deps/cairo-xlib-surface.Tpo"; exit 1; fi
 gcc -DHAVE_CONFIG_H -I. -I. -I.. -I. -I../pixman/src
-I/usr/sfw/include/libpng10 -I/usr/local/fontconfig/include
-I/usr/local/freetype/include/freetype2 -Wall -Wpointer-arith
-Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations
-Wnested-externs -fno-strict-aliasing -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
cairo-xlib-surface.c: In function `_CAIRO_FORMAT_XRENDER_FORMAT':
cairo-xlib-surface.c:186: error: `PictStandardA1' undeclared (first use
in this function)
cairo-xlib-surface.c:186: error: (Each undeclared identifier is reported
only once
cairo-xlib-surface.c:186: error: for each function it appears in.)
cairo-xlib-surface.c:188: error: `PictStandardA8' undeclared (first use
in this function)
cairo-xlib-surface.c:190: error: `PictStandardRGB24' undeclared (first
use in this function)
cairo-xlib-surface.c:193: error: `PictStandardARGB32' undeclared (first
use in this function)
cairo-xlib-surface.c:195: warning: implicit declaration of function
`XRenderFindStandardFormat'
cairo-xlib-surface.c:195: warning: nested extern declaration of
`XRenderFindStandardFormat'
cairo-xlib-surface.c:195: warning: return makes pointer from integer
without a cast
cairo-xlib-surface.c: In function `_cairo_xlib_surface_set_matrix':
cairo-xlib-surface.c:813: error: `XTransform' undeclared (first use in
this function)
cairo-xlib-surface.c:813: error: parse error before "xtransform"
cairo-xlib-surface.c:818: error: `xtransform' undeclared (first use in
this function)
cairo-xlib-surface.c:832: error: syntax error before "identity"
cairo-xlib-surface.c:838: error: `identity' undeclared (first use in
this function)

Any help on this issue now would be appreciated (again).

Cheers,

Nik 

-----Original Message-----
From: Carl Worth [mailto:cworth at cworth.org] 
Sent: Wednesday, 10 May 2006 2:01 AM
To: Geyer, Nikolas
Cc: cairo at cairographics.org
Subject: Re: [cairo] Breakage on Solaris 9

On Tue, 9 May 2006 16:41:30 +1000, "Geyer, Nikolas" wrote:
> cairo-font.c: In function `_cairo_toy_font_face_scaled_font_create':
> cairo-font.c:405: error: `CAIRO_SCALED_FONT_BACKEND_DEFAULT' 
> undeclared

This looks like you're trying to compile cairo with no font backend at
all. It doesn't like that.

And the configure stage should have complained about this, (if it didn't
there's a bug in it). The error message you should have gotten
is:

	Cairo requires at least one font backend.
	Please install freetype and fontconfig, then try again:
	http://freetype.org/  http://fontconfig.org/

-Carl


More information about the cairo mailing list