Bug 210625

Summary: compile error in kdebase-workspace libXi-1.2.99.4
Product: [Applications] systemsettings Reporter: cheryl
Component: kcm_keyboard_layoutAssignee: Unassigned bugs mailing-list <unassigned-bugs>
Status: RESOLVED WORKSFORME    
Severity: normal CC: arysin, cheryl, rakuco
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:

Description cheryl 2009-10-15 03:40:19 UTC
Version:           svn (using Devel)
Compiler:          gcc (GCC) 4.3.5 20091012 
OS:                Linux
Installed from:    Compiled sources

hi, 

compilation error in kdebase/workspace, svn as of 10/14/09.  Compilation fails 
with libXi version 1.2.99.4

Linking CXX shared module ../../../lib/kcm_keyboard_layout.so
CMakeFiles/kcm_keyboard_layout.dir/x11helper.o: In function `X11Helper::registerForNewDeviceEvent(_XDisplay*)':
kdebase-101409-svn/workspace/kcontrol/kxkb/x11helper.cpp:413: undefined reference to `_XiGetDevicePresenceNotifyEvent'
kdebase-101409-svn/workspace/kcontrol/kxkb/x11helper.cpp:414: undefined reference to `XSelectExtensionEvent'
CMakeFiles/kcm_keyboard_layout.dir/x11helper.o: In function `X11Helper::isNewDeviceEvent(_XEvent*)':
kdebase-101409-svn/workspace/kcontrol/kxkb/x11helper.cpp:388: undefined reference to `XListInputDevices'
kdebase-101409-svn/workspace/kcontrol/kxkb/x11helper.cpp:399: undefined reference to `XFreeDeviceList'
collect2: ld returned 1 exit status
make[2]: *** [lib/kcm_keyboard_layout.so] Error 1
make[1]: *** [workspace/kcontrol/kxkb/CMakeFiles/kcm_keyboard_layout.dir/all] Error 2
make: *** [all] Error 2

looking through the Xinput.h produces this

grep "DevicePresence(" -A 5 /usr/X11R6/include/X11/extensions/XInput.h
#define DevicePresence(dpy, type, _class)                       \
    {                                                           \
        type = _XiGetDevicePresenceNotifyEvent(dpy);            \
        _class =  (0x10000 | _devicePresence);                  \
    }
Comment 1 cheryl 2009-10-15 16:47:52 UTC
addendum:  the same thing happens when compiling 4.3.2 stable kdebase.
Comment 2 Raphael Kubo da Costa 2010-02-02 13:43:05 UTC
Can you please confirm if this is still valid?
Comment 3 Andriy Rysin 2010-05-12 03:18:50 UTC
Is it still a problem with 4.4 or trunk?
Comment 4 Andriy Rysin 2010-05-18 04:12:33 UTC
Can't reproduce it with 4.4 or trunk.