Compiling latest snapshot with ODBC

php.internals

John Huntjens

23 years ago
Compiling the 28-8 3:30 snapshot whit the option --with-unixODBC=/usr/local/odbc /bin/sh /sys/tmp/php5-200308280330/libtool --silent --preserve-dup-deps --mode=compi le gcc -I/usr/local/odbc/include -Iext/odbc/ -I/sys/tmp/php5-200308280330/ext/o dbc/ -DPHP_ATOM_INC -I/sys/tmp/php5-200308280330/include -I/sys/tmp/php5-200 308280330/main -I/sys/tmp/php5-200308280330 -I/sys/tmp/php5-200308280330/Zen d -I/usr/local/zlib/include -I/usr/local/libxml/include/libxml2 -I/usr/local /firebird/include -I/usr/local/libxslt/include -I/sys/tmp/php5-200308280330 /TSRM -g -O2 -prefer-pic -c /sys/tmp/php5-200308280330/ext/odbc/php_odbc.c -o ext/odbc/php_odbc.lo /sys/tmp/php5-200308280330/ext/odbc/php_odbc.c: In function `odbc_bindcols': /sys/tmp/php5-200308280330/ext/odbc/php_odbc.c:657: error: `SQL_BLOB' undeclared (first use in this function) /sys/tmp/php5-200308280330/ext/odbc/php_odbc.c:657: error: (Each undeclared identifier is reported only once /sys/tmp/php5-200308280330/ext/odbc/php_odbc.c:657: error: for each function it appears in.) contents of: ls -al /usr/local/odbc/include/ total 181k drwxr-xr-x 2 root root 288 Aug 28 13:35 ./ drwxr-xr-x 5 root root 120 Aug 28 13:35 ../ -rw-r--r-- 1 root root 5.4k Aug 28 13:35 autotest.h -rw-r--r-- 1 root root 8.4k Aug 28 13:35 odbcinst.h -rw-r--r-- 1 root root 8.4k Aug 28 13:35 odbcinstext.h -rw-r--r-- 1 root root 28k Aug 28 13:35 sql.h -rw-r--r-- 1 root root 76k Aug 28 13:35 sqlext.h -rw-r--r-- 1 root root 11k Aug 28 13:35 sqltypes.h -rw-r--r-- 1 root root 21k Aug 28 13:35 sqlucode.h -rw-r--r-- 1 root root 2.5k Aug 28 13:35 uodbc_stats.h

Jani Taskinen

23 years ago
Don't worry about that, Dan will revert that patch sometime soon. :) --Jani On Thu, 28 Aug 2003, John Huntjens wrote:
>Compiling the 28-8 3:30 snapshot whit the option > > --with-unixODBC=/usr/local/odbc > > >/bin/sh >/sys/tmp/php5-200308280330/libtool --silent --preserve-dup-deps --mode=compi >le >gcc -I/usr/local/odbc/include -Iext/odbc/ -I/sys/tmp/php5-200308280330/ext/o >dbc/ -DPHP_ATOM_INC -I/sys/tmp/php5-200308280330/include -I/sys/tmp/php5-200 >308280330/main -I/sys/tmp/php5-200308280330 -I/sys/tmp/php5-200308280330/Zen >d -I/usr/local/zlib/include -I/usr/local/libxml/include/libxml2 -I/usr/local >/firebird/include -I/usr/local/libxslt/include -I/sys/tmp/php5-200308280330 >/TSRM -g -O2 -prefer-pic -c >/sys/tmp/php5-200308280330/ext/odbc/php_odbc.c -o ext/odbc/php_odbc.lo >/sys/tmp/php5-200308280330/ext/odbc/php_odbc.c: In function `odbc_bindcols': >/sys/tmp/php5-200308280330/ext/odbc/php_odbc.c:657: error: `SQL_BLOB' >undeclared (first use in this function) >/sys/tmp/php5-200308280330/ext/odbc/php_odbc.c:657: error: (Each undeclared >identifier is reported only once >/sys/tmp/php5-200308280330/ext/odbc/php_odbc.c:657: error: for each function >it appears in.) > >contents of: >ls -al /usr/local/odbc/include/ >total 181k >drwxr-xr-x 2 root root 288 Aug 28 13:35 ./ >drwxr-xr-x 5 root root 120 Aug 28 13:35 ../ >-rw-r--r-- 1 root root 5.4k Aug 28 13:35 autotest.h >-rw-r--r-- 1 root root 8.4k Aug 28 13:35 odbcinst.h >-rw-r--r-- 1 root root 8.4k Aug 28 13:35 odbcinstext.h >-rw-r--r-- 1 root root 28k Aug 28 13:35 sql.h >-rw-r--r-- 1 root root 76k Aug 28 13:35 sqlext.h >-rw-r--r-- 1 root root 11k Aug 28 13:35 sqltypes.h >-rw-r--r-- 1 root root 21k Aug 28 13:35 sqlucode.h >-rw-r--r-- 1 root root 2.5k Aug 28 13:35 uodbc_stats.h > >
-- https://www.paypal.com/xclick/business=sniper@php.net&no_note=1&tax=0&currency_code=EUR

John Huntjens

23 years ago
> > Don't worry about that, Dan will revert that patch sometime soon. :) >
Kan you give me a pointer what to change to get it compiling again? Gr, John

Dan Kalowsky

23 years ago
Yes remove any mention of the world SQL_BLOB or just add in a #define SQL_BLOB SQL_LONGVARCHAR (untested but should work) On Thursday, August 28, 2003, at 10:52 AM, John Huntjens wrote:
>> >> Don't worry about that, Dan will revert that patch sometime soon. >> :) >> > Kan you give me a pointer what to change to get it compiling again? > > Gr, > > John > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > >---------------------------------------------------------------<
Dan Kalowsky "Momma take this badge offa me, http://www.deadmime.org/~dank I can't use it anymore." dank-nom@aps-deadmime.org - "Knockin on Heavens Door", kalowsky@php.net Bob Dylan

John Huntjens

23 years ago
> Yes remove any mention of the world SQL_BLOB
This did the trick, thanks
> or just add in a #define SQL_BLOB SQL_LONGVARCHAR (untested but should > work)
Did not test this. Gr, John

Jani Taskinen

23 years ago
On Thu, 28 Aug 2003, John Huntjens wrote:
>> >> Don't worry about that, Dan will revert that patch sometime soon. :) >> >Kan you give me a pointer what to change to get it compiling again?
The patch is reverted now. --Jani