Error compile bind 9.9.5 --with-dlz-odbc=yes

Stefan Steiger stefan.steiger at bluewin.ch
Sun Feb 9 12:38:45 UTC 2014


Had the same problem on Ubuntu.

You can simply fix it by doing:
--with-dlz-odbc=/usr

Many arguments work like that.
-with-dlz-bdb is another such candidate.
Though you wouldn't expect it, since for the the other dlz parameters it 
suffices to write =yes.


However, --with-dlz-bdb really does not work (on Ubuntu at least).
"configure: error: could not find Berkeley DB include directory"


This is how I usually compile it

./configure --prefix=/usr --sysconfdir=/etc/bind --localstatedir=/var \
--mandir=/usr/share/man --infodir=/usr/share/info \
--enable-threads --enable-largefile --with-libtool --enable-shared 
--enable-static \
--with-openssl=/usr --with-gssapi=/usr --with-gnu-ld \
--with-dlz-postgres=yes --with-dlz-mysql=yes --with-dlz-bdb=no \
--with-dlz-filesystem=yes --with-dlz-ldap=yes \
--with-dlz-odbc=/usr --with-dlz-stub=yes --with-geoip=/usr --enable-ipv6 \
--with-dlopen=yes --enable-rrl --enable-newstats













On 02/08/2014 04:30 PM, Mimiko wrote:
> Hello.
>
> I try to compile like this:
> ./configure --with-dlz-odbc=yes
>
> error:
> checking for ODBC DLZ driver... not found
> configure: error: ODBC headers were not found in any of /usr 
> /usr/local /usr/pkg; use --with-dlz-odbc=/path
>
> But in my Debian Wheezy x64 unixodbc is installed:
>  dpkg-query -l | grep odbc
> ii  libodbc1:amd64                        2.2.14p2-5 amd64        ODBC 
> library for Unix
> ii  odbcinst                              2.2.14p2-5 amd64        
> Helper program for accessing odbc ini files
> ii  odbcinst1debian2:amd64                2.2.14p2-5 amd64        
> Support library for accessing odbc ini files
> ii  unixodbc                              2.2.14p2-5 amd64        
> Basic ODBC tools
> ii  unixodbc-dev                          2.2.14p2-5 amd64        ODBC 
> libraries for UNIX (development files)
>
> From configure line 19932, configure searches lib file libodbc.a in 
> following paths:
> /usr/lib
> /usr/local/lib
> /usr/pkg/lib
>
> But in debian this file is located in:
> /usr/lib/x86_64-linux-gnu
>
> As a workaround I have to modify line 19935 from
> if test -f $d/include/sql.h -a -f $d/lib/libodbc.a
> to
> if test -f $d/include/sql.h -a \( -f $d/lib/libodbc.a -o -f 
> $d/lib/x86_64-linux-gnu/libodbc.a \)
>
> Please update configure script to handle this path.
>



More information about the bind-users mailing list