Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 243032 - kde-misc/kkbswitch-1.4.3 doesn't compile
Summary: kde-misc/kkbswitch-1.4.3 doesn't compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal with 1 vote (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2008-10-21 11:09 UTC by Oldrich Jedlicka
Modified: 2009-06-13 23:41 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,191.66 KB, text/plain)
2008-10-21 11:10 UTC, Oldrich Jedlicka
Details
environment (environment,162.52 KB, text/plain)
2008-10-21 11:10 UTC, Oldrich Jedlicka
Details
emerge --info (emerge-info.txt,4.91 KB, text/plain)
2008-10-21 11:11 UTC, Oldrich Jedlicka
Details
kde-4_no_kdeprefix.patch (kde-4_no_kdeprefix.patch,1.34 KB, patch)
2009-03-12 09:07 UTC, Anton S. Ustyuzhanin
Details | Diff
kkbswitch-1.4.3-r1.ebuild (kkbswitch-1.4.3-r1.ebuild,597 bytes, text/plain)
2009-03-12 09:08 UTC, Anton S. Ustyuzhanin
Details
kkbswitch.tar.bz2 (kkbswitch.tar.bz2,2.22 KB, application/octet-stream)
2009-03-12 09:11 UTC, Anton S. Ustyuzhanin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Oldrich Jedlicka 2008-10-21 11:09:19 UTC
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:
Comment 1 Oldrich Jedlicka 2008-10-21 11:10:13 UTC
Created attachment 169292 [details]
build.log
Comment 2 Oldrich Jedlicka 2008-10-21 11:10:46 UTC
Created attachment 169294 [details]
environment
Comment 3 Oldrich Jedlicka 2008-10-21 11:11:59 UTC
Created attachment 169296 [details]
emerge --info
Comment 4 Oldrich Jedlicka 2008-10-21 11:14:58 UTC
Actually I see very simillar errors during compilation as are shown in comment 4 in bug #237864 (kde-misc/krd).
Comment 5 Oldrich Jedlicka 2008-10-21 21:29:11 UTC
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).
Comment 6 Anton S. Ustyuzhanin 2009-03-12 09:05:41 UTC
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.
Comment 7 Anton S. Ustyuzhanin 2009-03-12 09:07:51 UTC
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.
Comment 8 Anton S. Ustyuzhanin 2009-03-12 09:08:46 UTC
Created attachment 184784 [details]
kkbswitch-1.4.3-r1.ebuild

This is updated ebuild file, using patch attached before.
Comment 9 Anton S. Ustyuzhanin 2009-03-12 09:11:18 UTC
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
Comment 10 Oldrich Jedlicka 2009-03-12 09:16:52 UTC
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.
Comment 11 Oldrich Jedlicka 2009-03-12 21:38:52 UTC
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.
Comment 12 Anton S. Ustyuzhanin 2009-03-15 04:08:53 UTC
(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
Comment 13 Oldrich Jedlicka 2009-03-15 06:30:19 UTC
(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.
Comment 14 Tomáš Chvátal (RETIRED) gentoo-dev 2009-06-13 23:41:25 UTC
Fixed in main tree.