Re: [Exim] Exim build problems

Top Page
Delete this message
Reply to this message
Author: Steven A. Reisman
Date:  
To: exim-users
Subject: Re: [Exim] Exim build problems
On Mon, Sep 30, 2002 at 09:14:47PM +0100, Steve Manning wrote:
> The patch is really minor, try if the following one works (untested).
> The only change was to add an addition 'NULL' for the DB_TXN in the
> open()-call, as documented in the upgrading.
>
> --- ../exim-4.10/src/dbstuff.h  Mon Jul 22 10:59:48 2002
> +++ src/dbstuff.h       Sun Sep 29 10:12:17 2002
> @@ -128,4 +128,12 @@

>
> /* EXIM_DBOPEN - sets *dbpp to point to an EXIM_DB, NULL if failed */
> +#if (DB_VERSION_MAJOR >= 4) && (DB_VERSION_MINOR >= 1)


Note that the above test will break at versions 5.0, 6.0, 7.0, etc.
Maybe it should be something like:

#if ((1000*DB_VERSION_MAJOR + DB_VERSION_MINOR) >= 4001)

Which will break, too, if there are more than 1000 minor versions.

Steve



> +#define EXIM_DBOPEN(name, flags, mode, dbpp)         \
> +       if (db_create(dbpp, NULL, 0) != 0 || \
> +         (*dbpp)->open(*dbpp, NULL, CS name, NULL, \
> +         ((flags) == O_RDONLY)? DB_UNKNOWN : DB_HASH, \
> +         ((flags) == O_RDONLY)? DB_RDONLY : DB_CREATE, \
> +         mode) != 0) *(dbpp) = NULL
> +#else
>  #define EXIM_DBOPEN(name, flags, mode, dbpp)         \
>         if (db_create(dbpp, NULL, 0) != 0 || \
> @@ -134,5 +142,5 @@
>           ((flags) == O_RDONLY)? DB_RDONLY : DB_CREATE, \
>           mode) != 0) *(dbpp) = NULL
> -
> +#endif
>  /* EXIM_DBGET - returns TRUE if successful, FALSE otherwise */
>  #define EXIM_DBGET(db, key, data)      \



----------------------------------------------------------------------
Steven A. Reisman          <sar@???>           P.O. Box 409
PressEnter LLP                                        421 N 2nd Street
715-426-2100 or 651-436-5254                    River Falls, WI  54022
----------------------------------------------------------------------