Bug 216485 - attica fails to build
Summary: attica fails to build
Status: RESOLVED FIXED
Alias: None
Product: kdelibs
Classification: Frameworks and Libraries
Component: knewstuff (show other bugs)
Version: 4.3
Platform: Compiled Sources Solaris
: NOR crash
Target Milestone: ---
Assignee: Jeremy Whiting
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-28 10:57 UTC by tropikhajma
Modified: 2009-12-03 12:26 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
patch (861 bytes, patch)
2009-11-28 11:33 UTC, tropikhajma
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tropikhajma 2009-11-28 10:57:19 UTC
Version:            (using Devel)
Compiler:          Sun Studio 12 U1 
OS:                Solaris
Installed from:    Compiled sources

attica build is failing on OpenSolaris with the Sun Studio 12 U1
compiler. Could you please have a look at the error messages below?
In general, Sun Studio is more strict about the c++ standards than gcc.

...
[ 98%] Building CXX object
attica/lib/CMakeFiles/attica.dir/provider.cpp.o
!"/opt/foss/qt4/include/QtCore/qnamespace.h", line 1639: Warning:
Identifier expected instead of "}".
"/home/hajma/Dashboards/kdesupport/srcdir/attica/lib/itemjob.cpp",
line 38: Error: In this declaration "p" is of an incomplete type
"Attica::Message::Parser".
   Where: While instantiating
"Attica::ItemJob<Attica::Message>::parse(const QString&)".
   Where: Instantiated from
Attica::ItemJob<Attica::Message>::ItemJob(const
QSharedPointer<Attica::PlatformDependent>&, const QNetworkRequest&).
"/home/hajma/Dashboards/kdesupport/srcdir/attica/lib/provider.cpp",
line 293:     Where: Instantiated from non-template code.
"/home/hajma/Dashboards/kdesupport/srcdir/attica/lib/itemjob.cpp",
line 39: Error: The type "Attica::Message::Parser" is incomplete.
   Where: While instantiating
"Attica::ItemJob<Attica::Message>::parse(const QString&)".
   Where: Instantiated from
Attica::ItemJob<Attica::Message>::ItemJob(const
QSharedPointer<Attica::PlatformDependent>&, const QNetworkRequest&).
"/home/hajma/Dashboards/kdesuppor!t/srcdir/attica/lib/provider.cpp",
line 293:     Where: Instantiated from non-template code.
"/home/hajma/Dashboards/kdesupport/srcdir/attica/lib/itemjob.cpp",
line 39: Error: The type "Attica::Message::Parser" is incomplete.
   Where: While instantiating
"Attica::ItemJob<Attica::Message>::parse(const QString&)".
   Where: Instantiated from
Attica::ItemJob<Attica::Message>::ItemJob(const
QSharedPointer<Attica::PlatformDependent>&, const QNetworkRequest&).
"/home/hajma/Dashboards/kdesupport/srcdir/attica/lib/provider.cpp",
line 293:     Where: Instantiated from non-template code.
"/home/hajma/Dashboards/kdesupport/srcdir/attica/lib/itemjob.cpp",
line 40: Error: The type "Attica::Message::Parser" is incomplete.
   Where: While instantiating
"Attica::ItemJob<Attica::Message>::parse(const QString&)".
   Where: Instantiated from
Attica::ItemJob<Attica::Message>::ItemJob(const
QSharedPointer<Attica::PlatformDependent>&, const QNetworkRequest&).
"/home/hajma/Dashboards/kdesupport/srcdir/attica/lib/provider.cpp",!
line 293:     Where: Instantiated from non-template code.
"/home/hajma/Dashboards/kdesupport/srcdir/attica/lib/itemjob.cpp",
line 40: Error: The type "Attica::Message::Parser" is incomplete.
   Where: While instantiating
"Attica::ItemJob<Attica::Message>::parse(const QString&)".
   Where: Instantiated from
Attica::ItemJob<Attica::Message>::ItemJob(const
QSharedPointer<Attica::PlatformDependent>&, const QNetworkRequest&).
"/home/hajma/Dashboards/kdesupport/srcdir/attica/lib/provider.cpp",
line 293:     Where: Instantiated from non-template code.
"/home/hajma/Dashboards/kdesupport/srcdir/attica/lib/itemjob.cpp",
line 40: Error: Formal argument data of type const Attica::Metadata&
in call to Attica::BaseJob::setMetadata(const Attica::Metadata&) const
is being passed int.
   Where: While instantiating
"Attica::ItemJob<Attica::Message>::parse(const QString&)".
   Where: Instantiated from
Attica::ItemJob<Attica::Message>::ItemJob(const
QSharedPointer<Attica::PlatformDependent>&, const QNetworkRequest&).
"/home/hajma/Dashboards/kdesupport/srcdir/attica/lib/provider.cpp",
line 293:     Where: Instantiated from non-template code.
6 Error(s) and 1 Warning(s) detected.
gmake[2]: *** [attica/lib/CMakeFiles/attica.dir/provider.cpp.o] Error
6
gmake[1]: *** [attica/lib/CMakeFiles/attica.dir/all] Error 2
gmake: *** [all] Error 2
Comment 1 tropikhajma 2009-11-28 11:33:48 UTC
Created attachment 38645 [details]
patch
Comment 2 Frederik Gladhorn 2009-12-03 12:26:01 UTC
SVN commit 1057840 by gladhorn:

fix build on solaris
Thanks for reporting!
BUG: 216485


 M  +11 -0     provider.cpp  


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