/!\ This page is not a bug tracker. If you run into a problem not listed here, please file a bug.
When entering a new problem, please enter it above the others, and follow the format of the JhbuildIssues/JhbuildIssueTemplate for new problems/modules.

List of common errors for the module fontconfig.

Error - undefined reference to `FT_Load_Sfnt_Table'

Stage: Build

 make[2]: Nothing to be done for `all'.
 make[2]: Leaving directory
 `/root/cvs/gnome2/fontconfig/src'
 Making all in fc-cache
 make[2]: Entering directory
 `/root/cvs/gnome2/fontconfig/fc-cache'
 /bin/sh ../libtool --mode=link gcc  -g -O2   -o
 fc-cache  fc-cache.o ../src/libfontconfig.la
 gcc -g -O2 -o .libs/fc-cache fc-cache.o
 ../src/.libs/libfontconfig.so /usr/lib/libfreetype.so
 /usr/lib/libexpat.so -Wl,--rpath -Wl,/opt/gnome2/lib
 ../src/.libs/libfontconfig.so: undefined reference to
 `FT_Load_Sfnt_Table'
 collect2: ld returned 1 exit status
 make[2]: *** [fc-cache] Error 1
 make[2]: Leaving directory
 `/root/cvs/gnome2/fontconfig/fc-cache'
 make[1]: *** [all-recursive] Error 1
 make[1]: Leaving directory
 `/root/cvs/gnome2/fontconfig'
 make: *** [all] Error 2
 *** error during stage build of fontconfig: could not build module ***

Solution:

  • Download and install the freetype and freetype-devel packages from your distribution.

Error - fonts are all messed up

When you run a program, your fonts are all messed up and you get the following error on stderr.

Fontconfig error: Cannot load default config file

Solution:

Either install fontconfig in your jhbuild environment or (much easier) create a symbolic link to your global font config.

ln -sf /etc/fonts /opt/gnome2/etc/fonts

Error - error: freetype/config/ftheader.h: No such file or directory (Fedora / Red Hat)

    In file included from ../fontconfig/fcfreetype.h:27,
                 from fcftint.h:26,
                 from fcfreetype.c:48:
    /usr/include/ft2build.h:56:38: error: freetype/config/ftheader.h:  No such file or directory

Solution:

This is caused by a distribution patch to Freetype (freetype-multilib.patch); a workaround is to add the following to jhbuildrc:

addpath('PKG_CONFIG_PATH', os.path.join(os.sep, 'usr', 'lib64', 'pkgconfig'))

(this was reported to JHBuild as http://bugzilla.gnome.org/show_bug.cgi?id=545410)


CategoryJhbuildIssues

Projects/Jhbuild/Issues/fontconfig (last edited 2013-11-25 16:29:20 by WilliamJonMcCann)