Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 124300 - openldap Berkeley mismatch
Summary: openldap Berkeley mismatch
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo LDAP project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-27 13:02 UTC by R. May
Modified: 2006-05-06 06:36 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description R. May 2006-02-27 13:02:27 UTC
Hello,

I will emerge:

net-nds/openldap-2.2.28-r3  +berkdb +crypt -debug +gdbm +ipv6 -kerberos -minimal -odbc +perl +readline +samba +sasl (-selinux) -slp +ssl +tcpd 0 kB

checking db.h presence... yes
checking for db.h... yes
checking for Berkeley DB link (default)... no
checking for Berkeley DB link (-ldb43)... no
checking for Berkeley DB link (-ldb-43)... no
checking for Berkeley DB link (-ldb-4.3)... yes
checking for Berkeley DB version match... Berkeley DB version mismatch
        header: Sleepycat Software: Berkeley DB 4.4.20: (January 10, 2006)
        library: Sleepycat Software: Berkeley DB 4.3.29: (September  6, 2005)
no
configure: error: Berkeley DB version mismatch


I use

emerge -pv BerkeleyDB

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild   R   ] dev-perl/BerkeleyDB-0.27  -minimal 0 kB
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2006-02-27 15:45:29 UTC
please include the output of:
emerge -pv '=db-4.3*' '=db-4.4*'
ls -ld /usr/lib/libdb* /usr/include/db*
Comment 2 Paul de Vrieze (RETIRED) gentoo-dev 2006-02-28 01:59:40 UTC
Be aware that the ebuilds for both db's just changed to have versioned symbols. This should however not lead to the errors you are getting.

The problem is caused by the fact that db-4.4 is not supported. The default header file is db-4.4 and the configure script does not know where to look for the proper header files. At some point in the ebuild's compile phase the following should happen (but configured for the actual desired library):

export CPPFLAGS="-I/usr/include/db4.3"

I think this would be a good time to make an eclass for db using ebuilds so they can query for the versions they want.
Comment 3 Markus Ullmann (RETIRED) gentoo-dev 2006-05-06 06:36:50 UTC
This detection is fixed in OpenLDAP 2.3 upstream configure script, so either wait until it's stable or use it as ~arch