Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 13298 - qt-3.1.0-rc1 dies with newly installed xft-2.0.1
Summary: qt-3.1.0-rc1 dies with newly installed xft-2.0.1
Status: RESOLVED CANTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-01-05 10:46 UTC by Kurt Hindenburg
Modified: 2003-09-30 08:24 UTC (History)
1 user (show)

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


Attachments
emerge qt output (qt.log,306.02 KB, text/plain)
2003-01-09 01:14 UTC, Kurt Hindenburg
Details
'emerge qt' output (g++-qt-output,4.71 KB, text/plain)
2003-01-12 11:29 UTC, Chris Richards
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kurt Hindenburg 2003-01-05 10:46:24 UTC
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)
Comment 1 Hannes Mehnert (RETIRED) gentoo-dev 2003-01-06 02:07:00 UTC
please post following additional information: 
'readlink /usr/X11R6/lib/libXft.so' 
'ls /usr/include/X11/Xft -l' 
 
thanks. 
Comment 2 Kurt Hindenburg 2003-01-06 12:19:13 UTC
(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  
Comment 3 Kurt Hindenburg 2003-01-06 12:21:37 UTC
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 
 
 
Comment 4 Hannes Mehnert (RETIRED) gentoo-dev 2003-01-07 02:50:59 UTC
please also append the full failure log of emerge. 
Comment 5 Kurt Hindenburg 2003-01-09 01:14:51 UTC
Created attachment 7118 [details]
emerge qt output
Comment 6 Hannes Mehnert (RETIRED) gentoo-dev 2003-01-09 01:57:03 UTC
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. 
Comment 7 Kurt Hindenburg 2003-01-09 02:22:53 UTC
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 
 
Comment 8 Hannes Mehnert (RETIRED) gentoo-dev 2003-01-09 15:23:15 UTC
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. 
Comment 9 Kurt Hindenburg 2003-01-09 16:10:32 UTC
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...
Comment 10 Kurt Hindenburg 2003-01-11 13:03:11 UTC
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*   
Comment 11 Kurt Hindenburg 2003-01-11 13:10:49 UTC
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 
Comment 12 Chris Richards 2003-01-12 11:29:54 UTC
Created attachment 7224 [details]
'emerge qt' output
Comment 13 Chris Richards 2003-01-12 11:41:15 UTC
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... 
Comment 14 Hannes Mehnert (RETIRED) gentoo-dev 2003-01-12 15:11:44 UTC
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? 
Comment 15 Hannes Mehnert (RETIRED) gentoo-dev 2003-01-12 15:17:01 UTC
'ls -l /usr/include/X11/Xft' would also be useful. thanks. 
Comment 16 Chris Richards 2003-01-12 17:14:19 UTC
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  
Comment 17 Hannes Mehnert (RETIRED) gentoo-dev 2003-01-14 11:33:12 UTC
Chris: please remove /var/tmp/portage/qt-3.1.0-r1/ and emerge qt. 
your system seems to have correct libraries & headers installed. 
Comment 18 Chris Richards 2003-01-14 18:53:23 UTC
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. 
Comment 19 Hannes Mehnert (RETIRED) gentoo-dev 2003-02-01 10:37:18 UTC
Chris: please post the output of 'find / -name libXft.so*' and 'find / -name Xft.h'. 
 
thanks. 
Comment 20 Chris Richards 2003-02-03 21:50:20 UTC
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. 
Comment 21 Chris Richards 2003-02-03 21:59:49 UTC
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. 
Comment 22 Chris Richards 2003-02-04 17:06:55 UTC
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 
Comment 23 Chris Richards 2003-02-04 18:06:10 UTC
I moved the header in there, and it still complained; same error. 
Comment 24 Hannes Mehnert (RETIRED) gentoo-dev 2003-02-04 18:15:52 UTC
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 
Comment 25 Chris Richards 2003-02-07 18:15:10 UTC
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. 
Comment 26 Andrew Smith 2003-02-26 07:47:25 UTC
Run ldd on /usr/lib/libXft.so and make sure it's loading libXrender from /usr/X11R6/lib and not 
from /usr/lib/mozilla. 
 
Comment 27 Dan Armak (RETIRED) gentoo-dev 2003-04-15 12:06:03 UTC
Chris, can we close this now? What's your status? 
Comment 28 Chris Richards 2003-04-17 01:23:39 UTC
Just close it, I gave up.
Comment 29 Caleb Tennis (RETIRED) gentoo-dev 2003-05-12 22:41:00 UTC
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. 
Comment 30 Caleb Tennis (RETIRED) gentoo-dev 2003-09-30 08:24:08 UTC
re-resolving