Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 3468 - arts-1.0.1 won't build: qt-mt not found.
Summary: arts-1.0.1 won't build: qt-mt not found.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Dan Armak (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-06-06 22:26 UTC by walt
Modified: 2003-06-24 06:25 UTC (History)
2 users (show)

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 walt 2002-06-06 22:26:06 UTC
checking for Qt... configure: error: Qt (>= Qt 3.0.2) (library qt-mt) not found.
Please check your installation!
For more details about this problem, look at the end of config.log.
Make sure that you have compiled Qt with thread support!

!!! ERROR: The ebuild did not complete successfully.
!!! Function kde_src_compile, Line -3699, Exitcode 1
!!! died running ./configure, kde_src_compile:configure

But, I do have qt=3.0.4.1 with thread support enabled.
lrwxrwxrwx    1 root     root           13 May 31 12:36
/usr/qt/3/lib/libqt-mt.so -> libqt-mt.so.3
lrwxrwxrwx    1 root     root           15 May 31 12:36
/usr/qt/3/lib/libqt-mt.so.3 -> libqt-mt.so.3.0
lrwxrwxrwx    1 root     root           17 May 31 12:36
/usr/qt/3/lib/libqt-mt.so.3.0 -> libqt-mt.so.3.0.4
-rw-r--r--    1 root     root      6360084 May 31 12:35
/usr/qt/3/lib/libqt-mt.so.3.0.4
lrwxrwxrwx    1 root     root           11 May 31 12:36 /usr/qt/3/lib/libqt.so
-> libqt-mt.so
lrwxrwxrwx    1 root     root           13 May 31 12:36 /usr/qt/3/lib/libqt.so.3
-> libqt-mt.so.3
lrwxrwxrwx    1 root     root           15 May 31 12:36
/usr/qt/3/lib/libqt.so.3.0 -> libqt-mt.so.3.0
lrwxrwxrwx    1 root     root           17 May 31 12:36
/usr/qt/3/lib/libqt.so.3.0.4 -> libqt-mt.so.3.0.4
Comment 1 Dan Armak (RETIRED) gentoo-dev 2002-06-07 05:19:06 UTC
So, let's look at config.log. Please attach your ${S}/config.log and we'll see where it's looking for qt and why it can't find it. Also, if you have qpkg installed (if not emerge gentoolkit, it's very very useful), run "qpkg -c -v qt" to check that all your qt files are in place and have correct checksums. 
Comment 2 walt 2002-06-08 09:03:23 UTC
Problem solved, I think:  this machine was converted briefly to gcc3.1 and
then back again.  However I now find that, while the conversion back to
gcc2.9x correctly relinked /usr/bin/i586-pc-gnu-linux-gcc to /usr/bin/gcc,
it failed to do the parallel relink of /usr/bin/i586-pc-gnu-linux-g++ to
/usr/bin/g++.

Therefore the configure program was looking for i586-pc-gnu-g++ and
found it still linked to the old c++ version 3.1 instead of to
/usr/bin/g++ which is now back to version 2.9x

I did the relink by hand and arts is now happily compiling away.

While not many people are in my situation, it might still save a few
headaches if the gcc2.9x package included a link between /usr/bin/g++ 
and i585-pc-gnu-linux-g++ so that any machine like mine will be
completely reverted back to gcc2.9x.

Thanks for your response, it pointed me in the right direction.
Comment 3 Dan Armak (RETIRED) gentoo-dev 2002-06-08 10:51:45 UTC
OK, I'm closing this then. Wrt. your gcc suggestion, please file it as a new bug so that it gets assigned to the right developer.  
Comment 4 Olav Kolbu 2003-06-11 02:14:12 UTC
Not reopening this, but as I just came across the same gcc-problem trying to emerge arts-1.1.2 a full year later than this case was closed I thought I'd put in a comment here for those who come looking for a solution.

If you error out on something like "...(library qt-mt) not found." then it is highly likely that you have a slightly messed up GCC installation. On my box, there is currently both gcc 3.2.3 and 2.95.3. However, somewhere in the installation of one of those, the setup isn't properly converted from the one to the other. Typically 'gcc -v' will show a different version from what the content of /etc/env.d/05gcc will show you. To fix this, use gcc-config:

# gcc-config -l
[1] i686-pc-linux-gnu-2.95.3
[2] i686-pc-linux-gnu-3.2.3

If you want 2.95.3, just do:

# gcc-config i686-pc-linux-gnu-2.95.3
 * Switching to i686-pc-linux-gnu-2.95.3 compiler...                      [ ok ]

 * If you intend to use the gcc from the new profile in an already
 * running shell, please remember to do:

 *   # source /etc/profile

# source /etc/profile
# cat /etc/env.d/05gcc 
PATH="/usr/i686-pc-linux-gnu/gcc-bin/2.95"
ROOTPATH="/usr/i686-pc-linux-gnu/gcc-bin/2.95"
MANPATH="/usr/share/gcc-data/i686-pc-linux-gnu/2.95/man"
INFOPATH="/usr/share/gcc-data/i686-pc-linux-gnu/2.95/info"
CC="gcc"
CXX="g++"
LDPATH="/usr/lib/gcc-lib/i686-pc-linux-gnu/2.95.3:/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3"

# gcc -v
Reading specs from /usr/lib/gcc-lib/i686-pc-linux-gnu/2.95.3/specs
gcc version 2.95.3 20010315 (release)
Comment 5 Jan Schubert 2003-06-24 05:48:29 UTC
The problem exists also for me emerging arts-1.1.2. The solution provided by Olaf does 
not work for me. Beside that, i've just one version of gcc installed: 
 
toral qt # gcc-config -l 
[1] i686-pc-linux-gnu-3.2.3 
 
This is what i got: 
checking for libjpeg... -ljpeg 
checking for Qt... configure: error: Qt (>= Qt 3.1.0) (library qt-mt) not found. Please 
check your installation! 
For more details about this problem, look at the end of config.log. 
Make sure that you have compiled Qt with thread support! 
 
!!! ERROR: kde-base/arts-1.1.2 failed. 
!!! Function kde_src_compile, Line -3219, Exitcode 1 
!!! died running ./configure, kde_src_compile:configure 
 
qt is up to date: x11-libs/qt-3.1.2-r3 
 
Any ideas? 
Comment 6 Jan Schubert 2003-06-24 06:25:15 UTC
As a workaraound add these lines to arts-1.1.2.ebuild (works fine for me): 
 
myconf="${myconf} --with-qt-dir=/usr/qt/3" 
myconf="${myconf} --with-qt-includes=/usr/qt/3/include" 
myconf="${myconf} --with-qt-libraries=/usr/qt/3/lib"