On amd64, openldap-2.2.26-r2 fails to compile with USE=kerberos. There is a bug in ebuild. The following chunk should have -fPIC added to compile flags: if useq kerberos ; then cd ${S}/contrib/slapd-modules/passwd/ && \ ${CC} -shared -I../../../include ${CFLAGS} \ -DHAVE_KRB5 -o pw-kerberos.so kerberos.c || \ die "failed to compile kerberos module" fi
*** Bug 93320 has been marked as a duplicate of this bug. ***
fixed in CVS.