[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    kdelibs4_snapshot: compile fails with GCC 4.1
From:       "Michael Biebl" <mbiebl () gmail ! com>
Date:       2006-06-11 12:46:41
Message-ID: aa76cdac0606110546g640459a2od22df02bb499aa67 () mail ! gmail ! com
[Download RAW message or body]

I'm running GCC 4.1.2 (latest version in Debian unstable) and tried to
compile kdelibs4_snapshot with no success. This is the build error I
get:

/home/michael/svn/kdelibs4_snapshot/khtml/rendering/render_line.h: In
destructor 'virtual khtml::InlineBox::~InlineBox()':
/home/michael/svn/kdelibs4_snapshot/khtml/rendering/render_line.h:44:
error: no suitable 'operator delete' for 'khtml::InlineBox'
/home/michael/svn/kdelibs4_snapshot/khtml/rendering/render_line.h: In
destructor 'virtual khtml::InlineRunBox::~InlineRunBox()':
/home/michael/svn/kdelibs4_snapshot/khtml/rendering/render_line.h:126:
error: no suitable 'operator delete' for 'khtml::InlineRunBox'
/home/michael/svn/kdelibs4_snapshot/khtml/rendering/render_line.h: In
constructor 'khtml::InlineFlowBox::InlineFlowBox(khtml::RenderObject*)':
/home/michael/svn/kdelibs4_snapshot/khtml/rendering/render_line.h:152:
note: synthesized method 'virtual
khtml::InlineRunBox::~InlineRunBox()' first required here
/home/michael/svn/kdelibs4_snapshot/khtml/khtmlview.cpp: In member
function 'virtual void
KHTMLView::viewportMouseMoveEvent(QMouseEvent*)':
/home/michael/svn/kdelibs4_snapshot/khtml/khtmlview.cpp:1236: warning:
'erase' is deprecated (declared at
/opt/qt4/include/QtGui/qwidget.h:917)
/opt/qt4/include/QtCore/qobject.h: In function 'QList<T>
qFindChildren(const QObject*, const QString&) [with T = QDialog*]':
/opt/qt4/include/QtCore/qobject.h:145:   instantiated from 'QList<T>
QObject::findChildren(const QString&) const [with T = QDialog*]'
/home/michael/svn/kdelibs4_snapshot/khtml/khtmlview.cpp:858:
instantiated from here
/opt/qt4/include/QtCore/qobject.h:369: warning: type-punning to
incomplete type might break strict-aliasing rules
/home/michael/svn/kdelibs4_snapshot/khtml/rendering/render_line.h: In
destructor 'virtual khtml::RootInlineBox::~RootInlineBox()':
/home/michael/svn/kdelibs4_snapshot/khtml/rendering/render_line.h:242:
error: no suitable 'operator delete' for 'khtml::RootInlineBox'
/home/michael/svn/kdelibs4_snapshot/khtml/khtmlview.cpp: At global scope:
/home/michael/svn/kdelibs4_snapshot/khtml/khtmlview.cpp:4476: note:
synthesized method 'virtual khtml::RootInlineBox::~RootInlineBox()'
first required here
make[2]: *** [khtml/CMakeFiles/khtml.dir/khtmlview.o] Fehler 1
make[1]: *** [khtml/CMakeFiles/khtml.dir/all] Fehler 2
make: *** [all] Fehler 2

This seems to be a problem of GCC 4.1 beeing more strict than
predecessors, it compiled fine with GCC 3.4 and GCC 4.0.

Michael
 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic