on AMD64 systems with both USE="win64 win32", emerge wine, goes through the configuration twice, first for 64bit, then again for 32bit. The first configure succeeds in finding the 64bit OpenLDAP stuff, but when the 32bit one goes through, it appears to be unable to find the 32bit ldap.so files.. I even re-emerged all my currently-install emul-linux-x86-files with the "development" useflag. Reproducible: Always Steps to Reproduce: 1. install multilib, 64bit gentoo 2. attempt to install latest version of wine (as of this bug report, is 1.3.32) 3. Wail and gnash teeth. Actual Results: checking for LDAPSortKey... yes checking for ldap_initialize in -lldap_r... no checking for ldap_count_references... no checking for ldap_first_reference... no checking for ldap_next_reference... no checking for ldap_parse_reference... no checking for ldap_parse_sort_control... no checking for ldap_parse_sortresponse_control... no checking for ldap_parse_vlv_control... no checking for ldap_parse_vlvresponse_control... no configure: error: libldap (OpenLDAP) 32-bit development files not found, LDAP won't be supported. This is an error since --with-ldap was requested. Expected Results: Wine to be installed with both the 32bit and the 64bit variety I even went so far as to attempt to manually configure, in my user's home directory, and it still cannot find the 32bit development files. As a workaround, I simply disabled ldap support.
you need to post `emerge --info` in every bug report. you also need to post the full build log and never just a snippet as an attachment. when things fail in configure, you also should post the config.log file as an attachment.