Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 208780 - kde-base/arts-3.5.8 configure fails: qt3 not found
Summary: kde-base/arts-3.5.8 configure fails: qt3 not found
Status: VERIFIED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-03 19:24 UTC by Andreas K. Hüttel
Modified: 2008-02-03 23:03 UTC (History)
1 user (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 Andreas K. Hüttel archtester gentoo-dev 2008-02-03 19:24:06 UTC
Installation of first packages in new gentoo setup - arts is required by some dependency. The build however fails. It seems that
* QT is installed in /usr/qt/3
* the configure script is told that it is in /usr/lib/qt3
-> obvious problem...


 *
 * ERROR: kde-base/arts-3.5.8 failed.
 * Call stack:
 *           ebuild.sh, line 1701:  Called dyn_compile
 *           ebuild.sh, line 1039:  Called qa_call 'src_compile'
 *           ebuild.sh, line   44:  Called src_compile
 *   arts-3.5.8.ebuild, line   74:  Called kde_src_compile
 *          kde.eclass, line  174:  Called kde_src_compile 'all'
 *          kde.eclass, line  344:  Called kde_src_compile 'myconf' 'configure' 'make'
 *          kde.eclass, line  326:  Called econf '--enable-alsa' '--disable-vorbis' '--enable-libmad' '--without-jack' '--without-esd' '--without-nas' '--with-audiofile' '--without-mas' '--with-x' '--enable-mitshm' '--without-xinerama' '--with-qt-dir=/usr/lib/qt3' '--enable-mt' '--with-qt-libraries=/usr/lib/qt3/lib' '--disable-dependency-tracking' '--disable-debug' '--without-debug' '--disable-final' '--prefix=/usr/kde/3.5' '--mandir=/usr/kde/3.5/share/man' '--infodir=/usr/kde/3.5/share/info' '--datadir=/usr/kde/3.5/share' '--sysconfdir=/usr/kde/3.5/etc'
 *           ebuild.sh, line  638:  Called die
 * The specific snippet of code:
 *                      die "econf failed"
 *  The die message:
 *   econf failed
 *


output of the configure script: 
(...)
checking for libXext... yes
checking for pthread_create in -lpthread... yes
checking for libz... -lz
checking for libpng... -lpng -lz -lm
checking for libjpeg6b... no
checking for libjpeg... -ljpeg
checking for perl... /usr/bin/perl
checking for Qt... configure: error: Qt (>= Qt 3.3 and < 4.0) (headers and libraries) not found. Please check your installation!
For more details about this problem, look at the end of config.log.
Comment 1 Bo Ørsted Andresen (RETIRED) gentoo-dev 2008-02-03 21:41:19 UTC
Your QTDIR seems to be set to /usr/lib/qt3. It is supposed to be /usr/qt/3 which is set by /etc/env.d/50qtdir3.

Does running `env-update && source /etc/profile` fix this? Otherwise post the output of:

emerge -pv =x11-libs/qt-3*
echo $QTDIR
grep QTDIR /etc/profile.env
Comment 2 Andreas K. Hüttel archtester gentoo-dev 2008-02-03 22:35:44 UTC
You are correct, QTDIR was set incorrectly, and that is fixed by `env-update && source /etc/profile`. 

The build still fails though, with a slightly different configure error:
(...)
checking for libjpeg6b... no
checking for libjpeg... -ljpeg
checking for perl... /usr/bin/perl
checking for Qt... configure: error: Qt (>= Qt 3.3 and < 4.0) (library qt-mt) not found. Please check your installation!





(chroot) bellini ~ # emerge -pv =x11-libs/qt-3*

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] x11-libs/qt-3.3.8-r4  USE="cups ipv6 -debug -doc -examples -firebird -gif -immqt -immqt-bc -mysql -nas -nis -odbc -opengl -postgres -sqlite -xinerama" 0 kB

Total: 1 package (1 reinstall), Size of downloads: 0 kB
(chroot) bellini ~ # echo $QTDIR
/usr/qt/3
(chroot) bellini ~ # grep QTDIR /etc/profile.env
export QTDIR='/usr/qt/3'
(chroot) bellini ~ # ls -l /usr/qt/3/lib/libqt-mt.*
-rwxr-xr-x 1 root root     782 Feb  3 19:29 /usr/qt/3/lib/libqt-mt.la
-rw-r--r-- 1 root root     787 Feb  3 19:29 /usr/qt/3/lib/libqt-mt.prl
lrwxrwxrwx 1 root root      13 Feb  3 19:29 /usr/qt/3/lib/libqt-mt.so -> libqt-mt.so.3
lrwxrwxrwx 1 root root      15 Feb  3 19:29 /usr/qt/3/lib/libqt-mt.so.3 -> libqt-mt.so.3.3
lrwxrwxrwx 1 root root      17 Feb  3 19:29 /usr/qt/3/lib/libqt-mt.so.3.3 -> libqt-mt.so.3.3.8
-rwxr-xr-x 1 root root 7123684 Feb  3 19:29 /usr/qt/3/lib/libqt-mt.so.3.3.8
(chroot) bellini ~ #       



Here is the relevant part (I hope) from config.log. It makes me wonder a bit whether libqt-mt really is the problem.



configure:33120: checking for Qt
configure: 33185: /usr/qt/3/include/qstyle.h
taking that
configure:33302: rm -rf SunWS_cache; i686-pc-linux-gnu-g++ -o conftest -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -O2 -march=pentium-m -pipe -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -I/usr/qt/3/include -I.  -DQT_THREAD_SUPPORT  -D_REENTRANT  -L/usr/qt/3/lib      conftest.cpp  -lqt-mt -lpng -lz -lm -ljpeg -ldl  -lXext -lX11 -lSM -lICE  -lpthread 1>&5
/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../../i686-pc-linux-gnu/bin/ld: warning: libexpat.so.0, needed by /usr/lib/libfontconfig.so.1, not found (try using -rpath or -rpath-link)
/usr/lib/libfontconfig.so.1: undefined reference to `XML_ErrorString'
/usr/lib/libfontconfig.so.1: undefined reference to `XML_SetUserData'
/usr/lib/libfontconfig.so.1: undefined reference to `XML_GetCurrentLineNumber'
/usr/lib/libfontconfig.so.1: undefined reference to `XML_ParserFree'
/usr/lib/libfontconfig.so.1: undefined reference to `XML_SetElementHandler'
/usr/lib/libfontconfig.so.1: undefined reference to `XML_SetDoctypeDeclHandler'
/usr/lib/libfontconfig.so.1: undefined reference to `XML_SetCharacterDataHandler'
/usr/lib/libfontconfig.so.1: undefined reference to `XML_GetErrorCode'
/usr/lib/libfontconfig.so.1: undefined reference to `XML_GetBuffer'
/usr/lib/libfontconfig.so.1: undefined reference to `XML_ParserCreate'
/usr/lib/libfontconfig.so.1: undefined reference to `XML_ParseBuffer'
collect2: ld returned 1 exit status
configure:33305: $? = 1
configure: failed program was:
#include "confdefs.h"
#include <qglobal.h>
#include <qapplication.h>
#include <qcursor.h>
#include <qstylefactory.h>
#include <private/qucomextra_p.h>
#if ! (QT_VERSION >= 0x030300 && QT_VERSION < 0x040000)
#error 1
#endif

int main() {
    (void)QStyleFactory::create(QString::null);
    QCursor c(Qt::WhatsThisCursor);
    return 0;
}
configure:33345: error: Qt (>= Qt 3.3 and < 4.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!


Comment 3 Bo Ørsted Andresen (RETIRED) gentoo-dev 2008-02-03 22:51:40 UTC
(In reply to comment #2)
> Here is the relevant part (I hope) from config.log. It makes me wonder a bit
> whether libqt-mt really is the problem.
[...]
> /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../../i686-pc-linux-gnu/bin/ld:
> warning: libexpat.so.0, needed by /usr/lib/libfontconfig.so.1, not found (try
> using -rpath or -rpath-link)
> /usr/lib/libfontconfig.so.1: undefined reference to `XML_ErrorString'

Yep. 3.5.8 is stable now but other than that this still covers it..

http://www.gentoo.org/proj/en/desktop/kde/kde-expat-upgrading.xml

Closing as WORKSFORME since these are local problems that we currently can't do much about...
Comment 4 Andreas K. Hüttel archtester gentoo-dev 2008-02-03 23:03:08 UTC
Solved in the meantime with revdep-rebuild - sorry for the noise, and thanks for the help.