When emerging kdeaddons 3.3.2, the following error is thrown: plugin_katehtmltools.cpp:160: instantiated from here /usr/kde/3.3/include/kgenericfactory.h:193: error: cannot convert `PluginKateHtmlTools*' to `QObject*' in return plugin_katehtmltools.cpp: At global scope: plugin_katehtmltools.cpp:40: warning: unused parameter 'parent' plugin_katehtmltools.cpp:40: warning: unused parameter 'parent' make[3]: *** [plugin_katehtmltools.lo] Error 1 make[3]: Leaving directory `/var/tmp/portage/kdeaddons-3.3.2/work/kdeaddons-3.3.2/kate/htmltools' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/kdeaddons-3.3.2/work/kdeaddons-3.3.2/kate' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/kdeaddons-3.3.2/work/kdeaddons-3.3.2' make: *** [all] Error 2 !!! ERROR: kde-base/kdeaddons-3.3.2 failed.!!! Function kde_src_compile, Line 142, Exitcode 2 !!! died running emake, kde_src_compile:make !!! If you need support, post the topmost build error, NOT this status message. Reproducible: Always Steps to Reproduce: 1.emerge kdeaddons as a part of emerge kde 2. 3. Actual Results: plugin_katehtmltools.cpp:160: instantiated from here /usr/kde/3.3/include/kgenericfactory.h:193: error: cannot convert `PluginKateHtmlTools*' to `QObject*' in return plugin_katehtmltools.cpp: At global scope: plugin_katehtmltools.cpp:40: warning: unused parameter 'parent' plugin_katehtmltools.cpp:40: warning: unused parameter 'parent' make[3]: *** [plugin_katehtmltools.lo] Error 1 make[3]: Leaving directory `/var/tmp/portage/kdeaddons-3.3.2/work/kdeaddons-3.3.2/kate/htmltools' make [2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/kdeaddons-3.3.2/work/kdeaddons-3.3.2/kate' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/kdeaddons-3.3.2/work/kdeaddons-3.3.2' make: *** [all] Error 2 !!! ERROR: kde-base/kdeaddons-3.3.2 failed.!!! Function kde_src_compile, Line 142, Exitcode 2 !!! died running emake, kde_src_compile:make !!! If you need support, post the topmost build error, NOT this status message. Expected Results: kde 3.3.2 should have been emerged...
Could you provide your `emerge info`? This problem seems related to /usr/kde/3.3/include/kate/plugin.h which is an header from kdebase. Have you already upgraded kdebase? Are there other kde versions installed? Are there other errors hidden in the compile output before the ones you posted?
The install is a fresh kde 3.3.2 and includes the revised kdebase. This is also the only version of kde installed. Here's the error messages as far up as I could find them: In file included from plugin_katehtmltools.cpp:18: plugin_katehtmltools.h:23:25: kate/plugin.h: No such file or directory plugin_katehtmltools.h:24:30: kate/application.h: No such file or directory plugin_katehtmltools.h:27:34: kate/documentmanager.h: No such file or directory plugin_katehtmltools.h:28:29: kate/mainwindow.h: No such file or directory plugin_katehtmltools.h:29:30: kate/viewmanager.h: No such file or directory In file included from plugin_katehtmltools.cpp:18: plugin_katehtmltools.h:31: error: expected class-name before ',' token plugin_katehtmltools.h:32: error: expected class-name before '{' token plugin_katehtmltools.h:39: error: `Kate::MainWindow' has not been declared plugin_katehtmltools.h:39: error: ISO C++ forbids declaration of `win' with no type plugin_katehtmltools.h:40: error: `Kate::MainWindow' has not been declared plugin_katehtmltools.h:40: error: ISO C++ forbids declaration of `win' with no type In file included from plugin_katehtmltools.cpp:19: plugin_katehtmltools.moc: In static member function `static QMetaObject* PluginKateHtmlTools::staticMetaObject()': plugin_katehtmltools.moc:54: error: `Kate::Plugin' has not been declared plugin_katehtmltools.moc: In member function `virtual void* PluginKateHtmlTools::qt_cast(const char*)': plugin_katehtmltools.moc:77: error: `PluginViewInterface' is not a member of `Kate' plugin_katehtmltools.moc:77: error: expected primary-expression before ')' token plugin_katehtmltools.moc:77: error: expected `;' before "this" plugin_katehtmltools.moc:77: warning: statement has no effect plugin_katehtmltools.moc:78: error: `Plugin' has not been declared plugin_katehtmltools.moc: In member function `virtual bool PluginKateHtmlTools::qt_invoke(int, QUObject*)': plugin_katehtmltools.moc:86: error: `Plugin' has not been declared plugin_katehtmltools.moc: In member function `virtual bool PluginKateHtmlTools::qt_emit(int, QUObject*)': plugin_katehtmltools.moc:93: error: `Plugin' has not been declared plugin_katehtmltools.moc: In member function `virtual bool PluginKateHtmlTools::qt_property(int, int, QVariant*)': plugin_katehtmltools.moc:99: error: `Plugin' has not been declared plugin_katehtmltools.cpp: At global scope: plugin_katehtmltools.cpp:36: error: using-declaration for non-member at class scope plugin_katehtmltools.cpp:36: error: expected `;' before '*' token plugin_katehtmltools.cpp: In constructor `PluginKateHtmlTools::PluginKateHtmlTools(QObject*, const char*, const QStringList&)': plugin_katehtmltools.cpp:40: error: expected class-name before '(' token plugin_katehtmltools.cpp:40: error: `Application' is not a member of `Kate' plugin_katehtmltools.cpp:40: error: expected primary-expression before ')' token plugin_katehtmltools.cpp: At global scope: plugin_katehtmltools.cpp:48: error: variable or field `addView' declared void plugin_katehtmltools.cpp:48: error: `int PluginKateHtmlTools::addView' is not a staticmember of `class PluginKateHtmlTools' plugin_katehtmltools.cpp:48: error: `MainWindow' is not a member of `Kate' plugin_katehtmltools.cpp:48: error: `win' was not declared in this scope plugin_katehtmltools.cpp:49: error: expected `,' or `;' before '{' token plugin_katehtmltools.cpp:64: error: variable or field `removeView' declared void plugin_katehtmltools.cpp:64: error: `int PluginKateHtmlTools::removeView' is not a static member of `class PluginKateHtmlTools' plugin_katehtmltools.cpp:64: error: `MainWindow' is not a member of `Kate' plugin_katehtmltools.cpp:64: error: `win' was not declared in this scope plugin_katehtmltools.cpp:65: error: expected `,' or `;' before '{' token plugin_katehtmltools.cpp: In member function `void PluginKateHtmlTools::slotEditHTMLtag()': plugin_katehtmltools.cpp:79: error: `application' undeclared (first use this function) plugin_katehtmltools.cpp:79: error: (Each undeclared identifier is reported only once for each function it appears in.) plugin_katehtmltools.cpp: In member function `QString PluginKateHtmlTools::KatePrompt(const QString&, const QString&, QWidget*)': plugin_katehtmltools.cpp:106: warning: `__comp_ctor' is deprecated (declared at /usr/kde/3.3/include/klineeditdlg.h:58) /usr/kde/3.3/include/kgenericfactory.h: In member function `QObject* KGenericFactory<Product, ParentType>::createObject(QObject*, const char*, const char*, const QStringList&) [with Product = PluginKateHtmlTools, ParentType = QObject]': plugin_katehtmltools.cpp:160: instantiated from here /usr/kde/3.3/include/kgenericfactory.h:193: error: cannot convert `PluginKateHtmlTools*' to `QObject*' in return plugin_katehtmltools.cpp: At global scope: plugin_katehtmltools.cpp:40: warning: unused parameter 'parent' plugin_katehtmltools.cpp:40: warning: unused parameter 'parent' make[3]: *** [plugin_katehtmltools.lo] Error 1 make[3]: Leaving directory `/var/tmp/portage/kdeaddons-3.3.2/work/kdeaddons-3.3.2/kate/htmltools' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/kdeaddons-3.3.2/work/kdeaddons-3.3.2/kate' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/kdeaddons-3.3.2/work/kdeaddons-3.3.2' make: *** [all] Error 2 !!! ERROR: kde-base/kdeaddons-3.3.2 failed. !!! Function kde_src_compile, Line 142, Exitcode 2 !!! died running emake, kde_src_compile:make !!! If you need support, post the topmost build error, NOT this status message. And here's emerge info: Portage 2.0.51-r8 (default-linux/x86/2004.3, gcc-3.4.3, glibc-2.3.4.20041102-r0, 2.6.9-gentoo-r9 i686) ================================================================= System uname: 2.6.9-gentoo-r9 i686 Pentium III (Coppermine) Gentoo Base System version 1.6.8 Python: dev-lang/python-2.3.4 [2.3.4 (#1, Dec 14 2004, 19:39:18)] dev-lang/python: 2.3.4 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.8.5-r2, 1.5, 1.6.3, 1.7.9, 1.4_p6, 1.9.3 sys-devel/binutils: 2.15.92.0.2-r2 sys-devel/libtool: 1.5.10-r2 virtual/os-headers: 2.6.8.1-r1 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=pentium3 -O2 -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=pentium3 -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X acl alsa apm arts avi berkdb bitmap-fonts crypt cups dvd encode fam foomaticdb fortran gdbm gif gpm gtk gtk2 imlib ipv6 java jpeg kde libwww mad mikmod mmx motif mpegncurses nls nptl nptlonly oggvorbis opengl oss pam pcmcia pdflib perl png python qt quicktime readline samba sdl spell sse ssl svga tcpd tiff truetype x86 xml2 xmms xv zlib" Thank you.
Thanks. This is indeed a problem with kdebase: kate/plugin.h: No such file or directory kate/application.h: No such file or directory kate/documentmanager.h: No such file or directory ... Have you got those files in /usr/kde/3.3/include? If not, can you try recompiling kdebase and see if you get them in /usr/kde/3.3/include?
Re-emerging kdebase placed those files in the directory, and allowed kdeaddons to compile cleanly. Thank you. Shall this bug be considered fixed?
I guess so, as long as the cause of the corruption is not reproducible.