This seems to be a general problem as /usr/include/db.h is replaced by newer slots. Packages which uses older versions of berkeley db fail as db.h doesn't match the library. If I replace /usr/include/db.h with the one supplied by a 4.1 package everything is just fine. Reproducible: Always Steps to Reproduce: emerge cyrus-sasl-2.1.17 Actual Results: can't remember exactly but something like: undefined reference to DB_Error_40002 Expected Results: success ;) I'm sure ppl are aware of this problem, I just wonder how we deal with header files if different slots are installed.
can you try sasl 2.1.18. it has worked for me.
It build's ok and /usr/lib/libsasldb.so.2.0.18 is linked against libdb-4.2. I havent testet if it actually works since I do not use sasldb auxprop plugin. (Testet on x86 with ldapdb.) BTW: I have patched configure.in and plugins/Makefile.am to build said plugin with cyrus-sasl (it is currently distributet with openldap). It enables you to use challenge response mechanisms like CRAM-MD5 and fetching the password from LDAP. If there is some interest I'd ask the author if we could include it (or should I open a new bug for this?).
2.1.17 has now been dropped from portage; please use 2.1.18 or subsequent releases.