Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 305807

Summary: net-nds/openldap-2.4.19-r1 fails if using "odbc" AND "iodbc" use flag
Product: Gentoo Linux Reporter: steveb <steeeeeveee>
Component: [OLD] ServerAssignee: Gentoo LDAP project <ldap-bugs>
Status: RESOLVED FIXED    
Severity: major    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description steveb 2010-02-19 00:12:36 UTC
Enabling odbc AND iodbc for net-nds/openldap-2.4.19-r1 fails with the following error:
checking for openlog... yes
checking sql.h usability... no
checking sql.h presence... no
checking for sql.h... no
configure: error: could not locate SQL headers


Reproducible: Always
Comment 1 steveb 2010-02-19 00:15:38 UTC
The solution for the problem:
------------------------------------------
--- openldap-2.4.19-r1.ebuild     2010-01-12 21:06:32.000000000 +0100
+++ openldap-2.4.19-r2.ebuild      2010-02-19 00:26:11.640134110 +0100
@@ -307,6 +307,9 @@
                        local odbc_lib="unixodbc"
                        use iodbc && odbc_lib="iodbc"
                        myconf="${myconf} --with-odbc=${odbc_lib}"
+                       if use iodbc ; then
+                               append-cppflags -I/usr/include/iodbc
+                       fi
                fi

                # slapd options
------------------------------------------
Comment 2 Markus Ullmann (RETIRED) gentoo-dev 2010-04-11 15:16:26 UTC
Fixed for 2.4.21, thanks :)