From: Victor Duchovni on
On Thu, May 20, 2010 at 01:29:49PM +0300, Eray Aslan wrote:

> Berkeley DB 5.0 is out and provides an SQlite-compatible interface.
> Having an alternative to SQLite is considered a good thing and there is
> some interest in bringing db-5.0 into mainstream use.

Is this the default Berkeley-DB version for your system platform? If
not, you should generally avoid the temptation to use a non-default
Berkeley-DB.

> dict_db.c:685:2: error: #error "Unsupported Berkeley DB version"

Yes, the list of supported (major) versions is manually maintained.

> --- a/src/util/dict_db.c
> +++ b/src/util/dict_db.c
> -#if (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR > 0)
> +#if (DB_VERSION_MAJOR == 5) || (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR > 0)

Have you read the release-notes? What are the incompatibilities with 4.x
(if any)?

--
Viktor.

P.S. Morgan Stanley is looking for a New York City based, Senior Unix
system/email administrator to architect and sustain our perimeter email
environment. If you are interested, please drop me a note.

From: Eray Aslan on
On 05/21/2010 01:33 AM, Victor Duchovni wrote:
> On Thu, May 20, 2010 at 01:29:49PM +0300, Eray Aslan wrote:
> Is this the default Berkeley-DB version for your system platform?

No

> If
> not, you should generally avoid the temptation to use a non-default
> Berkeley-DB.

I maintain some packages for Gentoo Linux. This came up while testing
application compatibility with Berkeley DB 5.0.

>> --- a/src/util/dict_db.c
>> +++ b/src/util/dict_db.c
>> -#if (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR > 0)
>> +#if (DB_VERSION_MAJOR == 5) || (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR > 0)
>
> Have you read the release-notes? What are the incompatibilities with 4.x
> (if any)?

I've seen nothing major so far.

http://www.oracle.com/technology/documentation/berkeley-db/db/installation/changelog_5_0.html
http://www.oracle.com/technology/documentation/berkeley-db/db/installation/upgrade_11gr2_toc.html

--
Eray