Bug 217958 - fails to build - Could not find a match for QTest
Summary: fails to build - Could not find a match for QTest
Status: RESOLVED FIXED
Alias: None
Product: kio
Classification: Unmaintained
Component: kioslave (show other bugs)
Version: unspecified
Platform: Compiled Sources Solaris
: NOR normal
Target Milestone: ---
Assignee: Konqueror Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-09 05:32 UTC by tropikhajma
Modified: 2010-04-17 22:21 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
patch (1.78 KB, patch)
2009-12-09 05:33 UTC, tropikhajma
Details
better patch (1.81 KB, patch)
2009-12-09 11:41 UTC, tropikhajma
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tropikhajma 2009-12-09 05:32:00 UTC
Version:           r.1060299 (using Devel)
Compiler:          Sun Studio 12 U1 
OS:                Solaris
Installed from:    Compiled sources

building kdelibs fails with
...
[ 47%] Building CXX object kio/tests/CMakeFiles/kdirmodeltest.dir/kdirmodeltest.o                                                            
!"/home/hajma/Dashboards/kdelibs/srcdir/kio/tests/kdirmodeltest.cpp", line 218: Error: Could not find a match for QTest::qCompare<QTest::T>(const QAbstractItemModel*, KDirModel*, const char[20], const char[11], const char[66], int) needed in KDirModelTest::testIndex().             
"/home/hajma/Dashboards/kdelibs/srcdir/kio/tests/kdirmodeltest.cpp", line 226: Error: Could not find a match for QTest::qCompare<QTest::T>(const QAbstractItemModel*, KDirModel*, const char[19], const char[11], const char[66], int) needed in KDirModelTest::testIndex().              
"/home/hajma/Dashboards/kdelibs/srcdir/kio/tests/kdirmodeltest.cpp", line 234: Error: Could not find a match for QTest::qCompare<QTest::T>(const QAbstractItemModel*, KDirModel*, const char[25], const char[11], const char[66], int) needed in KDirModelTest::testIndex().              
"/home/hajma/Dashboards/kdelibs/srcdir/kio/tests/kdirmodeltest.cpp", line 242: Error: Could not find a match for QTest::qCompare<QTest::T>(const QAbstractItemModel*, KDirModel*, const char[28], const char[11], const char[66], int) needed in KDirModelTest::testIndex().              
4 Error(s) detected.          


see the kde-dashboard at
http://my.cdash.org/viewBuildError.php?buildid=40556
Comment 1 tropikhajma 2009-12-09 05:33:05 UTC
Created attachment 38939 [details]
patch

something like this is needed (it'll take me some time to recompile and verify it works)
Comment 2 tropikhajma 2009-12-09 08:00:42 UTC
Comment on attachment 38939 [details]
patch

this is wrong
Comment 3 tropikhajma 2009-12-09 11:41:20 UTC
Created attachment 38942 [details]
better patch
Comment 4 Christoph Feck 2009-12-10 17:28:14 UTC
*** Bug 218062 has been marked as a duplicate of this bug. ***
Comment 5 tropikhajma 2010-03-07 18:52:18 UTC
still valid in current svn
Comment 6 David Faure 2010-04-17 00:38:14 UTC
This compiler really sucks :-)
OK, I don't see a better solution either, please commit your patch.
Comment 7 tropikhajma 2010-04-17 22:21:01 UTC
SVN commit 1115881 by pavelheimlich:

idifferent types in QCOMPARE (causing failure with Sun Studio)
BUG: 217958


 M  +4 -4      kdirmodeltest.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1115881