From:             bas at web4friends dot com
Operating system: Linux
PHP version:      5.2.8
PHP Bug Type:     ODBC related
Bug description:  5.2.8 won't compile with --with-ODBCRouter

Description:
------------
Building php 5.2.8 with ODBCRouter support fails. Builds fine till PHP
5.2.6.

Reproduce code:
---------------
./configure --with-apxs2=/usr/local/apache22/bin/apxs --with-ODBCRouter

Actual result:
--------------
In file included from /temp/php-5.2.8/ext/odbc/php_odbc.c:37:
/temp/php-5.2.8/ext/odbc/php_odbc_includes.h:237: error: expected
specifier-qualifier-list before 'SQLLEN'
/temp/php-5.2.8/ext/odbc/php_odbc.c: In function 'safe_odbc_disconnect':
/temp/php-5.2.8/ext/odbc/php_odbc.c:203: warning: passing argument 1 of
'SQLDisconnect' makes integer from pointer without a cast
/temp/php-5.2.8/ext/odbc/php_odbc.c:206: warning: passing argument 1 of
'SQLTransact' makes integer from pointer without a cast
/temp/php-5.2.8/ext/odbc/php_odbc.c:206: warning: passing argument 2 of
'SQLTransact' makes integer from pointer without a cast
/temp/php-5.2.8/ext/odbc/php_odbc.c:207: warning: passing argument 1 of
'SQLDisconnect' makes integer from pointer without a cast
/temp/php-5.2.8/ext/odbc/php_odbc.c: In function '_close_odbc_conn':
/temp/php-5.2.8/ext/odbc/php_odbc.c:233: warning: passing argument 1 of
'safe_odbc_disconnect' makes pointer from integer without a cast
/temp/php-5.2.8/ext/odbc/php_odbc.c: In function '_close_odbc_pconn':
/temp/php-5.2.8/ext/odbc/php_odbc.c:261: warning: passing argument 1 of
'safe_odbc_disconnect' makes pointer from integer without a cast
/temp/php-5.2.8/ext/odbc/php_odbc.c: In function 'odbc_bindcols':
/temp/php-5.2.8/ext/odbc/php_odbc.c:691: error: 'SQLLEN' undeclared (first
use in this function)
/temp/php-5.2.8/ext/odbc/php_odbc.c:691: error: (Each undeclared
identifier is reported only once
/temp/php-5.2.8/ext/odbc/php_odbc.c:691: error: for each function it
appears in.)
/temp/php-5.2.8/ext/odbc/php_odbc.c:691: error: expected ';' before
'displaysize'
/temp/php-5.2.8/ext/odbc/php_odbc.c:702: error: 'odbc_result_value' has no
member named 'coltype'
/temp/php-5.2.8/ext/odbc/php_odbc.c:708: error: 'odbc_result_value' has no
member named 'coltype'
/temp/php-5.2.8/ext/odbc/php_odbc.c:725: error: 'displaysize' undeclared
(first use in this function)
/temp/php-5.2.8/ext/odbc/php_odbc.c:730: error: 'odbc_result_value' has no
member named 'vallen'
/temp/php-5.2.8/ext/odbc/php_odbc.c: In function 'odbc_column_lengths':
/temp/php-5.2.8/ext/odbc/php_odbc.c:785: error: 'SQLLEN' undeclared (first
use in this function)
/temp/php-5.2.8/ext/odbc/php_odbc.c:785: error: expected ';' before 'len'
/temp/php-5.2.8/ext/odbc/php_odbc.c:814: error: 'len' undeclared (first
use in this function)
/temp/php-5.2.8/ext/odbc/php_odbc.c: In function 'zif_odbc_execute':
/temp/php-5.2.8/ext/odbc/php_odbc.c:981: error: expected
specifier-qualifier-list before 'SQLLEN'
/temp/php-5.2.8/ext/odbc/php_odbc.c:989: error: 'SQLULEN' undeclared
(first use in this function)
/temp/php-5.2.8/ext/odbc/php_odbc.c:989: error: expected ';' before
'precision'
/temp/php-5.2.8/ext/odbc/php_odbc.c:1046: error: 'precision' undeclared
(first use in this function)
/temp/php-5.2.8/ext/odbc/php_odbc.c:1048: error: 'params_t' has no member
named 'vallen'
/temp/php-5.2.8/ext/odbc/php_odbc.c:1049: error: 'params_t' has no member
named 'fp'
/temp/php-5.2.8/ext/odbc/php_odbc.c:1076: error: 'params_t' has no member
named 'fp'
/temp/php-5.2.8/ext/odbc/php_odbc.c:1080: error: 'params_t' has no member
named 'fp'
/temp/php-5.2.8/ext/odbc/php_odbc.c:1081: error: 'params_t' has no member
named 'fp'
/temp/php-5.2.8/ext/odbc/php_odbc.c:1091: error: 'params_t' has no member
named 'vallen'
/temp/php-5.2.8/ext/odbc/php_odbc.c:1095: error: 'params_t' has no member
named 'fp'
/temp/php-5.2.8/ext/odbc/php_odbc.c:1096: error: 'params_t' has no member
named 'vallen'
/temp/php-5.2.8/ext/odbc/php_odbc.c:1102: error: 'params_t' has no member
named 'vallen'
/temp/php-5.2.8/ext/odbc/php_odbc.c:1108: error: 'params_t' has no member
named 'vallen'
/temp/php-5.2.8/ext/odbc/php_odbc.c:1150: error: 'params_t' has no member
named 'fp'
/temp/php-5.2.8/ext/odbc/php_odbc.c:1151: error: 'params_t' has no member
named 'fp'
/temp/php-5.2.8/ext/odbc/php_odbc.c: In function 'zif_odbc_fetch_into':
/temp/php-5.2.8/ext/odbc/php_odbc.c:1629: error: 'odbc_result_value' has
no member named 'coltype'
/temp/php-5.2.8/ext/odbc/php_odbc.c:1639: error: 'odbc_result_value' has
no member named 'coltype'
/temp/php-5.2.8/ext/odbc/php_odbc.c:1639: error: 'odbc_result_value' has
no member named 'coltype'
/temp/php-5.2.8/ext/odbc/php_odbc.c:1646: error: 'odbc_result_value' has
no member named 'vallen'
/temp/php-5.2.8/ext/odbc/php_odbc.c:1655: error: 'odbc_result_value' has
no member named 'vallen'
/temp/php-5.2.8/ext/odbc/php_odbc.c:1659: error: 'odbc_result_value' has
no member named 'vallen'
/temp/php-5.2.8/ext/odbc/php_odbc.c:1665: error: 'odbc_result_value' has
no member named 'vallen'
/temp/php-5.2.8/ext/odbc/php_odbc.c:1669: error: 'odbc_result_value' has
no member named 'vallen'
/temp/php-5.2.8/ext/odbc/php_odbc.c: In function 'zif_odbc_fetch_row':
/temp/php-5.2.8/ext/odbc/php_odbc.c:1716: error: 'SQLLEN' undeclared
(first use in this function)
/temp/php-5.2.8/ext/odbc/php_odbc.c:1716: error: expected ';' before
'rownum'
/temp/php-5.2.8/ext/odbc/php_odbc.c:1735: error: 'rownum' undeclared
(first use in this function)
/temp/php-5.2.8/ext/odbc/php_odbc.c: In function 'zif_odbc_result':
/temp/php-5.2.8/ext/odbc/php_odbc.c:1782: error: 'SQLLEN' undeclared
(first use in this function)
/temp/php-5.2.8/ext/odbc/php_odbc.c:1782: error: expected ';' before
'fieldsize'
/temp/php-5.2.8/ext/odbc/php_odbc.c:1851: error: 'odbc_result_value' has
no member named 'coltype'
/temp/php-5.2.8/ext/odbc/php_odbc.c:1858: error: 'odbc_result_value' has
no member named 'coltype'
/temp/php-5.2.8/ext/odbc/php_odbc.c:1858: error: 'odbc_result_value' has
no member named 'coltype'
/temp/php-5.2.8/ext/odbc/php_odbc.c:1862: error: 'fieldsize' undeclared
(first use in this function)
/temp/php-5.2.8/ext/odbc/php_odbc.c:1877: error: 'odbc_result_value' has
no member named 'vallen'
/temp/php-5.2.8/ext/odbc/php_odbc.c:1885: error: 'odbc_result_value' has
no member named 'vallen'
/temp/php-5.2.8/ext/odbc/php_odbc.c:1894: error: 'odbc_result_value' has
no member named 'coltype'
/temp/php-5.2.8/ext/odbc/php_odbc.c:1898: error: 'odbc_result_value' has
no member named 'vallen'
/temp/php-5.2.8/ext/odbc/php_odbc.c:1903: error: 'odbc_result_value' has
no member named 'vallen'
/temp/php-5.2.8/ext/odbc/php_odbc.c:1906: error: 'odbc_result_value' has
no member named 'vallen'
/temp/php-5.2.8/ext/odbc/php_odbc.c:1920: error: 'odbc_result_value' has
no member named 'vallen'
/temp/php-5.2.8/ext/odbc/php_odbc.c:1928: error: 'odbc_result_value' has
no member named 'vallen'
/temp/php-5.2.8/ext/odbc/php_odbc.c:1933: error: 'odbc_result_value' has
no member named 'vallen'
/temp/php-5.2.8/ext/odbc/php_odbc.c: In function 'zif_odbc_result_all':
/temp/php-5.2.8/ext/odbc/php_odbc.c:2005: error: 'odbc_result_value' has
no member named 'coltype'
/temp/php-5.2.8/ext/odbc/php_odbc.c:2015: error: 'odbc_result_value' has
no member named 'coltype'
/temp/php-5.2.8/ext/odbc/php_odbc.c:2015: error: 'odbc_result_value' has
no member named 'coltype'
/temp/php-5.2.8/ext/odbc/php_odbc.c:2024: error: 'odbc_result_value' has
no member named 'vallen'
/temp/php-5.2.8/ext/odbc/php_odbc.c:2036: error: 'odbc_result_value' has
no member named 'vallen'
/temp/php-5.2.8/ext/odbc/php_odbc.c:2040: error: 'odbc_result_value' has
no member named 'vallen'
/temp/php-5.2.8/ext/odbc/php_odbc.c:2045: error: 'odbc_result_value' has
no member named 'vallen'
/temp/php-5.2.8/ext/odbc/php_odbc.c: In function 'zif_odbc_num_rows':
/temp/php-5.2.8/ext/odbc/php_odbc.c:2481: error: 'SQLLEN' undeclared
(first use in this function)
/temp/php-5.2.8/ext/odbc/php_odbc.c:2481: error: expected ';' before
'rows'
/temp/php-5.2.8/ext/odbc/php_odbc.c:2488: error: 'rows' undeclared (first
use in this function)
make: *** [ext/odbc/php_odbc.lo] Error 1

-- 
Edit bug report at http://bugs.php.net/?id=46853&edit=1
-- 
Try a CVS snapshot (PHP 5.2):        
http://bugs.php.net/fix.php?id=46853&r=trysnapshot52
Try a CVS snapshot (PHP 5.3):        
http://bugs.php.net/fix.php?id=46853&r=trysnapshot53
Try a CVS snapshot (PHP 6.0):        
http://bugs.php.net/fix.php?id=46853&r=trysnapshot60
Fixed in CVS:                        
http://bugs.php.net/fix.php?id=46853&r=fixedcvs
Fixed in CVS and need be documented: 
http://bugs.php.net/fix.php?id=46853&r=needdocs
Fixed in release:                    
http://bugs.php.net/fix.php?id=46853&r=alreadyfixed
Need backtrace:                      
http://bugs.php.net/fix.php?id=46853&r=needtrace
Need Reproduce Script:               
http://bugs.php.net/fix.php?id=46853&r=needscript
Try newer version:                   
http://bugs.php.net/fix.php?id=46853&r=oldversion
Not developer issue:                 
http://bugs.php.net/fix.php?id=46853&r=support
Expected behavior:                   
http://bugs.php.net/fix.php?id=46853&r=notwrong
Not enough info:                     
http://bugs.php.net/fix.php?id=46853&r=notenoughinfo
Submitted twice:                     
http://bugs.php.net/fix.php?id=46853&r=submittedtwice
register_globals:                    
http://bugs.php.net/fix.php?id=46853&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=46853&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=46853&r=dst
IIS Stability:                       
http://bugs.php.net/fix.php?id=46853&r=isapi
Install GNU Sed:                     
http://bugs.php.net/fix.php?id=46853&r=gnused
Floating point limitations:          
http://bugs.php.net/fix.php?id=46853&r=float
No Zend Extensions:                  
http://bugs.php.net/fix.php?id=46853&r=nozend
MySQL Configuration Error:           
http://bugs.php.net/fix.php?id=46853&r=mysqlcfg

Reply via email to