Easysoft ODBC-ODBC Bridge

Why do I get parse errors when compiling PHP with the ODBC-ODBC Bridge?

Article:
00981
Last Reviewed:
25th January 2024
Revision:
1

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 have seen 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 , Easysoft recommend that you install a Driver Manager (e.g. http://www.unixodbc.org ) and then tell the Driver Manager about each driver.

Applies To

Knowledge Base Feedback

* Did this content help you?
* Please select one option based on your first choice:

(* Required Fields)