Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 410879

Summary: kde-base/kdm-4.8.2 and kdm-4.8.1 fail to build with USE="kerberos"
Product: Gentoo Linux Reporter: Jack Hill <jackhill>
Component: [OLD] KDEAssignee: Gentoo KDE team <kde>
Status: RESOLVED FIXED    
Severity: normal CC: jackhill
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 372079    
Attachments: emerge --info
emerge -pqv
build log
kdm-4.8.2-gold.patch

Description Jack Hill 2012-04-05 12:58:51 UTC
Building kde-base/kdm-4.8.1 or 4.8.2 with the kerberos use flag set results in a failed build with the error: /usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/../../../../x86_64-pc-linux-gnu/bin/ld: CMakeFiles/kdm.dir/krb5auth.o: in function krb5Init:krb5auth.c(.text+0x3fc): error: undefined reference to 'error_message'

I tried building against app-crypt/mit-krb5-1.9.2-rt and 1.10.1-r1

Reproducible: Always
Comment 1 Jack Hill 2012-04-05 13:00:08 UTC
Created attachment 307889 [details]
emerge --info
Comment 2 Jack Hill 2012-04-05 13:01:02 UTC
Created attachment 307891 [details]
emerge -pqv
Comment 3 Jack Hill 2012-04-05 13:01:43 UTC
Created attachment 307893 [details]
build log
Comment 4 Michael Palimaka (kensington) gentoo-dev 2012-04-05 13:05:24 UTC
Looks like underlinking - I was able to compile successfully after manually adding -lcom_err to target_link_libraries( kdm ), and mit-krb5 depends on e2fsprogs-libs.
Comment 5 Michael Palimaka (kensington) gentoo-dev 2012-04-05 15:39:02 UTC
I have filed a review request[1] on a patch to fix this bug.

[1] https://git.reviewboard.kde.org/r/104492/
Comment 6 Michael Palimaka (kensington) gentoo-dev 2012-04-07 17:30:03 UTC
Patch has now been marked "ship it" by upstream.
Comment 7 Michael Palimaka (kensington) gentoo-dev 2012-04-10 14:12:08 UTC
Created attachment 308399 [details, diff]
kdm-4.8.2-gold.patch

Patch has now been merged in upstream git, thanks to tampakrap.

Also attached, in case KDE team wants to include it in the tree.
Comment 8 Johannes Huber (RETIRED) gentoo-dev 2012-04-12 08:03:01 UTC
Thank you all.

+  12 Apr 2012; Johannes Huber <johu@gentoo.org> +files/kdm-4.8.2-gold.patch,
+  kdm-4.8.1.ebuild, kdm-4.8.2.ebuild:
+  Add patch to build with gold linker and kerberos use flag by Michael
+  (kensington) <gentoo@scribeofthenile.com>. Fixes bug #410879.