All of lore.kernel.org
 help / color / mirror / Atom feed
From: Pete Zaitcev <zaitcev@redhat.com>
To: Jeff Garzik <jeff@garzik.org>
Cc: Project Hail List <hail-devel@vger.kernel.org>
Subject: Re: [Patch 1/1] CLD: fix crash in __mutex_get_max (libdb-4.7.so) on F13
Date: Tue, 1 Dec 2009 18:18:12 -0700	[thread overview]
Message-ID: <20091201181812.15a28bd2@redhat.com> (raw)
In-Reply-To: <4B132225.6020505@garzik.org>

On Sun, 29 Nov 2009 20:38:45 -0500
Jeff Garzik <jeff@garzik.org> wrote:

> Interesting...  I recall the root cause clearly, now:  /usr/include/db.h 
> always refers to the latest installed db4, even if compat-db{,45,46} is 
> installed.  Our configure recipe links with the most recent db4 listed 
> in configure.ac, combined with the installed /usr/include/db.h.  Thus, 
> each new db4 version produces a mismatch.

I solicited suggestions on a blog, and someone asked why we don't
use db without specific version. I assumed we do it so we don't
get linked with something ancient like db3. Is that so? If yes,
how about something like this:

--- a/configure.ac
+++ b/configure.ac
@@ -76,13 +76,11 @@ 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-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_CHECK_HEADERS([db.h], [], [AC_MSG_ERROR(Missing required db.h)])
+dnl We do not use sequence objects. It is a trick to force db4.3 or later.
+AC_CHECK_LIB(db, db_sequence_create, DB4_LIBS=-ldb)
+
 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)

(URL http://zaitcev.livejournal.com/195586.html)

-- Pete

  parent reply	other threads:[~2009-12-02  1:18 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-30  1:17 [Patch 1/1] CLD: fix crash in __mutex_get_max (libdb-4.7.so) on F13 Pete Zaitcev
2009-11-30  1:38 ` Jeff Garzik
2009-11-30  2:05   ` Pete Zaitcev
2009-12-02  1:18   ` Pete Zaitcev [this message]
2009-12-02 10:40     ` Jeff Garzik
2009-11-30 13:34 ` Jeff Garzik

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20091201181812.15a28bd2@redhat.com \
    --to=zaitcev@redhat.com \
    --cc=hail-devel@vger.kernel.org \
    --cc=jeff@garzik.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.