Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 563926 - kde-base/kdelibs-4.14.8 - FindKDE4Internal.cmake hides too many symbols
Summary: kde-base/kdelibs-4.14.8 - FindKDE4Internal.cmake hides too many symbols
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 561426
  Show dependency tree
 
Reported: 2015-10-24 07:09 UTC by Heiko Schäfer
Modified: 2016-05-18 09:12 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Heiko Schäfer 2015-10-24 07:09:16 UTC
I use gcc 4.9.3.

In the file /usr/share/apps/cmake/modules/FindKDE4Internal.cmake the test on visisibility adds a CXXFLAG=-fvisibility=hidden.
This in turn hides to many symbols causing a quite large amount of KDE4 based packages to fail with symbol errors.

I haven't the time and mood to dig too much into the KDE sources, but changing

check_cxx_compiler_flag(-fvisibility=hidden __KDE_HAVE_GCC_VISIBILITY)
set( __KDE_HAVE_GCC_VISIBILITY ${__KDE_HAVE_GCC_VISIBILITY} CACHE BOOL "GCC support for hidden visibility")

to

#check_cxx_compiler_flag(-fvisibility=hidden __KDE_HAVE_GCC_VISIBILITY)
set( __KDE_HAVE_GCC_VISIBILITY FALSE CACHE BOOL "GCC support for hidden visibility")

is a workaround at the expense of larger binaries and surely not suitablke for KDE developers


Reproducible: Sometimes
Comment 1 Heiko Schäfer 2015-10-24 13:00:59 UTC
My workaround is far from perfect:

https://bugs.kde.org/show_bug.cgi?id=313763

I now encounter this bug with lightdm-kde (using classic theme)

I would be VERY happy to have a working KDE4 again, at least so far I can use 

* konsole
* kdevelop
* lightdm-kde

I hardly can believe I'm the only one who has so much problems building KDE with -fvisibility=hidden

Note: I use Qt 4.8.7
Comment 2 Johannes Huber (RETIRED) gentoo-dev 2016-04-13 12:10:10 UTC
What about current stable version =kde-base/kdelibs-4.14.16?
Comment 3 Johannes Huber (RETIRED) gentoo-dev 2016-05-18 09:12:50 UTC
(In reply to Johannes Huber from comment #2)
> What about current stable version =kde-base/kdelibs-4.14.16?