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)... yes checking for Berkeley DB thread support... yes checking Berkeley DB version for BDB backend... yes checking for tcpd.h... yes checking for TCP wrappers library... -lwrap checking for openlog... yes checking for sql.h... no configure: error: could not locate SQL headers !!! ERROR: net-nds/openldap-2.1.23 failed. !!! Function econf, Line 338, Exitcode 1 !!! econf failed emerge info Portage 2.0.49-r15 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r8, 2.4.22-2.4.22) ================================================================= System uname: 2.4.22-2.4.22 i686 Intel(R) Pentium(R) 4 CPU 2.00GHz Gentoo Base System version 1.4.3.11 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-O3 -march=pentium4 -pipe -fomit-frame-pointer -fprefetch-loop-arrays -mfpmath=sse,387 -funroll-loops" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-O3 -march=pentium4 -pipe -fomit-frame-pointer -fprefetch-loop-arrays -mfpmath=sse,387 -funroll-loops" DISTDIR="/usr/portage/distfiles" FEATURES="sandbox ccache autoaddcvs" GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://www.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 foomaticdb aalib acl alsa apache2 arts avi berkdb bonobo canna cdr cdrw cjk crypt cups curl dga directfb doc dvb dvd encode emacs flash evo fbcon -firebird freewnn freetds gb gd gdbm gii gif gnome gphoto2 gpm gps gtk gtk2 gtkhtml guile icc icc-pgo imap imlib innodb informix ipv6 jack java jikes joystick jpeg junit kde kerberos krb4 ladcca lcms ldap libg++ libgda libwww lirc mad maildir matrox mbox mcal mikmod memlimit mmx motif mozilla mpeg mpi mule mysql nas ncurses nls oci8 odbc oggvorbis opengl oss pam pda pdas pdflib perl plotutils png pnp postgres prelude python qt quicktime readline ruby samba sasl scanner sdl slang slp snmp socks5 spell sse ssl svga tcltk tcpd tetex tiff truetype usb wmf wxwindows X Xaw3d xface xinerama xml xml2 xmms xv zeo zlib video_cards_radeon"
could you please attach the config.log file, as well as specify what version of dev-db/unixODBC you have installed (and if dev-db/unixODBC works on your system).
I noticed this on my system too when tried to emerge openldap. The emerge failes failes because the unixODBC is not installed on my system. So the big question is: why the emerge doesn't try to emerge unixODBC first? That's the bug here.
unixODBC is in the depend list. no response from original submitter, closing bug.