Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 162970 - kde-base/qtjava-3.5.2 compile fails (dependency on qt-3)
Summary: kde-base/qtjava-3.5.2 compile fails (dependency on qt-3)
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-20 19:14 UTC by Antonio Cárdenas
Modified: 2007-04-08 21:43 UTC (History)
1 user (show)

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


Attachments
The config.log files for kdegames and qtjava (config_log.tar.gz,30.56 KB, text/plain)
2007-01-20 21:36 UTC, Antonio Cárdenas
Details
Plain text of kdegames config.log file (kdegames_config.log,112.29 KB, text/plain)
2007-01-20 22:21 UTC, Antonio Cárdenas
Details
Plain text of qtjava config.log file (qtjava_config.log,109.52 KB, text/plain)
2007-01-20 22:22 UTC, Antonio Cárdenas
Details
Results of the emerge commands (rebooting in my Gentoo linux) (emerge_results.txt,13.01 KB, text/plain)
2007-02-07 02:44 UTC, Antonio Cárdenas
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Antonio Cárdenas 2007-01-20 19:14:41 UTC
The system is installing qt-4.1.4-r2 but some programs still depend on qt-3.*
checking for Qt... configure: error: Qt (>= Qt 3.3 and < 4.0) (headers and libraries) not found. Please check your installation!

I have seen in some forums this same error in other linux distros (rpm based).



Reproducible: Always

Steps to Reproduce:
1. When trying to emerge qtjava or when emerging gnome
2.
3.

Actual Results:  
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.

!!! Please attach the following file when filing a report to bugs.gentoo.org:
!!! /var/tmp/portage/qtjava-3.5.2/work/qtjava-3.5.2/config.log

!!! ERROR: kde-base/qtjava-3.5.2 failed.
Call stack:
  ebuild.sh, line 1546:   Called dyn_compile
  ebuild.sh, line 937:   Called src_compile
  qtjava-3.5.2.ebuild, line 21:   Called kde-meta_src_compile
  kde-meta.eclass, line 379:   Called kde_src_compile
  kde.eclass, line 170:   Called kde_src_compile 'all'
  kde.eclass, line 340:   Called kde_src_compile 'myconf' 'configure' 'make'
  kde.eclass, line 322:   Called econf '--with-java=/opt/sun-jdk-1.5.0.09' '--with-x' '--enable-mitshm' '--without-xinerama' '--with-qt-dir=/usr/lib/qt-3.3' '--enable-mt' '--with-qt-libraries=/usr/lib/qt-3.3/lib' '--disable-dependency-tracking' '--disable-debug' '--without-debug' '--disable-final' '--with-arts' '--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 540:   Called die
Comment 1 Rémi Cardona (RETIRED) gentoo-dev 2007-01-20 19:20:39 UTC
This is not a gnome bug unless you tell how *why* it is a gnome bug. Please attach emerge output.
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2007-01-20 19:49:57 UTC
As said above...
Comment 3 Antonio Cárdenas 2007-01-20 20:29:43 UTC
Hi,
I agree in that is not a gnome nor a kde bug but still cannot emerge any of these windows managers. I have just emerged fluxbox.
Some programs still depend on qt-3.* libraries. I guess you should add legacy support for them. 

Problems have been reported on it (even on other distros)
http://lists.kde.org/?l=kde-devel&m=112264310008758&w=2
http://ubuntuforums.org/showthread.php?t=124483
http://ubuntuforums.org/showthread.php?t=124483&page=3
http://debcentral.org/modules/newbb/viewtopic.php?topic_id=268
http://kde-apps.org/content/show.php?content=9966
http://lists.blastwave.org/pipermail/users/2006-July/004312.html
http://k3b.plainblack.com/message-board/cant-compile2
http://lists.kde.org/?l=kexi&m=113280653115539&w=2





And this is my output when I tried to emerge kdegames

===================
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.

!!! Please attach the following file when filing a report to bugs.gentoo.org:
!!! /var/tmp/portage/kdegames-3.5.5/work/kdegames-3.5.5/config.log

!!! ERROR: kde-base/kdegames-3.5.5 failed.
Call stack:
  ebuild.sh, line 1546:   Called dyn_compile
  ebuild.sh, line 937:   Called src_compile
  ebuild.sh, line 1255:   Called kde_src_compile
  kde.eclass, line 170:   Called kde_src_compile 'all'
  kde.eclass, line 340:   Called kde_src_compile 'myconf' 'configure' 'make'
  kde.eclass, line 322:   Called econf '--with-x' '--enable-mitshm' '--without-xinerama' '--with-qt-dir=/usr/lib/qt-3.3' '--enable-mt' '--with-qt-libraries=/usr/lib/qt-3.3/lib' '--disable-dependency-tracking' '--disable-debug' '--without-debug' '--disable-final' '--with-arts' '--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 540:   Called die

!!! econf failed
!!! If you need support, post the topmost build error, and the call stack if relevant.
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2007-01-20 20:31:41 UTC
You still haven't posted anything useful here.

> !!! Please attach the following file when filing a report to bugs.gentoo.org:
> !!! /var/tmp/portage/qtjava-3.5.2/work/qtjava-3.5.2/config.log
Comment 5 Antonio Cárdenas 2007-01-20 21:13:43 UTC
The returned config.log files are:
For qtjava http://www.mytempdir.com/1177353
and for kdegames http://www.mytempdir.com/1177360

I started the gentoo installation three days ago and I have gotten this same problem of dependency in other packages also. That avoids to finish with the emerging of kde and/or gnome.

Thanks in advance
Comment 6 Jakub Moc (RETIRED) gentoo-dev 2007-01-20 21:30:34 UTC
I really won't wait for some download tickets... Attach the files here and reopen...

http://bugs.gentoo.org/attachment.cgi?bugid=162970&action=enter
Comment 7 Antonio Cárdenas 2007-01-20 21:36:45 UTC
Created attachment 107591 [details]
The config.log files for kdegames and qtjava

The config.log files for kdegames and qtjava
Comment 8 Jakub Moc (RETIRED) gentoo-dev 2007-01-20 21:38:48 UTC
Comment on attachment 107591 [details]
The config.log files for kdegames and qtjava

Attach *plaintext* log here...
Comment 9 Antonio Cárdenas 2007-01-20 22:21:39 UTC
Created attachment 107595 [details]
Plain text of kdegames config.log file
Comment 10 Antonio Cárdenas 2007-01-20 22:22:21 UTC
Created attachment 107597 [details]
Plain text of qtjava config.log file
Comment 11 Antonio Cárdenas 2007-01-20 22:27:05 UTC
The config.log files in plain text
Comment 12 Antonio Cárdenas 2007-01-20 22:52:25 UTC
As a side note I want to add that in my USE variables I have always used qt3 and qt4.

This are my USE variables:
USE="X mysql gtk gnome qt3 qt4 kde dvd alsa cdr"
Comment 13 Antonio Cárdenas 2007-01-24 03:39:05 UTC
When emerging texmaker the same problem occurs. qt-3 is not being installed and a lot of packages still depend on it.

Best


===================================
localhost / # emerge texmaker
Calculating dependencies... done!

>>> Emerging (1 of 1) app-office/texmaker-1.11-r1 to /
 * texmaker-1.11.tar.bz2 MD5 ;-) ...                                               [ ok ]
 * texmaker-1.11.tar.bz2 RMD160 ;-) ...                                            [ ok ]
 * texmaker-1.11.tar.bz2 SHA1 ;-) ...                                              [ ok ]
 * texmaker-1.11.tar.bz2 SHA256 ;-) ...                                            [ ok ]
 * texmaker-1.11.tar.bz2 size ;-) ...                                              [ ok ]
 * checking ebuild checksums ;-) ...                                               [ ok ]
 * checking auxfile checksums ;-) ...                                              [ ok ]
 * checking miscfile checksums ;-) ...                                             [ ok ]
 * checking texmaker-1.11.tar.bz2 ;-) ...                                          [ ok ]
>>> Unpacking source...
>>> Unpacking texmaker-1.11.tar.bz2 to /var/tmp/portage/texmaker-1.11-r1/work
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/texmaker-1.11-r1/work/texmaker-1.11 ...
 * using QTDIR: '/usr/lib/qt-3.3'.
/usr/portage/app-office/texmaker/texmaker-1.11-r1.ebuild: line 42: /usr/lib/qt-3.3/bin/qmake: No such file or directory

!!! ERROR: app-office/texmaker-1.11-r1 failed.
Call stack:
  ebuild.sh, line 1546:   Called dyn_compile
  ebuild.sh, line 937:   Called src_compile
  texmaker-1.11-r1.ebuild, line 42:   Called die

!!! qmake failed
!!! If you need support, post the topmost build error, and the call stack if relevant.

(gentoo) localhost / #
Comment 14 Caleb Tennis (RETIRED) gentoo-dev 2007-01-31 13:07:30 UTC
>  * using QTDIR: '/usr/lib/qt-3.3'.
> /usr/portage/app-office/texmaker/texmaker-1.11-r1.ebuild: line 42:
> /usr/lib/qt-3.3/bin/qmake: No such file or directory

I'm not sure where it's getting this from.  What is your QTDIR set to?  Do you have some special version of qt installed elsewhere on the system?
Comment 15 Antonio Cárdenas 2007-01-31 18:22:33 UTC
Hi,
I have no special QTDIR settings, I am just using the defaults values in the ebuilds.
For example for TexMaker (I started the installation from Gentoo 2006.1)
/var/tmp/portage/texmaker-1.11-r1/build-info/texmaker-1.11-r1.ebuild
/usr/portage/app-office/texmaker/texmaker-1.11-r1.ebuild

===================================
src_compile() {
    einfo "using QTDIR: '$QTDIR'."

    # from BUILD.sh:
    PATH=${QTDIR}/bin:${PATH}
    LD_LIBRARY_PATH=${QTDIR}/lib:${LD_LIBRARY_PATH}
    DYLD_LIBRARY_PATH=${QTDIR}/lib:${DYLD_LIBRARY_PATH}
    export QTDIR PATH LD_LIBRARY_PATH DYLD_LIBRARY_PATH

    ${QTDIR}/bin/qmake -unix texmaker.pro || die "qmake failed"

    emake || die "emake failed"
}
===========================

I have nothing special installed, I started the installation from the 2006.1 version for x86. All my packages installed have been though the default values using the emerge tool. The only packages that have failed have been those depending on the qt-3.* 

Thanks.
Comment 16 Charlie Shepherd (RETIRED) gentoo-dev 2007-02-03 14:37:47 UTC
emerge --info please
Comment 17 Antonio Cárdenas 2007-02-03 20:14:11 UTC
This is doing a chroot from my fedora. The kernel that is installed in my Gentoo is the version linux-2.6.18-gentoo-r6

************************************************

(gentoo) localhost / # emerge --info
Portage 2.1.1-r2 (default-linux/x86/no-nptl, gcc-4.1.1, glibc-2.3.6-r4, 2.6.19-1.2895.fc6 i686)
=================================================================
System uname: 2.6.19-1.2895.fc6 i686 AMD Athlon(tm) XP 1600+
Gentoo Base System version 1.12.1
Last Sync: Wed, 31 Jan 2007 18:30:01 +0000
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.3.7, 2.0.30
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -mtune=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/lib/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O2 -mtune=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_US.UTF-8"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X alsa alsa_cards_ali5451 alsa_cards_als4000 alsa_cards_atiixp alsa_cards_atiixp-modem alsa_cards_bt87x alsa_cards_ca0106 alsa_cards_cmipci alsa_cards_emu10k1x alsa_cards_ens1370 alsa_cards_ens1371 alsa_cards_es1938 alsa_cards_es1968 alsa_cards_fm801 alsa_cards_hda-intel alsa_cards_intel8x0 alsa_cards_intel8x0m alsa_cards_maestro3 alsa_cards_trident alsa_cards_usb-audio alsa_cards_via82xx alsa_cards_via82xx-modem alsa_cards_ymfpci alsa_pcm_plugins_adpcm alsa_pcm_plugins_alaw alsa_pcm_plugins_asym alsa_pcm_plugins_copy alsa_pcm_plugins_dmix alsa_pcm_plugins_dshare alsa_pcm_plugins_dsnoop alsa_pcm_plugins_empty alsa_pcm_plugins_extplug alsa_pcm_plugins_file alsa_pcm_plugins_hooks alsa_pcm_plugins_iec958 alsa_pcm_plugins_ioplug alsa_pcm_plugins_ladspa alsa_pcm_plugins_lfloat alsa_pcm_plugins_linear alsa_pcm_plugins_meter alsa_pcm_plugins_mulaw alsa_pcm_plugins_multi alsa_pcm_plugins_null alsa_pcm_plugins_plug alsa_pcm_plugins_rate alsa_pcm_plugins_route alsa_pcm_plugins_share alsa_pcm_plugins_shm alsa_pcm_plugins_softvol apm arts berkdb bitmap-fonts cdr cli cracklib crypt cups dlloader dri dvd eds elibc_glibc emboss encode foomaticdb fortran gdbm gif gnome gpm gstreamer gtk gtk2 iconv imlib input_devices_evdev input_devices_keyboard input_devices_mouse ipv6 isdnlog jpeg kde kernel_linux lcd_devices_bayrad lcd_devices_cfontz lcd_devices_cfontz633 lcd_devices_glk lcd_devices_hd44780 lcd_devices_lb216 lcd_devices_lcdm001 lcd_devices_mtxorb lcd_devices_ncurses lcd_devices_text libg++ libwww mad midi mikmod motif mp3 mpeg mysql ncurses nls ogg opengl oss pam pcre perl png pppd python qt3 qt4 quicktime readline reflection sdl session spell spl ssl tcpd truetype truetype-fonts type1-fonts userland_GNU video_cards_apm video_cards_ark video_cards_ati video_cards_chips video_cards_cirrus video_cards_cyrix video_cards_dummy video_cards_fbdev video_cards_glint video_cards_i128 video_cards_i740 video_cards_i810 video_cards_imstt video_cards_mga video_cards_neomagic video_cards_nsc video_cards_nv video_cards_rendition video_cards_s3 video_cards_s3virge video_cards_savage video_cards_siliconmotion video_cards_sis video_cards_sisusb video_cards_tdfx video_cards_tga video_cards_trident video_cards_tseng video_cards_v4l video_cards_vesa video_cards_vga video_cards_via video_cards_vmware video_cards_voodoo vorbis xml xorg xv zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY

(gentoo) localhost / # ls /usr/src/
.keep                   linux/                  linux-2.6.18-gentoo-r6/
Comment 18 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2007-02-06 13:53:33 UTC
How bout this?

gehinom ~ # grep QTDIR -R /etc/env.d/
/etc/env.d/50qtdir3:QTDIR=/usr/qt/3
gehinom ~ # env | grep QTDIR
QTDIR=/usr/qt/3

My bet is that you are doing these funky chroots from fedora and have improper env. Googling "/usr/lib/qt-3.3 fedora" shows they are using this location for qt.
The dependencies are ok, at least qtjava pulls qt-3 through kdelibs. So you should have qt-3 installed, but your broken env probably lies about its location.
Comment 19 Antonio Cárdenas 2007-02-07 02:44:56 UTC
Created attachment 109397 [details]
Results of the emerge commands (rebooting in my Gentoo linux)
Comment 20 Antonio Cárdenas 2007-02-07 02:46:54 UTC
Hi,
I tried to emerge those packages again rebooting in my gentoo linux. Again there were errors but not exactly the same.

Maybe chrooting from fedora to do the installation affected something.

I am attaching here the outputs from emerge qtjava, emerge kde, and emerge --info commands respectively.

Thanks
Comment 21 Jakub Moc (RETIRED) gentoo-dev 2007-04-04 16:00:58 UTC
Well, if you can reproduce on Gentoo proper, reopen this bug. Chrooting from Fedora is not our problem.
Comment 22 Jorge Manuel B. S. Vicetto (RETIRED) Gentoo Infrastructure gentoo-dev 2007-04-05 02:58:01 UTC
(In reply to comment #17)

> (gentoo) localhost / # emerge --info
> Portage 2.1.1-r2 (default-linux/x86/no-nptl, gcc-4.1.1, glibc-2.3.6-r4,
> 2.6.19-1.2895.fc6 i686)

> CHOST="i686-pc-linux-gnu"

Antonio,

the above seems weird. Do you have your make.profile set to /usr/portage/profiles/default-linux/x86/no-nptl ? Did you use the x86 stage3 tarball?
If so, you should start by changing your profile to the default-linux/x86/2006.1 or the default-linux/x86/2006.1/desktop profiles. You then will need to rebuild your system as you'll be replacing linuxthreads with nptl.
Comment 23 Antonio Cárdenas 2007-04-08 21:43:54 UTC
Thanks Mr Cetto
The make.profile was the problem. To do the installation I did not download the iso image to have a CD, I just download the stage3 tarball and went through a chroot environment for the installation. The tarball should point by default to the 2006.1 profile and it was not. 

Thanks again Mr Cetto, you are great.

Best regards




> (gentoo) localhost / # emerge --info
> Portage 2.1.1-r2 (default-linux/x86/no-nptl, gcc-4.1.1, glibc-2.3.6-r4,
> 2.6.19-1.2895.fc6 i686)

> CHOST="i686-pc-linux-gnu"

Antonio,

the above seems weird. Do you have your make.profile set to
/usr/portage/profiles/default-linux/x86/no-nptl ? Did you use the x86 stage3
tarball?
If so, you should start by changing your profile to the
default-linux/x86/2006.1 or the default-linux/x86/2006.1/desktop profiles. You
then will need to rebuild your system as you'll be replacing linuxthreads with
nptl.