[cairo] Compile error with Cairo 1.0.0/1.0.2 on Mac OS X

Carl Worth cworth at cworth.org
Wed Nov 16 04:53:13 PST 2005


On Tue, 15 Nov 2005 00:12:13 -0500, Karim Zaki wrote:
> gcc -g -O2 -o .libs/imagediff imagediff.o  ./.libs/libcairotest.a
> ../src/.libs/libcairo.dylib -L/usr/X11R6/lib -lXrender -lXext -lX11
> -L/usr/local/lib -lpng12 -lfontconfig -lfreetype -lz -lpthread
> /usr/bin/ld: Undefined symbols:
> _FcFini

FcFini only exists in newer versions of fontconfig (since 2.2.91 it
appears).

Cairo's use of FcFini is supposed to be conditional on the existence
of the function, based on a check in the configure script. One
possible cause here is that you have two different versions of
fontconfig on your system, and the configure script found one with
FcFini while the linker is finding one without it for some
reason. (Check in /usr/X11R6/lib and /usr/local/lib for example.)

You have several options for fixing this or working around it:

1) Tracking down the two fontconfig versions and removing the old one
   or otherwise ensuring that cairo only sees one of the versions.

2) Editing cairo's config.h, replacing:

	#define HAVE_FCFINI 1

   with:

	/* #undef HAVE_FCFINI */

3) Ignoring this error. It's part of the test suite that is failing to
   build here, not cairo itself, so you should be able to use cairo
   still even with this problem. "make -k" might come in handy if you
   go this route.

I hope one of the options above helps.

Have fun with cairo.

-Carl
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/cairo/attachments/20051116/4b92e3c2/attachment.pgp


More information about the cairo mailing list