Package: libberkeleydb-perl
Version: 0.26-2

  $ perl -MBerkeleyDB -e 1                         

  BerkeleyDB needs compatible versions of libdb & db.h
          you have db.h version 4.3.21 and libdb version 4.3.27
  Compilation failed in require.
  BEGIN failed--compilation aborted.

  $ dpkg -l libdb4.3
  [...]
  ii  libdb4.3                        4.3.27-1                       Berkeley 
v4.3 Database Libraries [runtime]

It may be possible to patch BerkeleyDB.xs as appended to not check the
patch version, given that the soname doesn't include that value.

--bod

--- BerkeleyDB.xs.orig  2004-10-11 06:25:29.000000000 +1000
+++ BerkeleyDB.xs       2005-01-18 14:47:51.000000000 +1100
@@ -3893,8 +3893,7 @@
     int Major, Minor, Patch ;
     (void)db_version(&Major, &Minor, &Patch) ;
     /* Check that the versions of db.h and libdb.a are the same */
-    if (Major != DB_VERSION_MAJOR || Minor != DB_VERSION_MINOR
-                || Patch != DB_VERSION_PATCH)
+    if (Major != DB_VERSION_MAJOR || Minor != DB_VERSION_MINOR)
         croak("\nBerkeleyDB needs compatible versions of libdb & db.h\n\tyou 
have db.h version %d.%d.%d and libdb version %d.%d.%d\n",
                 DB_VERSION_MAJOR, DB_VERSION_MINOR, DB_VERSION_PATCH,
                 Major, Minor, Patch) ;


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to