Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Desktop Environments
  • Search

systemsettings 4.2.0 error when linking [SOLVED]

Problems with GUI applications? Questions about X, KDE, Gnome, Fluxbox, etc.? Come on in. NOTE: For multimedia, go up one forum
Post Reply
Advanced search
6 posts • Page 1 of 1
Author
Message
MrZammler
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 128
Joined: Tue Jun 24, 2003 7:12 pm
Location: The Island of Crete

systemsettings 4.2.0 error when linking [SOLVED]

  • Quote

Post by MrZammler » Tue Feb 03, 2009 7:22 am

Hi,

I'm trying to emerge systemsettings 4.2.0, but it fails every time:

Code: Select all

[ 26%] Building CXX object kcontrol/kxkb/CMakeFiles/kcm_keyboard_layout.dir/x11helper.o
[ 27%] Building CXX object kcontrol/kxkb/CMakeFiles/kdeinit_kxkb.dir/layoutmap.o
[ 27%] Building CXX object kcontrol/kxkb/CMakeFiles/kcm_keyboard_layout.dir/pixmap.o
[ 27%] Building CXX object kcontrol/kxkb/CMakeFiles/kdeinit_kxkb.dir/kxkbapp.o
[ 27%] Building CXX object kcontrol/kxkb/CMakeFiles/kcm_keyboard_layout.dir/xklavier_adaptor.o
[ 27%] Building CXX object kcontrol/kxkb/CMakeFiles/kdeinit_kxkb.dir/kxkbwidget.o
Linking CXX shared module ../../lib/kcm_keyboard_layout.so
CMakeFiles/kcm_keyboard_layout.dir/x11helper.o: In function `X11Helper::registerForNewDeviceEvent(_XDisplay*)':
x11helper.cpp:(.text+0xf2): undefined reference to `_XiGetDevicePresenceNotifyEvent(_XDisplay*)'
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[1]: *** Waiting for unfinished jobs....
[ 28%] Building CXX object kcontrol/kxkb/CMakeFiles/kdeinit_kxkb.dir/kxkb_adaptor.o
[ 28%] Building CXX object kcontrol/kxkb/CMakeFiles/kdeinit_kxkb.dir/kxkb_part.o
/var/tmp/portage/kde-base/systemsettings-4.2.0/work/systemsettings-4.2.0/kcontrol/kxkb/kxkb_part.cpp:38: warning: unused parameter 'args'
/var/tmp/portage/kde-base/systemsettings-4.2.0/work/systemsettings-4.2.0/kcontrol/kxkb/kxkb_part.cpp:38: warning: unused parameter 'args'
Linking CXX shared library ../../lib/libkdeinit4_kxkb.so
CMakeFiles/kdeinit_kxkb.dir/x11helper.o: In function `X11Helper::registerForNewDeviceEvent(_XDisplay*)':
x11helper.cpp:(.text+0xf2): undefined reference to `_XiGetDevicePresenceNotifyEvent(_XDisplay*)'
collect2: ld returned 1 exit status
make[2]: *** [lib/libkdeinit4_kxkb.so] Error 1
make[1]: *** [kcontrol/kxkb/CMakeFiles/kdeinit_kxkb.dir/all] Error 2
make: *** [all] Error 2
It seems it can't find "_XiGetDevicePresenceNotifyEvent". This should be exported and found in libXi: nm /usr/lib/libXi.a | grep XiGetDevicePresenceNotifyEvent which I updated to 1.1.3 (latest stable).

Any ideas? I'm just a couple of packages away from 4.2! :-)
Last edited by MrZammler on Wed Feb 04, 2009 7:14 am, edited 1 time in total.
Top
MrZammler
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 128
Joined: Tue Jun 24, 2003 7:12 pm
Location: The Island of Crete

  • Quote

Post by MrZammler » Tue Feb 03, 2009 9:30 am

I've updated libXext libXft libXau libXdmcp and libXpm, libxkbfile to latest stable, still no go :(
Top
MrZammler
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 128
Joined: Tue Jun 24, 2003 7:12 pm
Location: The Island of Crete

  • Quote

Post by MrZammler » Tue Feb 03, 2009 2:47 pm

It seems it's not a kde problem, but a libXi + gcc one.

This test code will not link with gcc 3.x:

Code: Select all

#include <X11/extensions/XInput.h>

extern "C" {
            extern int _XiGetDevicePresenceNotifyEvent(_XDisplay *);
}



int main()
{
        int xitype;
        XEventClass xiclass;
        Display* display;

        DevicePresence(display, xitype, xiclass);


        return 0;
}
(the above is what x11helper.cpp contains)

But, will link with gcc 4.x:

gcc -o test test.c -lXi

So, in a nutshell, gcc 4.x is "required" for KDE 4? Off to start an emerge world...
Top
MrZammler
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 128
Joined: Tue Jun 24, 2003 7:12 pm
Location: The Island of Crete

  • Quote

Post by MrZammler » Wed Feb 04, 2009 7:13 am

Compiles fine with gcc 4.x
Top
quaff
n00b
n00b
Posts: 8
Joined: Fri Sep 23, 2005 12:06 pm

  • Quote

Post by quaff » Wed Feb 04, 2009 6:36 pm

actually.. 4.1.*
i had an earlier version of gcc 4 with the same compile problem until i updated gcc to 4.1.2 and recompiled libXi.
Top
ema
Guru
Guru
User avatar
Posts: 380
Joined: Wed Aug 27, 2003 10:10 am
Contact:
Contact ema
Website

  • Quote

Post by ema » Mon Feb 09, 2009 2:44 pm

same problem here; my gcc is already at 4.1.2, recompiled libXi and libXext libXft libXau libXdmcp libXpm libxkbfile. No success...

any hint?
D Per fare il SysAdmin e' necessario conoscere Unix/Linux e disprezzare Windows?
R Se ti interessa lavorare in ambiente Unix/Linux dovrai averne un minimo di conoscenza, quando acquisisci tale conoscenza la seconda parte arriva da sola.
Top
Post Reply

6 posts • Page 1 of 1

Return to “Desktop Environments”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic