ID: 38702 Updated by: [EMAIL PROTECTED] Reported By: prashant dot bhandare at nbcuni dot com -Status: Assigned +Status: Wont fix Bug Type: Compile Warning Operating System: RedHat EL release 4 (Nahant 3) PHP Version: 5.1.6 Assigned To: kalowsky New Comment:
Warnings are not errors -> wont fix. Previous Comments: ------------------------------------------------------------------------ [2006-09-04 22:48:20] Grant dot Walters at walters dot co dot nz Same thing on RedHat ES2.1 using datadirect drivers provided with Progress OpenEdge 101A (patch A01). using: DLC=/usr/dlc101a LD_LIBRARY_PATH=$DLC/lib:$DLC/odbc/lib CUSTOM_ODBC_LIBS="-L$DLC/odbc/lib -lodbc " CFLAGS="-I$DLC/odbc/include -L$DLC/odbc/lib" configure \ --prefix=/opt \ --disable-ipv6 \ --disable-libxml \ --disable-dom \ --disable-simplexml \ --disable-xml \ --disable-xmlreader \ --disable-xmlwriter \ --enable-versioning \ --enable-sockets \ --enable-ftp \ --without-pear \ --without-ldap-sasl \ --with-custom-odbc=/usr/dlc101a/odbc \ --with-kerberos \ --with-openssl \ --with-zlib \ --with-db4 \ --with-inifile \ --with-flatfile \ --with-gd \ --with-gettext \ --with-imap \ --with-imap-ssl \ --with-ldap \ --with-mime-magic \ --with-mysql=/usr \ --with-readline \ --with-mm \ --with-snmp ------------------------------------------------------------------------ [2006-09-03 21:15:11] prashant dot bhandare at nbcuni dot com 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 this bug report at http://bugs.php.net/?id=38702&edit=1