The /usr/lib/libdb1.so library has an incorrect soname which causes the libdb.so.2 library to be incorrectly linked into an application. This interferes with porting applications using db-1.85 databases (which are incompatable with the db-2 code in libdb.so.2). Suggested fix is to pass -h libdb1.so.2 to the linker in building the library.
The library for db1 is libdb1.so.2, while the library for db2 is libdb.so.3. Confusing ain't it :-(