On Monday 07 March 2011 23:05:01 Robert Xu wrote:
This is what happens when you're building for OpenSUSE 11.4:
/usr/src/packages/BUILD/kdelibs/kdefx/kstyle.cpp: In member function 'virtual
void KStyle::polish(QWidget*)':
/usr/src/packages/BUILD/kdelibs/kdefx/kstyle.cpp:259:43: error: expected
primary-expression before '*' token
/usr/src/packages/BUILD/kdelibs/kdefx/kstyle.cpp:259:45: error: expected
primary-expression before '>' token
/usr/src/packages/BUILD/kdelibs/kdefx/kstyle.cpp: In member function 'virtual
void KStyle::unPolish(QWidget*)':
/usr/src/packages/BUILD/kdelibs/kdefx/kstyle.cpp:280:43: error: expected
primary-expression before '*' token
/usr/src/packages/BUILD/kdelibs/kdefx/kstyle.cpp:280:45: error: expected
primary-expression before '>' token
/usr/src/packages/BUILD/kdelibs/kdefx/kstyle.cpp: In member function 'virtual
void KStyle::drawComplexControl(QStyle::ComplexControl, QPainter*, const
QWidget*, const QRect&, const QColorGroup&, QStyle::SFlags, QStyle::SCFlags,
QStyle::SCFlags, const QStyleOption&) const':
/usr/src/packages/BUILD/kdelibs/kdefx/kstyle.cpp:1134:7: warning: suggest
explicit braces to avoid ambiguous 'else'
/usr/src/packages/BUILD/kdelibs/kdefx/kstyle.cpp: In member function 'virtual
bool KStyle::eventFilter(QObject*, QEvent*)':
/usr/src/packages/BUILD/kdelibs/kdefx/kstyle.cpp:1898:34: error: expected
primary-expression before '*' token
/usr/src/packages/BUILD/kdelibs/kdefx/kstyle.cpp:1898:35: error: expected
primary-expression before '>' token
/usr/src/packages/BUILD/kdelibs/kdefx/kstyle.cpp:1905:46: error: expected
primary-expression before '*' token
/usr/src/packages/BUILD/kdelibs/kdefx/kstyle.cpp:1905:47: error: expected
primary-expression before '>' token
I cannot tell you what to do with it. It seems, the Trinity code is
incompatible with the modern gcc. On the other hand, KDE3 builds well, so you
can try to take kdefx/kstyle.cpp file from conventional KDE 3.5.10 and
replace it in the Trinity's KDE3 and look what will happen.