I am trying to build Zimbra on Debian (sarge/sid). I run on a AMD64 machine. I use Zimbra CVS.

I installed basic Debian, with no server application. Then before going to build ThirdParty tools, I did the following:
# get for Debian:
# ant ant-optional
# libxml2 libxml2-dev
# libcurl3-openssl-dev
# Links:
# ln -s /usr/lib/libcrypto.so.0.9.8 /usr/lib/libcrypto.so.5 
# ln -s /usr/lib/libssl.so.0.9.8 /usr/lib/libssl.so.5
# ln -s /usr/lib/libpcre.so.3.12.0 /usr/lib/libpcre.so.0
I also upgraded MySQL version to 4.1.15, and fooled Zimbra to think I am on BUILD_PLATFORM:=DEBIAN3.1 - with this, the ThirdParty builds went on quite well.

In the CVS there is a missmatch regarding the PostFix version: 2.2.3 (old) or 2.2.5 - I resolved it to 2.2.5 in all relevant files.

Also, after managing version numbers, ZimbraBuild also went quite well. the "make dev-install" MAkefiles are very fragile. Here are some points:
* You better replace all instances of "ln -s" with "ln -s -i" (or something similar) so failing makes won't force you to restart everything. Currently, whenever the Makefile encounters an already existing link, it quits. One has to manually remove all links (or allclean).
* In some occasions, when you copy whole directories (like to /opt/zimbra/bin), the Makefile fails because it tries to copy the "CVS" directory.
* There is a wrong source file for $(ZIMBRA_BIN_DIR)/../../conf/zmlogrotate

... Now come the problems

Following a tip I got from Marc, I am trying to crate authentications (before running zmmyinit and zmldapinit). It always fails. It used to fail in the same way when I was trying to build on FC4 (same AMD64 machine). Needless to say that zmldapinit also fails afterwards.

Here is the output:
shohaml@aio:/opt/zimbra$ ./bin/zmcreateca
** Creating CA private key

Generating a 1024 bit RSA private key
writing new private key to '/opt/zimbra/ssl/ssl/ca/ca.key'
** Creating CA cert

Signature ok
subject=/C=US/ST=N/A/L=N/A/O=Zimbra Collaboration Suite/CN=aio.shoham.com
Getting Private key


shohaml@aio:/opt/zimbra$ ./bin/zmcreatecert
** Importing CA

keytool error: java.lang.Exception: Certificate not imported, alias  already exists
** Creating keystore

** Creating server cert request

Generating a 1024 bit RSA private key
writing new private key to '/opt/zimbra/ssl/ssl/server/server.key'
** Signing cert request

Using configuration from /opt/zimbra/ssl/ssl/zmssl.cnf
Check that the request matches the signature
Signature ok
Certificate Details:
        Serial Number: 2 (0x2)
            Not Before: Dec 16 01:05:56 2005 GMT
            Not After : Dec 16 01:05:56 2006 GMT
            countryName               = US
            stateOrProvinceName       = N/A
            organizationName          = Zimbra Collaboration Suite
            commonName                = aio.shoham.com
        X509v3 extensions:
            X509v3 Basic Constraints:
            Netscape Comment:
                OpenSSL Generated Certificate
            X509v3 Subject Key Identifier:
            X509v3 Authority Key Identifier:
                DirName:/C=US/ST=N/A/L=N/A/O=Zimbra Collaboration Suite/CN=aio.shoham.com

Certificate is to be certified until Dec 16 01:05:56 2006 GMT (365 days)

Write out database with 1 new entries
Data Base Updated
Signature ok
Getting CA Private Key


shohaml@aio:/opt/zimbra$ ./bin/zmcertinstall mailbox
./bin/zmcertinstall: line 57: /opt/zimbra/bin/get_plat_tag.sh: No such file or directory
** Importing server cert

keytool error: java.lang.Exception: Public keys in reply and keystore don't match
What can I do to fix the keytool problems?