Easysoft ODBC-ODBC Bridge

Why does a build of PHP4 RC1 and OOB fail?

Article:
00099
Last Reviewed:
19th July 2005
Revision:
1

If you are attempting to build PHP4 RC1 with OOB you will probably get compilation errors such as:

php_odbc.c: In function `php_if_odbc_execute':
php_odbc.c:849: parse error before `FAR'
php_odbc.c:852: parse error before `FAR'

This problem is due to someone adding code to PHP4 which expects FAR to be defined (FAR was an old Win16 macro). OOB header files do not define FAR as OOB only runs on UNIX, VMS and WIN32. PHP4 has now be changed to remove the use of FAR and this change is available in the latest CVS tree. Until the next RC is released, if you do not have access to the CVS tree the quickest solution is to define CFLAGS as -DFAR="" before running configure.

e.g.
CFLAGS=-DFAR=""
export CFLAGS
./configure --enable-track-vars ... etc etc

Applies To

Knowledge Base Feedback

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

(* Required Fields)


Oracle is a registered trademark of Oracle Corporation and/or its affiliates.