Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 35076 - openldap-2.1.x (23) can't find DB-4.x during compile
Summary: openldap-2.1.x (23) can't find DB-4.x during compile
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Robin Johnson
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-12-04 12:21 UTC by Jeremy Langley
Modified: 2003-12-05 13:28 UTC (History)
2 users (show)

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


Attachments
the config.log from openldap 2.1.23 (I tried several openldap versions so I have more) (config.log,58.66 KB, text/plain)
2003-12-05 08:53 UTC, Jeremy Langley
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jeremy Langley 2003-12-04 12:21:30 UTC
I emerge DB-4.1.25.ebuild just fine.  It shows up as 4.0.14-r2.

-----------------example-------
testsrvr root # emerge db-4.1.25.ebuild
blah blah....
>>> sys-libs/db-4.1.25 merged.
blah blah...
testsrvr root # emerge db -pv
 
These are the packages that I would merge, in order:
 
Calculating dependencies ...done!
[ebuild   R   ] sys-libs/db-4.0.14-r2  +tcltk +java -doc
----------end example -------------------

when I emerge openldap-2.1.x it breaks during the configure process... it can't
find Berkley DB

testsrvr root # USE="-gdbm" emerge openldap-2.1.23.ebuild
...
boring part omitted
...
checking for db.h... yes
checking for Berkeley DB link (default)... no
checking for Berkeley DB link (-ldb41)... no
checking for Berkeley DB link (-ldb-41)... no
checking for Berkeley DB link (-ldb-4.1)... no
checking for Berkeley DB link (-ldb-4-1)... no
checking for Berkeley DB link (-ldb-4)... no
checking for Berkeley DB link (-ldb4)... no
checking for Berkeley DB link (-ldb)... no
checking for Berkeley DB link (-ldb3)... no
checking for Berkeley DB link (-ldb-3)... no
checking for Berkeley DB link (-ldb2)... no
checking for Berkeley DB link (-ldb-2)... no
checking for Berkeley DB link (-ldb1)... no
checking for Berkeley DB link (-ldb-1)... no
configure: error: BDB: BerkeleyDB not available
 
!!! ERROR: net-nds/openldap-2.1.23 failed.
!!! Function econf, Line 338, Exitcode 1
!!! econf failed
 

I think db-4.x series needs to be fixed.



Reproducible: Always
Steps to Reproduce:
emerge db-4.x
emerge openldap 2.1.x

Actual Results:  
the compile for openldap broke.


Portage 2.0.49-r15 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r3, 2.4.22-openmosix)
=================================================================
System uname: 2.4.22-openmosix i686 Intel(R) Pentium(R) 4 CPU 2.40GHz
Gentoo Base System version 1.4.3.10
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium3 -O3 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config
/usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-march=pentium3 -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="sandbox ccache"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 apm avi crypt encode foomaticdb libg++ mad mikmod mpeg ncurses nls
pdflib xml2 xv zlib gdbm slang readline arts tetex svga tcltk guile sdl gpm tcpd
pam ssl esd imlib gtk qt kde motif cdr berkdb gtk2 acl innodb kerberos alsa odbc
sql sasl gd -ipv6 gnome apache2 bonobo cups gif gtkhtml imap java jpeg ldap
libwww maildir mmx mozilla mysql oggvorbis opengl oss png perl postgres python
quicktime samba spell truetype xmms X xml"
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2003-12-04 15:57:01 UTC
emerge is not a good way to see what packages are installed if they use SLOTS a lot like the db stuff.
Run:
"qpkg sys-libs/db -v -I" instead and include the output here. Eg, here is my output:
curie-int root # qpkg sys-libs/db  -v -I
sys-libs/db-1.85-r1 *
sys-libs/db-3.2.9-r10 *
sys-libs/db-4.1.25_p1-r3 *
sys-libs/db-4.0.14-r3 *

please attach the config.log file from the openldap compile as well (/var/tmp/portage/openldap*/work/openldap*/config.log
Comment 2 Jeremy Langley 2003-12-05 08:53:41 UTC
Created attachment 21748 [details]
the config.log from openldap 2.1.23 (I tried several openldap versions so I have more)
Comment 3 Jeremy Langley 2003-12-05 08:55:56 UTC
I would guess that all these versions are installed on my machine.

sys-libs/db-1.85-r1 *
sys-libs/db-4.0.14-r2 *
sys-libs/db-4.1.25 *
sys-libs/db-3.2.9-r10 *
Comment 4 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2003-12-05 13:28:00 UTC
why do you have sys-libs/db-4.1.25-r0 (sys-libs/db-4.1.25 * from your stuff) installed?
It's marked as '-*' and you shouldn't have picked it up.

Go up to db-4.1.25_p1-r3 and openldap will work fine.

I recommend:
ACCEPT_KEYWORDS="~x86" emerge -u db
as opposed to picking an ebuild yourself.