Bug 344755 - "kcolorscheme.h" includes <ksharedconfig.h> that leads to clashes with kdelibs
Summary: "kcolorscheme.h" includes <ksharedconfig.h> that leads to clashes with kdelibs
Status: RESOLVED FIXED
Alias: None
Product: frameworks-kconfigwidgets
Classification: Frameworks and Libraries
Component: general (other bugs)
Version First Reported In: unspecified
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: kdelibs bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-03-02 18:25 UTC by Eugene Shalygin
Modified: 2021-07-06 23:17 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eugene Shalygin 2015-03-02 18:25:46 UTC
"kcolorscheme.h" contains #include <ksharedconfig.h>. If kdelibs are installed in location such as /usr, and /usr/include is likely to be in include directories list for any application, and somewhere near the beginning of this list. In this case   kcolorscheme.h from KF5 includes ksharedconfig.h from kdelibs and compilation/linking fails. Replacing #include <ksharedconfig.h> with #include <KSharedConfig> fixes problem here. However, ksharedconfig.h from KF5 has the similar problem: #include <kconfig.h>. This can be replaced with #include "kconfig.h"
Comment 1 Justin Zobel 2021-03-09 05:53:56 UTC
Thank you for the bug report.

As this report hasn't seen any changes in 5 years or more, we ask if you can please confirm that the issue still persists.

If this bug is no longer persisting or relevant please change the status to resolved.
Comment 2 Ahmad Samir 2021-07-06 23:17:08 UTC
Closing as fixed (since there is no resolved:old state).