Skip to contentSkip to conversation

CLD doesn't build on db-4.3

DISCUSSION Applied Samba - BoYang 3 participants 11 messages Apr 1, 2010 – Apr 14, 2010

lore
Share & tools
lore
#0 lore raw

hi, *
CLD doesn't build on db-4.3 on suse 11, since db-4.3 uses deprecated
structure members DBC->c_xxx(c_close(), etc) instead of DBC->xxx. :-)

It won't build on db-4.4, either. probably won't build on db-4.5, as
db-5.0 says DBC->xxx was introduced in db-4.6. :-) Should we disable support for 4.3 - 4.5 and add 4.9 - 5.0?

Signature · 1 line
Samba Team	[email protected]	http://www.samba.org
#1 lore raw
Quoted 2 lines · On Thu, 01 Apr 2010 19:01:59 +0800 Samba - BoYang <[email protected]> wrote:

CLD doesn't build on db-4.3 on suse 11, since db-4.3 uses deprecated
structure members DBC->c_xxx(c_close(), etc) instead of DBC->xxx. :-)

That's unexpected. Jeff is our portability expert, but he's busy with the baby, so I guess I'll have to look if it's something easily fixable.

-- Pete

#2 lore raw
In reply to Samba - BoYang
Quoted 7 lines · Samba - BoYang

hi, *
CLD doesn't build on db-4.3 on suse 11, since db-4.3 uses deprecated
structure members DBC->c_xxx(c_close(), etc) instead of DBC->xxx. :-)

It won't build on db-4.4, either. probably won't build on db-4.5, as
db-5.0 says DBC->xxx was introduced in db-4.6. :-) Should we disable support for 4.3 - 4.5 and add 4.9 - 5.0?

I'd answer "yes", by a circuitous route: if I understand things correctly, the replicated PAXOS db4 backend that we are heading towards (see the 'replica' branch of git://git.kernel.org/pub/scm/daemon/cld/cld.git) was buggy in early db4 releases.

Therefore, it sounds like we could eliminate two issues with a single change, by removing support for db 4.3 - 4.5, the DBC issue and the PAXOS issue.

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? :)

Thanks,

Jeff

#3 lore raw
Quoted 10 lines · On Thu, 01 Apr 2010 11:03:48 -0400 Jeff Garzik <[email protected]> wrote:
Quoted 3 lines

It won't build on db-4.4, either. probably won't build on db-4.5, as
db-5.0 says DBC->xxx was introduced in db-4.6. :-) Should we disable support for 4.3 - 4.5 and add 4.9 - 5.0?

I'd answer "yes", by a circuitous route: if I understand things correctly, the replicated PAXOS db4 backend that we are heading towards (see the 'replica' branch of
git://git.kernel.org/pub/scm/daemon/cld/cld.git) was buggy in early db4 releases.

Quoted 3 lines

Therefore, it sounds like we could eliminate two issues with a single change, by removing support for db 4.3 - 4.5, the DBC issue and the PAXOS issue.

RHEL 5 ships with db4-4.3.29-10.el5 (I checked for Bo's problem this morning), so dropping 4.3 will make RHEL 5 unsupportable. Just a point to consider.

-- Pete

#5 lore raw
In reply to Jeff Garzik
Quoted 4 lines · Jeff Garzik

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!

Quoted 10 lines

Thanks,

Jeff

Signature · 1 line
Samba Team	[email protected]	http://www.samba.org

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.

---
 configure.ac |    9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)
configure.ac +4 -5
index 38688f1..4dcf9e3 100644
@@ -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)
Signature · 1 line
1.6.0.2
#4 lore raw
In reply to Pete Zaitcev
Quoted 3 lines · Pete Zaitcev

RHEL 5 ships with db4-4.3.29-10.el5 (I checked for Bo's problem this morning), so dropping 4.3 will make RHEL 5 unsupportable. Just a point to consider.

It might add a lot of #ifdef to the code to support 4.5-. :-)

Quoted 3 lines

-- Pete

Signature · 1 line
Samba Team	[email protected]	http://www.samba.org
#6 lore raw
In reply to Samba - BoYang
Quoted 8 lines · Samba - BoYang
Quoted 4 lines · Jeff Garzik

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!

Just to be safe, I want to see precisely how OpenSolaris, FreeBSD and RHEL behave before dropping the older support.

I went ahead and committed the addition for 4.9 and 5.0, though, crediting you with a "Suggested-by" in the commit text.

Jeff

#7 lore raw
Quoted 2 lines · On Wed, 14 Apr 2010 00:32:56 -0400 Jeff Garzik <[email protected]> wrote:

Just to be safe, I want to see precisely how OpenSolaris, FreeBSD and RHEL behave before dropping the older support.

I resolved to building an RPM with 4.9 for RHEL 5. That would probably the best if I make it non-conflicting with the stock 4.3. Same RPM could probably be used on SuSE. But I haven't done it yet.

-- Pete

#8 lore raw

Here is small patch to enable link against higher-version db for nfs4d and tabled. :-)

In reply to Jeff Garzik

Please review them, thanks!

Bo Yang

Signature · 1 line
Samba Team	[email protected]	http://www.samba.org

From ac6d3f7cb7caa3dca498096bd0c07e6b02601239 Mon Sep 17 00:00:00 2001
From: Bo Yang <[email protected]>
Date: Fri, 2 Apr 2010 18:35:12 +0800
Subject: [PATCH] Enable build on db-4.9+.

---
 configure.ac |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)
configure.ac +5 -2
index 7e8cbc7..3b63cf1 100644
@@ -43,12 +43,15 @@ dnl -----------------------------
 dnl Checks for required libraries
 dnl -----------------------------
 dnl AC_CHECK_LIB(gssrpc, gssrpc_svc_register, GSSRPC_LIBS=-lgssrpc, exit 1)
-AC_CHECK_LIB(db-4.7, db_create, DB4_LIBS=-ldb-4.7,
+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.x])]))))))))
 AC_CHECK_LIB(event, event_base_new, EVENT_LIBS=-levent,
   [AC_MSG_ERROR([Missing required libevent])])
 AC_CHECK_LIB(argp, argp_parse, ARGP_LIBS=-largp)
Signature · 1 line
1.6.0.2

From f690daf3648f47a8a7ac317613fff81e24ce6bca Mon Sep 17 00:00:00 2001
From: Bo Yang <[email protected]>
Date: Fri, 2 Apr 2010 18:38:08 +0800
Subject: [PATCH] Enable build on 4.8+.

---
 configure.ac |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
configure.ac +4 -2
index c6baa15..9095c67 100644
@@ -76,13 +76,15 @@ dnl -----------------------------
 AC_CHECK_LIB(pcre, pcre_compile, PCRE_LIBS=-lpcre)
 AC_CHECK_LIB(crypto, MD5_Init, CRYPTO_LIBS=-lcrypto)
 AC_CHECK_LIB(ssl, SSL_new, SSL_LIBS=-lssl)
-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.x])]))))))))
 AC_CHECK_LIB(event, event_base_new, EVENT_LIBS=-levent,
   [AC_MSG_ERROR([Missing required libevent])])
 AC_SEARCH_LIBS(argp_parse, argp)
Signature · 1 line
1.6.0.2
Applied
#9 lore raw

Re: Here is small patch to enable link against higher-version db for nfs4d and tabled. :-)

Quoted 1 line · Samba - BoYang

Please review them, thanks!

Applied to nfs4d and tabled, thanks!

In the future, it would be appreciated to see separate emails, one email per patch.

Best regards,

Jeff

#10 lore raw

Re: Here is small patch to enable link against higher-version db for nfs4d and tabled. :-)

Quoted 1 line · Jeff Garzik

would be appreciated to see separate emails, o

Yah, I see. :-)

Signature · 1 line
Samba Team	[email protected]	http://www.samba.org