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

List:       kde-devel
Subject:    Re: dcop, dcopidl people please read (RE: KOffice compilation)
From:       David Faure <faure () kde ! org>
Date:       1999-10-27 22:49:53
[Download RAW message or body]

On Wed, Oct 27, 1999 at 11:23:02PM +0200, Reginald Stadlbauer wrote:
> On Wed, 27 Oct 1999, David Faure wrote:
> >> Any ideas about this one?
> >> 
> >> /bin/sh ../libtool --silent --mode=link g++  -O2 -m486 -s
> >> -o kspread -L/opt/kde2/lib -L/usr/lib/qt-2.1.0/lib  -L/usr/X11R6/lib
> >> -rpath /opt/kde2/lib -rpath /usr/lib/qt-2.1.0/lib -rpath 
> >> /usr/X11R6/lib
> >> main.o ../kchart/libkchart.la libkspread.la
> >> ../lib/kofficeui/libkofficeui.la
> >> ./.libs/libkspread.so: undefined reference to 
> >> `KSpreadDocIface::DCOPObject virtual table'
> >> ./.libs/libkspread.so: undefined reference to 
> >> `KSpreadMapIface virtual table'
> >> ./.libs/libkspread.so: undefined reference to 
> >> `KSpreadCellIface virtual table'
> >> ./.libs/libkspread.so: undefined reference to 
> >> `KSpreadTableIface::DCOPObject virtual table'
> >> ./.libs/libkspread.so: undefined reference to 
> >> `KSpreadTableIface virtual table'
> >> ./.libs/libkspread.so: undefined reference to 
> >> `KSpreadDocIface virtual table'
> >> ./.libs/libkspread.so: undefined reference to 
> >> `KSpreadMapIface::DCOPObject virtual table'
> >> collect2: ld returned 1 exit status
> >> 
> >> Linux, glibc 2.1.2, gcc 2.95.2, no -frepo for now - this is 
> >> supposed to become a usable version ;)
> >
> >Does any other dcop application links ?
> >Looks like you're missing dcop .moc files ?!?
> 
> I get the same (I created the kidl and _skel files with kidl from sunday now,
> as current dcopidl is still broken). And I get these undefined referenced too,
> in KPresenter and KSpread.
> 
> So, it would be _very_ nice if the people working on dcop, dcopidl,
> dcopidl2cpp, etc. could fix this - the stuff is now broken since quite some and
> it slows down KOffice development a lot. If it doesnŽt get fixed soon, IŽll
> just remove the scripting stuff from KPresenter until things are working again.


I know.
KSpreadCellIface.h contains :

class QPoint;
class KSpreadTable;
class KSpreadCell; 


This is not handled by dcopidl.
Hence the parse error.
In the same dir there is KSpreadAppIface.h, which doesn't have class X;
and is parsed correctly.

dcopidl KSpreadAppIface.h >KSpreadAppIface.kidl; dcopidl2cpp --no-stub KSpreadAppIface.kidl
should be replaced with
dcopidl KSpreadAppIface.h >KSpreadAppIface.kidl && dcopidl2cpp --no-stub KSpreadAppIface.kid

so that it doesn't go on with compiling old files in case of parse error
(which is where the undefined refs come from I think).

-- 
David FAURE
david@mandrakesoft.com, faure@kde.org
http://home.clara.net/faure/
KDE, Making The Future of Computing Available Today

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

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