Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 561426 - kde-apps/konsole-4.14.3-r1 fails to build due to -fvisibility=hidden
Summary: kde-apps/konsole-4.14.3-r1 fails to build due to -fvisibility=hidden
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: 563926
Blocks:
  Show dependency tree
 
Reported: 2015-09-25 05:34 UTC by Heiko Schäfer
Modified: 2016-05-18 09:12 UTC (History)
1 user (show)

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


Attachments
Output of emerge --info '=kde-apps/konsole-4.14.3-r1::gentoo' (konsole-4.14.3-r1.info,7.34 KB, text/plain)
2015-09-25 05:34 UTC, Heiko Schäfer
Details
build.log (build.log,259.24 KB, text/plain)
2015-09-27 13:30 UTC, Heiko Schäfer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Heiko Schäfer 2015-09-25 05:34:03 UTC
Created attachment 412840 [details]
Output of emerge --info '=kde-apps/konsole-4.14.3-r1::gentoo'

Due to -fvisibility=hidden konsole fails to build. 

A glance at the sources reveals, that the symbols which cause "undefined references" have no visibility attributes, thus taking the visibility of -fvisibility=hidden and therefore fail to link.

Just appending -fvisibility=default to CXXFLAGS works around this issue.

A cleaner solution would be to add KDE_EXPORT to the symbols in a patch.
Comment 1 Michael Palimaka (kensington) gentoo-dev 2015-09-25 14:55:18 UTC
Can you reproduce with a newer version, such as 15.08.1? 4.x is no longer maintained upstream.
Comment 2 Heiko Schäfer 2015-09-25 15:03:21 UTC
(In reply to Michael Palimaka (kensington) from comment #1)
> Can you reproduce with a newer version, such as 15.08.1? 4.x is no longer
> maintained upstream.

This version depends on the kde5 libs, which I yet don't want to use.
Comment 3 Maciej Mrozowski gentoo-dev 2015-09-25 20:35:22 UTC
Unable to reproduce the issue with konsole-4.14.3-r1.
What gcc version do you have?
Or rather, which one (4.8.5::gentoo or 4.9.3::gentoo) do you have enabled as default.
Comment 4 Maciej Mrozowski gentoo-dev 2015-09-25 20:35:47 UTC
Build log would be in order.
Comment 5 Heiko Schäfer 2015-09-27 13:30:57 UTC
Created attachment 413066 [details]
build.log

As you can see, I use gcc 4.9.3

I guess the error origins from CMake which seems to set -fvisibility=hidden.
At least I worked around the issue by modifying the CXXFLAGS with cmake-gui.
Comment 6 Michael Palimaka (kensington) gentoo-dev 2015-10-08 15:31:01 UTC
I'm having trouble reproducing too (-fvisibility=hidden appears in my log and appears to work OK).
Comment 7 Heiko Schäfer 2015-10-08 15:42:28 UTC
(In reply to Michael Palimaka (kensington) from comment #6)
> I'm having trouble reproducing too (-fvisibility=hidden appears in my log
> and appears to work OK).

Hm, maybe this helps:

dev-util/cmake: 3.2.2
kde-base/kdelibs: 4.14.12

BTW: I have problems with a lot of KDE packages, all complaining about invisible symbols.

It may be a problem with kde-base/kdelibs, which itself compiles fine, but maybe installs faulty cmake modules?
Comment 8 Heiko Schäfer 2015-10-23 14:47:26 UTC
*RANT ALARM*

finally I've been so tired of virtually EVERY KDE package to fail due to

undefined reference to XXX


I reverted all package.masks to simply

kde-apps/*:5
kde-plasma/*
kde-frameworks/*

it just goes on... undefined reference to XXX what the hell is so wrong with that KDE packages in Gentoo????

I use mainly the console (ssh-session) and just would like to have a few KDE progs, but meanwhile it is just pure frustrating!

How can it be only on my system?
Comment 9 Michael Palimaka (kensington) gentoo-dev 2015-10-23 14:54:42 UTC
I don't know what to suggest. I have no idea what could be causing this.
Comment 10 Heiko Schäfer 2015-10-23 14:58:32 UTC
(In reply to Michael Palimaka (kensington) from comment #9)
> I don't know what to suggest. I have no idea what could be causing this.

It was just a rant because of my rage. I'll unmerge now all kde-base-packages and all not explicitely installed kde-apps.

Let's see if this cause a clean emerge.

But I suspect the KDE cmake modules  as cause of the problems.
Comment 11 Heiko Schäfer 2015-10-23 15:32:35 UTC
(In reply to Heiko Schäfer from comment #10)
> (In reply to Michael Palimaka (kensington) from comment #9)
> > I don't know what to suggest. I have no idea what could be causing this.
> 
> It was just a rant because of my rage. I'll unmerge now all
> kde-base-packages and all not explicitely installed kde-apps.
> 
> Let's see if this cause a clean emerge.
> 
> But I suspect the KDE cmake modules  as cause of the problems.

No chance. KDE is entirely unusable now :-(
Comment 12 Heiko Schäfer 2015-10-23 17:34:37 UTC
Downgrading to cmake 2.8.12.2 didn't solve it too.

Sorry, but that is a real drawback for Gentoo.
Comment 13 Johannes Huber (RETIRED) gentoo-dev 2016-05-04 20:16:24 UTC
> PORTAGE_TMPDIR="/media/nfstmp"

Just a shoot in the dark: You could try it with a local tmp dir.
Comment 14 Johannes Huber (RETIRED) gentoo-dev 2016-05-18 09:12:27 UTC
(In reply to Johannes Huber from comment #13)
> > PORTAGE_TMPDIR="/media/nfstmp"
> 
> Just a shoot in the dark: You could try it with a local tmp dir.