<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi Sebastian<br>
thank you for the feedback, I see the line "cc1plus: warnings being
treated as errors", does it pass without Werror ?<br>
Anyway, I'd rather advocate for a Qt bug, as I don't see any of my
functions involved in the error message. I'd be interested to see what
the Qt guys say about that.<br>
<br>
Cheers<br>
<br>
Adrien<br>
<br>
<br>
Sebastian Heinlein a &eacute;crit&nbsp;:
<blockquote cite="mid:1235055403.7419.25.camel@klapprechner" type="cite">
  <pre wrap="">Hello,

the qt bindings of libpackagekit fail to build on arm and sparc:

<a class="moz-txt-link-freetext" href="http://launchpadlibrarian.net/22415226/buildlog_ubuntu-jaunty-armel.packagekit_0.3.14-0ubuntu1_FAILEDTOBUILD.txt.gz">http://launchpadlibrarian.net/22415226/buildlog_ubuntu-jaunty-armel.packagekit_0.3.14-0ubuntu1_FAILEDTOBUILD.txt.gz</a>

[...]
g++ -DHAVE_CONFIG_H -I. -I../../.. -DQT_SHARED -I/usr/include/qt4
-I/usr/include/qt4/QtCore -DQT_SHARED -I/usr/include/qt4
-I/usr/include/qt4/QtDBus -I/usr/include/PolicyKit
-I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
-DPACKAGE_LOCALE_DIR=\"/usr/share/locale\" -Wcast-align
-Wno-uninitialized -Wall -Wreturn-type -Werror
-DG_DISABLE_SINGLE_INCLUDES -DGTK_DISABLE_SINGLE_INCLUDES
-DG_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED
-DGDK_MULTIHEAD_SAFE -DGTK_MULTIHEAD_SAFE -g -O2 -g -Wall -O2 -c
client.cpp  -fPIC -DPIC -o .libs/client.o
cc1plus: warnings being treated as errors
In file included from client.cpp:582:
/usr/include/qt4/QtCore/qmap.h: In static member function 'static QMap&lt;Key, T&gt;::Node* QMap&lt;Key, T&gt;::concrete(QMapData::Node*) [with Key = QString, T = QVariant]':
/usr/include/qt4/QtCore/qmap.h:280:   instantiated from 'const Key&amp; QMap&lt;Key, T&gt;::const_iterator::key() const [with Key = QString, T = QVariant]'
/usr/include/qt4/QtDBus/qdbusargument.h:303:   instantiated from here
/usr/include/qt4/QtCore/qmap.h:140: error: cast from 'char*' to 'QMap&lt;QString, QVariant&gt;::Node*' increases required alignment of target type
/usr/include/qt4/QtCore/qmap.h: In static member function 'static QMap&lt;Key, T&gt;::Node* QMap&lt;Key, T&gt;::concrete(QMapData::Node*) [with Key = int, T = QtConcurrent::ResultItem]':
/usr/include/qt4/QtCore/qmap.h:585:   instantiated from 'void QMap&lt;Key, T&gt;::freeData(QMapData*) [with Key = int, T = QtConcurrent::ResultItem]'
/usr/include/qt4/QtCore/qmap.h:147:   instantiated from 'QMap&lt;Key, T&gt;::~QMap() [with Key = int, T = QtConcurrent::ResultItem]'
/usr/include/qt4/QtCore/qtconcurrentresultstore.h:133:   instantiated from here
/usr/include/qt4/QtCore/qmap.h:140: error: cast from 'char*' to 'QMap&lt;int, QtConcurrent::ResultItem&gt;::Node*' increases required alignment of target type
/usr/include/qt4/QtCore/qlist.h: In member function 'void QList&lt;T&gt;::node_destruct(QList&lt;T&gt;::Node*, QList&lt;T&gt;::Node*) [with T = QVariant]':
/usr/include/qt4/QtCore/qlist.h:551:   instantiated from 'void QList&lt;T&gt;::free(QListData::Data*) [with T = QVariant]'
/usr/include/qt4/QtCore/qlist.h:526:   instantiated from 'QList&lt;T&gt;::~QList() [with T = QVariant]'
/usr/include/qt4/QtDBus/qdbusmessage.h:79:   instantiated from here
/usr/include/qt4/QtCore/qlist.h:361: error: cast from 'QList&lt;QVariant&gt;::Node*' to 'QVariant*' increases required alignment of target type
/usr/include/qt4/QtCore/qlist.h: In member function 'void QList&lt;T&gt;::node_construct(QList&lt;T&gt;::Node*, const T&amp;) [with T = QVariant]':
/usr/include/qt4/QtCore/qlist.h:418:   instantiated from 'void QList&lt;T&gt;::append(const T&amp;) [with T = QVariant]'
/usr/include/qt4/QtCore/qlist.h:296:   instantiated from 'QList&lt;T&gt;&amp; QList&lt;T&gt;::operator&lt;&lt;(const T&amp;) [with T = QVariant]'
/usr/include/qt4/QtDBus/qdbusmessage.h:81:   instantiated from here
/usr/include/qt4/QtCore/qlist.h:334: error: cast from 'QList&lt;QVariant&gt;::Node*' to 'QVariant*' increases required alignment of target type
/usr/include/qt4/QtCore/qlist.h: In member function 'void QList&lt;T&gt;::node_copy(QList&lt;T&gt;::Node*, QList&lt;T&gt;::Node*, QList&lt;T&gt;::Node*) [with T = QVariant]':
/usr/include/qt4/QtCore/qlist.h:517:   instantiated from 'void QList&lt;T&gt;::detach_helper() [with T = QVariant]'
/usr/include/qt4/QtCore/qlist.h:115:   instantiated from 'void QList&lt;T&gt;::detach() [with T = QVariant]'
/usr/include/qt4/QtCore/qlist.h:416:   instantiated from 'void QList&lt;T&gt;::append(const T&amp;) [with T = QVariant]'
/usr/include/qt4/QtCore/qlist.h:296:   instantiated from 'QList&lt;T&gt;&amp; QList&lt;T&gt;::operator&lt;&lt;(const T&amp;) [with T = QVariant]'
/usr/include/qt4/QtDBus/qdbusmessage.h:81:   instantiated from here
/usr/include/qt4/QtCore/qlist.h:352: error: cast from 'QList&lt;QVariant&gt;::Node*' to 'QVariant*' increases required alignment of target type
make[5]: *** [client.lo] Error 1
make[5]: Leaving directory `/build/buildd/packagekit-0.3.14/lib/packagekit-qt/src'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/build/buildd/packagekit-0.3.14/lib/packagekit-qt'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/build/buildd/packagekit-0.3.14/lib'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/build/buildd/packagekit-0.3.14'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/build/buildd/packagekit-0.3.14'
make: *** [debian/stamp-makefile-build] Error 2
dpkg-buildpackage: failure: debian/rules build gave error exit status 2
******************************************************************************


Cheers,

Sebastian
  </pre>
  <pre wrap="">
<hr size="4" width="90%">
_______________________________________________
PackageKit mailing list
<a class="moz-txt-link-abbreviated" href="mailto:PackageKit@lists.freedesktop.org">PackageKit@lists.freedesktop.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freedesktop.org/mailman/listinfo/packagekit">http://lists.freedesktop.org/mailman/listinfo/packagekit</a>
  </pre>
</blockquote>
<br>
</body>
</html>