Problem compiling PHP4.0.2 with Openlink ODBC
| From: | Andre Felipe | Date: | Wed, 06 Dec 2000 21:20:11 +0000 |
| Subject: | Problem compiling PHP4.0.2 with Openlink ODBC | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-40247@lists.php.net to get a copy of this message | ||
Operating system: Sun Solaris 2.7
PHP version: both 4.0.2 and 4.0.3pl1
PHP Bug Type: `SQLINTEGER' undeclared
Bug description: When compiling PHP with Openlink ODBC on Solaris it complains about
`SQLINTEGER' undeclared
gcc version 2.95.1 19990816 (release)
Last compilation line:
gcc -I. -I/tmp/comp/php-4.0.2/ext/odbc -I/tmp/comp/php-4.0.2 -I/tmp/comp/php-4.
0.2/main -I/tmp/comp/apache_1.3.11/src/include -I/tmp/comp/apache_1.3.11/src/os/
unix -I/tmp/comp/php-4.0.2/Zend -I/tmp/comp/php-4.0.2 -I/tmp/comp/php-4.0.2/ext/
mysql/libmysql -I/tmp/comp/odbcsdk/include -I/tmp/comp/php-4.0.2/ext/xml/expat/x
mltok -I/tmp/comp/php-4.0.2/ext/xml/expat/xmlparse -D_POSIX_PTHREAD_SEMANTICS -
DXML_BYTE_ORDER=21 -g -O2 -c php_odbc.c && touch php_odbc.lo
Error message:
php_odbc.c: In function `odbc_column_lengths':
php_odbc.c:610: `SQLINTEGER' undeclared (first use in this function)
php_odbc.c:610: (Each undeclared identifier is reported only once
php_odbc.c:610: for each function it appears in.)
php_odbc.c:610: parse error before `len'
php_odbc.c:638: `len' undeclared (first use in this function)
I wrote to you before, saying that I´ve stripped #if defined HAS_SOLID paragraph and included
"DWORD len" in php_odbc.c source
Code to make this compilation work.
Ok, but when using ODBC functions (that used to work with PHP 3.0.12 ) it doesn't work properly
anymore.
ODBC_CONNECT works ok, returning connection_id, but ODBC_EXEC do not work.
Please, any help is very appreciated (or I wont be able to upgrade to PHP 4 ;-))
Thank you all , in advance,
André Felipe