I had the same problem when trying to compile KDevelop. First I downloaded and installed the newest release of Berkeley DB (which was 4.2 I think), and having had a look at the the KDevelopment site (www.kdevelop.org
) it turns out you need Berkeley DB >=3.0 and <=4.1. So I reinstalled the 4.1 version and it still didn't work.
After some searching on the web I found someone with a similar problem. What you might want to try is to make sure to pass the path to the BDB libraries to your compiler as described in the "How to compile on FreeBSD" section at the following page, http://www.kdevelop.org/index.html?f...compiling.html
What I did was to do
export CXXFLAGS="-I/your/bdb-dir/include -L/your/bdb-dir/lib"
and then run the configure for KDevelop.
This worked for me, and I hope it will have been of help in your case as well.