Re: OpenLink problems..
| From: | Georges Claessen | Date: | Tue, 19 Dec 2000 15:53:13 +0000 |
| Subject: | Re: OpenLink problems.. | ||
| References: | 1 | Groups: | php.install |
| Request: | Send a blank email to php-install+get-1284@lists.php.net to get a copy of this message | ||
I had the same problem, you have to change the type of 'len' inside
php_odbc.c from SQLINTEGER to SDWORD... After this it should work fine...
php_odbc.c is under /ext/odbc in your php installation directory...
Fredrik.Palm@notes.sema.se wrote:
> Hello!
>
> I've read the HOWTO on how to install Openlink with PHP at www.iodbc.org
> and I'm having some problems..
> I've downloaded all the latest versions of apache / php and the libraries
> and SDK (Linux glibc2.1.1) at openlinksw.com / iodbc.org. When I try out
> the connection with odbctest it works perfectly fine, but when I try to
> compile PHP (v 4.0.3pl1) it hangs with a couple of errors :
>
> ------// snip //-------
> make[3]: Entering directory `/root/php-4.0.3pl1/ext/odbc'
> /bin/sh /root/php-4.0.3pl1/libtool --silent --mode=compile gcc -I.
> -I/root/php-4.0.3pl1/ext/odbc -I/root/php-4.0.3pl1
> -I/root/php-4.0.3pl1/main -I/usr/include/apache -I/root/php-4.0.3pl1/Zend
> -I/root/php-4.0.3pl1 -I/home/openlink/odbcsdk/include
> -I/root/php-4.0.3pl1/ext/xml/expat/xmltok
> -I/root/php-4.0.3pl1/ext/xml/expat/xmlparse -I/root/php-4.0.3pl1/TSRM
> -DEAPI -DXML_BYTE_ORDER=12 -g -O2 -c php_odbc.c
> php_odbc.c: In function `odbc_column_lengths':
> php_odbc.c:619: `SQLINTEGER' undeclared (first use in this function)
> php_odbc.c:619: (Each undeclared identifier is reported only once
> php_odbc.c:619: for each function it appears in.)
> php_odbc.c:619: parse error before `len'
> php_odbc.c:648: `len' undeclared (first use in this function)
> make[3]: *** [php_odbc.lo] Error 1
> make[3]: Leaving directory `/root/php-4.0.3pl1/ext/odbc'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/root/php-4.0.3pl1/ext/odbc'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/root/php-4.0.3pl1/ext'
> make: *** [all-recursive] Error 1
> [root@umea_2 php-4.0.3pl1]#
> --------//snip//-------
>
> Anyone have a clue on what's going wrong ?
>
> // Fredrik Palm.
>
> --
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-install-unsubscribe@lists.php.net
> For additional commands, e-mail: php-install-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net