Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 70249 - app-arch/kdar-1.2.0 fails on configure (amd64)
Summary: app-arch/kdar-1.2.0 fails on configure (amd64)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High major (vote)
Assignee: MATSUU Takuto (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-06 04:38 UTC by Gour
Modified: 2004-12-24 17:41 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 Gour 2004-11-06 04:38:34 UTC
Hi!

Attempt to emerge kdar-1.2.0 fails  on configure:

checking for Xinerama... yes
checking for pthread_create in -lpthread... yes
checking for extra includes... no
checking for extra libs... no
checking for libz... -lz
checking for libpng... -lpng -lz -lm
checking for libjpeg6b... no
checking for libjpeg... -ljpeg
checking for Qt... configure: error: Qt (>= Qt 3.1 (20021021)) (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: app-arch/kdar-1.2.0 failed.
!!! Function kde_src_compile, Line 130, Exitcode 1
!!! died running ./configure, kde_src_compile:configure

Here is the snippet from the config.log:

configure:23374: checking for Qt
configure: 23439: /usr/qt/3/include/qstyle.h
taking that
configure:23551: rm -rf SunWS_cache; x86_64-pc-linux-gnu-g++ -o conftest -Wnon-v
irtual-dtor -Wno-long-long -Wundef -Wall -pedantic -W -Wpointer-arith -Wmissing-
prototypes -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align
-Wconversion -DNDEBUG -DNO_DEBUG -O2 -march=k8 -O2 -pipe -fomit-frame-pointer -f
unroll-loops -fno-exceptions -fno-check-new -fexceptions -I/usr/qt/3/include -I/
usr/X11R6/include  -DQT_THREAD_SUPPORT  -D_REENTRANT  -L/usr/qt/3/lib64 -L/usr/X
11R6/lib64   conftest.cc  -lqt-mt -lpng -lz -lm -ljpeg -ldl  -lXext -lX11 -lSM -
lICE  -lpthread 1>&5
cc1plus: warning: command line option "-Wmissing-prototypes" is valid for C/ObjC
 but not for C++
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.2/../../../../x86_64-pc-linux-gnu/bin/ld: c
annot find -lqt-mt
collect2: ld returned 1 exit status

It looks like it searches for 'immqt-bc' libraries while I compiled qt with 'immqt'.
Is it a bug or a feature, i.e. do I need to have qt compiled with 'immqt?

Sincerely,


Reproducible: Always
Steps to Reproduce:
1. emerge kdar
2.
3.

Actual Results:  
emerge fails 


Portage 2.0.51-r3 (default-linux/amd64/2004.3, gcc-3.4.2, 
glibc-2.3.4.20041021-r0, 2.6.9-gentoo-r1 x86_64) 
================================================================= 
System uname: 2.6.9-gentoo-r1 x86_64 AMD Athlon(tm) 64 Processor 3000+ 
Gentoo Base System version 1.6.4 
ccache version 2.3 [enabled] 
Autoconf: sys-devel/autoconf-2.59-r5 
Automake: sys-devel/automake-1.8.5-r1 
Binutils: sys-devel/binutils-2.15.92.0.2-r1 
Headers:  sys-kernel/linux26-headers-2.6.8.1-r1 
Libtools: sys-devel/libtool-1.5.2-r5 
ACCEPT_KEYWORDS="amd64 ~amd64" 
AUTOCLEAN="yes" 
CFLAGS="-march=k8 -O2 -pipe -fomit-frame-pointer -funroll-loops" 
CHOST="x86_64-pc-linux-gnu" 
COMPILER="" 
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/alias /var/qmail/control" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" 
CXXFLAGS="-march=k8 -O2 -pipe -fomit-frame-pointer -funroll-loops" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="autoaddcvs buildpkg ccache distlocks sandbox" 
GENTOO_MIRRORS="http://gentoo.osuosl.org 
http://distro.ibiblio.org/pub/Linux/distributions/gentoo" 
MAKEOPTS="-j2" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR="/usr/portage" 
PORTDIR_OVERLAY="/usr/portage/local" 
SYNC="rsync://rsync.gentoo.org/gentoo-portage" 
USE="amd64 X aalib acpi alsa arts audiofile avi berkdb bitmap-fonts cddb 
cdparanoia cdr crypt cups directfb doc dvd dvdr encode esd f77 fam fbcon flac 
foomaticdb gdbm gif gimpprint gphoto2 gpm gtk gtk2 imagemagick imlib immqt 
innodb ipv6 java jp2 jpeg jpeg2k kde lcms libwww lzw lzw-tiff mad mmap motif 
mozilla mpeg multilib mysql ncurses nls oggvorbis opengl oss pam pda perl png 
ppds ptl python qtreadline ruby scanner slang speex sqlite ssl svg tcltk tcpd 
tetex tiff truetypeunicode usb userlocales vim-with-x xface xine xinerama xml 
xml2 xmms xpm xprintxrandr xv zlib"
Comment 1 MATSUU Takuto (RETIRED) gentoo-dev 2004-11-15 06:46:55 UTC
It is not kdar problem but Qt problem.
Please try USE="immqt-bc" instead USE="immqt".

 # USE="immqt-bc" emerge qt
 # emerge kdar
Comment 2 Gour 2004-11-15 07:43:50 UTC
Hi!

> It is not kdar problem but Qt problem.

But then there should be some flag to reflect the dependency.

> Please try USE="immqt-bc" instead USE="immqt".

However, I tried with USE="immqt-bc" and still the same error, but I do not want to recompile KDE (by emerging with USE="-immqt immqt-bc") in order to run kdar.

Is there some other issue besides compatibility between the two flags?

Sincerely,
Gour
Comment 3 Gour 2004-11-28 01:02:17 UTC
Hi!

With kdar-1.3.0 the same situation - configure does not find qt.

All the kde apps compile fine, so it is not qt stuff only.


I re-emerged qt:

[ebuild   R   ] x11-libs/qt-3.3.3-r1  +cups -debug +doc (-firebird) +gif (-icc)+immqt +immqt-bc +ipv6 +mysql -nas -odbc +opengl -postgres +sqlite +xinerama +zlib 

but still the same:

checking for Qt... configure: error: Qt (>= Qt 3.1 (20021021)) (library qt-mt) not found. Please check your installation!


Here is the snippet from the config.log:

configure:23582: rm -rf SunWS_cache; x86_64-pc-linux-gnu-g++ -o conftest -Wnon-v
irtual-dtor -Wno-long-long -Wundef -Wall -pedantic -W -Wpointer-arith -Wmissing-
prototypes -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align
-Wconversion -DNDEBUG -DNO_DEBUG -O2 -march=k8 -O2 -pipe -fomit-frame-pointer -f
unroll-loops -fno-exceptions -fno-check-new -fexceptions -I/usr/qt/3/include -I/
usr/X11R6/include  -DQT_THREAD_SUPPORT  -D_REENTRANT -Wl,-O1 -Wl,--enable-new-dt
ags -Wl,--sort-common -s -L/usr/qt/3/lib64 -L/usr/X11R6/lib64   conftest.cc  -lq
t-mt -lpng -lz -lm -ljpeg -ldl  -lXext -lX11 -lSM -lICE  -lpthread 1>&5
cc1plus: warning: command line option "-Wmissing-prototypes" is valid for C/ObjC
 but not for C++
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lqt-mt
collect2: ld returned 1 exit status
configure:23585: $? = 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 >=
#error 1
#endif

int main() {
    (void)QStyleFactory::create(QString::null);
    QCursor c(Qt::WhatsThisCursor);
    return 0;
}
configure:23625: error: Qt (>= Qt 3.1 (20021021)) (library qt-mt) not found. Ple
ase 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!


Any idea?

Sincerely,
Gour
Comment 4 Gour 2004-11-29 01:17:32 UTC
Hi!

I just tried another kde application - komics which also looks for qt libs and
it finds them.

Besides that, I tried to pass -with-qt-dir, --with-qt-includes & --with-qt-libraries to ./configure, as well as exporting QTDIR, but no success.

So, it is NOT qt, but kdar bug!!

gaura-nitai gour # ls -al /usr/qt/3/lib
total 18170
drwxr-xr-x   2 root root     576 Stu 28 09:39 .
drwxr-xr-x  13 root root     352 Stu 28 09:39 ..
-rw-r--r--   1 root root 9132692 Stu 28 09:39 libdesignercore.a
-rw-r--r--   1 root root  602700 Stu 28 09:39 libeditor.a
-rw-r--r--   1 root root   49338 Stu 28 09:39 libqassistantclient.a
-rw-r--r--   1 root root     820 Stu 28 09:39 libqt-mt.la
lrwxrwxrwx   1 root root      13 Stu 28 09:39 libqt-mt.so -> libqt-mt.so.3
lrwxrwxrwx   1 root root      15 Stu 28 09:39 libqt-mt.so.3 -> libqt-mt.so.3.3
lrwxrwxrwx   1 root root      17 Stu 28 09:39 libqt-mt.so.3.3 -> libqt-mt.so.3.3.3
-rw-r--r--   1 root root 8567864 Stu 28 09:39 libqt-mt.so.3.3.3
lrwxrwxrwx   1 root root      11 Stu 28 09:39 libqt.so -> libqt-mt.so
lrwxrwxrwx   1 root root      13 Stu 28 09:39 libqt.so.3 -> libqt-mt.so.3
lrwxrwxrwx   1 root root      15 Stu 28 09:39 libqt.so.3.3 -> libqt-mt.so.3.3
lrwxrwxrwx   1 root root      17 Stu 28 09:39 libqt.so.3.3.3 -> libqt-mt.so.3.3.3
lrwxrwxrwx   1 root root      11 Stu 28 09:39 libqui.so -> libqui.so.1
lrwxrwxrwx   1 root root      13 Stu 28 09:39 libqui.so.1 -> libqui.so.1.0
lrwxrwxrwx   1 root root      15 Stu 28 09:39 libqui.so.1.0 -> libqui.so.1.0.0
-rw-r--r--   1 root root  218320 Stu 28 09:39 libqui.so.1.0.0



I informed kdar's author about it.

Sincerely,
Gour
Comment 5 Gour 2004-11-30 00:17:22 UTC
Hi!

This issue is resolved by kdar's author and it will be part of the upcoming kdar-1.3.1 release.

The fix is to patch ./configure script with the following:

--- kdar-1.3.0/configure.orig   2004-11-29 21:13:57.203476392 +0100
+++ kdar-1.3.0/configure        2004-11-29 21:18:08.869217384 +0100
@@ -5989,7 +5989,7 @@
 fi;
     if test "$kdelibsuff" = "none"; then
         if test -d /lib64 ; then
-            kdelibsuff=64
+            kdelibsuff=
         else
             kdelibsuff=
         fi


With the above patch kdar emerges nicely.

Sincerely,
Gour

ps.I'm just wondering how kdar (1.2.0 & 1.3.0) has ~amd64 keyword when it cannot emerge on the amd64 platform?
Comment 6 MATSUU Takuto (RETIRED) gentoo-dev 2004-11-30 06:15:54 UTC
because kdar works fine on my amd64,
Comment 7 Gour 2004-11-30 06:35:19 UTC
Hi!

> because kdar works fine on my amd64,

but do you run on 64-bit Gentoo Linux or 32-bit since Johnathan B. (kdar's author) confirmed the bug in regards to findind qt libs :-)

Sincerely,
Gour
Comment 8 MATSUU Takuto (RETIRED) gentoo-dev 2004-12-06 19:56:51 UTC
kdar-1.3.1 in cvs. please try it.
Comment 9 Gour 2004-12-09 10:59:38 UTC
Hi!

> kdar-1.3.1 in cvs. please try it.

Pls. excuse for late reply - it works and you can close the bug :-)

Thank you for the new ebuild.

Sincerely,
Gour
Comment 10 MATSUU Takuto (RETIRED) gentoo-dev 2004-12-24 17:41:08 UTC
fixed