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
Created attachment 307889 [details] emerge --info
Created attachment 307891 [details] emerge -pqv
Created attachment 307893 [details] build log
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.
I have filed a review request[1] on a patch to fix this bug. [1] https://git.reviewboard.kde.org/r/104492/
Patch has now been marked "ship it" by upstream.
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.
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.