Issue 1146231: bsddb3 build problems on FreeBSD (2.4 + 2.5) (original) (raw)

FreeBSD's ports system has another variation on naming the Sleepcat DB library.

The attached patch adds support for this naming variation. The patch is actually for CVS head, but applies to the 2.4 maintenance branch (with an offset).

In my particular case, my FreeBSD box has both DB 4.1 and DB 4.0 installed; the build was finding the 4.1 headers and compiling against them, but then linking to the 4.0 library. In consequence, all the tests which depend on the _bsddb module (test_anydbm, test_bsddb, test_bsddb185, test_shelve, test_whichdb) were failing or dumping core.

This patch (or something with similar effect) should be applied in time for 2.4.1 in my opinion (I could do that, but would like the release manager's approval).