RESOLVED FIXED 171649
[GTK] Fontconfig 2.11.2 in JHBuild does not build with glibc 2.25+ or gperf 3.1+
https://bugs.webkit.org/show_bug.cgi?id=171649
Summary [GTK] Fontconfig 2.11.2 in JHBuild does not build with glibc 2.25+ or gperf 3.1+
Adrian Perez
Reported 2017-05-04 02:10:59 PDT
Users with glibc version 2.25 or newer will find this build issue when using “update-webkitgtk-libs” to build dependencies using JHBuild: …/WebKit/WebKitBuild/DependenciesGTK/Source/fontconfig-2.11.1/src/fcmatch.c:284:63: error: 'PRI_CHAR_WIDTH_STRONG' undeclared here (not in a function) #define FC_OBJECT(NAME, Type, Cmp) { FC_##NAME##_OBJECT, Cmp, PRI_##NAME##_STRONG, PRI_##NAME##_WEAK }, ^ …/WebKit/WebKitBuild/DependenciesGTK/Source/fontconfig-2.11.1/src/fcobjs.h:54:1: note: in expansion of macro 'FC_OBJECT' FC_OBJECT (CHAR_WIDTH, FcTypeInteger, NULL) ^~~~~~~~~ …/WebKit/WebKitBuild/DependenciesGTK/Source/fontconfig-2.11.1/src/fcmatch.c:284:84: error: 'PRI_CHAR_WIDTH_WEAK' undeclared here (not in a function) #define FC_OBJECT(NAME, Type, Cmp) { FC_##NAME##_OBJECT, Cmp, PRI_##NAME##_STRONG, PRI_##NAME##_WEAK }, ^ …/WebKit/WebKitBuild/DependenciesGTK/Source/fontconfig-2.11.1/src/fcobjs.h:54:1: note: in expansion of macro 'FC_OBJECT' FC_OBJECT (CHAR_WIDTH, FcTypeInteger, NULL) ^~~~~~~~~ This has been already solved in Fontconfig a few months ago in this commit https://cgit.freedesktop.org/fontconfig/commit/?id=1ab5258f7c2abfafcd63a760ca08bf93591912da I will be posting a patch which adds this commit as a patch under “Tools/gtk/patches/” to be applied by JHBuild when it builds Fontconfig.
Attachments
Patch (12.25 KB, patch)
2017-05-04 06:45 PDT, Adrian Perez
no flags
Patch (12.25 KB, patch)
2017-05-04 06:46 PDT, Adrian Perez
no flags
Adrian Perez
Comment 1 2017-05-04 05:02:26 PDT
Also, gperf 3.1+ makes the Fontconfig build choke, see: https://cgit.freedesktop.org/fontconfig/commit/?id=9878b306f6c673d3d6cd9db487f67eb426cc03df I am trying to also add that one.
Adrian Perez
Comment 2 2017-05-04 06:45:56 PDT
Adrian Perez
Comment 3 2017-05-04 06:46:59 PDT
WebKit Commit Bot
Comment 4 2017-05-04 07:30:44 PDT
Comment on attachment 309041 [details] Patch Clearing flags on attachment: 309041 Committed r216184: <http://trac.webkit.org/changeset/216184>
WebKit Commit Bot
Comment 5 2017-05-04 07:30:46 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.