Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 608924 - media-libs/fontconfig-2.12.1 with >=sys-libs/glibc-2.25: .../fcmatch.c:324:63: error: ‘PRI_CHAR_WIDTH_STRONG’ undeclared here (not in a function)
Summary: media-libs/fontconfig-2.12.1 with >=sys-libs/glibc-2.25: .../fcmatch.c:324:63...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Ben de Groot (RETIRED)
URL: http://lists.openembedded.org/piperma...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-02-11 10:20 UTC by Toralf Förster
Modified: 2017-05-09 21:49 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,5.09 KB, text/plain)
2017-02-11 10:20 UTC, Toralf Förster
Details
config.log (config.log,117.07 KB, text/plain)
2017-02-11 10:20 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,34.37 KB, text/plain)
2017-02-11 10:21 UTC, Toralf Förster
Details
environment (environment,122.83 KB, text/plain)
2017-02-11 10:21 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,10.79 KB, application/x-bzip)
2017-02-11 10:21 UTC, Toralf Förster
Details
media-libs:fontconfig-2.12.1:20170211-053003.log (media-libs:fontconfig-2.12.1:20170211-053003.log,57.51 KB, text/plain)
2017-02-11 10:21 UTC, Toralf Förster
Details
charwidth_macro.patch (charwidth_macro.patch,2.16 KB, patch)
2017-02-16 14:23 UTC, cyrillic
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2017-02-11 10:20:52 UTC
This is an unstable amd64 chroot image (named 13.0-systemd-libressl-unstable-abi32+64_20170210-142202) at a hardened host acting as a tinderbox.
  -----------------------------------------------------------------

/bin/sh ../libtool  --tag=CC   --mode=compile x86_64-pc-linux-gnu-gcc -m32 -DHAVE_CONFIG_H -I. -I/var/tmp/portage/media-libs/fontconfig-2.12.1/work/fontconfig-2.12.1/src -I..  -I/var/tmp/portage/media-libs/fontconfig-2.12.1/work/fontconfig-2.12.1 -I/var/tmp/portage/media-libs/fontconfig-2.12.1/work/fontconfig-2.12.1/src -I/usr/include/freetype2    -Wall -Wpointer-arith -Wstrict-prototypes 	-Wmissing-prototypes -Wmissing-declarations 	-Wnested-externs -fno-strict-aliasing -DFC_CACHEDIR='"/var/cache/fontconfig"' -DFONTCONFIG_PATH='"/etc/fonts"'   -O2 -pipe -march=native -Wall -pthread -c -o fcmatch.lo /var/tmp/portage/media-libs/fontconfig-2.12.1/work/fontconfig-2.12.1/src/fcmatch.c
libtool: compile:  x86_64-pc-linux-gnu-gcc -m32 -DHAVE_CONFIG_H -I. -I/var/tmp/portage/media-libs/fontconfig-2.12.1/work/fontconfig-2.12.1/src -I.. -I/var/tmp/portage/media-libs/fontconfig-2.12.1/work/fontconfig-2.12.1 -I/var/tmp/portage/media-libs/fontconfig-2.12.1/work/fontconfig-2.12.1/src -I/usr/include/freetype2 -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fno-strict-aliasing -DFC_CACHEDIR=\"/var/cache/fontconfig\" -DFONTCONFIG_PATH=\"/etc/fonts\" -O2 -pipe -march=native -Wall -pthread -c /var/tmp/portage/media-libs/fontconfig-2.12.1/work/fontconfig-2.12.1/src/fcmatch.c  -fPIC -DPIC -o .libs/fcmatch.o
/var/tmp/portage/media-libs/fontconfig-2.12.1/work/fontconfig-2.12.1/src/fcmatch.c:324: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 },
                                                               ^
/var/tmp/portage/media-libs/fontconfig-2.12.1/work/fontconfig-2.12.1/src/fcobjs.h:54:1: note: in expansion of macro ‘FC_OBJECT’

  -----------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-5.4.0 *
llvm-config --version:
/tmp/job.sh: line 526: llvm-config: command not found

Available Python interpreters, in order of preference:
  [1]   python3.4
  [2]   python2.7 (fallback)

java-config:
Comment 1 Toralf Förster gentoo-dev 2017-02-11 10:20:55 UTC
Created attachment 463268 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2017-02-11 10:20:58 UTC
Created attachment 463270 [details]
config.log
Comment 3 Toralf Förster gentoo-dev 2017-02-11 10:21:02 UTC
Created attachment 463272 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2017-02-11 10:21:05 UTC
Created attachment 463274 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2017-02-11 10:21:08 UTC
Created attachment 463276 [details]
etc.portage.tbz2
Comment 6 Toralf Förster gentoo-dev 2017-02-11 10:21:11 UTC
Created attachment 463278 [details]
media-libs:fontconfig-2.12.1:20170211-053003.log
Comment 7 cyrillic 2017-02-15 14:17:22 UTC
Upstream has a fix for this.

https://cgit.freedesktop.org/fontconfig/commit/?id=1ab5258f7c2abfafcd63a760ca08bf93591912da

But now I get a different compile error.

libtool: compile:  x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I/var/tmp/portage/media-libs/fontconfig-2.12.1/work/fontconfig-2.12.1/src -I.. -I/var/tmp/portage/media-libs/fontconfig-2.12.1/work/fontconfig-2.12.1 -I/var/tmp/portage/media-libs/fontconfig-2.12.1/work/fontconfig-2.12.1/src -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fno-strict-aliasing -DFC_CACHEDIR=\"/var/cache/fontconfig\" -DFONTCONFIG_PATH=\"/etc/fonts\" -march=core2 -Os -pipe -pthread -c /var/tmp/portage/media-libs/fontconfig-2.12.1/work/fontconfig-2.12.1/src/fcobjs.c  -fPIC -DPIC -o .libs/fcobjs.o
In file included from /var/tmp/portage/media-libs/fontconfig-2.12.1/work/fontconfig-2.12.1/src/fcobjs.c:33:0:
fcobjshash.gperf: In function ‘FcObjectTypeLookup’:
fcobjshash.gperf:47:85: error: ‘FC_CHAR_WIDTH_OBJECT’ undeclared (first use in this function)
 "charwidth",FC_CHARWIDTH_OBJECT
                                                                                     ^                   
fcobjshash.gperf:47:85: note: each undeclared identifier is reported only once for each function it appears in
Comment 8 cyrillic 2017-02-16 14:23:05 UTC
Created attachment 463950 [details, diff]
charwidth_macro.patch

It turns out that the patch on freedesktop is an incomplete one.  I was able to find the rest of it here:
http://lists.openembedded.org/pipermail/openembedded-core/2016-December/130059.html

Now, fontconfig is compiling fine for me.
Comment 9 Toralf Förster gentoo-dev 2017-02-16 15:57:18 UTC
(In reply to cyrillic from comment #8)
so this *replaces * the mentioned one in comment #6, right ?
Comment 10 Toralf Förster gentoo-dev 2017-02-16 19:40:26 UTC
(In reply to Toralf Förster from comment #9)
I can confirm that the patch of comment #8 works here at few tinderbox images.
Comment 11 cyrillic 2017-03-02 00:48:07 UTC
FYI, this patch does not cause regressions with older versions of sys-libs/glibc, so it should be ok to apply in all cases.
Comment 12 Thomas Deutschmann (RETIRED) gentoo-dev 2017-05-09 21:49:27 UTC
@cyrillic: Thanks for the patch hint. 

Now fixed via https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=11be27377891a6da90b8ab04a7de3cfe5db276b9