There are a number of reasons why you may get parse errors when building PHP with the Easysoft ODBC-ODBC Bridge, many of which are nothing to do with our product.
Some errors that we've encountered are:
In file included from /usr/local/easysoft/oob/client/include/odbc.h:2, from functions/php3_unified_odbc.h:199, from internal_functions.c:90: /usr/local/easysoft/oob/client/include/sqlext.h:1652: parse error before '0' /usr/local/easysoft/oob/client/include/sqlext.h:1756: parse error before '0'
In this case, a beta tester was building PHP with Informix (--with-informix
) and custom ODBC support. The problem with doing this is that both the ODBC-ODBC Bridge and the Informix driver define many of the same symbols. In this case SQLCHAR
was defined as 0
by Informix. If you want multiple ODBC drivers to be available from PHP, we recommend that you install a Driver Manager (for example, http://www.unixodbc.org) and then tell the Driver Manager about each driver.