Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 244732 - qt3 incorrectly checks for compiler version
Summary: qt3 incorrectly checks for compiler version
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Qt Bug Alias
URL:
Whiteboard:
Keywords:
: 236793 243918 263438 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-10-28 11:03 UTC by Robert Piasek (RETIRED)
Modified: 2009-05-21 20:17 UTC (History)
3 users (show)

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


Attachments
Fixes incorrect check (configure.patch,601 bytes, patch)
2008-10-28 11:04 UTC, Robert Piasek (RETIRED)
Details | Diff
Fixes incorrect check (configure.patch,601 bytes, patch)
2008-10-28 11:15 UTC, Robert Piasek (RETIRED)
Details | Diff
third time the charm (configure.patch,636 bytes, patch)
2008-10-28 11:16 UTC, Robert Piasek (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Piasek (RETIRED) gentoo-dev 2008-10-28 11:03:06 UTC
This is one of the most pain bugs I've seen recently and it took me ages to get to the core of the problem. It's very closely related to bug 81066.

Generally speaking QT3 incorrectly checks for compiler version and reports problems during plugin load. Typical error messages include:

  >checking if UIC has KDE plugins available... no
  >configure: error:
  >you need to install kdelibs first

or

Conflict in /usr/kde/3.5/lib64/kde3/plugins/designer/kdewidgets.so:
  Plugin uses incompatible Qt library!
  expected build key "x86_64 Linux g++-4 full-config", got "x86_64 Linux
  g++-3.* full-config".
Conflict in /usr/qt/3/plugins/designer/libcppeditor.so:
  Plugin uses incompatible Qt library!
  expected build key "x86_64 Linux g++-4 full-config", got "x86_64 Linux
  g++-3.* full-config".

It's mainly visible with gcc 4.3.x

Reproducible: Always

Steps to Reproduce:
    COMPILER_VERSION=`g++ --version 2>/dev/null`;
    case "$COMPILER_VERSION" in  
    *2.95.*)
        COMPILER_VERSION="2.95.*"
        ;;
    *3.*) 
        COMPILER_VERSION="3.*"
        ;;
    *4.*) 
        COMPILER_VERSION="4"
        ;;
    *)
        ;;
    esac
    echo "CURRENT CHECK:"
    echo "Correct compiler version: `g++ --version | sed q`";
    echo "Compiler version reported by configure $COMPILER_VERSION";

    COMPILER_VERSION=`g++ -dumpversion 2>/dev/null`
    case "$COMPILER_VERSION" in
    2.95.*)
        COMPILER_VERSION="2.95.*"
        ;;
    3.*)  
        COMPILER_VERSION="3.*"
        ;;
    4.*)  
        COMPILER_VERSION="4"
        ;;
    *)
        ;;
    esac  
    echo "PATCHED VERSION:"
    echo "Correct compiler version: `g++ --version | sed q`";
    echo "Compiler version reported by configure $COMPILER_VERSION";


Actual Results:  
CURRENT CHECK:
Correct compiler version: g++ (Gentoo 4.3.2 p1.0) 4.3.2
Compiler version reported by configure 3.*


Expected Results:  
PATCHED VERSION:
Correct compiler version: g++ (Gentoo 4.3.2 p1.0) 4.3.2
Compiler version reported by configure 4


This bug was a big blocker for my kde3 application development
Comment 1 Robert Piasek (RETIRED) gentoo-dev 2008-10-28 11:04:04 UTC
Created attachment 170095 [details, diff]
Fixes incorrect check

That check fixes the problem
Comment 2 Robert Piasek (RETIRED) gentoo-dev 2008-10-28 11:15:10 UTC
Created attachment 170097 [details, diff]
Fixes incorrect check

It seems I had to add an extra line somewhere in my configure and the previous patch didn't apply properly. This version works well.
Comment 3 Robert Piasek (RETIRED) gentoo-dev 2008-10-28 11:16:57 UTC
Created attachment 170098 [details, diff]
third time the charm

sorry
Comment 4 Ben de Groot (RETIRED) gentoo-dev 2008-10-28 12:02:30 UTC
*** Bug 236793 has been marked as a duplicate of this bug. ***
Comment 5 Ben de Groot (RETIRED) gentoo-dev 2008-10-28 23:53:27 UTC
Fixed in CVS now
Comment 6 Timo Gurr (RETIRED) gentoo-dev 2008-11-10 21:28:38 UTC
*** Bug 243918 has been marked as a duplicate of this bug. ***
Comment 7 Robert Piasek (RETIRED) gentoo-dev 2008-11-10 22:54:52 UTC
(In reply to comment #5)
> Fixed in CVS now
> 

Ben,

Personally I think you should bump qt-3.3.8b version to -r1 to make sure everyone who's using qt3 will get an updated version. Leaving it as it is, will cause more problems in the longer run, and people won't know the cause of the problem (some bugs reported and marked as duplicate of this bug because the core of the problem remains - people don't know they need to REINSTALL qt3 after you've updated an ebuild. -r1 will UPDATE it - so everyone who's using qt3 will have a "proper" version).

currently:

paludis -ip qt:3 (emerge -av qt:3)

gives me version:
qt-3.3.8b

Personally I think it's quite severe bug, that's why I used BLOCKER severity.

my 2cents.

Regards,
Rob
Comment 8 Jan Kundrát (RETIRED) gentoo-dev 2008-11-13 22:34:28 UTC
Reopening for the revbump -- users are hitting the bug even after two weeks.
Comment 9 Maarten Maathuis 2008-12-08 21:50:23 UTC
I still have this problem, even after reinstalling both qt-3 and kde-libs-3 several times. Any ideas?
Comment 10 Maarten Maathuis 2008-12-08 22:23:24 UTC
I checked config.log and got this:

configure:31150: checking for KDE
configure: 31203: /usr/kde/3.5/include/ksharedptr.h
taking that
configure: 31233: /usr/kde/3.5/lib/libkio.la
taking that
configure: 31251: /usr/kde/3.5/lib/kde3/plugins/designer/kdewidgets.la
taking that
configure:31324: result: libraries /usr/kde/3.5/lib, headers /usr/kde/3.5/include
configure:31363: checking if UIC has KDE plugins available
configure:31390: /usr/qt/3/bin/uic -L /usr/kde/3.5/lib/kde3/plugins/designer -nounload -impl actest.h actest.ui > actest.cpp
./configure: line 31391: 16260 Segmentation fault      /usr/qt/3/bin/uic -L /usr/kde/3.5/lib/kde3/plugins/designer -nounload -impl actest.h actest.ui > actest.cpp
configure:31393: $? = 139
configure:31407: result: no
configure:31418: error:
you need to install kdelibs first.

If you did install kdelibs, then the Qt version that is picked up by
this configure is not the same version you used to compile kdelibs.
The Qt Plugin installed by kdelibs is *ONLY* loadable if it is the
_same Qt version_, compiled with the _same compiler_ and the same Qt
configuration settings.
Comment 11 Ben de Groot (RETIRED) gentoo-dev 2009-01-02 20:04:18 UTC
Okay, it is revbumped now. Are there still any remaining problems?
Comment 12 Johannes Truschnigg 2009-01-03 00:10:45 UTC
Using ~amd64 as of today.

After installing x11-libs/qt-3.3.8b-r1, the look of my KDE 3.5.10 installation has changed quite a bit: borders around widgets are at least 1px wider, without any interaction on my behalf. I cannot tell for sure, but some of my KDE "styles" may have vanished from kcontrol, too (I cannot recall which Style I was using, but none of those available now match the widget style I'm used to look at).

Furthermore, when trying to install kde-base/kdeartwork-styles-3.5.10 now, paludis croaks with this:
checking for KDE... libraries /usr/kde/3.5/lib64, headers /usr/kde/3.5/include
checking if UIC has KDE plugins available... no
configure: error:
you need to install kdelibs first.

(I'm new to this bug and awfully tired right now, but... isn't that exactly the problem which is supposed to be fixed by this new revision?)
Comment 13 David Kredba 2009-01-03 07:43:00 UTC
Thats the reason why is ebuild warns this way:


elog "After a rebuild of Qt, it can happen that Qt plugins (such as Qt/KDE styles,"
        elog "or widgets for the Qt designer) are no longer recognized.  If this situation"
        elog "occurs you should recompile the packages providing these plugins,"
        elog "and you should also make sure that Qt and its plugins were compiled with the"
        elog "same version of GCC.  Packages that may need to be rebuilt are, for instance,"
        elog "kde-base/kdelibs, kde-base/kdeartwork and kde-base/kdeartwork-styles."
        elog "See http://doc.trolltech.com/3.3/plugins-howto.html for more infos."
        echo

Comment 14 Robert Piasek (RETIRED) gentoo-dev 2009-03-23 11:27:17 UTC
*** Bug 263438 has been marked as a duplicate of this bug. ***
Comment 15 Ben de Groot (RETIRED) gentoo-dev 2009-05-21 20:17:00 UTC
This looks fixed.