Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 564028 - media-libs/phonon-gstreamer-4.8.2 fails with error: #error "You must build your code with position independent code if Qt was built with -reduce-relocations.
Summary: media-libs/phonon-gstreamer-4.8.2 fails with error: #error "You must build y...
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
: 569704 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-10-25 08:03 UTC by Justin Lecher (RETIRED)
Modified: 2015-12-25 16:21 UTC (History)
2 users (show)

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


Attachments
phonon-gstreamer-4.8.2:20151024-212939.log (phonon-gstreamer-4.8.2:20151024-212939.log,13.47 KB, text/plain)
2015-10-25 08:03 UTC, Justin Lecher (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Justin Lecher (RETIRED) gentoo-dev 2015-10-25 08:03:37 UTC
/usr/bin/gmake -f CMakeFiles/cmTC_c009c.dir/build.make CMakeFiles/cmTC_c009c.dir/build
gmake[1]: Entering directory '/var/tmp/portage/media-libs/phonon-gstreamer-4.8.2/work/phonon-backend-gstreamer-4.8.2-qt5/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_c009c.dir/check_qt_visibility.cpp.o
/usr/lib64/ccache/bin/x86_64-pc-linux-gnu-g++    -DNDEBUG -O2 -pipe -ftracer   -march=native -mtune=native -frecord-gcc-switches -fdiagnostics-color=auto -g -Wenum-compare  -Wnon-virtual-dtor -Wno-long-long -Wundef -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -Wformat-security -fno-exceptions -DQT_NO_EXCEPTIONS -fno-check-new -fno-common -Woverloaded-virtual -fvisibility=hidden  -fPIE -I/usr/include/qt5 -I/usr/include/qt5/QtCore -I/usr/lib64/qt5/mkspecs/linux-g++ -I/usr/include/qt5/QtWidgets -I/usr/include/qt5/QtGui    -o CMakeFiles/cmTC_c009c.dir/check_qt_visibility.cpp.o -c /var/tmp/portage/media-libs/phonon-gstreamer-4.8.2/work/phonon-backend-gstreamer-4.8.2-qt5/CMakeTmp/check_qt_visibility.cpp
In file included from /usr/include/qt5/QtCore/QtGlobal:1:0,
                 from /var/tmp/portage/media-libs/phonon-gstreamer-4.8.2/work/phonon-backend-gstreamer-4.8.2-qt5/CMakeTmp/check_qt_visibility.cpp:1:
/usr/include/qt5/QtCore/qglobal.h:1067:4: error: #error "You must build your code with position independent code if Qt was built with -reduce-relocations. " "Compile your code with -fPIC (-fPIE is not enough)."
 #  error "You must build your code with position independent code if Qt was built with -reduce-relocations. "\
    ^
CMakeFiles/cmTC_c009c.dir/build.make:65: recipe for target 'CMakeFiles/cmTC_c009c.dir/check_qt_visibility.cpp.o' failed
gmake[1]: *** [CMakeFiles/cmTC_c009c.dir/check_qt_visibility.cpp.o] Error 1
gmake[1]: Leaving directory '/var/tmp/portage/media-libs/phonon-gstreamer-4.8.2/work/phonon-backend-gstreamer-4.8.2-qt5/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_c009c/fast' failed
gmake: *** [cmTC_c009c/fast] Error 2

CMake Error at /usr/share/phonon4qt5/buildsystem/FindPhononInternal.cmake:416 (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):
  cmake/FindPhonon.cmake:23 (include)
  CMakeLists.txt:15 (find_package)


-- Configuring incomplete, errors occurred!
See also "/var/tmp/portage/media-libs/phonon-gstreamer-4.8.2/work/phonon-backend-gstreamer-4.8.2-qt5/CMakeFiles/CMakeOutput.log".
 * ERROR: media-libs/phonon-gstreamer-4.8.2::gentoo failed (configure phase):
 *   cmake failed
 *
Comment 1 Justin Lecher (RETIRED) gentoo-dev 2015-10-25 08:03:58 UTC
Created attachment 415408 [details]
phonon-gstreamer-4.8.2:20151024-212939.log

build.log
Comment 2 Michael Palimaka (kensington) gentoo-dev 2015-12-15 13:24:06 UTC
It works for me after media-libs/phonon was fixed in bug #555866.
Comment 3 Michael Palimaka (kensington) gentoo-dev 2015-12-25 16:21:50 UTC
*** Bug 569704 has been marked as a duplicate of this bug. ***