1 (edited by pbr 2012-04-17 16:55:33)

Topic: [SOLVED] Install on Gentoo fail emerging openldap

==== Provide required information to help troubleshoot and get quick answer ====
- iRedMail version:
- Linux/BSD distribution name and version:
- Any related log? Log is helpful for troubleshooting.
==== ====
- iRedMail version: 0.8.0-beta3
- Linux/BSD distribution: latest Gentoo linux - fresh, just instaled
====

iRedMail.sh Can't install openldap ... I received error:

 * ERROR: net-nds/openldap-2.4.30 failed (compile phase):
 *   emake samba4 failed
 *
 * Call stack:
 *     ebuild.sh, line  85:  Called src_compile
 *   environment, line 3396:  Called die
 * The specific snippet of code:
 *               emake CC="${CC}" libexecdir="/usr/$(get_libdir)/openldap" || die "emake samba4 failed";

iRedMail.sh set USE flag: +overlays for openldap in /etc/portage/package.use and this flag cause this error.

Do we realy need this flag ?
Any other solutions ?

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: [SOLVED] Install on Gentoo fail emerging openldap

There is a bug in ebuild of openeldap.
If You see this error You should

USE="-overlays" emerge openeldap

then restart iRedMail.sh script

Problem (and solution) with openeldap described here:
http://forums.gentoo.org/viewtopic-t-920402.html

---
PBR

3

Re: [SOLVED] Install on Gentoo fail emerging openldap

I think it's a bug in ebuild, but I personally don't think your solution is a proper fix.

OpenLDAP overlays are more than Samba support, it's something like plugin.
Please refer to OpenLDAP official doc for more details:
http://www.openldap.org/doc/admin24/overlays.html

Does "emake samba4 failed" mean it cannot emerge Samba4? I mean, OpenLDAP overlays requires Samba4 as dependence, but portage cannot install Samba4 properly?