pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: sasl build failure with db-4.3 and db-4.4



On Mon, 30 Oct 2006 10:54:47 -0800 (PST)
"David Carrel" <carrel%netbsd.org@localhost> wrote:

> I'm trying to build cyrus-sasl on a Fedora Core 5 system and I am getting
> a weird failure.  FC5 contains a native libdb-4.3 but pkgsrc has also
> built a libdb-4.4.  Other pkgsrc apps seem to only use the pkgsrc built
> libdb-4.4.  However cyrus-sasl is using a mix of both.  The build includes
> are only compiling with the pkgsrc 4.4 include file(s).  But for linking,
> some files are linked with -ldb-4.3 and some with -ldb-4.4.  In the end,
> using ldd to look at the installed binaries (ie.
> /usr/pkg/sbin/sasldblistusers2) shows they are linked to the native
> system's libdb-4.3 which doesn't work since everything was compiled
> against pkgsrc' db-4.4.
> 
> Other packages (such as postfix) are linking against the pkgsrc db-4.4 and
> working correctly.
> 
> Any ideas?

Attached patch solve your problem?

--
"Of course I love NetBSD":-)
OBATA Akio / obata%lins.jp@localhost
Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/security/cyrus-sasl/Makefile,v
retrieving revision 1.52
diff -u -r1.52 Makefile
--- Makefile    23 Apr 2006 00:12:41 -0000      1.52
+++ Makefile    1 Nov 2006 07:29:05 -0000
@@ -15,6 +15,7 @@
 .if ${SASL_DBTYPE} == "berkeley"
 USE_DB185=             no
 .  include "../../mk/bdb.buildlink3.mk"
+CONFIGURE_ENV+=        BDB_TYPE=${BDB_TYPE:Q}
 .endif
 
 CONFIGURE_ARGS+=       --with-dblib=${SASL_DBTYPE:Q}
Index: patches/patch-ai
===================================================================
RCS file: /cvsroot/pkgsrc/security/cyrus-sasl/patches/patch-ai,v
retrieving revision 1.6
diff -u -r1.6 patch-ai
--- patches/patch-ai    4 Oct 2006 12:07:53 -0000       1.6
+++ patches/patch-ai    1 Nov 2006 07:29:05 -0000
@@ -20,6 +20,15 @@
  ac_aux_dir=
  for ac_dir in config $srcdir/config; do
    if test -f $ac_dir/install-sh; then
+@@ -5125,7 +5121,7 @@ if test $ac_cv_header_db_h = yes; then
+       fi
+ 
+       saved_LIBS=$LIBS
+-        for dbname in db-4.4 db4.4 db44 db-4.3 db4.3 db43 db-4.2 db4.2 db42 
db-4.1 db4.1 db41 db-4.0 db4.0 db-4 db40 db4 db-3.3 db3.3 db33 db-3.2 db3.2 
db32 db-3.1 db3.1 db31 db-3 db30 db3 db
++        for dbname in ${BDB_TYPE} db-4.4 db4.4 db44 db-4.3 db4.3 db43 db-4.2 
db4.2 db42 db-4.1 db4.1 db41 db-4.0 db4.0 db-4 db40 db4 db-3.3 db3.3 db33 
db-3.2 db3.2 db32 db-3.1 db3.1 db31 db-3 db30 db3 db
+           do
+           LIBS="$saved_LIBS -l$dbname"
+           cat >conftest.$ac_ext <<_ACEOF
 @@ -5156,7 +5152,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_l
    ac_status=$?
    echo "$as_me:$LINENO: \$? = $ac_status" >&5
@@ -68,3 +77,12 @@
    mutex_default="no"
    if test "$gss_impl" = "mit"; then
       mutex_default="yes"


Home | Main Index | Thread Index | Old Index