FS#33678 - [qt] Compiled without -fvisibility=hidden which makes problems to kde apps

Attached to Project: Arch Linux
Opened by Filip Brcic (brcha) - Saturday, 02 February 2013, 17:15 GMT
Last edited by Dave Reisner (falconindy) - Saturday, 02 February 2013, 22:42 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description: Qt was compiled without -fvisibility=hidden, apparently, and that causes kdelibs-based packages to fail compiling.


Additional info:

Here's the output from building kdevelop-valgrind-git:

CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
QT_QT_INCLUDE_DIR
used as include directory in directory /home/brcha/tmp/yaourt-tmp-brcha/aur-kdevelop-valgrind-git/src/kdev-valgrind-build/CMakeFiles/CMakeTmp

CMake Error: Internal CMake error, TryCompile configure of cmake failed

CMake Error at /usr/share/apps/cmake/modules/FindKDE4Internal.cmake:1294 (message):
Qt compiled without support for -fvisibility=hidden. This will break
plugins and linking of some applications. Please fix your Qt installation
(try passing --reduce-exports to configure).
Call Stack (most recent call first):
/usr/share/cmake-2.8/Modules/FindKDE4.cmake:95 (find_package)
CMakeLists.txt:5 (find_package)


-- Configuring incomplete, errors occurred!

Steps to reproduce:
I got this message from trying to recompile kdevelop-valgrind-git and kdeplasma-applets-lionmail-git. I'm guessing this will apply to all packages that use kdelibs, since the error comes from the KDE cmake modules, not the packages themselves. Last update of those git packages was on 31st of january, before the last qt update, so it is safe to say the qt update created this error. I don't have the pkgbuild from qt-4.8.4-1, so I cannot check what was changed, but perhaps adding -reduce-exports might improve things. I'll test it in local build and report if it helps (possibly not until tomorrow, since building qt usually takes a few hours).
This task depends upon

Closed by  Dave Reisner (falconindy)
Saturday, 02 February 2013, 22:42 GMT
Reason for closing:  Not a bug
Comment by Andrea Scarpino (BaSh) - Saturday, 02 February 2013, 17:33 GMT
This sounds impossible to me, and in fact I just built lionmail.

So, "Please fix your Qt installation".
Comment by Filip Brcic (brcha) - Saturday, 02 February 2013, 22:21 GMT
It seams it was a ccache problem (or something else). After clearing ccache I was able to compile both of the packages correctly. Weird.

Loading...