[unixODBC-support] PHP PDO_ODBC install failed with flavour unixODBC 2.2.14

Thomas Despoix despoix at openxtrem.com
Fri Sep 18 14:36:49 BST 2009

Hi everyone,

I've been experiencing a problem using latest (2.2.14) unixODBC source
files for installing PHP PDO_ODBC with a unixODBC flavour.

Indeed such an installation needs a pdo_odbc.so making which fails
while including unixodbc_conf.h :
  /usr/src/unixODBC/include/sqltypes.h:52:27: error: unixodbc_conf.h:
No such file or directory
  /usr/src/unixODBC/include/sqltypes.h:56:2: error: #error "Needs to
know how big a long int is to continue!!!"
  make: *** [pdo_odbc.lo] Erreur 1
  ERROR: `make' failed

Here are the references
  unixODBC.x86_64  2.2.11-7.1 is installed on a RHEL5 distribution
  trying to "pecl install_odbc" with "unixODBC,/usr/src/unixODBC-2.2.14" flavour

I finally downloaded the 2.2.12 release of the source code as a
workaround, but i'm willing to find a more proper solution.

Any clue ?

Thomas Despoix
openXtrem : Solutions Open Source pour les Entreprises
tél : +33 (0) 662 199 661
web : http://www.openxtrem.com

More information about the unixODBC-support mailing list