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

List:       koffice
Subject:    Re: Krita and kivio don't start
From:       David Faure <faure () kde ! org>
Date:       2004-11-28 0:55:56
Message-ID: 200411280155.57305.faure () kde ! org
[Download RAW message or body]

On Saturday 27 November 2004 21:46, Michael Thaler wrote:
> Hello,
> 
> after I updated my CVS version of Koffice, krita and kivio do not work 
> anymore. I get the following error messages:
> 
> kdecore (KLibLoader): WARNING: The library libkritapart does not offer an 
> init_libkritapart function.
> kdecore (KLibLoader): WARNING: The library libkiviopart does not offer an 
> init_libkiviopart function.

Do you use a gcc with -fvisibility support (e.g. gcc-3.4 afaik)?
I just ported all init_ methods to K_EXPORT_COMPONENT_FACTORY, which 
fixes the visibility - can you try if updating (and recompiling kis_factory.lo) helps?

Another possibility is that this is due to the init_ symbol being in a lib
instead of being in the part itself (like Laurent just fixed in kspread).
Does this patch help?

-- 
David Faure, faure@kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).

["krita.diff" (text/x-diff)]

Index: Makefile.am
===================================================================
RCS file: /home/kde/koffice/krita/Makefile.am,v
retrieving revision 1.102
diff -u -p -r1.102 Makefile.am
--- Makefile.am	3 Oct 2004 13:09:51 -0000	1.102
+++ Makefile.am	28 Nov 2004 00:45:03 -0000
@@ -8,7 +8,7 @@ libkritacommon_la_LIBADD = core/libkrita
 
 ## The part
 kde_module_LTLIBRARIES = libkritapart.la
-libkritapart_la_SOURCES = dummy.cc
+libkritapart_la_SOURCES = krita_part_init.cc
 libkritapart_la_LDFLAGS = $(all_libraries) -module $(KDE_PLUGIN)
 libkritapart_la_LIBADD = libkritacommon.la
 
Index: krita_part_init.cc
===================================================================
RCS file: krita_part_init.cc
diff -N krita_part_init.cc
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ krita_part_init.cc	28 Nov 2004 00:45:03 -0000
@@ -0,0 +1,22 @@
+/*
+ *  kis_part_init.cc - part of Krayon
+ *
+ *  Copyright (c) 1999 Matthias Elter <elter@kde.org>
+ *
+ *  This program is free software; you can redistribute it and/or modify
+ *  it under the terms of the GNU General Public License as published by
+ *  the Free Software Foundation; either version 2 of the License, or
+ *  (at your option) any later version.
+ *
+ *  This program is distributed in the hope that it will be useful,
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *  GNU General Public License for more details.
+ *
+ *  You should have received a copy of the GNU General Public License
+ *  along with this program; if not, write to the Free Software
+ *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
+ */
+#include "core/kis_factory.h"
+
+K_EXPORT_COMPONENT_FACTORY( libkritapart, KisFactory )
Index: core/kis_factory.cc
===================================================================
RCS file: /home/kde/koffice/krita/core/kis_factory.cc,v
retrieving revision 1.39
diff -u -p -r1.39 kis_factory.cc
--- core/kis_factory.cc	27 Nov 2004 23:33:22 -0000	1.39
+++ core/kis_factory.cc	28 Nov 2004 00:45:03 -0000
@@ -29,8 +29,6 @@
 #include "kis_resourceserver.h"
 #include "kis_doc.h"
 
-K_EXPORT_COMPONENT_FACTORY( libkritapart, KisFactory )
-
 KAboutData* KisFactory::s_aboutData = 0;
 KInstance* KisFactory::s_global = 0;
 KisResourceServer* KisFactory::s_rserver = 0;


____________________________________
koffice mailing list
koffice@mail.kde.org
To unsubscribe please visit:
https://mail.kde.org/mailman/listinfo/koffice


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

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