dev-libs/redland-1.0.10-r2 fails to build with the error message /usr/lib/gcc/x86_64-pc-linux-gnu/4.5.2/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lldap /usr/lib/gcc/x86_64-pc-linux-gnu/4.5.2/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -llber which is strange since 'redland' does not depend on 'openldap' according to its .ebuild file. If it does depend on 'openldap', maybe it is worth stating this dependency in the 'redland-1.0.10-2.ebuild' file? Reproducible: Always Steps to Reproduce: 1. uninstall 'net-nds/openldap' 2. try reinstalling 'dev-libs/redland-1.0.10-r2' Actual Results: Fails to build because of the '/usr/lib64/libldap-2.4.so.2' and '/usr/lib64/liblber-2.4.so.2' libraries missing. Expected Results: Should compile without those libraries or depend on 'openldap' explicitly.
Try using `lafilefixer --justfixit` and `revdep-rebuild`.
(In reply to comment #1) > Try using `lafilefixer --justfixit` and `revdep-rebuild`. Yes, I tried that because I've seen this poing in the Bug 367991 discussion, but it didn't help.
revdep-rebuild, emerge --resume --skipfirst, lafilefixer --justfixit, ... redland doesn't use ldap/llber or have any reference to it itself, so this is caused by combination of .la file pollution, overlinking and wrong ordering of packages in revdep-rebuild (see bug 241198)