Bug 259831 - kdecore/date/kcalendarera.cpp fails to build due to problem with KLocale
Summary: kdecore/date/kcalendarera.cpp fails to build due to problem with KLocale
Status: RESOLVED WORKSFORME
Alias: None
Product: kdelibs
Classification: Unmaintained
Component: kdecore (show other bugs)
Version: SVN
Platform: Compiled Sources Other
: NOR normal
Target Milestone: ---
Assignee: John Layt
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-14 13:23 UTC by Alex Hornung
Modified: 2023-01-13 05:14 UTC (History)
2 users (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 Alex Hornung 2010-12-14 13:23:16 UTC
Version:           SVN (using Devel) 
OS:                other

The actual issue is in kdecore/date/kcalendarera_p.h:

In file included from /root/Dashboards/kdelibs/src dir/kdecore/date/kcalendarera.cpp:20:
/root/Dashboards/kdelibs/src dir/kdecore/date/kcalendarera_p.h:54: error: 'DefaultComponentFormat' is not a member of 'KLocale'

The line in question reads:
QString name(KLocale::DateTimeComponentFormat format = KLocale::DefaultComponentFormat) const;

But instead of KLocale::DefaultComponentFormat it should be KLocale::DateTimeComponentFormat::DefaultComponentFormat

Regards,
Alex



Reproducible: Always
Comment 1 John Layt 2010-12-14 15:28:25 UTC
What platform/compiler are you using (I'm guessing BSD from your email?), as
I've just done a completely clean rebuild using Linux/GCC and had no problems. 
The same style KLocale::EnumValue construct is used everywhere throughout KDE
(including for this enum value as well) so there's likely to be a deeper reason
than that?  About the only difference I can see is DefaultComponentFormat has a
value of -1?
Comment 2 Alex Hornung 2010-12-14 15:31:24 UTC
I'm using gcc4.4 on DragonFly BSD. I haven't done a build since the end of october, but there was no problem back then.

From looking at the code I simply don't see where there is a DefaultComponenetFormat in the KLocale namespace, only place where I see it is KLocale::DateTimeComponentFormat (see klocale*.h).
Comment 3 John Layt 2010-12-14 16:24:21 UTC
It's defined in klocale.h, see http://lxr.kde.org/source/KDE/kdelibs/kdecore/localization/klocale.h#901 and was introduced in http://websvn.kde.org/?view=revision&revision=1193650 on Nov 6.  The enum is defined in exactly the same way as all other KLocale enums are defined, and we use the KLocale namespace when referring to all them, so I can't see why it would be requiring the extra namespace for just this enum and just this use of the value when several other classes like KLocalizedDate use the same enum and value with it appears no issues on your build?
Comment 4 Alex Hornung 2010-12-14 22:15:44 UTC
Actually this seems to have happened due to some older files from a previous bulk build being installed and used.

I use the following C/CXXFLAGS:

export CFLAGS='-I/usr/pkg/inlcude -I/opt/kde4/include -I/usr/local/include -march=i486'
export CXXFLAGS='-I/usr/pkg/include -I/opt/kde4/include -I/usr/local/include -march=i486'


It was seemingly using the klocale.h in /opt/kde4/include instead of its build local klocale.h.

I wonder whether this is an actual bug, or just "this is how things are".
Comment 5 Andrew Crouthamel 2018-11-05 03:12:57 UTC
Dear Bug Submitter,

This bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version? I am setting the status to NEEDSINFO pending your response, please change the Status back to REPORTED when you respond.

Thank you for helping us make KDE software even better for everyone!
Comment 6 Andrew Crouthamel 2018-11-17 04:56:45 UTC
Dear Bug Submitter,

This is a reminder that this bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version? This bug will be moved back to REPORTED Status for manual review later, which may take a while. If you are able to, please lend us a hand.

Thank you for helping us make KDE software even better for everyone!
Comment 7 Justin Zobel 2022-12-14 03:09:15 UTC
Thank you for reporting this issue in KDE software. As it has been a while since this issue was reported, can we please ask you to see if you can reproduce the issue with a recent software version?

If you can reproduce the issue, please change the status to "REPORTED" when replying. Thank you!
Comment 8 Bug Janitor Service 2022-12-29 05:23:37 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 9 Bug Janitor Service 2023-01-13 05:14:32 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!