After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 313417 - gtk needs to check for libxft and fontconfig seperately to normal x libraries
gtk needs to check for libxft and fontconfig seperately to normal x libraries
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: .General
2.7.x
Other All
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2005-08-13 19:50 UTC by James Andrewartha
Modified: 2005-08-15 19:05 UTC
See Also:
GNOME target: ---
GNOME version: 2.11/2.12



Description James Andrewartha 2005-08-13 19:50:06 UTC
Please describe the problem:
I'm tinderboxing gnome on a fairly minimal install of Debian sarge. libxft and
fontconfig are not installed via debian, they're built by jhbuild in the prefix.
gtk+ assumes xft and fontconfig headers and shared libraries are in the same
place as the system's X libraries and headers.

Steps to reproduce:
1. Install minimal debian
2. jhbuild gtk+, installing only the absolute minimal dependencies from apt



Actual results:
The build fails trying to find fontconfig/fontconfig.h and X11/Xft/Xft.h, both
of which have been installed in the prefix

Expected results:
gtk+ should have autoconf foo to detect where fontconfig and libxft are

Does this happen every time?
yes

Other information:
http://trs80.ucc.asn.au/gnometinderbox/mudhead-200508130437/gtk+.html#build is
the build log.
Comment 1 Owen Taylor 2005-08-13 21:54:12 UTC
I think the checks were OK,  but it doesn't actually matter. Xft isn't
a dependency of GTK+-2.8.0 and the configure scripts were rewritten
accordingly.
Comment 2 James Andrewartha 2005-08-15 18:12:14 UTC
So what about fontconfig then? FWIW, these errors are coming from pango includes:

n file included from
/scratch/gnometinderbox/microtinder/build-output/include/pango-1.0/pango/pango-ot.h:25,
                 from
/scratch/gnometinderbox/microtinder/build-output/include/pango-1.0/pango/pangoxft.h:27,
                 from gdkdrawable-x11.c:32:
/scratch/gnometinderbox/microtinder/build-output/include/pango-1.0/pango/pangofc-font.h:27:35:
fontconfig/fontconfig.h: No such file or directory
In file included from
/scratch/gnometinderbox/microtinder/build-output/include/pango-1.0/pango/pangoxft.h:30,
                 from gdkdrawable-x11.c:32:
/scratch/gnometinderbox/microtinder/build-output/include/pango-1.0/pango/pangoxft-render.h:32:25:
X11/Xft/Xft.h: No such file or directory
/scratch/gnometinderbox/microtinder/build-output/include/pango-1.0/pango/pangoxft-render.h:35:2:
#error "must have Xft version 2 or newer"
Comment 3 Owen Taylor 2005-08-15 19:05:11 UTC
Hmm, that include is spurious and needs to be removed, *but*:

$ find . -name '*.[ch]' | xargs grep Fc
./gdk/x11/gdkxftdefaults.c:      if (FcNameConstant ((FcChar8 *) v, value))

So GDK does need to depend on fontconfig on X11.

2005-08-15  Owen Taylor  <otaylor@redhat.com>

        * gdk/x11/gdkdrawable-x11.c gtk/gtksettings.c: Remove panoxft.h includes.
        (#313417, James Andrewartha)

        * configure.in: Add fontconfig to X_PACKAGES, since we use it for
        FcNameConstant(). (More of #313417)