Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 305807 - net-nds/openldap-2.4.19-r1 fails if using "odbc" AND "iodbc" use flag
Summary: net-nds/openldap-2.4.19-r1 fails if using "odbc" AND "iodbc" use flag
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Gentoo LDAP project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-19 00:12 UTC by steveb
Modified: 2010-04-11 15:16 UTC (History)
0 users

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 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 :)