#38702 [NEW]: Getting odbc warnings during compilations
| From: | prashant dot bhandare at nbcuni dot com | Date: | Sun, 03 Sep 2006 21:15:12 +0000 |
| Subject: | #38702 [NEW]: Getting odbc warnings during compilations | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-101674@lists.php.net to get a copy of this message | ||
From: prashant dot bhandare at nbcuni dot com
Operating system: RedHat EL release 4 (Nahant 3)
PHP version: 5.1.6
PHP Bug Type: Compile Warning
Bug description: Getting odbc warnings during compilations
Description:
------------
Hi ,
We are using Data Direct ODBC evaluation copy and getting
multiple errors with data "warning: passing arg 1 of `****' makes integer
from pointer without a cast" during php compilation with odbc.
Below some errors from top :
/opt/install_soft_jboss4.0/php/php-5.1.6/ext/odbc/php_odbc.c: In function
`_free_odbc_result':
/opt/install_soft_jboss4.0/php/php-5.1.6/ext/odbc/php_odbc.c:184: warning:
passing arg 1 of `SQLFreeStmt' makes integer from
pointer without a cast
/opt/install_soft_jboss4.0/php/php-5.1.6/ext/odbc/php_odbc.c: In function
`safe_odbc_disconnect':
/opt/install_soft_jboss4.0/php/php-5.1.6/ext/odbc/php_odbc.c:202: warning:
passing arg 1 of `SQLDisconnect' makes integer fro
m pointer without a cast
Please help.
Reproduce code:
---------------
./configure --with-apxs2=/opt/shared/ws/2.0.54/wsphp01_01/bin/apxs
--with-zlib=/usr --with-png=/usr/include --without-sqlite --prefix=/usr
--with-config-file-path=/etc --enable-sigchild
--with-custom-odbc=/opt/odbc32v52
Expected result:
----------------
No warnings
Actual result:
--------------
With ODBC warnings -
/opt/install_soft_jboss4.0/php/php-5.1.6/ext/odbc/php_odbc.c: In function
`_free_odbc_result':
/opt/install_soft_jboss4.0/php/php-5.1.6/ext/odbc/php_odbc.c:184: warning:
passing arg 1 of `SQLFreeStmt' makes integer from
pointer without a cast
/opt/install_soft_jboss4.0/php/php-5.1.6/ext/odbc/php_odbc.c: In function
`safe_odbc_disconnect':
/opt/install_soft_jboss4.0/php/php-5.1.6/ext/odbc/php_odbc.c:202: warning:
passing arg 1 of `SQLDisconnect' makes integer fro
m pointer without a cast
/opt/install_soft_jboss4.0/php/php-5.1.6/ext/odbc/php_odbc.c:205: warning:
passing arg 1 of `SQLTransact' makes integer from
pointer without a cast
/opt/install_soft_jboss4.0/php/php-5.1.6/ext/odbc/php_odbc.c:205: warning:
passing arg 2 of `SQLTransact' makes integer from
pointer without a cast
/opt/install_soft_jboss4.0/php/php-5.1.6/ext/odbc/php_odbc.c:206: warning:
passing arg 1 of `SQLDisconnect' makes integer fro
m pointer without a cast
/opt/install_soft_jboss4.0/php/php-5.1.6/ext/odbc/php_odbc.c: In function
`_close_odbc_conn':
/opt/install_soft_jboss4.0/php/php-5.1.6/ext/odbc/php_odbc.c:233: warning:
passing arg 1 of `SQLFreeConnect' makes integer fr
om pointer without a cast
/opt/install_soft_jboss4.0/php/php-5.1.6/ext/odbc/php_odbc.c:234: warning:
passing arg 1 of `SQLFreeEnv' makes integer from p
ointer without a cast
/opt/install_soft_jboss4.0/php/php-5.1.6/ext/odbc/php_odbc.c: In function
`_close_odbc_pconn':
/opt/install_soft_jboss4.0/php/php-5.1.6/ext/odbc/php_odbc.c:261: warning:
passing arg 1 of `SQLFreeConnect' makes integer fr
om pointer without a cast
/opt/install_soft_jboss4.0/php/php-5.1.6/ext/odbc/php_odbc.c:262: warning:
passing arg 1 of `SQLFreeEnv' makes integer from p
ointer without a cast
--
Edit bug report at http://bugs.php.net/?id=38702&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=38702&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=38702&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=38702&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=38702&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=38702&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=38702&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=38702&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=38702&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=38702&r=support
Expected behavior: http://bugs.php.net/fix.php?id=38702&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=38702&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=38702&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=38702&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=38702&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=38702&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=38702&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=38702&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=38702&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=38702&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=38702&r=mysqlcfg