From: cseader at idahopower dot com Operating system: SuSE SLES 8 zSeries 64bit PHP version: 4.3.8 PHP Bug Type: Compile Warning Bug description: Compile with IBM DB2 don't work
Description: ------------ I am compileing PHP with IBM DB2 support on SuSE SLES 8 zSeries 64bit platform. I am useing the following configure options. ./configure --with-apxs --enable-track-vars --with-ibm-db2=/opt/IBM/db2/V8.1 --enable-bcmath --with-zlib=yes While doing the compile i get some warnings that are spit out and the compile completes successfully, but ODBC for IBM DB2 does not work properly, and i think it has to do with these warnings. Here are the warnings listed below. In file included from /opt/IBM/db2/V8.1/include/sqlcli1.h:42, from /usr/src/packages/BUILD/php4-STABLE-200409201630/ext/odbc/php_odbc_includes.h:176, from /usr/src/packages/BUILD/php4-STABLE-200409201630/ext/odbc/php_odbc.c:37: /opt/IBM/db2/V8.1/include/sqlcli.h:772:1: warning: "ODBCVER" redefined In file included from /usr/src/packages/BUILD/php4-STABLE-200409201630/ext/odbc/php_odbc.c:37: /usr/src/packages/BUILD/php4-STABLE-200409201630/ext/odbc/php_odbc_includes.h:28:1: warning: this is the location of the previous definition /usr/src/packages/BUILD/php4-STABLE-200409201630/ext/odbc/php_odbc.c: In function `safe_odbc_disconnect': /usr/src/packages/BUILD/php4-STABLE-200409201630/ext/odbc/php_odbc.c:201: warning: passing arg 1 of `SQLDisconnect' makes integer from pointer without a cast /usr/src/packages/BUILD/php4-STABLE-200409201630/ext/odbc/php_odbc.c:204: warning: passing arg 1 of `SQLTransact' makes integer from pointer without a cast /usr/src/packages/BUILD/php4-STABLE-200409201630/ext/odbc/php_odbc.c:204: warning: passing arg 2 of `SQLTransact' makes integer from pointer without a cast /usr/src/packages/BUILD/php4-STABLE-200409201630/ext/odbc/php_odbc.c:205: warning: passing arg 1 of `SQLDisconnect' makes integer from pointer without a cast /usr/src/packages/BUILD/php4-STABLE-200409201630/ext/odbc/php_odbc.c: In function `_close_odbc_conn': /usr/src/packages/BUILD/php4-STABLE-200409201630/ext/odbc/php_odbc.c:231: warning: passing arg 1 of `safe_odbc_disconnect' makes pointer from integer without a cast /usr/src/packages/BUILD/php4-STABLE-200409201630/ext/odbc/php_odbc.c: In function `_close_odbc_pconn': /usr/src/packages/BUILD/php4-STABLE-200409201630/ext/odbc/php_odbc.c:259: warning: passing arg 1 of `safe_odbc_disconnect' makes pointer from integer without a cast /usr/src/packages/BUILD/php4-STABLE-200409201630/ext/odbc/php_odbc.c: In function `odbc_bindcols': /usr/src/packages/BUILD/php4-STABLE-200409201630/ext/odbc/php_odbc.c:676: warning: passing arg 6 of `SQLBindCol' from incompatible pointer type /usr/src/packages/BUILD/php4-STABLE-200409201630/ext/odbc/php_odbc.c: In function `zif_odbc_execute': /usr/src/packages/BUILD/php4-STABLE-200409201630/ext/odbc/php_odbc.c:1042: warning: cast to pointer from integer of different size /usr/src/packages/BUILD/php4-STABLE-200409201630/ext/odbc/php_odbc.c: In function `zif_odbc_data_source': /usr/src/packages/BUILD/php4-STABLE-200409201630/ext/odbc/php_odbc.c:1223: warning: passing arg 2 of `odbc_sql_error' makes integer from pointer without a cast /usr/src/packages/BUILD/php4-STABLE-200409201630/ext/odbc/php_odbc.c: In function `php_odbc_fetch_hash': /usr/src/packages/BUILD/php4-STABLE-200409201630/ext/odbc/php_odbc.c:1434: warning: passing arg 6 of `SQLGetData' from incompatible pointer type /usr/src/packages/BUILD/php4-STABLE-200409201630/ext/odbc/php_odbc.c: In function `zif_odbc_fetch_into': /usr/src/packages/BUILD/php4-STABLE-200409201630/ext/odbc/php_odbc.c:1594: warning: passing arg 6 of `SQLGetData' from incompatible pointer type /usr/src/packages/BUILD/php4-STABLE-200409201630/ext/odbc/php_odbc.c: In function `zif_odbc_result': /usr/src/packages/BUILD/php4-STABLE-200409201630/ext/odbc/php_odbc.c:1825: warning: passing arg 6 of `SQLGetData' from incompatible pointer type /usr/src/packages/BUILD/php4-STABLE-200409201630/ext/odbc/php_odbc.c:1868: warning: passing arg 6 of `SQLGetData' from incompatible pointer type /usr/src/packages/BUILD/php4-STABLE-200409201630/ext/odbc/php_odbc.c: In function `zif_odbc_result_all': /usr/src/packages/BUILD/php4-STABLE-200409201630/ext/odbc/php_odbc.c:1972: warning: passing arg 6 of `SQLGetData' from incompatible pointer type /usr/src/packages/BUILD/php4-STABLE-200409201630/ext/odbc/php_odbc.c: In function `odbc_do_connect': /usr/src/packages/BUILD/php4-STABLE-200409201630/ext/odbc/php_odbc.c:2302: warning: cast from pointer to integer of different size Can anyone shed some light on this particular problem im having? Am i doing something wrong here. Thanks, Cameron Seader -- Edit bug report at http://bugs.php.net/?id=30189&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=30189&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=30189&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=30189&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=30189&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=30189&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=30189&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=30189&r=needscript Try newer version: http://bugs.php.net/fix.php?id=30189&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=30189&r=support Expected behavior: http://bugs.php.net/fix.php?id=30189&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=30189&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=30189&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=30189&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=30189&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=30189&r=dst IIS Stability: http://bugs.php.net/fix.php?id=30189&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=30189&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=30189&r=float MySQL Configuration Error: http://bugs.php.net/fix.php?id=30189&r=mysqlcfg