Bug 161877 - compile error:within this context (libs/plasma/containment.cpp)
Summary: compile error:within this context (libs/plasma/containment.cpp)
Status: RESOLVED FIXED
Alias: None
Product: plasma4
Classification: Unmaintained
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-05-10 07:57 UTC by nihui
Modified: 2008-05-18 20:09 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description nihui 2008-05-10 07:57:59 UTC
Version:            (using Devel)
Installed from:    Compiled sources
Compiler:          gcc 3.4.6 
OS:                Linux

hi,

I can't compile kdebase-workspace since 4.0.72 due to this error problem.
Everything was ok in 4.0.71(svn802441).
Maybe this issus is related with plasma API review, I think.

gcc-3.4.6
qt-4.4.0(final)
os: Magic Linux-2.1beta2

I had already installed kdelibs/kdepimlibs/kdebase-runtime of the newest snapshot release(4.0.73) before I started to compile kdebase-workspace-4.0.73.

[  45%] Building CXX object libs/plasma/CMakeFiles/plasma.dir/containment.o
/work/people/nihui/mBuild/BUILD/kdebase-workspace-4.0.73/libs/plasma/containment.cpp: In member function `QPoint Plasma::Containment::effectiveScreenPos() const':
/work/people/nihui/mBuild/BUILD/kdebase-workspace-4.0.73/libs/plasma/containment.cpp:547: warning: passing `qreal' for converting 1 of `QPoint::QPoint(int, int)'
/work/people/nihui/mBuild/BUILD/kdebase-workspace-4.0.73/libs/plasma/containment.cpp:550: warning: passing `qreal' for converting 1 of `QPoint::QPoint(int, int)'
/work/people/nihui/mBuild/BUILD/kdebase-workspace-4.0.73/libs/plasma/containment.cpp:550: warning: passing `qreal' for converting 2 of `QPoint::QPoint(int, int)'
/work/people/nihui/mBuild/BUILD/kdebase-workspace-4.0.73/libs/plasma/containment.cpp:553: warning: passing `qreal' for converting 2 of `QPoint::QPoint(int, int)'
/work/people/nihui/mBuild/BUILD/kdebase-workspace-4.0.73/libs/plasma/containment.cpp:556: warning: passing `qreal' for converting 1 of `QPoint::QPoint(int, int)'
/work/people/nihui/mBuild/BUILD/kdebase-workspace-4.0.73/libs/plasma/containment.cpp:556: warning: passing `qreal' for converting 2 of `QPoint::QPoint(int, int)'
/work/people/nihui/mBuild/BUILD/kdebase-workspace-4.0.73/libs/plasma/containment.cpp: In member function `Plasma::Applet* Plasma::Containment::Private::addApplet(const QString&, const QVariantList&, const QRectF&, uint, bool)':
/work/people/nihui/mBuild/BUILD/kdebase-workspace-4.0.73/libs/plasma/applet.h:502: error: `Plasma::Applet::Applet(QGraphicsItem*, const QString&, uint)' is protected
/work/people/nihui/mBuild/BUILD/kdebase-workspace-4.0.73/libs/plasma/containment.cpp:986: error: within this context
/work/people/nihui/mBuild/BUILD/kdebase-workspace-4.0.73/libs/plasma/containment.cpp: In member function `void Plasma::Containment::Private::positionContainment()':
/work/people/nihui/mBuild/BUILD/kdebase-workspace-4.0.73/libs/plasma/containment.cpp:1132: warning: passing `qreal' for converting 2 of `QPoint::QPoint(int, int)'
make[2]: *** [libs/plasma/CMakeFiles/plasma.dir/containment.o] Error 1
make[1]: *** [libs/plasma/CMakeFiles/plasma.dir/all] Error 2
make: *** [all] Error 2


hope you developers will fix it soon ;)
regards,
nihui
Comment 1 FiNeX 2008-05-12 11:30:53 UTC
Could you try with an updated revision?

Thanks.
Comment 2 nihui 2008-05-12 12:32:24 UTC
so, today I tried svn806757.
the former problem disappeared, but I get another two:

[nihui@MagicLinux plasma]$ make -j4
[  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/runnermanager.o
Building CXX object libs/plasma/CMakeFiles/plasma.dir/desktoptoolbox.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 unfinshed jobs....
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
Comment 3 FiNeX 2008-05-12 13:46:34 UTC
Actually there is a lot of work in progress. Things like this could happen.

Developers update source code frequently, sometimes the source code is not complete or correct. You have to be aware of this.
Comment 4 Dan Meltzer 2008-05-12 17:12:21 UTC
This is a bug in your GCC version. It will compile fine with gcc 4.2+ (and probably 3.3/3.4)

Going to leave this open as It may make sense to revert the change rather than forcing everyone to change GCC versions.
Comment 5 Marco Martin 2008-05-13 11:56:14 UTC
Marking as fixed, since the issue in the bug report is resolved by r806698 (Applet ctor is public again)

nihui: if the other problem you reported in #2 still persists maybe put it in a separate bug report
Comment 6 Lorenz Röhrl 2008-05-18 20:09:24 UTC
I'm having the same problem.
Using r809271, with gcc (GCC) 4.1.1 (Gentoo 4.1.1-r3)

This is a fresh checkout using qt from qt-copy.

I'im updating gcc now. So i cannot check if the problem is solved.