GNU bug report logs -
#49722
27.2; Emacs won't build with old versions of fontconfig
Previous Next
Reported by: Andrei Kuznetsov <r12451428287 <at> 163.com>
Date: Sat, 24 Jul 2021 16:32:02 UTC
Severity: normal
Found in version 27.2
Fixed in version 28.1
Done: Stefan Kangas <stefan <at> marxist.se>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
> From: Andrei Kuznetsov <r12451428287 <at> 163.com>
> Cc: 49722 <at> debbugs.gnu.org
> Date: Sun, 25 Jul 2021 08:53:59 +0800
>
> Eli Zaretskii <eliz <at> gnu.org> writes:
>
> > Thanks, but please show the error messages you saw before applying
> > that patch.
>
> xftfont.c: In function ‘xftfont_cached_font_ok’:
> xftfont.c:591: error: ‘FC_LCD_FILTER’ undeclared (first use in this function)
> xftfont.c:591: error: (Each undeclared identifier is reported only once
> xftfont.c:591: error: for each function it appears in.)
>
> It appears that FC_LCD_FILTER is not present on these older versions of
> fontconfig.
Thanks. We once had the following in xftfont.c:
#ifndef FC_LCD_FILTER
/* Older fontconfig versions don't have FC_LCD_FILTER. */
#define FC_LCD_FILTER "lcdfilter"
#endif
But it got moved to ftfont.c when a function which used it was moved
there. However, since xftfont.c still uses this, I think we should
have this #define in xftfont.c as well, so please try adding that at
the beginning of xftfont.c, and see if that helps.
This bug report was last modified 3 years and 251 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.