[Bug 162084] New: compile error when using old gcc

nihui shuizhuyuanluo at 126.com
Wed May 14 12:39:44 CEST 2008


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=162084         
           Summary: compile error when using old gcc
           Product: plasma
           Version: unspecified
          Platform: Compiled Sources
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
        AssignedTo: panel-devel kde org
        ReportedBy: shuizhuyuanluo 126 com


Version:            (using Devel)
Installed from:    Compiled sources
Compiler:          gcc 3.4.6 
OS:                Linux

hi,

I reported such issus some days ago.
http://bugs.kde.org/show_bug.cgi?id=161877

and r806698 fix that.

but that fix caused another two compilation errors, just the same kind of error like the previous bug.

this time, I uploaded a patch written by myself.
It will move these functions from protected to public.
I passed the compilation after using the patch.

output info when trying to build svn807659:

[nihui MagicLinux plasma]$ make -j6
[  0%] [  0%] [  0%] [  0%] [  0%] [  0%] Building CXX object libs/plasma/CMakeFiles/plasma.dir/corona.o
Building CXX object libs/plasma/CMakeFiles/plasma.dir/dataengine.o
Building CXX object libs/plasma/CMakeFiles/plasma.dir/delegate.o
Building CXX object libs/plasma/CMakeFiles/plasma.dir/runnermanager.o
Building CXX object libs/plasma/CMakeFiles/plasma.dir/view.o
Building CXX object libs/plasma/CMakeFiles/plasma.dir/scripting/appletscript.o
/work/people/nihui/mBuild/BUILD/kdebase-workspace-4.0.73/libs/plasma/runnermanager.cpp: In member function `void Plasma::RunnerManager::Private::loadAll()':
/work/people/nihui/mBuild/BUILD/kdebase-workspace-4.0.73/libs/plasma/abstractrunner.h:192: error: `Plasma::AbstractRunner::AbstractRunner(QObject*, const QString&)' is protected
/work/people/nihui/mBuild/BUILD/kdebase-workspace-4.0.73/libs/plasma/runnermanager.cpp:256: error: within this context
/work/people/nihui/mBuild/BUILD/kdebase-workspace-4.0.73/libs/plasma/dataengine.cpp: In member function `void Plasma::DataEngine::Private::internalUpdateSource(Plasma::DataContainer*)':
/work/people/nihui/mBuild/BUILD/kdebase-workspace-4.0.73/libs/plasma/datacontainer.h:127: error: `uint Plasma::DataContainer::timeSinceLastUpdate() const' is protected
/work/people/nihui/mBuild/BUILD/kdebase-workspace-4.0.73/libs/plasma/dataengine.cpp:444: error: within this context
/work/people/nihui/mBuild/BUILD/kdebase-workspace-4.0.73/libs/plasma/datacontainer.h:137: error: `void Plasma::DataContainer::setNeedsUpdate(bool)' is protected
/work/people/nihui/mBuild/BUILD/kdebase-workspace-4.0.73/libs/plasma/dataengine.cpp:450: error: within this context
make[2]: *** [libs/plasma/CMakeFiles/plasma.dir/runnermanager.o] Error 1
make[2]: *** Waiting for unfinished jobs....
/work/people/nihui/mBuild/BUILD/kdebase-workspace-4.0.73/libs/plasma/delegate.cpp: In member function `virtual void Plasma::Delegate::paint(QPainter*, const QStyleOptionViewItem&, const QModelIndex&) const':
/work/people/nihui/mBuild/BUILD/kdebase-workspace-4.0.73/libs/plasma/delegate.cpp:326: warning: converting to `int' from `double'
make[2]: *** [libs/plasma/CMakeFiles/plasma.dir/dataengine.o] Error 1
/work/people/nihui/mBuild/BUILD/kdebase-workspace-4.0.73/libs/plasma/corona.cpp: In member function `Plasma::Containment* Plasma::Corona::Private::addContainment(const QString&, const QVariantList&, uint, bool)':
/work/people/nihui/mBuild/BUILD/kdebase-workspace-4.0.73/libs/plasma/applet.h:556: error: `void Plasma::Applet::setFailedToLaunch(bool, const QString&)' is protected
/work/people/nihui/mBuild/BUILD/kdebase-workspace-4.0.73/libs/plasma/corona.cpp:153: error: within this context
/work/people/nihui/mBuild/BUILD/kdebase-workspace-4.0.73/libs/plasma/applet.h:602: error: `void Plasma::Applet::setIsContainment(bool)' is protected
/work/people/nihui/mBuild/BUILD/kdebase-workspace-4.0.73/libs/plasma/corona.cpp:157: error: within this context
make[2]: *** [libs/plasma/CMakeFiles/plasma.dir/corona.o] Error 1
make[1]: *** [libs/plasma/CMakeFiles/plasma.dir/all] Error 2
make: *** [all] Error 2


More information about the Panel-devel mailing list