Created attachment 496260 [details] build.log When updating from media-libs/fontconfig-2.12.4 to media-libs/fontconfig-2.12.6, emerge fails with: In file included from /var/tmp/portage/media-libs/fontconfig-2.12.6/work/fontconfig-2.12.6/src/fcobjs.c:33:0: fcobjshash.gperf:28:1: error: conflicting types for 'FcObjectTypeHash' "aspect",FC_ASPECT_OBJECT ^ This could be related to https://bugs.freedesktop.org/show_bug.cgi?id=101280
Same problem: ... In file included from /var/tmp/portage/media-libs/fontconfig-2.12.6/work/fontconfig-2.12.6/src/fcobjs.c:33:0: fcobjshash.gperf:28:1: error: conflicting types for ‘FcObjectTypeHash’ "aspect",FC_ASPECT_OBJECT ^~~~~~~~~~~~~~~~ /var/tmp/portage/media-libs/fontconfig-2.12.6/work/fontconfig-2.12.6/src/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 /var/tmp/portage/media-libs/fontconfig-2.12.6/work/fontconfig-2.12.6/src/fcobjs.c:33:0: fcobjshash.gperf:166:1: error: conflicting types for ‘FcObjectTypeLookup’ /var/tmp/portage/media-libs/fontconfig-2.12.6/work/fontconfig-2.12.6/src/fcobjs.c:31:1: note: previous declaration of ‘FcObjectTypeLookup’ was here FcObjectTypeLookup (register const char *str, register FC_GPERF_SIZE_T len); ^~~~~~~~~~~~~~~~~~ make[3]: *** [Makefile:642: fcobjs.lo] Error 1 ...
does it compile if you add this to src_prepare: rm src/fcobjshash.h src/fcobjshash.gperf (from the bug you refer to)
(In reply to Fabian Groffen from comment #2) > does it compile if you add this to src_prepare: > > rm src/fcobjshash.h src/fcobjshash.gperf > > (from the bug you refer to) Yes, it does. src/fcobjshash.gperf does not exist, but removing src/fcobjshash.h in src_prepare obviously resolves the issue.
It's look like reincarnated https://bugs.freedesktop.org/show_bug.cgi?id=101280 So this rm needs to be unconditional. Just like: src_prepare() { default eautoreconf # https://bugs.freedesktop.org/show_bug.cgi?id=101280 rm -f src/fcobjshash.h src/fcobjshash.gperf }
Created attachment 496412 [details, diff] >=gperf-3.1 is needed (Bug #631980)
As was pointed out by Fabian Groffen in https://bugs.gentoo.org/631980#c0 compatible version of gperf (>=3.1) is only one thing necessary for successful compilation of this fontconfig version.
(In reply to Jiří Moravec from comment #6) > As was pointed out by Fabian Groffen in https://bugs.gentoo.org/631980#c0 > compatible version of gperf (>=3.1) is only one thing necessary for > successful compilation of this fontconfig version. I can confirm that. fontconfig-2.12.6 fails to build on my ~amd64 machine, with gperf-3.0 installed (even with the export GPERF=true hack). Upgrading to gperf-3.1 first allows fontconfig-2.12.6 to build.
gperf version mismatch appears to be the problem.
Configure still tries to figure out some characteristics of the gperf installed on the system. I've added a fix to work around this, and use the declaration as used by the generated sources. Please check if this fixes the issue for you too.
(In reply to Fabian Groffen from comment #9) > Configure still tries to figure out some characteristics of the gperf > installed on the system. I've added a fix to work around this, and use the > declaration as used by the generated sources. > > Please check if this fixes the issue for you too. https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7c8681b31ece2afde603069c09b5731e5cd70d11 fixes it for me, thanks.