[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#262138: kdeutils: FTBFS with gcc-3.4: `KSim::Theme::Theme(const KSim::Theme&)' is private



Package: kdeutils
Severity: normal
Tags: patch

When building 'kdeutils' with gcc-3.4 I get the following error:

if /bin/sh ../libtool --silent --mode=compile --tag=CXX g++ -DHAVE_CONFIG_H -I. -I../../ksim -I.. -I../../ksim/library -I/usr/include/kde -I/usr/share/qt3/include -I.   -DQT_THREAD_SUPPORT  -D_REENTRANT  -Wnon-virtual-dtor -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -DNDEBUG -DNO_DEBUG -O2 -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION  -MT ksim_panelextension_la.all_cpp.lo -MD -MP -MF ".deps/ksim_panelextension_la.all_cpp.Tpo" -c -o ksim_panelextension_la.all_cpp.lo ksim_panelextension_la.all_cpp.cpp; \
then mv -f ".deps/ksim_panelextension_la.all_cpp.Tpo" ".deps/ksim_panelextension_la.all_cpp.Plo"; else rm -f ".deps/ksim_panelextension_la.all_cpp.Tpo"; exit 1; fi
In file included from ksim_panelextension_la.all_cpp.cpp:9:
../../ksim/library/themeloader.h: In member function `void KSim::ThemePrefs::selectItem(QListViewItem*)':
../../ksim/library/themeloader.h:369: error: `KSim::Theme::Theme(const KSim::Theme&)' is private
../../ksim/themeprefs.cpp:232: error: within this context
make[4]: *** [ksim_panelextension_la.all_cpp.lo] Error 1
make[4]: Leaving directory `/kdeutils-3.2.2/obj-x86_64-linux/ksim'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/kdeutils-3.2.2/obj-x86_64-linux/ksim'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/kdeutils-3.2.2/obj-x86_64-linux'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/kdeutils-3.2.2/obj-x86_64-linux'
make: *** [build-arch-stamp] Error 2

With the attached patch 'kdeutils' can be compiled using gcc-3.4.

Regards
Andreas Jochens

diff -urN ../tmp-orig/kdeutils-3.2.2/ksim/library/themeloader.h ./ksim/library/themeloader.h
--- ../tmp-orig/kdeutils-3.2.2/ksim/library/themeloader.h	2003-09-11 15:59:42.000000000 +0200
+++ ./ksim/library/themeloader.h	2004-07-29 22:46:45.479770376 +0200
@@ -364,9 +364,9 @@
       bool fontColours(const KSim::Base *const base, QFont &font,
          QColor &textColour, QColor &shadowColour, bool &showShadow) const;
 
+      Theme(const KSim::Theme &);
     private:
       Theme();
-      Theme(const KSim::Theme &);
       Theme(const QString &url, const QString &fileName, int alt,
          const QValueVector<QString> &vector, const QStringList &list,
          KConfig *globalReader);



Reply to: