Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 644270

Summary: media-libs/fontconfig-2.11.1-r2 - .../work/fontconfig-2.11.1/src/fcmatch.c:284:63: error: ‘PRI_CHAR_WIDTH_STRONG’ undeclared here (not in a function)
Product: Gentoo Linux Reporter: Brian G. Olson <olsonbg>
Component: Current packagesAssignee: Gentoo Fonts Team <fonts>
Status: RESOLVED OBSOLETE    
Severity: normal CC: hydrapolic, sam
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge --info
build.log
Patch for 2.11.1-r2

Description Brian G. Olson 2018-01-11 22:54:34 UTC
Fontconfig-2.11.1-r2 fails to compile with glibc 2.25+. This patch fixes the problem on my machine: https://raw.githubusercontent.com/openembedded/openembedded-core/e82a7f879419828b42b5cc71e6229c8235090f21/meta/recipes-graphics/fontconfig/fontconfig/0001-Avoid-conflicts-with-integer-width-macros-from-TS-18.patch

FYI: I use this version of fontconfig because of bug #632106.
Comment 1 Tomáš Mózes 2018-01-12 03:30:37 UTC
Please attach the full build log and the output of emerge --info.
Comment 2 Tomáš Mózes 2018-01-12 03:34:25 UTC
Does it work with 2.12.4? Since there are multiple versions of 2.12,please look into testing/fixing those.
Comment 3 Brian G. Olson 2018-01-12 20:16:49 UTC
Both fontconfig-2.12.4 and 2.12.6 work as is ( I didn't try 2.12.91 ). They already have the patch I linked to earlier applied, so they compile and install with no changes needed. I was actually using fontconfig-2.12.6 for a few days, until I figured out how to get fontconfig-2.11.1-r2 working again. I can include the build log and emerge --info later.
Comment 4 Brian G. Olson 2018-01-12 21:03:28 UTC
Created attachment 514544 [details]
emerge --info
Comment 5 Brian G. Olson 2018-01-12 21:04:03 UTC
Created attachment 514546 [details]
build.log
Comment 6 Brian G. Olson 2018-01-12 21:08:29 UTC
Created attachment 514548 [details, diff]
Patch for 2.11.1-r2

This is the actual patch I use in my local repository to get fontconfig-2.11.1-r2 to compile and install.
Comment 7 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-12-20 06:08:32 UTC
Still relevant? Seems like it isn't.