Bug 103064 - cannot view files with kchmpart: /usr/lib/libkdevwidgets.so.0: undefined symbol: _ZTIN11KTextEditor8DocumentE[
Summary: cannot view files with kchmpart: /usr/lib/libkdevwidgets.so.0: undefined symb...
Status: RESOLVED WORKSFORME
Alias: None
Product: kdevelop
Classification: Applications
Component: general (show other bugs)
Version: 3.2.2
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
: 107269 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-04-02 13:45 UTC by Maciej Mrozowski
Modified: 2005-10-08 17:49 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Maciej Mrozowski 2005-04-02 13:45:48 UTC
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.
Comment 1 Stephan Kulow 2005-04-02 14:08:54 UTC
kdevelop has tons of libraries with undefined references. They finally need to fix that ;(
Comment 2 Maciej Mrozowski 2005-04-02 14:24:44 UTC
Oppos, sorry

Can anybody move this bug to KDELIBS category (anyway that one with kchmpart) ??
I must have selected kdevelop by mistake...
Comment 3 Maciej Mrozowski 2005-04-02 14:30:10 UTC
Oh, I have no idea what is kdevelop to do about it (kind of wrapper ?), but ok, sorry for that mess
Comment 4 Alexander Dymo 2005-04-02 22:36:02 UTC
It's allright. kchmpart is distributed with KDevelop.
Comment 5 Alexander Dymo 2005-04-02 23:39:43 UTC
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
 
Comment 6 Conrad J. Sabatier 2005-05-20 05:40:31 UTC
Why are these patches still not part of the kdevelop-3.2.0 source package???
Comment 7 Matt Rogers 2005-05-20 05:43:58 UTC
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.
Comment 8 Thiago Macieira 2005-06-12 18:50:59 UTC
*** Bug 107269 has been marked as a duplicate of this bug. ***
Comment 9 Jan Dolstra 2005-06-12 19:50:51 UTC
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 
 
Comment 10 Amilcar do Carmo Lucas 2005-06-13 16:50:10 UTC
You need to get a better rpm. Or compile KDevelop from source. The error will go away.
Comment 11 Maciej Mrozowski 2005-06-13 20:45:49 UTC
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
Comment 12 Jan Dolstra 2005-06-13 21:15:57 UTC
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)
Comment 13 Amilcar do Carmo Lucas 2005-06-13 21:42:27 UTC
The source that I'm talking about is:
http://download.kde.org/download.php?url=unstable/snapshots/kdevelop.tar.bz2
Comment 14 Jan Dolstra 2005-06-16 12:37:24 UTC
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.
Comment 15 Amilcar do Carmo Lucas 2005-06-16 12:47:07 UTC
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.
Comment 16 Carsten Lohrke 2005-06-18 15:58:12 UTC
>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? :)
Comment 17 Amilcar do Carmo Lucas 2005-06-18 17:14:19 UTC
I said that not *all* fixes are backported. But some of them are.

See the changelog that is posted in www.kdevelop.org
Comment 18 Andrey Nikanorov 2005-07-29 16:07:56 UTC
Is it fixed in 3.4.2?
Comment 19 Andrey Golovizin 2005-07-31 12:34:05 UTC
kde-3.4.2, kdevelop-3.2.2, and the bug is still there
Comment 20 Robert Voinea 2005-08-04 10:18:44 UTC
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"
Comment 21 Amilcar do Carmo Lucas 2005-08-04 10:42:47 UTC
Please get a better RPM.
Comment 22 Rex Dieter 2005-09-04 19:28:14 UTC
Confirmed, many undefined symbols in /usr/lib/libkdevwidgets.so from kdevelop-3.2.2.  Re-opening.
Comment 23 Thiago Macieira 2005-09-05 00:59:43 UTC
See Bug #111941 comment #2 for a similar bug and the necessary fix.
Comment 24 Rex Dieter 2005-09-06 17:06:04 UTC
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
Comment 25 Matt Rogers 2005-09-23 05:25:05 UTC
fixed in KDE 3.5 branch which is the next release and the only branch required to have the fix in the first place.