Re: CLD doesn't build on db-4.3

Samba - BoYang <[email protected]>
Newsgroups org.kernel.vger.hail-devel
Message-ID <[email protected]>
On 04/01/2010 11:03 PM, Jeff Garzik wrote:

> I'm fine with adding support for 4.9+ as long as the APIs function in a
> compatible manner.
> 
> Want to create the simple patch for this?  :)

Here is the patch for master, please review it. Thanks!

> 
> Thanks,
> 
>     Jeff
> 
> 
> 
> 
> 
> 


-- 
Samba Team	[email protected]	http://www.samba.org
disbale-db-4.3-4.5-mbox.diff (text/x-patch, 1.3 KB)
From 94472c2e304a9a94197e8d593ad3987cdbe4e383 Mon Sep 17 00:00:00 2001
From: Bo Yang <[email protected]>
Date: Fri, 2 Apr 2010 08:30:39 +0800
Subject: [PATCH] Disable db4.3 - 4.5 for incompatible APIs.

Signed-off-by: Bo Yang <[email protected]>
---
 configure.ac |    9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/configure.ac b/configure.ac
index 38688f1..4dcf9e3 100644
--- a/configure.ac
+++ b/configure.ac
@@ -74,13 +74,12 @@ dnl AC_TYPE_PID_T
 dnl -----------------------------
 dnl Checks for required libraries
 dnl -----------------------------
-AC_CHECK_LIB(db-4.8, db_create, DB4_LIBS=-ldb-4.8,
+AC_CHECK_LIB(db-5.0, db_create, DB4_LIBS=-ldb-5.0,
+	AC_CHECK_LIB(db-4.9, db_create, DB4_LIBS=-ldb-4.9,
+	AC_CHECK_LIB(db-4.8, db_create, DB4_LIBS=-ldb-4.8,
 	AC_CHECK_LIB(db-4.7, db_create, DB4_LIBS=-ldb-4.7,
 	AC_CHECK_LIB(db-4.6, db_create, DB4_LIBS=-ldb-4.6,
-	AC_CHECK_LIB(db-4.5, db_create, DB4_LIBS=-ldb-4.5,
-	AC_CHECK_LIB(db-4.4, db_create, DB4_LIBS=-ldb-4.4,
-	AC_CHECK_LIB(db-4.3, db_create, DB4_LIBS=-ldb-4.3,
-  [AC_MSG_ERROR([Missing required libdb 4.x])]))))))
+  [AC_MSG_ERROR([Missing required libdb 4.6+])])))))
 AC_CHECK_LIB(crypto, MD5_Init, CRYPTO_LIBS=-lcrypto)
 AC_SEARCH_LIBS(argp_parse, argp)
 AC_SEARCH_LIBS(recv, socket)
-- 
1.6.0.2
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.