Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 6255 - emerge of kdelibs-2.2.2-r4 failed
Summary: emerge of kdelibs-2.2.2-r4 failed
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Dan Armak (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-08-09 11:52 UTC by Ian Abbott
Modified: 2002-08-13 10:52 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ian Abbott 2002-08-09 11:52:45 UTC
I had a problem emerging kdelibs-2.2.2-r4 after previously emerging 
qt-2.3.1-r1.  The emerge failed during 'configure' while checking for Qt. 
Specifically, the configure subprogram to check the Qt version >=2.2.2 failed. 
Even more specifically, 'ld' failed because it couldn't resolve the '-lqt-mt' 
switch to a library. 
 
My '/usr/qt/2/lib' directory did not contain a 'libqt-mt.so' entry. 
 
I resolved the problem by manually creating a symlink from 'libqt-mt.so.2' to 
'libqt-mt.so' and I was then able to emerge kdelibs-2.2.2-r4 successfully.
Comment 1 Dan Armak (RETIRED) gentoo-dev 2002-08-12 04:18:09 UTC
Are you sure you mean qt 2.3.1-r1? The only qt 2.x ebuild in portage is 
2.3.2-r1. 
 
Here, libqt-mt.so was built and installed for qt2, and is different from the 
simple libqt.so. We expressly tell the qt configure to build qt-mt as well, so 
I'd like to know what went wrong with your emerge of it. 
 
Incidentally I've fixed a small typo in the qt-2.3.2-r1 ebuild which caused the 
libqt.so.2.3 and libqt-mt.so.2.3 symlinks not to be installed. I don't think 
this had anything to do with your problem, or with any problem at all. 
 
Right after unpacking, after configure is run, the qt build prints a table like 
this: 
--------- 
Build type:    linux-g++-shared 
 
Thread support..................... yes 
GIF support........................ yes 
MNG support........................ yes 
JPEG support....................... yes 
OpenGL support .................... yes 
NAS sound support.................. no 
Session management................. yes 
Xft support (Anti-Aliased Fonts) .. yes 
XKB support ....................... yes 
----------- 
If libqt-mt wasn't built, it must have said Thread support.........no. Please 
rerun your emerge and check if this is so. Then we can move onwards diagnosing 
the problem. 
Comment 2 Ian Abbott 2002-08-12 06:52:26 UTC
Yes, I meant qt-2.3.2-r1. Sorry for the confusion.  
  
I have deleted the libqt-mt.so symlink I manually added and have emerged  
=x11-libs/qt-2.3.2-r1 again. The table that the qt build printed was exactly  
the same as you said it should be. Everything created in /usr/qt/2/lib has the 
correct date (today), but there is no /usr/qt/2/lib/libqt-mt.so symlink 
present. 
 
gentoo root # ls -l /usr/qt/2/lib 
total 11144 
lrwxrwxrwx    1 root     root           17 Aug 12 12:00 libqt-mt.so.2 -> 
libqt-mt.so.2.3.2 
-rw-r--r--    1 root     root      5679468 Aug 12 12:00 libqt-mt.so.2.3.2 
lrwxrwxrwx    1 root     root           14 Aug 12 12:00 libqt.so.2 -> 
libqt.so.2.3.2 
-rw-r--r--    1 root     root      5658085 Aug 12 12:00 libqt.so.2.3.2 
lrwxrwxrwx    1 root     root           13 Aug 12 12:00 libqutil.so -> 
libqutil.so.1 
lrwxrwxrwx    1 root     root           15 Aug 12 12:00 libqutil.so.1 -> 
libqutil.so.1.0 
lrwxrwxrwx    1 root     root           17 Aug 12 12:00 libqutil.so.1.0 -> 
libqutil.so.1.0.0 
-rw-r--r--    1 root     root        43067 Aug 12 12:00 libqutil.so.1.0.0 
 
I have a typescript of the emerge. Here are some interesting snippets: 
 
>>> Merging x11-libs/qt-2.3.2-r1 to / 
--- /usr/ 
--- /usr/qt/ 
--- /usr/qt/2/ 
--- /usr/qt/2/bin/ 
>>> /usr/qt/2/bin/designer 
>>> /usr/qt/2/bin/findtr 
>>> /usr/qt/2/bin/moc 
>>> /usr/qt/2/bin/qt20fix 
>>> /usr/qt/2/bin/qtrename140 
>>> /usr/qt/2/bin/uic 
--- /usr/qt/2/lib/ 
>>> /usr/qt/2/lib/libqt.so.2.3.2 
>>> /usr/qt/2/lib/libqt-mt.so.2.3.2 
>>> /usr/qt/2/lib/libqutil.so.1.0.0 
--- /usr/qt/2/include/ 
[snip] 
>>> /usr/qt/2/include/qxt.h 
--- /etc/ 
--- /etc/env.d/ 
>>> /etc/env.d/50qt2 
>>> /etc/env.d/45qtdir2 
>>> /usr/qt/2/lib/libqt.so.2.3 -> libqt.so.2.3.1 
>>> /usr/qt/2/lib/libqt.so.2 -> libqt.so.2.3 
>>> /usr/qt/2/lib/libqt.so -> libqt.so.2 
>>> /usr/qt/2/lib/libqt-mt.so.2.3 -> libqt-mt.so.2.3.1 
>>> /usr/qt/2/lib/libqt-mt.so.2 -> libqt-mt.so.2.3 
>>> /usr/qt/2/lib/libqt-mt.so -> libqt-mt.so.2 
>>> /usr/qt/2/lib/libqutil.so.1.0 -> libqutil.so.1.0.0 
>>> /usr/qt/2/lib/libqutil.so.1 -> libqutil.so.1.0 
>>> /usr/qt/2/lib/libqutil.so -> libqutil.so.1 
 
>>> Safely unmerging already-installed instance... 
--- !mtime obj /usr/qt/2/lib/libqutil.so.1.0.0 
--- !mtime obj /usr/qt/2/lib/libqt.so.2.3.2 
--- !mtime obj /usr/qt/2/lib/libqt-mt.so.2.3.2 
--- !mtime obj /usr/qt/2/include/qxt.h 
[snip] 
--- !mtime obj /etc/env.d/45qtdir2 
<<<        sym /usr/qt/2/lib/libqt.so.2.3 
<<<        sym /usr/qt/2/lib/libqt.so.2 
<<<        sym /usr/qt/2/lib/libqt.so 
<<<        sym /usr/qt/2/lib/libqt-mt.so.2.3 
<<<        sym /usr/qt/2/lib/libqt-mt.so.2 
<<<        sym /usr/qt/2/lib/libqt-mt.so 
--- !empty dir /usr/qt/2/lib 
--- !empty dir /usr/qt/2/include 
--- !empty dir /usr/qt/2/bin 
--- !empty dir /usr/qt/2 
--- !empty dir /usr/qt 
--- !empty dir /usr 
--- !empty dir /etc/env.d 
--- !empty dir /etc 
--- !targe sym /usr/qt/2/lib/libqutil.so.1.0 
--- !targe sym /usr/qt/2/lib/libqutil.so.1 
--- !targe sym /usr/qt/2/lib/libqutil.so 
>>> original instance of package unmerged safely. 
 
 
Comment 3 Ian Abbott 2002-08-12 08:18:37 UTC
I corrected the version number typo in the src_install() function of 
x11-libs/qt-2.3.2-r1, removed the symlink added manually and repeated the 
emerge and it all installed correctly. After the emerge I now get: 
 
gentoo root # ls -l /usr/qt/2/lib 
total 11144 
lrwxrwxrwx    1 root     root           13 Aug 12 14:05 libqt-mt.so -> 
libqt-mt.so.2 
lrwxrwxrwx    1 root     root           15 Aug 12 14:05 libqt-mt.so.2 -> 
libqt-mt.so.2.3 
lrwxrwxrwx    1 root     root           17 Aug 12 14:05 libqt-mt.so.2.3 -> 
libqt-mt.so.2.3.2 
-rw-r--r--    1 root     root      5679468 Aug 12 14:05 libqt-mt.so.2.3.2 
lrwxrwxrwx    1 root     root           10 Aug 12 14:05 libqt.so -> libqt.so.2 
lrwxrwxrwx    1 root     root           12 Aug 12 14:05 libqt.so.2 -> 
libqt.so.2.3 
lrwxrwxrwx    1 root     root           14 Aug 12 14:05 libqt.so.2.3 -> 
libqt.so.2.3.2 
-rw-r--r--    1 root     root      5658085 Aug 12 14:05 libqt.so.2.3.2 
lrwxrwxrwx    1 root     root           13 Aug 12 14:05 libqutil.so -> 
libqutil.so.1 
lrwxrwxrwx    1 root     root           15 Aug 12 14:05 libqutil.so.1 -> 
libqutil.so.1.0 
lrwxrwxrwx    1 root     root           17 Aug 12 14:05 libqutil.so.1.0 -> 
libqutil.so.1.0.0 
-rw-r--r--    1 root     root        43067 Aug 12 14:05 libqutil.so.1.0.0 
 
Also, the safe unmerge does not seem to be trying to delete any symlinks this 
time: 
 
>>> Safely unmerging already-installed instance... 
--- !mtime obj /usr/qt/2/lib/libqutil.so.1.0.0 
--- !mtime obj /usr/qt/2/lib/libqt.so.2.3.2 
--- !mtime obj /usr/qt/2/lib/libqt-mt.so.2.3.2 
--- !mtime obj /usr/qt/2/include/qxt.h 
[snip] 
--- !empty dir /etc 
--- !targe sym /usr/qt/2/lib/libqutil.so.1.0 
--- !targe sym /usr/qt/2/lib/libqutil.so.1 
--- !targe sym /usr/qt/2/lib/libqutil.so 
--- !targe sym /usr/qt/2/lib/libqt.so.2.3 
--- !targe sym /usr/qt/2/lib/libqt.so.2 
--- !targe sym /usr/qt/2/lib/libqt.so 
--- !targe sym /usr/qt/2/lib/libqt-mt.so.2.3 
--- !targe sym /usr/qt/2/lib/libqt-mt.so.2 
--- !targe sym /usr/qt/2/lib/libqt-mt.so 
>>> original instance of package unmerged safely. 
 
It seems that that small typo is the cause of the problem. 
Comment 4 Dan Armak (RETIRED) gentoo-dev 2002-08-13 10:52:20 UTC
OK, since I've already corrected this typo in cvs, this bug can be closed.