Subject: Re: openldap: Berkeley DB version mismatch
To: Quentin Garnier <cube@cubidou.net>
From: Georg Schwarz <georg.schwarz@freenet.de>
List: tech-pkg
Date: 08/21/2005 13:00:51
> What is wrong is that configure tries libdb-4.3 before the one provided
> by pkgsrc (libdb4-4.3), so it finds the library in /usr/lib when it
> previously used the headers provided by pkgsrc in the buildlink dir.
> 
> Please try adding the following line to openldap's Makefile (I actually
> think it should go to db4's bl3.mk file):
> 
> BUILDLINK_TRANSFORM+= l:db43:db4
> 
> Of course, you can also set PREFER_NATIVE+= db4.

Thanks. The following patch did the trick:

--- databases/db4/buildlink3.mk.orig    2005-08-21 09:28:32.000000000 +0200
+++ databases/db4/buildlink3.mk 2005-08-21 09:29:13.000000000 +0200
@@ -18,7 +18,7 @@
 BUILDLINK_PKGSRCDIR.db4?=      ../../databases/db4
 BUILDLINK_INCDIRS.db4?=                include/db4
 BUILDLINK_LDADD.db4=           -ldb4
-BUILDLINK_TRANSFORM+=          l:db-4:db4
+BUILDLINK_TRANSFORM+=          l:db-4:db4 l:db43:db4
 
 .  if defined(USE_DB185) && !empty(USE_DB185:M[yY][eE][sS])
 #

should it be incorporated into pkgsrc?


-- 
Georg Schwarz    http://home.pages.de/~schwarz/
 georg.schwarz@freenet.de  +49 178 8545053