I've just installed new Gentoo, KDE-4.1 and Qt-4.4.2, KDE-3.5 and Qt-3.3.8-r4. I'm not able to install kde-misc/kkbswitch, it fails with undefined references to basic functions in Qt and KDE. I tried to run make manually in the build directory with addition of "-lqt-mt -lkdecore" to kkbswitch_LDADD in Makefile in src directory, but with no success. I don't know where the problem is. Logs attached. Reproducible: Always Steps to Reproduce:
Created attachment 169292 [details] build.log
Created attachment 169294 [details] environment
Created attachment 169296 [details] emerge --info
Actually I see very simillar errors during compilation as are shown in comment 4 in bug #237864 (kde-misc/krd).
I've just unmerged KDE-4.1.2 and the problem disappeared - I'm able to install kkbswitch. I guess the most probable reason for previous failure is that KDE-4.1.2 got installed into /usr and not into /usr/kde/<version> - some library mixture. If you need any assistance, feel free to ask. I can install the latest KDE again (I've returned back to KDE-3.5.10 - more stable and tools I use work here).
I wrote patch for kde-misc/kkbswitch-1.4.3 which allows it to compile with kde-4 (-kdeprifix) installed. The problem is in LDFLAGS lookup order when linking. Ebuild needs to be updated to kkbswitch-1.4.3-r1.
Created attachment 184783 [details, diff] kde-4_no_kdeprefix.patch This patch should be placed into $PORTDIR/kde-misc/kkbswitch/files It fix order of directories lookup while linking kkbswitch.
Created attachment 184784 [details] kkbswitch-1.4.3-r1.ebuild This is updated ebuild file, using patch attached before.
Created attachment 184786 [details] kkbswitch.tar.bz2 This is complete ebuild directory 'kkbswitch'. You should unpack it to $PORTDIR/kde-misc/ or $PORTDIR_OVERLAY/kde-misc/, and start using it by invocing emerge kkbswitch
Great :-) I'm now testing the newest KDE (4.2.65, just to see the dev status) with +kdeprefix (to prevent library problems). I will try the latest stable (4.2) with -kdeprefix afterwards, but I guess the updated ebuild will work for me too.
And the winner is... your attached patch WORKS FOR ME :-) I've tried it with @kdebase-4.2 package set with use flag "-kdeprefix" (and "-python" because of already installed PyKDE4-4.2.65 - that's another story). Compiles fine, installs fine. I've used the patch+ebuild, not the tar.bz2. My vote to get this into the main tree.
(In reply to comment #11) > And the winner is... your attached patch WORKS FOR ME :-) > > I've tried it with @kdebase-4.2 package set with use flag "-kdeprefix" (and > "-python" because of already installed PyKDE4-4.2.65 - that's another story). > Compiles fine, installs fine. I've used the patch+ebuild, not the tar.bz2. > > My vote to get this into the main tree. > Actually you didnt vote. Click on http://bugs.gentoo.org/votes.cgi?action=show_user&bug_id=243032#vote_243032
(In reply to comment #12) > Actually you didnt vote. Click on > http://bugs.gentoo.org/votes.cgi?action=show_user&bug_id=243032#vote_243032 There is some voting? :-) Ok, I've added also my real vote.
Fixed in main tree.