php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #30189 Compile with IBM DB2 don't work
Submitted: 2004-09-21 23:56 UTC Modified: 2004-12-20 01:00 UTC
Votes:2
Avg. Score:5.0 ± 0.0
Reproduced:2 of 2 (100.0%)
Same Version:1 (50.0%)
Same OS:1 (50.0%)
From: cseader at idahopower dot com Assigned:
Status: No Feedback Package: ODBC related
PHP Version: 4.3.8 OS: SuSE SLES 8 zSeries 64bit
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: cseader at idahopower dot com
New email:
PHP Version: OS:

 

 [2004-09-21 23:56 UTC] cseader at idahopower dot com
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



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-12-20 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 12:01:31 2024 UTC