php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #46853 Compile failure using --with-ODBCRouter
Submitted: 2008-12-12 18:45 UTC Modified: 2017-07-28 08:46 UTC
Votes:3
Avg. Score:5.0 ± 0.0
Reproduced:3 of 3 (100.0%)
Same Version:3 (100.0%)
Same OS:3 (100.0%)
From: bas at web4friends dot com Assigned: kalle (profile)
Status: Closed Package: ODBC related
PHP Version: 5.2.13 OS: Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: bas at web4friends dot com
New email:
PHP Version: OS:

 

 [2008-12-12 18:45 UTC] bas at web4friends dot com
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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-03-05 13:12 UTC] jani@php.net
Moved back to ODBC related where this belongs.
 [2009-06-19 15:52 UTC] bas at web4friends dot com
Bug is stil existing in 5.2.10 and 5.3RC builds
 [2009-11-18 10:06 UTC] mathieu dot bruere at gmail dot com
I've got the same problem while compiling PHP with Adabas.
Worked fine till 5.2.6.
 [2010-03-03 20:15 UTC] bas at web4friends dot com
Bug is stil existing in 5.2.13
 [2017-07-24 22:14 UTC] kalle@php.net
-Status: Open +Status: Assigned -Assigned To: +Assigned To: kalle
 [2017-07-28 08:46 UTC] kalle@php.net
-Status: Assigned +Status: Closed
 [2017-07-28 08:46 UTC] kalle@php.net
The fix for this bug has been committed.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.

 For Windows:

http://windows.php.net/snapshots/
 
Thank you for the report, and for helping us make PHP better.

ODBCRouter support has been removed in master aka 7.3.0
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 18 05:01:28 2024 UTC