Version: (using KDE KDE 3.4.0) Installed from: Gentoo Packages Compiler: gcc (GCC) 3.3.5 (Gentoo Linux 3.3.5-r1, ssp-3.3.2-3, pie-8.7.7.1) -Os -march=athlon -fomit-frame-pointer -fexpensive-optimizations -pipe OS: Linux Attempting to view any .chm file with kchmpart in konqueror results with /usr/lib/libkdevwidgets.so.0: undefined symbol: _ZTIN11KTextEditor8DocumentE[ It seems to be the problem no only with Gentoo: http://forums.gentoo.org/viewtopic-t-313992-highlight-kchmpart.html but also with other (binary) distibutions: http://www.linuxquestions.org/questions/showthread.php?s=&forumid=26&threadid=305459 Do I need to add more info? Please excuse me if it's (kdelibs) not a proper category for this bug.
kdevelop has tons of libraries with undefined references. They finally need to fix that ;(
Oppos, sorry Can anybody move this bug to KDELIBS category (anyway that one with kchmpart) ?? I must have selected kdevelop by mistake...
Oh, I have no idea what is kdevelop to do about it (kind of wrapper ?), but ok, sorry for that mess
It's allright. kchmpart is distributed with KDevelop.
CVS commit by dymo: Fix undefined symbols in core libraries. BUG: 103064 M +5 -3 Makefile.am 1.42 M +3 -0 interfaces/Makefile.am 1.54 M +1 -0 widgets/Makefile.am 1.26 --- kdevelop/lib/interfaces/Makefile.am #1.53:1.54 @@ -12,4 +12,7 @@ kdevprojectiface.cpp kdevprojectiface.skel kdevdesignerintegrationiface.cpp \ kdevdesignerintegrationiface.skel +libkdevinterfaces_la_LDFLAGS = -no-undefined $(all_libraries) $(LIB_KDEUI) $(LIB_KHTML) $(LIB_KPARTS) -lktexteditor -lkscript \ + $(top_builddir)/lib/interfaces/external/libkinterfacedesigner.la \ + $(top_builddir)/lib/util/libkdevutil.la kdevelopincludedir = $(includedir)/kdevelop/interfaces --- kdevelop/lib/widgets/Makefile.am #1.25:1.26 @@ -18,4 +18,5 @@ libkdevwidgets_la_LIBADD = $(top_builddir)/lib/interfaces/libkdevinterfaces.la +libkdevwidgets_la_LDFLAGS = -no-undefined $(all_libraries) rcdir = $(kde_datadir)/kdevelop --- kdevelop/lib/Makefile.am #1.41:1.42 @@ -17,7 +17,9 @@ libkdevelop_la_LDFLAGS = -no-undefined $(all_libraries) -version-info 1:0 libkdevelop_la_LIBADD = $(top_builddir)/lib/interfaces/libkdevinterfaces.la \ - $(top_builddir)/lib/util/libkdevutil.la $(top_builddir)/lib/widgets/propeditor/libkdevpropertyeditor.la \ - $(top_builddir)/lib/interfaces/external/libkinterfacedesigner.la $(top_builddir)/lib/interfaces/extensions/libkdevextensions.la \ - $(LIB_KDEVCOMPAT) -lktexteditor $(LIB_KPARTS) $(LIB_KIO) -lkscript + $(top_builddir)/lib/widgets/propeditor/libkdevpropertyeditor.la $(LIB_KDEVCOMPAT) $(LIB_KIO) + +# $(top_builddir)/lib/util/libkdevutil.la $(top_builddir)/lib/widgets/propeditor/libkdevpropertyeditor.la \ +# $(top_builddir)/lib/interfaces/external/libkinterfacedesigner.la $(top_builddir)/lib/interfaces/extensions/libkdevextensions.la \ +# $(LIB_KDEVCOMPAT) -lktexteditor $(LIB_KPARTS) $(LIB_KIO) -lkscript libkdevelop_la_SOURCES = dummy.cpp
Why are these patches still not part of the kdevelop-3.2.0 source package???
because the changes were made after KDevelop-3.2.0 was released. Get KDevelop-3.2.1 when it comes out in a couple of weeks.
*** Bug 107269 has been marked as a duplicate of this bug. ***
Version: 3.2.1 (using KDE KDE 3.4.1) Installed from: Gentoo Packages Compiler: gcc-3.4.4 OS: Linux Altough the bug is marked as resolved, the problem still exists in kde-3.4.1 and kdevelop-3.2.1: There was an error loading the module KChmPart. The diagnostics is: /usr/lib/libkdevwidgets.so.0: undefined symbol: _ZTIN11KTextEditor8DocumentE
You need to get a better rpm. Or compile KDevelop from source. The error will go away.
I'm afraid not - problem still looks unresolved for me: kde-3.4.1, kdevelop-3.2.1 (compiled from source - on Gentoo/GNU) Are we talking about same source? 7a5e9f2fb8a9539a41541dba566a234a kdevelop-3.2.1.tar.bz2 regards MM
Indeed the same source. By the way the output of ldd -r /usr/lib/kde3/libkchmpart.so linux-gate.so.1 => (0xffffe000) libkhtml.so.4 => /usr/kde/3.4/lib/libkhtml.so.4 (0xb7c7e000) ...etcetera..... libkdevwidgets.so.0 => /usr/lib/libkdevwidgets.so.0 (0xb6621000) libstdc++.so.6 => /usr/lib/gcc/i686-pc-linux-gnu/3.4.4/libstdc++.so.6 (0xb654e000) libm.so.6 => /lib/tls/libm.so.6 (0xb652b000) libc.so.6 => /lib/tls/libc.so.6 (0xb6411000) libgcc_s.so.1 => /usr/lib/gcc/i686-pc-linux-gnu/3.4.4/libgcc_s.so.1 (0xb6407000) liblcms.so.1 => /usr/lib/liblcms.so.1 (0xb63d3000) /lib/ld-linux.so.2 (0x80000000) undefined symbol: _ZN7DomUtil13writeIntEntryER12QDomDocumentRK7QStringi (/usr/lib/libkdevwidgets.so.0) undefined symbol: _ZNK11KTextEditor8Document14documentNumberEv (/usr/lib/libkdevwidgets.so.0) undefined symbol: _ZN7DomUtil13readListEntryERK12QDomDocumentRK7QStringS5_ (/usr/lib/libkdevwidgets.so.0) undefined symbol: _ZN7DomUtil13readBoolEntryERK12QDomDocumentRK7QStringb (/usr/lib/libkdevwidgets.so.0) undefined symbol: _ZN7DomUtil14writeBoolEntryER12QDomDocumentRK7QStringb (/usr/lib/libkdevwidgets.so.0) undefined symbol: _ZN7DomUtil12readMapEntryERK12QDomDocumentRK7QString (/usr/lib/libkdevwidgets.so.0) undefined symbol: _ZN7DomUtil12readIntEntryERK12QDomDocumentRK7QStringi (/usr/lib/libkdevwidgets.so.0) undefined symbol: _ZN7URLUtil13canonicalPathERK7QString (/usr/lib/libkdevwidgets.so.0) undefined symbol: _ZN7DomUtil13writeMapEntryER12QDomDocumentRK7QStringRK4QMapIS2_S2_E (/usr/lib/libkdevwidgets.so.0) undefined symbol: _ZN7DomUtil10writeEntryER12QDomDocumentRK7QStringS4_ (/usr/lib/libkdevwidgets.so.0) undefined symbol: _ZN7URLUtil11isDirectoryERK4KURL (/usr/lib/libkdevwidgets.so.0) undefined symbol: _ZN7DomUtil14writeListEntryER12QDomDocumentRK7QStringS4_RK11QStringList (/usr/lib/libkdevwidgets.so.0) undefined symbol: _ZN7DomUtil9readEntryERK12QDomDocumentRK7QStringS5_ (/usr/lib/libkdevwidgets.so.0) undefined symbol: _ZTIN11KTextEditor8DocumentE (/usr/lib/libkdevwidgets.so.0)
The source that I'm talking about is: http://download.kde.org/download.php?url=unstable/snapshots/kdevelop.tar.bz2
Last night I have compiled the latest snapshot from ftp.kde.org as suggested in comment #13. It seems that the problem is solved. Apparently kdevelop-3.2.1.tar.bz2 does not contain the required fixes altough it was released (on the 31st of May) after the bug was reported as fixed (on the 2th of April). Thanks for your help.
There is not enough "manpower" (developers time/patience) to backport all the bugfixes from HEAD to stable. So KDevelop HEAD is *ALWAYS* better than stable.
>There is not enough "manpower" (developers time/patience) to backport all the bugfixes from HEAD to stable. Then it's probably better, not to release KDevelop versions at all? :)
I said that not *all* fixes are backported. But some of them are. See the changelog that is posted in www.kdevelop.org
Is it fixed in 3.4.2?
kde-3.4.2, kdevelop-3.2.2, and the bug is still there
I can confirm that... KDE-3.4.2 && kdevelop-3.2.2. Bug still there. "There was an error loading the module KChmPart. The diagnostics is: /usr/lib/libkdevwidgets.so.0: undefined symbol: _ZTIN11KTextEditor8DocumentE"
Please get a better RPM.
Confirmed, many undefined symbols in /usr/lib/libkdevwidgets.so from kdevelop-3.2.2. Re-opening.
See Bug #111941 comment #2 for a similar bug and the necessary fix.
Tried patching kdevelop-3.2.2 from comment #5, and got: -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -o libkdevappview.la -rpath /usr/lib /kde3 -L/usr/lib -L/usr/lib/qt-3.3/lib -L/usr/X11R6/lib -avoid-version -module -no-undefined -Wl,--no-undefined -Wl,--allow-shlib-undefi ned appoutputviewpart.lo appoutputwidget.lo directorystatusmessagefilter.lo outputfilter.lo compileerrorfilter.lo commandcontinuationfilt er.lo makeitem.lo makeactionfilter.lo otherfilter.lo filterdlg.lo ../../lib/widgets/libkdevwidgets.la ../../lib/interfaces/extensions/dcop/ libkdevdcopextensions.la ../../lib/libkdevelop.la -lkhtml .libs/makeviewpart.o(.text+0xedb): In function `MakeViewPart::~MakeViewPart [not-in-charge]()': : undefined reference to `vtable for KDevMakeFrontend' .libs/makeviewpart.o(.text+0xee6): In function `MakeViewPart::~MakeViewPart [not-in-charge]()': : undefined reference to `vtable for KDevMakeFrontend' .libs/makeviewpart.o(.text+0xfbb): In function `MakeViewPart::~MakeViewPart [in-charge]()': : undefined reference to `vtable for KDevMakeFrontend' .libs/makeviewpart.o(.text+0xfc6): In function `MakeViewPart::~MakeViewPart [in-charge]()': : undefined reference to `vtable for KDevMakeFrontend' .libs/makeviewpart.o(.text+0x109b): In function `MakeViewPart::~MakeViewPart [in-charge deleting]()': opextensions.la ../../lib/libkdevelop.la -lkhtml /bin/sh ../../libtool --silent --mode=link --tag=CXX g++ -DNDEBUG -DNO_DEBUG -O2 -O2 -march=i386 -mcpu=i686 -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -o libkdevappview.la -rpath /usr/lib /kde3 -L/usr/lib -L/usr/lib/qt-3.3/lib -L/usr/X11R6/lib -avoid-version -module -no-undefined -Wl,--no-undefined -Wl,--allow-shlib-undefi ned appoutputviewpart.lo appoutputwidget.lo directorystatusmessagefilter.lo outputfilter.lo compileerrorfilter.lo commandcontinuationfilt er.lo makeitem.lo makeactionfilter.lo otherfilter.lo filterdlg.lo ../../lib/widgets/libkdevwidgets.la ../../lib/interfaces/extensions/dcop/ libkdevdcopextensions.la ../../lib/libkdevelop.la -lkhtml .libs/makeviewpart.o(.text+0xedb): In function `MakeViewPart::~MakeViewPart [not-in-charge]()': : undefined reference to `vtable for KDevMakeFrontend' .libs/makeviewpart.o(.text+0xee6): In function `MakeViewPart::~MakeViewPart [not-in-charge]()': : undefined reference to `vtable for KDevMakeFrontend' .libs/makeviewpart.o(.text+0xfbb): In function `MakeViewPart::~MakeViewPart [in-charge]()': : undefined reference to `vtable for KDevMakeFrontend' .libs/makeviewpart.o(.text+0xfc6): In function `MakeViewPart::~MakeViewPart [in-charge]()': : undefined reference to `vtable for KDevMakeFrontend' .libs/makeviewpart.o(.text+0x109b): In function `MakeViewPart::~MakeViewPart [in-charge deleting]()': : undefined reference to `vtable for KDevMakeFrontend' .libs/makeviewpart.o(.text+0x10a6): more undefined references to `vtable for KDevMakeFrontend' follow .libs/makeviewpart.o(.text+0x1261): In function `MakeViewPart::staticMetaObject()': : undefined reference to `KDevMakeFrontend::staticMetaObject()' .libs/makeviewpart.o(.text+0x1348): In function `MakeViewPart::qt_cast(char const*)': : undefined reference to `KDevMakeFrontend::qt_cast(char const*)' .libs/makeviewpart.o(.text+0x13a9): In function `MakeViewPart::qt_invoke(int, QUObject*)': : undefined reference to `KDevMakeFrontend::qt_invoke(int, QUObject*)' .libs/makeviewpart.o(.text+0x1409): In function `MakeViewPart::qt_emit(int, QUObject*)': : undefined reference to `KDevMakeFrontend::qt_emit(int, QUObject*)' .libs/makeviewpart.o(.text+0x1450): In function `MakeViewPart::qt_property(int, int, QVariant*)': : undefined reference to `KDevMakeFrontend::qt_property(int, int, QVariant*)' .libs/makeviewpart.o(.gnu.linkonce.d._ZTI12MakeViewPart+0x8): undefined reference to `typeinfo for KDevMakeFrontend' .libs/makewidget.o(.text+0x37b3): In function `MakeWidget::slotProcessExited(KProcess*)': : undefined reference to `KDevMakeFrontend::commandFailed(QString const&)' .libs/makewidget.o(.text+0x3872): In function `MakeWidget::slotProcessExited(KProcess*)': : undefined reference to `KDevMakeFrontend::commandFinished(QString const&)' collect2: ld returned 1 exit status make[4]: *** [libkdevmakeview.la] Error 1 make[4]: *** Waiting for unfinished jobs.... .libs/appoutputviewpart.o(.text+0x91d): In function `AppOutputViewPart::~AppOutputViewPart [not-in-charge]()': : undefined reference to `vtable for KDevAppFrontend' .libs/appoutputviewpart.o(.text+0x928): In function `AppOutputViewPart::~AppOutputViewPart [not-in-charge]()': : undefined reference to `vtable for KDevAppFrontend' .libs/appoutputviewpart.o(.text+0x9fd): In function `AppOutputViewPart::~AppOutputViewPart [in-charge]()': : undefined reference to `vtable for KDevAppFrontend' .libs/appoutputviewpart.o(.text+0xa08): In function `AppOutputViewPart::~AppOutputViewPart [in-charge]()': : undefined reference to `vtable for KDevAppFrontend' .libs/appoutputviewpart.o(.text+0xadd): In function `AppOutputViewPart::~AppOutputViewPart [in-charge deleting]()': : undefined reference to `vtable for KDevAppFrontend' .libs/appoutputviewpart.o(.text+0xae8): more undefined references to `vtable for KDevAppFrontend' follow .libs/appoutputviewpart.o(.text+0x1071): In function `AppOutputViewPart::staticMetaObject()': : undefined reference to `KDevAppFrontend::staticMetaObject()' .libs/appoutputviewpart.o(.text+0x1158): In function `AppOutputViewPart::qt_cast(char const*)': : undefined reference to `KDevAppFrontend::qt_cast(char const*)' .libs/appoutputviewpart.o(.text+0x1200): In function `AppOutputViewPart::qt_invoke(int, QUObject*)': : undefined reference to `KDevAppFrontend::qt_invoke(int, QUObject*)' .libs/appoutputviewpart.o(.text+0x1279): In function `AppOutputViewPart::qt_emit(int, QUObject*)': : undefined reference to `KDevAppFrontend::qt_emit(int, QUObject*)' .libs/appoutputviewpart.o(.text+0x12d0): In function `AppOutputViewPart::qt_property(int, int, QVariant*)': : undefined reference to `KDevAppFrontend::qt_property(int, int, QVariant*)' .libs/appoutputviewpart.o(.gnu.linkonce.d._ZTI17AppOutputViewPart+0x8): undefined reference to `typeinfo for KDevAppFrontend' collect2: ld returned 1 exit status make[4]: *** [libkdevappview.la] Error 1
fixed in KDE 3.5 branch which is the next release and the only branch required to have the fix in the first place.