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

Bug 524942

Summary: [kde overlay] kde-plasma/kinfocenter[-X] fails to build
Product: Gentoo Linux Reporter: Sven Eden <sven.eden>
Component: [OLD] KDEAssignee: Gentoo KDE team <kde>
Status: RESOLVED TEST-REQUEST    
Severity: normal CC: mmk
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Build log kinfocenter with USE="-X"
plasma-workspace-5.1.1 build log

Description Sven Eden 2014-10-10 11:54:08 UTC
kde-base/plasma-workspace-9999 can not be emerged with USE="-X".

There are a lot of build errors, and even if I fix those, several parts MUST be linked against libX11.

Some of those can be fixed by changing some wrong config entries from
#define HAVE_X11 
to
#define HAVE_X11 0
but at least plasma-workspace-9999/ksmserver/screenlocker/ksldapp.cpp does not listen to it and wants QX11Info, X11/Xlib.h and xcb/xcb.h.

plasma-workspace-9999 emerges fine with USE="X"

This seems like the cmake stuff does the wrong thing. Or it is no longer possible to build plasma-workspace without X support.
Comment 1 Sven Eden 2014-10-10 12:20:36 UTC
Just found out that the same applies to
kde-base/kinfocenter-9999::kde
 - It is just not possible to be built without X support.
Comment 2 Michael Palimaka (kensington) gentoo-dev 2014-10-10 16:19:53 UTC
plasma-workspace is a known issue

Could you please attach a build log for kinfocenter? It should work ok
Comment 3 Sven Eden 2014-10-13 08:46:18 UTC
Created attachment 386586 [details]
Build log kinfocenter with USE="-X"

The errors of interest begin with:

--------
CMakeFiles/kcm_opengl.dir/opengl.cpp.o: In function `GetInfo_OpenGL(QTreeWidget*)':
opengl.cpp:(.text+0x1f23): undefined reference to `XOpenDisplay'
opengl.cpp:(.text+0x20fe): undefined reference to `XGetVisualInfo'
opengl.cpp:(.text+0x2136): undefined reference to `XCreateColormap'
opengl.cpp:(.text+0x2199): undefined reference to `XCreateWindow'
opengl.cpp:(.text+0x2347): undefined reference to `XDestroyWindow'
opengl.cpp:(.text+0x2499): undefined reference to `XDestroyWindow'
opengl.cpp:(.text+0x24a9): undefined reference to `XCloseDisplay'
opengl.cpp:(.text+0x2fd4): undefined reference to `XDestroyWindow'
collect2: error: ld returned 1 exit status
--------

So I'll try again with USE="-X -opengl" and see what happens...
Comment 4 Sven Eden 2014-10-13 08:52:37 UTC
Unfortunately, no. With USE="-X -opengl", the build fails with the same "undefined reference to..." errors.
Comment 5 Michael Mair-Keimberger (iamnr3) 2014-11-17 18:02:30 UTC
Created attachment 389586 [details]
plasma-workspace-5.1.1 build log

This also happens with plasma-workspace-5.1.1
I've attached my build.log in case it's still helpful.
Comment 7 Michael Palimaka (kensington) gentoo-dev 2015-05-28 19:52:54 UTC
X USE flag has since been removed in https://gitweb.gentoo.org/proj/kde.git/commit/?id=f7adec74b8e6c96db6adf3288965fab9faa0f68d

As for kinfocenter, this should have since been fixed upstream. Please reopen if the problem persists.