Bug 344755

Summary: "kcolorscheme.h" includes <ksharedconfig.h> that leads to clashes with kdelibs
Product: [Frameworks and Libraries] frameworks-kconfigwidgets Reporter: Eugene Shalygin <eugene.shalygin+bugzilla.kde>
Component: generalAssignee: kdelibs bugs <kdelibs-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: a.samirh78
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

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).