Summary: | x11-libs/motif-2.3.4-r1 fails with USE xft: error: undefined reference to 'FcPatternCreate' | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Adrian Bassett <Adrian.Bassett> |
Component: | Current packages | Assignee: | Ulrich Müller <ulm> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | x11 |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 372079 | ||
Attachments: |
build log for failing motif-2.3.4-r1
emerge --info motif-2.3.4-fontconfig-config.patch |
Description
Adrian Bassett
2013-03-18 17:03:58 UTC
(In reply to comment #0) The output from the build log appears to have got corrupted somehow. Should read: libtool: link: x86_64-pc-linux-gnu-gcc -O2 -march=core2 -mtune=core2 -mmmx -msse -msse2 -msse3 -mssse3 -msse4.1 -mfpmath=sse -pipe -frecord-gcc-switches -fno-strict-aliasing -Wall -g -fno-strict-aliasing -Wno-unused -Wno-comment -fno-tree-ter -I/usr/include/freetype2 -Wl,-O1 -o .libs/wmldbcreate wmldbcreate.o -Wl,--as-needed ../../lib/Xm/.libs/libXm.so -lXmu -lXt -lXext -lX11 -lXp -lXft -ljpeg -lpng ../../lib/Xm/.libs/libXm.so: error: undefined reference to 'FcPatternDestroy' ../../lib/Xm/.libs/libXm.so: error: undefined reference to 'FcPatternCreate' ../../lib/Xm/.libs/libXm.so: error: undefined reference to 'FcPatternAddString' ../../lib/Xm/.libs/libXm.so: error: undefined reference to 'FcPatternAddInteger' collect2: error: ld returned 1 exit status Please attach the full build.log and emerge --info. Created attachment 342564 [details]
build log for failing motif-2.3.4-r1
Created attachment 342566 [details]
emerge --info
(In reply to comment #0) > [...] the previously successful version, 2.3.4, also now fails with > USE="xft" [...] motif-2.3.4 (-r0) isn't multilib-enabled, so it's unlikely that this is a multilib issue. However, the telltale sign is found in the emerge --info: ld GNU gold (GNU Binutils 2.23.1) 1.11 It is known that the gold linker is picky about underlinking. The missing Fc* symbols are from libfontconfig which isn't explicitly specified, but only indirectly via libXft. In fact, the problem is much earlier, in configure: checking for fontconfig-config... no checking fontconfig/fontconfig.h usability... yes checking fontconfig/fontconfig.h presence... yes checking for fontconfig/fontconfig.h... yes checking for FcInit... no The fontconfig-config program doesn't exist any more. "pkg-config fontconfig" should be used instead. Created attachment 342574 [details, diff]
motif-2.3.4-fontconfig-config.patch
Please test if attached patch fixes the problem.
The ebuild uses epatch_user, so if you save the patch in /etc/portage/patches/x11-libs/motif-2.3.4/fontconfig-config.patch it should be picked up from there.
(In reply to comment #6) > Please test if attached patch fixes the problem. > > The ebuild uses epatch_user, so if you save the patch in > /etc/portage/patches/x11-libs/motif-2.3.4/fontconfig-config.patch it should > be picked up from there. Patch installed as suggested. x11-libs/motif-2.3.4-r1 now installs OK with USE="xft". Thanks. Reported upstream: http://bugs.motifzone.net/show_bug.cgi?id=1593 Fixed without revbump. Thank you for reporting! |