Bug 210625 - compile error in kdebase-workspace libXi-1.2.99.4
Summary: compile error in kdebase-workspace libXi-1.2.99.4
Status: RESOLVED WORKSFORME
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_keyboard_layout (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-15 03:40 UTC by cheryl
Modified: 2010-05-18 04:12 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.