This is with GCC 7.3.0 on Gentoo 17.0 but older GCC versions (including 6.4.0) failed with the same error. ../guicast/.libs/libguicast.so: error: undefined reference to 'FcInit' ../guicast/.libs/libguicast.so: error: undefined reference to 'FcConfigAppFontAddDir' ../guicast/.libs/libguicast.so: error: undefined reference to 'FcConfigSetRescanInterval' ../guicast/.libs/libguicast.so: error: undefined reference to 'FcPatternCreate' ../guicast/.libs/libguicast.so: error: undefined reference to 'FcObjectSetBuild' ../guicast/.libs/libguicast.so: error: undefined reference to 'FcPatternAddBool' ../guicast/.libs/libguicast.so: error: undefined reference to 'FcFontList' ../guicast/.libs/libguicast.so: error: undefined reference to 'FcPatternDestroy' ../guicast/.libs/libguicast.so: error: undefined reference to 'FcObjectSetDestroy' ../guicast/.libs/libguicast.so: error: undefined reference to 'FcPatternGetString' ../guicast/.libs/libguicast.so: error: undefined reference to 'FcPatternGetInteger' ../guicast/.libs/libguicast.so: error: undefined reference to 'FcFontSetDestroy' ../guicast/.libs/libguicast.so: error: undefined reference to 'FcCharSetCreate' ../guicast/.libs/libguicast.so: error: undefined reference to 'FcCharSetAddChar' ../guicast/.libs/libguicast.so: error: undefined reference to 'FcCharSetDestroy' ../guicast/.libs/libguicast.so: error: undefined reference to 'FcPatternDel' ../guicast/.libs/libguicast.so: error: undefined reference to 'FcPatternGetCharSet' ../guicast/.libs/libguicast.so: error: undefined reference to 'FcCharSetHasChar' ../guicast/.libs/libguicast.so: error: undefined reference to 'FcPatternDuplicate' ../guicast/.libs/libguicast.so: error: undefined reference to 'FcPatternAddInteger' ../guicast/.libs/libguicast.so: error: undefined reference to 'FcPatternAddCharSet' ../guicast/.libs/libguicast.so: error: undefined reference to 'FcFreeTypeQueryFace' ../guicast/.libs/libguicast.so: error: undefined reference to 'FcPatternGetDouble' ../guicast/.libs/libguicast.so: error: undefined reference to 'FcPatternAddDouble' collect2: error: ld returned 1 exit status make[3]: *** [Makefile:1393: cinelerra] Error 1 make[3]: Leaving directory '/var/tmp/portage/media-video/cinelerra-2.3/work/CinelerraCV-2.3/cinelerra' make[2]: *** [Makefile:1748: all-recursive] Error 1 make[2]: Leaving directory '/var/tmp/portage/media-video/cinelerra-2.3/work/CinelerraCV-2.3/cinelerra' make[1]: *** [Makefile:512: all-recursive] Error 1 make[1]: Leaving directory '/var/tmp/portage/media-video/cinelerra-2.3/work/CinelerraCV-2.3' make: *** [Makefile:442: all] Error 2 I think the solution is to finally solve bug #539174 Reproducible: Always
Please attach the entire build log to this bug report. Please post your `emerge --info` output in a comment.
I confirm it happens the same with GCC 6.4.0, and as I researched, the error is related with fontconfig. But I can't find how to fix it.
I found a workaround: in the compilation options, pass the -lfontconfig flag and it works. You can do it using env files, too.
Package removed.