Summary: |
fontconfig build problem on FC_GPERF_SIZE_T=size_t systems |
Product: |
fontconfig
|
Reporter: |
Thomas Klausner <tk> |
Component: |
library | Assignee: |
fontconfig-bugs |
Status: |
RESOLVED
DUPLICATE
|
QA Contact: |
Behdad Esfahbod <freedesktop> |
Severity: |
major
|
|
|
Priority: |
medium
|
CC: |
akira
|
Version: |
2.12 | |
|
Hardware: |
All | |
|
OS: |
NetBSD | |
|
Whiteboard: |
|
i915 platform:
|
|
i915 features:
|
|
Attachments: |
Patch fixing the problem
|
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.
Created attachment 132084 [details] Patch fixing the problem Configure detects FC_GPERF_SIZE_T. When this type is size_t, the build fails because the prototypes in fcobjshash.h do not match the functions in fcobjs.c: In file included from fcobjs.c:33:0: fcobjshash.gperf:28:1: error: conflicting types for 'FcObjectTypeHash' "aspect",FC_ASPECT_OBJECT ^ fcobjs.c:28:1: note: previous declaration of 'FcObjectTypeHash' was here FcObjectTypeHash (register const char *str, register FC_GPERF_SIZE_T len); ^ In file included from fcobjs.c:33:0: fcobjshash.gperf:172:1: error: conflicting types for 'FcObjectTypeLookup' fcobjs.c:31:1: note: previous declaration of 'FcObjectTypeLookup' was here FcObjectTypeLookup (register const char *str, register FC_GPERF_SIZE_T len); The attached patch fixes the build for me; I think the file is generated though, so you probably need to fix this differently.