The build order I use is:
OpenSSL Heimdal Cyrus-SASL Berkeley BDB OpenLDAP
Cyrus-sasl and Heimdal depend on Berkeley BDB. Berkeley BDB should be compiled before Heimdal and Cyrus-SASL. Cyrus-SASL, OpenLDAP and Heimdal potentially (depending on the compile options) depend on each other, so you may need to compile each several times.
--Quanah
-- Quanah Gibson-Mount Principal Software Developer ITSS/TSS/Computing Systems ITSS/TSS/Infrastructure Operations Stanford University GnuPG Public Key: http://www.stanford.edu/~quanah/pgp.html