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

Mimiko vbvbrj at gmail.com
Sat Feb 8 15:30:23 UTC 2014


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.

-- 
Mimiko desu.


More information about the bind-users mailing list