--Boundary-00=_yuBADVLsC6uZ0f5
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

On Sunday 14 August 2005 06:56 am, Brad Hards wrote:
> For the last few days, I've been having trouble building kdelibs from trunk
> The error is shown below.
>
> I've tried cleaning it up (including a whole fresh checkout), but the
> problem is unchanged. Any suggestions?
>
> Brad
>
> linking ./interfaces/ktexteditor/libktexteditor.la
> /bin/sh ./libtool --silent --mode=link --tag=CXX g++ -Wnon-virtual-dtor
> -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align
> -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -O2
> -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new
> -fno-common -fvisibility=hidden -DQT_CLEAN_NAMESPACE -DQT_NO_CAST_TO_ASCII
> -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -DQT3_SUPPORT
> -DQT_THREAD_SUPPORT -D_REENTRANT -no-undefined -L/opt/kde4/lib
> -L/home/bradh/build/qt4-rsync/lib -L/usr/X11R6/lib64 -R /opt/kde4/lib -R
> /opt/kde4/lib -R /home/bradh/build/qt4-rsync/lib -R /usr/X11R6/lib64 -o
> ./interfaces/ktexteditor/libktexteditor.la -rpath /opt/kde4/lib
> -Wl,--no-undefined -Wl,--allow-shlib-undefined
> ./interfaces/kdocument/libkdocument.la ./kparts/libkparts.la
> ./interfaces/ktexteditor/ktexteditor.lo ./interfaces/ktexteditor/range.lo
> ./interfaces/ktexteditor/templateinterface.lo
> ./interfaces/ktexteditor/editorchooser.lo
> ./interfaces/ktexteditor/.libs/ktexteditor.o(.text+0x4f1): In function
> `KTextEditor:ocument::qt_metacall(QMetaObject::Call, int, void**)':
> ktexteditor.cpp: undefined reference to
> `KDocument:ocument::qt_metacall(QMetaObject::Call, int, void**)'
> ./interfaces/ktexteditor/.libs/ktexteditor.o(.text+0x881): In function
> `KTextEditor::View::qt_metacall(QMetaObject::Call, int, void**)':
> ktexteditor.cpp: undefined reference to
> `KDocument::View::qt_metacall(QMetaObject::Call, int, void**)'
> ./interfaces/ktexteditor/.libs/ktexteditor.o(.text+0x2ba): In function
> `KTextEditor:ocument::qt_metacast(char const*)': ktexteditor.cpp:
> undefined reference to `KDocument:ocument::qt_metacast(char const*)'
> ./interfaces/ktexteditor/.libs/ktexteditor.o(.text+0x63a): In function
> `KTextEditor::View::qt_metacast(char const*)': ktexteditor.cpp: undefined
> reference to `KDocument::View::qt_metacast(char const*)'
> ./interfaces/ktexteditor/.libs/ktexteditor.o(.gnu.linkonce.d._ZTIN11KTextEd
>itor8DocumentE[typeinfo for KTextEditor:ocument]+0x10): undefined
> reference to `typeinfo for KDocument:ocument'
> ./interfaces/ktexteditor/.libs/ktexteditor.o(.gnu.linkonce.d._ZTIN11KTextEd
>itor4ViewE[typeinfo for KTextEditor::View]+0x10): undefined reference to
> `typeinfo for KDocument::View'
> ./interfaces/ktexteditor/.libs/ktexteditor.o(.gnu.linkonce.d._ZTCN11KTextEd
>itor8DocumentE0_N9KDocument8DocumentE[vtable for
> KTextEditor:ocument]+0x10): undefined reference to `typeinfo for
> KDocument:ocument'
> ./interfaces/ktexteditor/.libs/ktexteditor.o(.gnu.linkonce.d._ZTCN11KTextEd
>itor8DocumentE0_N9KDocument8DocumentE[vtable for
> KTextEditor:ocument]+0x18): undefined reference to
> `KDocument:ocument::metaObject() const'
> ./interfaces/ktexteditor/.libs/ktexteditor.o(.gnu.linkonce.d._ZTCN11KTextEd
>itor8DocumentE0_N9KDocument8DocumentE[vtable for
> KTextEditor:ocument]+0x20): undefined reference to
> `KDocument:ocument::qt_metacast(char const*)'
> ./interfaces/ktexteditor/.libs/ktexteditor.o(.gnu.linkonce.d._ZTCN11KTextEd
>itor8DocumentE0_N9KDocument8DocumentE[vtable for
> KTextEditor:ocument]+0x28): undefined reference to
> `KDocument:ocument::qt_metacall(QMetaObject::Call, int, void**)'
> ./interfaces/ktexteditor/.libs/ktexteditor.o(.gnu.linkonce.d._ZTCN11KTextEd
>itor8DocumentE0_N9KDocument8DocumentE[vtable for
> KTextEditor:ocument]+0x148): undefined reference to `typeinfo for
> KDocument:ocument'
> ./interfaces/ktexteditor/.libs/ktexteditor.o(.gnu.linkonce.d._ZTCN11KTextEd
>itor8DocumentE0_N9KDocument8DocumentE[vtable for
> KTextEditor:ocument]+0x1f0): undefined reference to `typeinfo for
> KDocument:ocument'
> ./interfaces/ktexteditor/.libs/ktexteditor.o(.data.rel.ro+0x20): undefined
> reference to `KDocument::View::staticMetaObject'
> ./interfaces/ktexteditor/.libs/ktexteditor.o(.data.rel.ro+0x40): undefined
> reference to `KDocument:ocument::staticMetaObject'
> ./interfaces/ktexteditor/.libs/ktexteditor.o(.gnu.linkonce.t._ZN9KDocument8
>DocumentD1Ev[KDocument:ocument::~Document()]+0x23): In function
> `KDocument:ocument::~Document()': ktexteditor.cpp: undefined reference to
> `vtable for KDocument:ocument'
> ./interfaces/ktexteditor/.libs/ktexteditor.o(.gnu.linkonce.t._ZN9KDocument8
>DocumentD1Ev[KDocument:ocument::~Document()]+0x2a):ktexteditor.cpp:
> undefined reference to `VTT for KDocument:ocument'
> ./interfaces/ktexteditor/.libs/ktexteditor.o(.gnu.linkonce.t._ZN9KDocument8
>DocumentD0Ev[KDocument:ocument::~Document()]+0x23): In function
> `KDocument:ocument::~Document()': ktexteditor.cpp: undefined reference to
> `vtable for KDocument:ocument'
> ./interfaces/ktexteditor/.libs/ktexteditor.o(.gnu.linkonce.t._ZN9KDocument8
>DocumentD0Ev[KDocument:ocument::~Document()]+0x2a):ktexteditor.cpp:
> undefined reference to `VTT for KDocument:ocument'
> ./interfaces/ktexteditor/.libs/ktexteditor.o(.gnu.linkonce.t._ZN11KTextEdit
>or4ViewD0Ev[KTextEditor::View::~View()]+0x23): In function
> `KTextEditor::View::~View()': ktexteditor.cpp: undefined reference to
> `vtable for KDocument::View'
> ./interfaces/ktexteditor/.libs/ktexteditor.o(.gnu.linkonce.t._ZN11KTextEdit
>or4ViewD1Ev[KTextEditor::View::~View()]+0x23): In function
> `KTextEditor::View::~View()': ktexteditor.cpp: undefined reference to
> `vtable for KDocument::View' collect2: ld returned 1 exit status
> Error creating ./interfaces/ktexteditor/libktexteditor.la. Exit status 1.
> make: *** [all] Error 1


It looks like the visibility of the KDocument:: classes is hidden,
see if this patch works for you, i finally got past this part in a make

--Boundary-00=_yuBADVLsC6uZ0f5
Content-Type: text/x-diff;
charset="iso-8859-1";
name="kdelibs-visibility.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename="kdelibs-visibility.diff"

Index: interfaces/kdocument/view.h
================================================== =================
--- interfaces/kdocument/view.h (revision 449329)
+++ interfaces/kdocument/view.h (working copy)
@@ -5,7 +5,7 @@
#include

namespace KDocument {
- class View : public QWidget, public KXMLGUIClient {
+ class KDE_EXPORT View : public QWidget, public KXMLGUIClient {
Q_OBJECT
public:
View(QWidget *parent):QWidget(parent),KXMLGUIClient() {}
Index: interfaces/kdocument/document.h
================================================== =================
--- interfaces/kdocument/document.h (revision 449329)
+++ interfaces/kdocument/document.h (working copy)
@@ -5,7 +5,7 @@

namespace KDocument {
class View;
- class Document : public KParts::ReadWritePart {
+ class KDE_EXPORT Document : public KParts::ReadWritePart {
Q_OBJECT
public:
Document(QObject *parent): KParts::ReadWritePart(parent) {}

--Boundary-00=_yuBADVLsC6uZ0f5
Content-Type: text/plain; charset="iso-8859-1"
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

=

>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscrib=

e <<

--Boundary-00=_yuBADVLsC6uZ0f5--