Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 585100

Summary: =kde-plasma/kinfocenter-5.5.5[opengl,-X] fails to build
Product: Gentoo Linux Reporter: Petr Pisar <petr.pisar>
Component: [OLD] KDEAssignee: Gentoo KDE team <kde>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Petr Pisar 2016-06-05 11:53:18 UTC
kde-plasma/kinfocenter-5.5.5 defaults to USE=opengl without X flag. This combination fails to build on linking kcm_opengl.so:

 * Package:    kde-plasma/kinfocenter-5.5.5
 * Repository: gentoo
 * Maintainer: kde@gentoo.org
 * USE:        abi_x86_64 amd64 elibc_glibc kernel_linux opengl pci userland_GNU
 * FEATURES:   preserve-libs sandbox userpriv usersandbox
[...]
[ 88%] Linking CXX shared module kcm_opengl.so
cd /var/tmp/portage/kde-plasma/kinfocenter-5.5.5/work/kinfocenter-5.5.5_build/Modules/opengl && /usr/bin/cmake -E cmake_link_script CMakeFiles/kcm_opengl.dir/link.txt --verbose=1
/usr/bin/x86_64-pc-linux-gnu-g++  -fPIC -march=nocona -O2 -pipe  -std=c++0x -fno-exceptions -Wall -Wextra -Wcast-align -Wchar-subscripts -Wformat-security -Wno-long-long -Wpointer-arith -Wundef -Wnon-virtual-d
tor -Woverloaded-virtual -Werror=return-type -Wl,--no-undefined -Wl,--fatal-warnings -Wl,--enable-new-dtags  -Wl,-O1 -Wl,--as-needed -shared -Wl,-soname,kcm_opengl.so -o kcm_opengl.so CMakeFiles/kcm_opengl.dir
/opengl.cpp.o CMakeFiles/kcm_opengl.dir/kcm_opengl_automoc.cpp.o /usr/lib64/libKF5KCMUtils.so.5.21.0 -ldl -lGL -lGLU /usr/lib64/libKF5ConfigWidgets.so.5.21.0 /usr/lib64/libKF5Codecs.so.5.21.0 /usr/lib64/libKF5
Auth.so.5.21.0 /usr/lib64/libKF5ConfigGui.so.5.21.0 /usr/lib64/libKF5Service.so.5.21.0 /usr/l
ib64/libQt5Xml.so.5.5.1 /usr/lib64/libKF5WidgetsAddons.so.5.21.0 /usr/lib64/libQt5Widgets.so.5.5.1 /usr/lib64/libQt5Gui.so.5.5.1 /usr/lib64/libKF5I18n.so.5.21.0 /usr/lib64/libKF5ConfigCore.so.5.21.0 /usr/lib64/libKF5CoreAddons.so.5.21.0 /usr/lib64/libQt5Core.so.5.5.1 
CMakeFiles/kcm_opengl.dir/opengl.cpp.o: In function `GetInfo_OpenGL(QTreeWidget*)':
opengl.cpp:(.text+0x3422): undefined reference to `XOpenDisplay'
opengl.cpp:(.text+0x355c): undefined reference to `XFree'
opengl.cpp:(.text+0x366f): undefined reference to `XCreateColormap'
opengl.cpp:(.text+0x36cd): undefined reference to `XCreateWindow'
opengl.cpp:(.text+0x3e02): undefined reference to `XDestroyWindow'
opengl.cpp:(.text+0x3e3e): undefined reference to `XCloseDisplay'
opengl.cpp:(.text+0x4297): undefined reference to `XDestroyWindow'
collect2: error: ld returned 1 exit status
Modules/opengl/CMakeFiles/kcm_opengl.dir/build.make:127: recipe for target 'Modules/opengl/kcm_opengl.so' failed

See <https://forums.gentoo.org/viewtopic-p-7892228.html> for the same issue.

I think the ebuild should enable X, if opengl is requested. (I have no idea about wayland).
Comment 1 Michael Palimaka (kensington) gentoo-dev 2016-06-05 18:40:58 UTC
The X USE flag is dropped from 5.6.x because of this.
Comment 2 Johannes Huber (RETIRED) gentoo-dev 2016-06-06 07:20:04 UTC

*** This bug has been marked as a duplicate of bug 580472 ***