I upgrade xft 2.0.1 and kdebase told me to emerge qt again to link it against the new xft-2.0.1. The qt ebuild dies... emerge kdebase * You have Xft2.0 installed, but QT is linked against Xft1! * * Please fix this by remerging >=x11-libs/qt-3.1 and doing: * * # emerge ">=x11-libs/qt-3.1" !!! ERROR: kde-base/kdebase-3.0.5a-r1 failed. !!! Function pkg_setup, Line 114, Exitcode 0 !!! You have Xft2.0 installed, but QT is linked against Xft1! emerge qt [...] /mnt/zeta/var/tmp/portage/qt-3.1.0-r1/work/qt-x11-free-3.1.0/lib/libqt-mt.so: undefined reference to `FcPatternAddInteger' /mnt/zeta/var/tmp/portage/qt-3.1.0-r1/work/qt-x11-free-3.1.0/lib/libqt-mt.so: undefined reference to `FcPatternAddBool' /mnt/zeta/var/tmp/portage/qt-3.1.0-r1/work/qt-x11-free-3.1.0/lib/libqt-mt.so: undefined reference to `FcPatternDuplicate' /mnt/zeta/var/tmp/portage/qt-3.1.0-r1/work/qt-x11-free-3.1.0/lib/libqt-mt.so: undefined reference to `FcCharSetHasChar' [...] defined reference to `FcFontSetDestroy' /mnt/zeta/var/tmp/portage/qt-3.1.0-r1/work/qt-x11-free-3.1.0/lib/libqt-mt.so: undefined reference to `XftDrawPicture' collect2: ld returned 1 exit status make[3]: *** [../../../bin/uic] Error 1 make[3]: Leaving directory `/mnt/zeta/var/tmp/portage/qt-3.1.0-r1/work/qt-x11-free-3.1.0/tools/designer/uic' make[2]: *** [sub-uic] Error 2 make[2]: Leaving directory `/mnt/zeta/var/tmp/portage/qt-3.1.0-r1/work/qt-x11-free-3.1.0/tools/designer' make[1]: *** [sub-designer] Error 2 make[1]: Leaving directory `/mnt/zeta/var/tmp/portage/qt-3.1.0-r1/work/qt-x11-free-3.1.0/tools' make: *** [sub-tools] Error 2 !!! ERROR: x11-libs/qt-3.1.0-r1 failed. !!! Function src_compile, Line 98, Exitcode 2 !!! (no error message)
please post following additional information: 'readlink /usr/X11R6/lib/libXft.so' 'ls /usr/include/X11/Xft -l' thanks.
(kvh@rachael)-(13:12)-(~)> readlink /usr/X11R6/lib/libXft.so ../../lib/libXft.so.2.0 (kvh@rachael)-(13:12)-(~)> ls -l /usr/include/X11/Xft total 24 -rw-r--r-- 1 root root 12294 Jan 5 00:07 Xft.h -rw-r--r-- 1 root root 5399 Jan 5 00:07 XftCompat.h
Hmm, let's try this again: (kvh@rachael)-(13:12)-(~)> readlink /usr/X11R6/lib/libXft.so ../../lib/libXft.so.2.0 (kvh@rachael)-(13:12)-(~)> ls -l /usr/include/X11/Xft total 24 -rw-r--r-- 1 root root 12294 Jan 5 00:07 Xft.h -rw-r--r-- 1 root root 5399 Jan 5 00:07 XftCompat.h
please also append the full failure log of emerge.
Created attachment 7118 [details] emerge qt output
what does 'find / -name libXft.so*' return? 'find / -name Xft.h' might also be useful. it seems that you have more than one libXft.so installed, so please also look if those libXft.so are links to other libXft.so.x or are files. thanks.
It does appear that I have 2 different Xft libs...I wonder how I did that... (kvh@rachael)-(03:14)-(~)> ll /usr/X11R6/lib/libXft* -rw-r--r-- 1 root root 141892 Dec 27 18:35 /usr/X11R6/lib/libXft.a lrwxrwxrwx 1 root root 23 Jan 5 00:07 /usr/X11R6/lib/libXft.so -> ../../lib/libXft.so.2.0 lrwxrwxrwx 1 root root 13 Dec 27 18:35 /usr/X11R6/lib/libXft.so.1 -> libXft.so.1.1* -rwxr-xr-x 1 root root 116550 Dec 27 18:35 /usr/X11R6/lib/libXft.so.1.1* (kvh@rachael)-(03:14)-(~)> ll /usr/lib/libXft* lrwxrwxrwx 1 root root 11 Jan 5 00:07 /usr/lib/libXft.so -> libXft.so.2* lrwxrwxrwx 1 root root 13 Jan 5 00:07 /usr/lib/libXft.so.2 -> libXft.so.2.0* -rwxr-xr-x 1 root root 104047 Jan 5 00:07 /usr/lib/libXft.so.2.0* /usr/X11R6/include/X11/Xft/Xft.h Wonder why I have only one Xft.h
well, /usr/X11R6/lib/libXft.so.1.* is provided by xfree, /lib/libXft.so.2.* is provided by xft. so all should be fine. what i don't have is this /usr/X11R6/lib/libXft.a, maybe this is causing problems, please move it away (to ~ or anywhere else) and emerge qt.
I moved /usr/X11R6/lib/libXft.a/libXft.so.1. Ran an ldconfig and then qt emerged fine. The libXft.a had the same timestamp that libXft.so.1, so they must both be from xfree86. I wonder if I need the /usr/X11R6/libXft.so.1/Xft.a....I'll see if it breaks anything leaving it as is.... Thanks for the help...kdebase is being merged now...
I compiled qt again just to make sure. It compiled fine, so the cause of this bug must have been /usr/X11R6/lib/libXft.a. This is kinda odd, I thought that an .a library was just the static version. You can close this bug if you want. (root@rachael)-(13:57)-(~)> ll /usr/lib/libXft* lrwxrwxrwx 1 root root 11 Jan 5 00:07 /usr/lib/libXft.so -> libXft.so.2* lrwxrwxrwx 1 root root 13 Jan 5 00:07 /usr/lib/libXft.so.2 -> libXft.so.2.0* -rwxr-xr-x 1 root root 104047 Jan 5 00:07 /usr/lib/libXft.so.2.0* (root@rachael)-(13:57)-(~)> ll /usr/X11R6/lib/libXft* lrwxrwxrwx 1 root root 23 Jan 5 00:07 /usr/X11R6/lib/libXft.so -> ../../lib/libXft.so.2.0 lrwxrwxrwx 1 root root 13 Jan 10 00:45 /usr/X11R6/lib/libXft.so.1 -> libXft.so.1.1* -rwxr-xr-x 1 root root 116550 Jan 10 00:45 /usr/X11R6/lib/libXft.so.1.1*
I compiled qt again just to make sure. It compiled fine, so the cause of this bug must have been /usr/X11R6/lib/libXft.a. This is kinda odd, I thought that an .a library was just the static version. You can close this bug if you want. (root@rachael)-(13:57)-(~)> ll /usr/lib/libXft* lrwxrwxrwx 1 root root 11 Jan 5 00:07 /usr/lib/libXft.so -> libXft.so.2* lrwxrwxrwx 1 root root 13 Jan 5 00:07 /usr/lib/libXft.so.2 -> libXft.so.2.0* -rwxr-xr-x 1 root root 104047 Jan 5 00:07 /usr/lib/libXft.so.2.0* (root@rachael)-(13:57)-(~)> ll /usr/X11R6/lib/libXft* lrwxrwxrwx 1 root root 23 Jan 5 00:07 /usr/X11R6/lib/libXft.so -> ../../lib/libXft.so.2.0 lrwxrwxrwx 1 root root 13 Jan 10 00:45 /usr/X11R6/lib/libXft.so.1 -> libXft.so.1.1* -rwxr-xr-x 1 root root 116550 Jan 10 00:45 /usr/X11R6/lib/libXft.so.1.1* *Argh, you should really be able to edit your comments....or a preview
Created attachment 7224 [details] 'emerge qt' output
I tried emerging qt, but it didn't work. Got very similar messages, and I have the same versions of software. Very odd. I've tried compiling without optimisations, but no cookies. Hmm...
Chris: which x11-libs/xft is merged? what does 'readlink /usr/X11R6/lib.libXft.so' return? what does 'ls -l /usr/X11R6/lib/libXft*' return? what does 'ls -l /usr/lib/libXft*' return?
'ls -l /usr/include/X11/Xft' would also be useful. thanks.
I tried xft-2.0.1 and -r1, both cause problems. Currently -r1 is installed. readlink /usr/X11R6/lib/libXft.so ../../lib/libXft.so.2.0 ls -l /usr/X11R6/lib/libXft* lrwxrwxrwx 1 root root 23 Jan 12 13:51 /usr/X11R6/lib/libXft.so -> ../../lib/libXft.so.2.0 lrwxrwxrwx 1 root root 13 Jan 4 01:37 /usr/X11R6/lib/libXft.so.1 -> libXft.so.1.1 -rwxr-xr-x 1 root root 116362 Jan 4 01:36 /usr/X11R6/lib/libXft.so.1.1 I already moved libXft.a out of there, but it didn't work. ls -l /usr/lib/libXft* lrwxrwxrwx 1 root root 11 Jan 12 13:51 /usr/lib/libXft.so -> libXft.so.2 lrwxrwxrwx 1 root root 13 Jan 12 13:51 /usr/lib/libXft.so.2 -> libXft.so.2.0 -rwxr-xr-x 1 root root 82293 Jan 12 13:51 /usr/lib/libXft.so.2.0 ls -l /usr/include/X11/Xft/ -rw-r--r-- 1 root root 12606 Jan 12 13:51 Xft.h -rw-r--r-- 1 root root 5399 Jan 12 13:51 XftCompat.h
Chris: please remove /var/tmp/portage/qt-3.1.0-r1/ and emerge qt. your system seems to have correct libraries & headers installed.
No go. I've installed Qt here before (I've got qt-3.1.0 installed, but not through Portage). Qt is currently installed in /opt/qt. I've tried many different things to install another Qt with Portage. After removing the directory you said to, it still died. I also recompiled fontconfig, and that didn't work at all.
Chris: please post the output of 'find / -name libXft.so*' and 'find / -name Xft.h'. thanks.
find / -name libXft*<br><br> /usr/lib/libXft.so.2<br> /usr/lib/libXft.so.2.0<br> /usr/lib/libXft.so<br> /usr/X11R6/lib/libXft.so.1<br> /usr/X11R6/lib/libXft.so.1.1<br> /usr/X11R6/lib/libXft.so<br> <br>find / -name libXft.h outputs nothing.
Made a mistake in my second search. find / -name Xft.h /usr/X11R6/include/X11/Xft/Xft.h /root/.Xft/Xft.h And, I apologize for the terrible formatting...I can't find how to fix it.
A bit of hunting around found another Xft.h in /root/Xft/Xft.h. Doing a diff of that and the one in the includes brings up a wealth of differences. The timestamps and sizes are different. /root/Xft/Xft.h - 11167 bytes - Jan 4 /usr/include/X11/Xft/Xft.h - 11563 bytes - Jan 13
I moved the header in there, and it still complained; same error.
Chris: /root/.Xft is created by x11-libs/xft ebuild. this is all fine (and qt doesn't use anything from /root/ ;)) your error looks more similar to bug #13201 (there are also bad libraries around), only difference is that in bug #13201 the problem occurs during running kde, and your during compiling qt. but it is closest i found. hth
I've attempted emerging and unmerging many combinations of xft and freetype, but still didn't want to cooperate. I'm going to call this a "twilight zone" episode and use this nice new Gentoo LiveCD to fix this through reinstallation.
Run ldd on /usr/lib/libXft.so and make sure it's loading libXrender from /usr/X11R6/lib and not from /usr/lib/mozilla.
Chris, can we close this now? What's your status?
Just close it, I gave up.
Looks like we were unable to get anywhere with this - closing as a CANTFIX. Looks like some misc files got picked up by Qt accidentally.
re-resolving