Not sure about the USE=ldap part or not, but nonetheless, sasl.h is required dev-libs/cyrus-sasl (/usr/include/sasl/sasl.h) ./ldap.c:66:20: error: sasl.h: No such file or directory ./ldap.c: In function 'sudo_ldap_sasl_interact': ./ldap.c:1450: error: 'sasl_interact_t' undeclared (first use in this function) ./ldap.c:1450: error: (Each undeclared identifier is reported only once ./ldap.c:1450: error: for each function it appears in.) ./ldap.c:1450: error: 'interact' undeclared (first use in this function) ./ldap.c:1450: error: expected expression before ')' token ./ldap.c:1452: error: 'SASL_CB_LIST_END' undeclared (first use in this function) ./ldap.c:1453: error: 'SASL_CB_USER' undeclared (first use in this function) make: *** [ldap.o] Error 1 * * ERROR: app-admin/sudo-1.7.0_rc2 failed. * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 2627: Called die * The specific snippet of code: * emake || die * The die message: * (no error message)
Added cyrus-sasl to deps with USE=ldap.