[Fontconfig-bugs] [Bug 101514] New: fontconfig build problem on FC_GPERF_SIZE_T=size_t systems

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Jun 20 11:40:53 UTC 2017


https://bugs.freedesktop.org/show_bug.cgi?id=101514

            Bug ID: 101514
           Summary: fontconfig build problem on FC_GPERF_SIZE_T=size_t
                    systems
           Product: fontconfig
           Version: 2.12
          Hardware: All
                OS: NetBSD
            Status: NEW
          Severity: major
          Priority: medium
         Component: library
          Assignee: fontconfig-bugs at lists.freedesktop.org
          Reporter: tk at giga.or.at
        QA Contact: freedesktop at behdad.org

Created attachment 132084
  --> https://bugs.freedesktop.org/attachment.cgi?id=132084&action=edit
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.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/fontconfig-bugs/attachments/20170620/06a37303/attachment.html>


More information about the Fontconfig-bugs mailing list