trouble kde-workspace

alxfar at libero.it alxfar at libero.it
Thu Dec 3 18:44:58 CET 2009


Hi all
I am a BLFS user from many years. My system is working with Kernel 
2.6.28.2
upgdraded to 2.6.30.9, GCC-4.3.3, XOrg 7.4 and KDE-3.5.10. Last week
i 
take a look at new kde and i have installed qt-4.5.3 with kde-4.3.3: well, i

have found an trouble with kde-workspace.

The make output is stopped at about 
80% with:
CMakeFiles/kcm_keyboard_layout.dir/x11helper.o: In function 
`X11Helper::registerForNewDeviceEvent(_XDisplay*)':
x11helper.cpp:(.text+0xbb): 
undefined reference to `_XiGetDevicePresenceNotifyEvent'
x11helper.cpp:(.
text+0xef): undefined reference to `XSelectExtensionEvent'

CMakeFiles/kcm_keyboard_layout.dir/x11helper.o: In function `X11Helper::
isNewDeviceEvent(_XEvent*)':
x11helper.cpp:(.text+0x94c): undefined reference 
to `XListInputDevices'
x11helper.cpp:(.text+0xc99): undefined reference to 
`XFreeDeviceList'
collect2: ld returned 1 exit status
make[2]: *** 
[lib/kcm_keyboard_layout.so] Error 1
make[1]: *** 
[kcontrol/kxkb/CMakeFiles/kcm_keyboard_layout.dir/all] Error 2
make: *** [all] 
Error 2

The four undefined reference are exported by XOrg LibXi and the output 
of
strings command is:
strings -f /usr/X11R6/lib/libX* | grep 
XiGetDevicePresenceNotifyEvent
/usr/X11R6/lib/libXi.a: 
_XiGetDevicePresenceNotifyEvent
/usr/X11R6/lib/libXi.a: 
_XiGetDevicePresenceNotifyEvent
/usr/X11R6/lib/libXi.a: 
_XiGetDevicePresenceNotifyEvent
/usr/X11R6/lib/libXi.a: 
_XiGetDevicePresenceNotifyEvent
/usr/X11R6/lib/libXi.so: 
_XiGetDevicePresenceNotifyEvent
/usr/X11R6/lib/libXi.so.6: 
_XiGetDevicePresenceNotifyEvent
/usr/X11R6/lib/libXi.so.6.0.0: 
_XiGetDevicePresenceNotifyEvent
same good result for XSelectExtensionEvent, 
XListInputDevices and
XFreeDeviceList.

I am newby on KDE4 but I have think 
that kde-workspace don't link LibXi and
looking over kde-workspace's directory 
I have found a file named link.txt (the
full path is ..
/build/kcontrol/kxkb/kcm_keyboard_layout.dir/link.txt). Well,
LibXi is not 
present... I have simply write at the end of the file
/usr/X11R6/lib/libXi.so 
and the compilation work fine. For prevent another
error I have do the same on 
../build/kcontrol/kxkb/kdeinit_kxkb.dir/link.txt

Now, this is not a clean 
solution... do you know a better mode (like modify
compiler parameter)?

Thanks 
in advance.

Bye and sorry for my english... 



More information about the Kde-buildsystem mailing list