I've tried to build kolabd-2.1 as described in
http://wiki.kolab.org/index.php/Gentoo_-_SysAdmin_-_Installation .
My system is based on gentoo 2008.0 with latest portage tree (10.03.09).
When compiling the last package, 'net-mail/kolabd-2.1' it gives a file collision with 'dev-perl/perl-kolab-2.1' :
* This package will overwrite one or more files that may belong to other
* packages (see list below). You can use a command such as `portageq
* owners / <filename>` to identify the installed package that owns a
* file. If portageq reports that only one package owns a file then do
* NOT file a bug report. A bug report is only useful if it identifies at
* least two or more packages that are known to install the same file(s).
* If a collision occurs and you can not explain where the file came from
* then you should simply ignore the collision since there is not enough
* information to determine if a real problem exists. Please do NOT file
* a bug report at http://bugs.gentoo.org unless you report exactly which
* two packages install the same file(s). Once again, please do NOT file
* a bug report unless you have completely understood the above message.
*
* Detected file collision(s):
*
* /usr/sbin/kolab_services
*
* Searching all installed packages for file collisions...
*
* Press Ctrl-C to Stop
*
* dev-perl/perl-kolab-2.1
* /usr/sbin/kolab_services
*
* Package 'net-mail/kolabd-2.1' NOT merged due to file collisions. If
* necessary, refer to your elog messages for the whole content of the
* above message.
Next, I removed '/usr/sbin/kolab_services' and emerged kolabd-2.1 again. Success!

Then, the next step
/usr/share/kolabd/scripts/kolab_bootstrap -b
gives me the next error:
Can't locate Net/LDAP.pm in @INC (@INC contains: /etc/perl /usr/lib/perl5/vendor_perl/5.8.8/i686-linux /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl /usr/lib/perl5/site_perl/5.8.8/i686-linux /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib/perl5/5.8.8/i686-linux /usr/lib/perl5/5.8.8 /usr/local/lib/site_perl .) at /usr/share/kolabd/scripts/kolab_bootstrap line 20.
BEGIN failed--compilation aborted at /usr/share/kolabd/scripts/kolab_bootstrap line 20.
What's wrong? I did a 'find / -name LDAP.pm' and got:
/usr/lib/perl5/vendor_perl/5.8.8/Mail/SpamAssassin/Conf/LDAP.pm
/usr/lib/perl5/vendor_perl/5.8.8/Kolab/LDAP.pm
So I've linked the LDAP.pm from kolab into perl's include path:
ln -s /usr/lib/perl5/vendor_perl/5.8.8/Kolab/LDAP.pm /usr/lib/perl5/vendor_perl/5.8.8/i686-linux/Net/LDAP.pm
And now 'kolab_bootstrap -b' runs into the next error:
"LDAP_SUCCESS" is not exported by the Net::LDAP module
"LDAP_PROTOCOL_ERROR" is not exported by the Net::LDAP module
"LDAP_REFERRAL" is not exported by the Net::LDAP module
Can't continue after import errors at /usr/lib/perl5/vendor_perl/5.8.8/i686-linux/Net/LDAP.pm line 29
BEGIN failed--compilation aborted at /usr/lib/perl5/vendor_perl/5.8.8/i686-linux/Net/LDAP.pm line 29.
Compilation failed in require at /usr/share/kolabd/scripts/kolab_bootstrap line 20.
BEGIN failed--compilation aborted at /usr/share/kolabd/scripts/kolab_bootstrap line 20.
How can I solve these errors?
Thanks, U. Uhlig