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

Bug 374225

Summary: dev-libs/redland-1.0.10-r2 ld: cannot find -lldap and -llber
Product: Gentoo Linux Reporter: Vladimir <v_2e>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED INVALID    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Vladimir 2011-07-06 13:04:06 UTC
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.
Comment 1 Samuli Suominen (RETIRED) gentoo-dev 2011-07-06 13:08:17 UTC
Try using `lafilefixer --justfixit` and `revdep-rebuild`.
Comment 2 Vladimir 2011-07-06 14:34:08 UTC
(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.
Comment 3 Samuli Suominen (RETIRED) gentoo-dev 2011-07-09 08:44:59 UTC
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)