Re: attica build failure
Frederik Gladhorn <[email protected]> Wed, 2 Dec 2009 17:24:48 +0100
| Newsgroups | gmane.comp.kde.solaris |
|---|---|
| Message-ID | <[email protected]> |
--===============1452519602== Content-Type: multipart/signed; boundary="nextPart4189311.n9LY15emBV"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit --nextPart4189311.n9LY15emBV Content-Type: multipart/mixed; boundary="Boundary-01=_QTpFLQ/INw5o4sS" Content-Transfer-Encoding: 7bit --Boundary-01=_QTpFLQ/INw5o4sS Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi Pavel, if I understand Adriaan correctly, this patch should help. It's just including listjob_inst.cpp where we have the template forward=20 declarations. Please let me know if it works. (I'm not a template expert, have mercy ;) Cheers, =46rederik On Thursday 26 November 2009 22:34:32 Pavel Heimlich, a.k.a. hajma wrote: > Hi, > 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. > Also I'd file a bug report but I was not able to figure out whether > you have any ? >=20 > best regards >=20 > hajma >=20 > [ 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 >=20 --Boundary-01=_QTpFLQ/INw5o4sS Content-Type: text/x-patch; charset="UTF-8"; name="templates_apache.diff" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="templates_apache.diff" Index: lib/provider.h =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =2D-- lib/provider.h (revision 1056916) +++ lib/provider.h (working copy) @@ -36,6 +36,8 @@ #include "listjob.h" #include "message.h" =20 +#include "listjob_inst.cpp" + class QDate; class QUrl; =20 --Boundary-01=_QTpFLQ/INw5o4sS-- --nextPart4189311.n9LY15emBV Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iEYEABECAAYFAksWlNAACgkQcZKJUyELiPd3IACfVNtz229SmuvYsER+W82nFptL KL8AnjvZtHzM8uq8L2VuxS3Q7SImCtZZ =nKrp -----END PGP SIGNATURE----- --nextPart4189311.n9LY15emBV-- --===============1452519602== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________ This message is from the kde-solaris mailing list. Account management: https://mail.kde.org/mailman/listinfo/kde-solaris. Archives: http://lists.kde.org/. More info: http://www.kde.org/faq.html. --===============1452519602==--