I had mplayer-1.0_pre4-r7 and openldap-2.1.30-r2 installed correctly and all works fine. Recently I have removed openldap with emerge -C openldap command, and when I launch mplayer I got an error about some library about openldap (sorry, I don't remember the exact name...). So I re-emerge mplayer with default use flags (+samba) and after a successfully build I try to run mplayer but I got the same error about ldap... After this I remove the samba flag, and now wrks correctly. It seems that the mplayer build don't check if openldap is installed when samba flag is active. Reproducible: Always Steps to Reproduce: 1. 2. 3.
Have you tried re-compilling samba and then MPlayer? There doesn't appear to be a reference to an ldap of any sorts in MPlayer, so that's definately not Mplayer's side.
sounds like samba or something was linked against openldap. use revdep-rebuild to ensure your librariries are consistant.
Closing as WORKSFORME. I'd do the revdep rebuild like robbat recommended.