Easysoft
ODBC Drivers for Oracle, SQL Server, Firebird, ISAM, InterBase, Sybase, MS Access & more.

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?
Yes
No
Maybe
 
* Please select one option based on your first choice:
I'm very satisfied
I think it will help, but I haven't tried it yet
It is helpful, but I need more information
It is helpful, but hard to understand
Seemed relevant in search results, but didn't help me
The information is incorrect
The page contains one or more broken links
 
  Suggest new content or let us know how we can improve this content:

 
  (* Required Fields)   



© 1993 - 2008 Easysoft Limited. All rights reserved.