Re: [PHP-DEV] Problem compiling PHP4.0.2 with Openlink ODBC From: Andre Felipe (Andre.Felipe <email protected>)
Date: 12/06/00

Ok guys, if this is not the correct forum for this question, Sorry. But you could at least point me to the right place to ask this
question?

Thank you,
André Felipe

Andre Felipe wrote:

> 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
>
> --
> PHP Development Mailing List <http://www.php.net/>
> To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
> For additional commands, e-mail: php-dev-help <email protected>
> To contact the list administrators, e-mail: php-list-admin <email protected>

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>