Summary: | FcFini not in older version of Fontconfig - no check for fc ver | ||
---|---|---|---|
Product: | cairo | Reporter: | Damien Carbery <damien.carbery> |
Component: | general | Assignee: | Carl Worth <cworth> |
Status: | RESOLVED FIXED | QA Contact: | cairo-bugs mailing list <cairo-bugs> |
Severity: | normal | ||
Priority: | high | CC: | hys545 |
Version: | 0.9.3 | ||
Hardware: | SPARC | ||
OS: | Solaris | ||
Whiteboard: | |||
i915 platform: | i915 features: |
Description
Damien Carbery
2005-08-02 19:33:06 UTC
Created attachment 3211 [details] [review] Proposed patch which fixes the logic I don't think we want to turn off the freetype font backend just because FcFini can't be found. FcFini is not used in the implementation of cairo itself, and it's really only relevant to the check-valgrind target of the tests, (which isn't much help on Salris anyway). Instead, what I would like to see is after a successful check for the presence of fontconfig, there should be a check for the existence of the FcFini function, (either by fontconfig version or via AC_CHECK_FUNCS). Then the call to FcFini can be made conditional. A similar approach is already used with a similar cleanup function in the Xlib backend. See the XrmFinalize check in configure.in and the call conditioned on HAVE_XRMFINALIZE. Note that if we copy that check that we should abstract the save_CFLAGS and save_LIBS stuff into a new macro. I leave it to your better judgement. As a build engineer I mainly focus on getting stuff built - I'm not too bother if it doesn't work ;-) As a local interim solution, while I work on building fontconfig 2.3.0, I can #ifdef the FcFini calls out so that I am not blocked. *** Bug 3966 has been marked as a duplicate of this bug. *** Created attachment 3236 [details]
Problem screenshot
Here's a patch that allows things to build just fine with an old fontconfig
by checking explicitly for the FcFini function and only calling it if it
is present.
I've committed that patch now. Please try it from CVS or from the patch here and let me know if you still have any problems. Move bugs against "cvs" version to "0.9.3" so we can remove the "cvs" version. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.